[ns] difference between ns-2.34 and ns-2.26

2009-12-08 Thread Jyotirmoy Karjee

Hi ,
   I have some doubt with ns- version ?

 (a) what is the difference between ns-2.34 and ns-2.26  version ??

  (b) If  i install both the version ns-2.34 and ns-2.26 in my linux
system , is there any problem while running the
script file ??

   with regards
   Jyotirmoy


[ns] can i use Nrl sensorsim in ns-2.34 ?

2009-12-08 Thread Jyotirmoy Karjee

Hi,
   Can i use Nrl's sensorsim in ns-2.34 version  ?


with regards
Jyotirmoy


[ns] Link State not following the least cost path... Can anyone help me please!!!!

2009-12-08 Thread BilalAKhan


Dear All, 

I had mailed this before as well. But I am still stuck with this.  I had a
reply, but the suggested increase in run time did not work out. Can anyone
please help me with this, details are given below.

I am running Link State Protocol on a very simple three node topology.
having designed a topology with three nodes. I have also defined the link
cost between all the nodes. (Costs of the links are: n0-n1 : 1.5, n1-n2 :
1.5, n0-n2 : 10). When I run the simulation, according to the traffic goes
from node n0 to n2 directly. Although the total cost of node n0-n1-n2 is
less the total cost of n0-n2 directly. According to my knowledge, it should
not behave like this. If the accumulative cost of the links is less then the
direct link, traffic should traverse the lowest cost path. 

I am unable to grasp what is going on.  I am pasting the script below for
your convenience, if you can see the script and tell me where am I wrong or
if there is anything missing in the script. 

Also please tell me how should I write the script if I am wrong in the
script 

#Create a simulator object 
set ns [new Simulator] 

#Open the nam trace file 
set nf [open out.nam w] 
$ns namtrace-all $nf 
set f0 [open sp1.tr w] 
$ns trace-all $f0 

#Initialising Link-State routing Protocol 
$ns rtproto LS 

#Define a 'finish' procedure 
proc finish {} { 
global ns nf f0 
$ns flush-trace 
#Close the trace file 
close $nf 
close $f0 
#Execute nam on the trace file 
exec nam out.nam & 
exit 0 
} 

#Create three nodes 
set n0 [$ns node] 

set n1 [$ns node] 

set n2 [$ns node] 


#Create links between the nodes 
$ns duplex-link $n0 $n1 7Mb 10ms DropTail 
#Giving cost to the link in both directions 
$ns cost $n0 $n1 1.5 
$ns cost $n1 $n0 1.5 
$ns duplex-link $n1 $n2 7Mb 10ms DropTail 
$ns cost $n1 $n2 1.5 
$ns cost $n2 $n1 1.5 

$ns duplex-link $n0 $n2 2Mb 10ms DropTail 
$ns cost $n0 $n2 10 
$ns cost $n2 $n0 10 

#Create a UDP agent and attach it to node n0 
set udp0 [new Agent/UDP] 
$ns attach-agent $n0 $udp0 

# Create a exponential traffic source and attach it to udp0 
set expo [new Application/Traffic/Exponential] 
$expo set packetSize_ 210 
$expo set burst_time_ 500ms 
$expo set idle_time_ 500ms 
$expo set rate_ 100k 

$expo attach-agent $udp0 

#Create a Null agent (a traffic sink) and attach it to node n2 
set null0 [new Agent/Null] 
$ns attach-agent $n2 $null0 

#Connect the traffic source with the traffic sink 
$ns connect $udp0 $null0   

#Schedule events for the expo agent and the network dynamics 
$ns at 0.5 "$expo start" 
#$ns rtmodel-at 1.0 down $n0 $n2 
#$ns rtmodel-at 2.0 up $n0 $n2 
$ns at 4.5 "$expo stop" 
#Call the finish procedure after 5 seconds of simulation time 
$ns at 5.0 "finish" 

#Run the simulation 
$ns run

Regards, 

Bilal A. Khan


-
Regards,

Bilal A. Khan
-- 
View this message in context: 
http://old.nabble.com/Link-State-not-following-the-least-cost-path...-Can-anyone-help-me-please%21%21%21%21-tp26692823p26692823.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Fwd: Urgent : Bandwidth and channel capacity for wireless simulation over NS2

2009-12-08 Thread Mohammed Amine Koulali

Hi NS2 users,

I'm writing a simulation for Adhoc networks. I'm interested in bandwidth
estimation over wireless links.
First I want to define a distribution of available bandwidth all over the
network links. Where to proceed?

NB: by doing some code analysis I’ve noticed that 802.11 MAC protocol have a
variable for rate or bandwidth but once configured it will be the same for
all the node outgoing links (I want to have links bandwidth affected
randomly by a RNG).

Thanks in advance

-- 
KOULALI Mohammed-Amine


[ns] retransmission in ns-2 trace

2009-12-08 Thread Aslinda Hassan

Hi..

I'm a newbie in NS-2.  I'm using NS-2 to simulate wireless ad hoc network using 
exponential traffic.  I would like to know whether there is a recording of 
packets retransmission in NS-2 trace file.   If there is such recording, what 
kind of event or tag that I should look out in the trace file?  If not, is 
there a way to record packet retransmission in NS-2?  Does anyone has any ideas?

Thanks in advance

Aslinda Hassan


[ns] errors in installing ns2.27

2009-12-08 Thread sashtari




Hi folks

I want to install an older version of ns: ns2.27, because I want to use
SIP protocol. But I get some errors:


