[ns] how to generate application-specific traffic?

2009-12-04 Thread galaxy-huang

hi all,
  i need to simulate several kinds of applications, such as skype, games, 
emule, video, audio etc. my question is how can i simulate these kinds of 
applications by the traffic trace file?
   should i sniffer the packet deliver time and packet size and record them in 
my own traffic trace file? but we know that the traffic pattern generated in 
this way will be affected by the transport-layer protocol, is there any better 
to achieve my goals? 
  thanks in advance!  

[ns] the command ns is ok ,bu nam can not running.

2009-12-04 Thread 赵金铃

Hi,I have installed: windows xp sp3+ cygwin 2.573.2.3+ns-allinone 2.34

the command startxwin.dat is ok . I can see t x~windows. and nbsp;the 
command ns is ok ,too.I can seenbsp;the nbsp;resultnbsp;nbsp;in text.
but there is no graph window for displaying the result nbsp;at the same time .
I input command as below (between *nbsp;and *)
(in x window)

$ns ./ns-allinone-2.34/ns-2.34/tcl/ex/simple.tcl
210
0.0037499..
running nam..

$..
*
nbsp;Maybe the result of ns command is right ,but nam dialog didn't appera.why?
nbsp;
If I double click the icon of /$NS_HOME /ns-allinone-2.34/nam-1.14/nam.exe, 
then display the error dialog: nam.exe couldn't find the entrance. couldn't 
locate the programm input node AddAtomA to dynamic link library cygwin1.dll.
nbsp;
Any suggestion,thanks a lot .

jinling.zhao






[ns] Flooding troubles

2009-12-04 Thread Alexander Adrowitzer

Hi,
I am trying a wireless flooding scenario. The basic idea is that one 
node broadcasts to all nodes in its transmission range and every 
receiving node immediately retransmits the packet.

I modified the wireless-flooding.tcl in /ns/tcl/ex for my needs but 
still get some irritating results:

the transmission range is 750m and even if setting the necessary 
parameters for transmission range (Antenna/OmniAntenna ... and 
Phy/WirelessPhy ...) as I do in all my other simulations, it doesn't work!

Has anybody seen similar things or does someone has another flooding 
script for wireless nodes??

Thank you very much
Alexander Adrowitzer



Re: [ns] what is the differences between these bandwidth_s and rate_s?

2009-12-04 Thread Mohammed AbuHajar

Also I am asked why you use this complicated tcl parameters. 

NS, by default, has the
data rate for the MAC set at 2 Mbps. But cards are faster now. My
cards are 802.11b, which means they're 11 Mbps, and so we need to
change this. Add the following to the beginning of your simulation
script:

Mac/802_11 set dataRate_ 11Mb

So when you set Phy/WirelessPhy set bandwidth_ 0Mb , that mean there is no 
bandwidth
available, so no traffic will flow through the wireless link.

Second point: 
Study the simple simulation for wirelress link from thw following site, don't 
start working 
with your project until understand very well:
http://www.winlab.rutgers.edu/~zhibinwu/html/network_simulator_2.html
http://www.isi.edu/nsnam/ns/tutorial/index.html

Mohammed AbuHajar


--- On Fri, 12/4/09, galaxy-huang galaxy-hu...@163.com wrote:

From: galaxy-huang galaxy-hu...@163.com
Subject: Re:Re: [ns] what is the differences between these bandwidth_s and 
rate_s?
To: Mohammed AbuHajar mcs...@yahoo.com
Date: Friday, December 4, 2009, 10:52 AM

hi, Mohammed AbuHajar,   thanks for your help. but what i really confused is 
that which bandwidth_ is necessary. in my scenario, i set the wireless physical 
layer bandwidth to ZERO(by addingPhy/WirelessPhy set bandwidth_ 0Mb), but it 
have no effect in my simulation. another question is, In reality, is there 
existing LL::bandwidth_ and Mac::bandwidth_? whether or not should we set all 
these bandwidths in our simulation, if not which one is necessary?thank you 
very much!
在2009-12-04,Mohammed AbuHajar mcs...@yahoo.com 写道:
 Data link Layer contains the two units(LLC,MAC) as structure So
LL::bandwidth_  refer to the bandwidth of Logical Link layer 
Mac::bandwidth_  refer to the bandwith of Media access layer 
Phy::bandwidth_  refer to the bandwith of physical layer
Mac802_11::basicrate_  //Rate for Data Frames 
Mac802_11::datarate_   //Rate for Control Frames 
  
Try to see the following site:
http://www.isi.edu/nsnam/ns/tutorial/index.html
http://www.winlab.rutgers.edu/~zhibinwu/html/network_simulator_2.html#Introduction
 
Regards,
 
Mohammed AbuHajar

--- On Thu, 12/3/09, galaxy-huang galaxy-hu...@163.com wrote:


From: galaxy-huang galaxy-hu...@163.com
Subject: [ns] what is the differences between these bandwidth_s and rate_s?
To: ns ns-users@ISI.EDU
Date: Thursday, December 3, 2009, 11:03 AM




hi all,
  i am confused by the bandwidths when i am wirting a wireless 802.11 scenario. 
there are many bandwidths and rates:
LL::bandwidth_
Mac::bandwidth_
Phy::bandwidth_
Mac802_11::basicrate_
Mac802_11::datarate_
  I don't know what are the differences between them? when to use them?
  Could someone give me the answer?
  thanks in advance!







  

[ns] Assign a specific node id from tcl script

2009-12-04 Thread Albane Delos

Hi all,

I am currently trying to assign a specific node id to each node created in
my tcl script but I can't find how to do it.
When a node is created, tcl assigns a node id by incrementing its value with
each new node, the C++ address is mapped on this node id I think.  But in my
case I don't want to have nodes whose addresses are 0, 1, 2 etc. I want
nodes with addresses 0, 10, 11, 12, 20, 21, 22 etc.

So, if anyone knows the answer of how to assign a specific node id from tcl
script, I would be very grateful if you could help me.
I work with ns-2.34.

Thanks in advance,

Albane


Re: [ns] the command ns is ok ,bu nam can not running.

2009-12-04 Thread Mohammed AbuHajar

Work under linux operating system its better.

Mohammed AbuHajar

--- On Fri, 12/4/09, 赵金铃 zhao_jinl...@sina.com wrote:

From: 赵金铃 zhao_jinl...@sina.com
Subject: [ns] the command ns is ok ,bu  nam can not running.
To: ns-users@ISI.EDU
Date: Friday, December 4, 2009, 11:03 AM



-Inline Attachment Follows-

Hi,I have installed: windows xp sp3+ cygwin 2.573.2.3+ns-allinone 2.34

the command startxwin.dat is ok . I can see t x~windows. and nbsp;the 
command ns is ok ,too.I can seenbsp;the nbsp;resultnbsp;nbsp;in text.
but there is no graph window for displaying the result nbsp;at the same time .
I input command as below (between *nbsp;and *)
(in x window)

$ns ./ns-allinone-2.34/ns-2.34/tcl/ex/simple.tcl
210
0.0037499..
running nam..

$..
*
nbsp;Maybe the result of ns command is right ,but nam dialog didn't appera.why?
nbsp;
If I double click the icon of /$NS_HOME /ns-allinone-2.34/nam-1.14/nam.exe, 
then display the error dialog: nam.exe couldn't find the entrance. couldn't 
locate the programm input node AddAtomA to dynamic link library cygwin1.dll.
nbsp;
Any suggestion,thanks a lot .

jinling.zhao







  

[ns] transmission power for 500 meter

2009-12-04 Thread jeni martin

hi all,
 
 
which value i must get Pt_ to have transmission rate equal to 500 meter?
i read somewhere if Pt_ = 0.2818, then the transmission range will be 250 meter.
 
thanks in advance.


  


[ns] How to get the energy and speed of a node

2009-12-04 Thread Ali Al-Shra'ah.


Hi all;

If any one knows how to get the energy of a node and how to get the node's 
mobility speed, please let me know.

regards,


  


[ns] regarding ns2 installation error on cygwin

2009-12-04 Thread srianjali k

Hi all,

When I installed the ns-2.27 in Cygwin it gave the following error and  exit

In file included from tclcl.h:48,
 from Tcl.cc:47:
tclcl-mappings.h: In static member function `static int
 TclObjectHelperT::disp
atch_(void*, Tcl_Interp*, int, char**)':
tclcl-mappings.h:51: error: incomplete type `Tcl' used in nested name
 specifier
tclcl-mappings.h:52: error: invalid use of undefined type `struct Tcl'
tclcl-mappings.h:41: error: forward declaration of `struct Tcl'
tclcl-mappings.h:57: error: invalid use of undefined type `struct Tcl'
tclcl-mappings.h:41: error: forward declaration of `struct Tcl'
make: *** [Tcl.o] Error 1
tclcl-1.0b13 make failed! Exiting ...

How can I solve the abobe problem and install NS-2.27 in Cygwin
environment?...What to do to overcome this?.

please help me out

thnx


[ns] Change trace file during simulation?

2009-12-04 Thread ahmed ibrahim


Hi all,

This is my first message on this mailing list.

The
trace file generated in my simulation is huge and I decided to parse it
using awk during the simulation and delete it from time to time.
I
managed to run awk on the file, but the problem is that I can't change
the trace file of the simulation so that it continues tracing in a
brand new file.
Does anyone know how to change the tracing destination in ns2 during the 
simulation?