tclcl-mappings.h: In static member function ‘static int
TclObjectHelper::dispatch_(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 incomplete type ‘struct Tcl’
tclcl-mappings.h:41: error: forward declaration of ‘struct Tcl’
tclcl-mappings.h:57: error: invalid use of incomplete type ‘struct Tcl’
tclcl-mappings.h:41: error: forward declaration of ‘struct Tcl’

Any idea?

Cheers
Saeideh














> Send Ns-users mailing list submissions to
>   ns-users@isi.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>   http://mailman.isi.edu/mailman/listinfo/ns-users
> or, via email, send a message with subject or body 'help' to
>   ns-users-requ...@isi.edu
>
> You can reach the person managing the list at
>   ns-users-ow...@isi.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Ns-users digest..."
>
>
> Today's Topics:
>
>1. sendDown function (jeni martin)
>2. how to change transmission power (jeni martin)
>3. throughput W.R.T distance (Deema Abdallah)
>4. Regarding analysis of tracing File (Ns2) (Jyotirmoy Karjee)
>5. OTcl language (ali majeed)
>6. first ns2 script (Ricardo Sant Ana)
>7.  MANET routing packets - dropped? (Teddy Framhein)
>
>
> --
>
> Message: 1
> Date: Sun, 6 Dec 2009 01:01:41 -0800 (PST)
> From: jeni martin 
> Subject: [ns] sendDown function
> To: ns-users@ISI.EDU
> Message-ID: <629666.25119...@web110310.mail.gq1.yahoo.com>
> Content-Type: text/plain; charset=iso-8859-1
>
> hi all,
> ?
> could any one tell me what does?excatly this peice of code in
> wireless-phy.cc in SendDown function do? doese it send packet with
> specified Pt_? can i change Pt_ in this function, to control the
> transmission power during simulation?
> ?
> ?
> /*
> ? ?*? Stamp the packet with the interface arguments
> ? ?*/
> ? p->txinfo_.stamp(node(), ant_->copy(), Pt_, lambda_);
>
> ? // Send the packet
> ? channel_->recv(p, this);
>
>
>
>
>
> --
>
> Message: 2
> Date: Sun, 6 Dec 2009 04:14:41 -0800 (PST)
> From: jeni martin 
> Subject: [ns] how to change transmission power
> To: ns-users@ISI.EDU
> Message-ID: <46964.3535...@web110305.mail.gq1.yahoo.com>
> Content-Type: text/plain; charset=iso-8859-1
>
>
>
>
>
>
>
>
>
>
> hi guys
> ? To change transmission power i did as following but no change:
> ?
> 1- add a field in hdr_cmn like "double txpwr" to save desired transmission
> power for every packet.
> ?
> 2- add this code in "sendDown" function in wireless-phy.cc to transmit
> packet as desired Pt_:
> ?
> ?
> ?
> Pt_?= hdr_cmn::access(p)->txpower();
>
> ??
> /*
> ? ?*? Stamp the packet with the interface arguments
> ? ?*/
> ? p->txinfo_.stamp((MobileNode*)node(), ant_->copy(), Pt_, lambda_);
>
> ? // Send the packet
> ? channel_->recv(p, this);
> }
>
> 
> ??
> is there something that i missed?
> thanks
>
> ?
>
>
>
>
>
> --
>
> Message: 3
> Date: Sun, 6 Dec 2009 17:52:02 +0200
> From: Deema Abdallah 
> Subject: [ns] throughput W.R.T distance
> To: ns-users@ISI.EDU
> Message-ID:
>   <6db293cc0912060752h5998d894u9e04ef998e7af...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hello all,
> I am trying to add changes proposed by OAR to my ns2.33 so that throughput
> could actually drop as the mobile node moves further away from the BS to
> resemble real-time scenarios.
> So I added the prop_ricean.h and prop_ricean.cc in the mobile folder, and
> i
> added the line: mobile/prop_ricean.o in the OBJ_CC list of the Makefile.
> Then i run configure, makeclean and make. But when i run make i encounter
> the same error: Command not found. Error 127.
> Am i missing a step here or doing anything wrong!?!?
> Regards.
>
>
> --
>
> Message: 4
> Date: Mon, 7 Dec 2009 01:50:45 +0530
> From: Jyotirmoy Karjee 
> Subject: [ns] Regarding analysis of tracing File (Ns2)
> To: ns-users@ISI.EDU
> Message-ID:
>   <9a844c730912061220v288c5a87xfcd7b5986b1d2...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> hi,
>
>I have doubt regarding tracing ns2 file ? suppose i have tcl script
> file  say abc.tcl , i run it as " *ns* abc.tcl " and show the trac file
> like
> :
>
>
> s 29.039395394 _9_ RTR  --- 1 DSR 32 [0 0 0 0] --- [9:255 11:255 32 0]
> 1
> [1 1] [0 1 0 0->0] [0 0 0 0->0]
> r 29.040507483 _43_ RTR  --- 1 DSR 32 [0  9 800] --- [9:255
> 11:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0]
> r 29.040507573 _16_ RTR  --- 1 DSR 32 [0  9 800] --- [9:255
> 11:255 32 0] 1 [1 1] [0 1 

[ns] help to selecting coloumns to calculate throughput, delay, packetloss

2009-12-08 Thread Tritva jyothi kiran

*Hi*

I need help in identifying the columns in the attached trace file.

Actually i need to calculate the throughput,delay,packetloss from this file.
I found some awk scripts (awk
scripts)
online to calculate the same, but I think the column indexes are different
from my trace file.

can you tell me changes to be done in the scripts, to get those values from
my trace file.

Thank you.


 Jyothi Kiran