[ns] help me

2013-02-14 Thread masood jan

i install ns 2.35 and the patches of the followoing protocols
zone routing protocol ,location aid routing and power aware routing

-- 
*MASOODJAN
MSCE FROM IQRA UNIVERSITY
BSIT FROM PESHAWAR UNIVERSITY
DISTRICT/TEHSIL CHARSADDA *


[ns] help me sir

2013-02-13 Thread masood jan

i need the patch of the following protocols
zone routing protocol , location aid routing and power aware routing

-- 
*MASOODJAN
MSCE FROM IQRA UNIVERSITY
BSIT FROM PESHAWAR UNIVERSITY
DISTRICT/TEHSIL CHARSADDA *


[ns] help me

2013-02-13 Thread masood jan

  i install ns2.35 in ubuntu i need the following protocols patches
zone routing protocol , location aid routing and power aware routing
thank in advance
*MASOODJAN
MSCE FROM IQRA UNIVERSITY
BSIT FROM PESHAWAR UNIVERSITY
DISTRICT/TEHSIL CHARSADDA *


[ns] Help me

2012-06-14 Thread Manjula Raja

Hello any one!

Can any one provide me TCL script to run DSR and AODV routing protocls.
Our students are studying Adhoc wireless Networks as part of their
curriculum
I would like to provide them i.e my fellow college the TCL script of these
two protocols , so that they can have practical ( simulation) idea of these
two protocols and also brief note on how to analyse the trace files from
these two protocols. Eagerly waiting for the reply

-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.
*


Re: [ns] Help me

2012-06-14 Thread Manjula Raja

:

 Hello any one!

 Can any one provide me TCL script to run DSR and AODV routing protocls.
 Our students are studying Adhoc wireless Networks as part of their
 curriculum
 I would like to provide them i.e my fellow college the TCL script of these
 two protocols , so that they can have practical ( simulation) idea of these
 two protocols and also brief note on how to analyse the trace files from
 these two protocols



 .

*Also from where can i get TCL script for location aided routing protocol
to implement in NS2*

Eagerly waiting for the reply

 --
 **R.Manjula
 Sr.Lecturer, Dept of ECE
 BITM, Bellary
 Karnataka.
 *




-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of EECE
IIT Kharagpur
Cell:08900479328
**


[ns] help me on upstream label asssignment

2012-02-08 Thread prabin


Can anyone help me on upstream label assignment on mpls multicast networks?
By default data driven mode is enabled but even if i use enable-data-driven
then upstream label assignment is not working.
-- 
View this message in context: 
http://old.nabble.com/help-me-on-upstream-label-asssignment-tp33290782p33290782.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] help me on upstream label assignment on mpls

2012-02-08 Thread prabin maharjan


hello


I' doing upstream label assignment in mpls multicast network and when i use 
enable-data-driven instead of enable-control-driven then i got following 
output. In the following output, the incoming label has incomplete values. If 
anyone has idea about upstream label assignment, then can you please suggest me?


FEC PHB LIBptr AltanativePath
2 -1 0 -1
4 -1 1 -1
7 -1 2 -1

___LIB dump___ [node: 1]
-
# iIface iLabel oIface oLabel LIBptr
0: -1 -1 2 0 -1
1: -1 -1 4 0 -1
2: -1 -1 4 999 -1

--) ___ERB dump___ [node: 1] (--
-
FEC LSPid LIBptr

--) ___PFT dump___ [node: 2] (--
-
FEC PHB LIBptr AltanativePath
1 -1 0 -1
3 -1 1 -1

___LIB dump___ [node: 2]
-
# iIface iLabel oIface oLabel LIBptr
0: -1 -1 1 0 -1
1: -1 -1 3 0 -1

--) ___ERB dump___ [node: 2] (--
-
FEC LSPid LIBptr

--) ___PFT dump___ [node: 3] (--
-
FEC PHB LIBptr AltanativePath
2 -1 0 -1
4 -1 1 -1
6 -1 2 -1
7 -1 3 -1

___LIB dump___ [node: 3]
-
# iIface iLabel oIface oLabel LIBptr
0: -1 -1 2 0 -1
1: -1 -1 4 0 -1
2: -1 -1 6 0 -1
3: 4 999 6 0 -1

--) ___ERB dump___ [node: 3] (--
-
FEC LSPid LIBptr

--) ___PFT dump___ [node: 4] (--
-
FEC PHB LIBptr AltanativePath
1 -1 0 -1
3 -1 1 -1
5 -1 2 -1
7 -1 3 -1

___LIB dump___ [node: 4]
-

# iIface iLabel oIface oLabel LIBptr
0: -1 -1 1 0 -1
1: -1 -1 3 0 -1
2: -1 -1 5 0 -1
3: 1 999 3 999 -1

--) ___ERB dump___ [node: 4] (--
-
FEC LSPid LIBptr

--) ___PFT dump___ [node: 5] (--
-
FEC PHB LIBptr AltanativePath
4 -1 0 -1
6 -1 1 -1

___LIB dump___ [node: 5]
-
# iIface iLabel oIface oLabel LIBptr
0: -1 -1 4 0 -1
1: -1 -1 6 0 -1

--) ___ERB dump___ [node: 5] (--
-
FEC LSPid LIBptr

--) ___PFT dump___ [node: 6] (--
-
FEC PHB LIBptr AltanativePath
3 -1 0 -1
5 -1 1 -1

___LIB dump___ [node: 6]
-
# iIface iLabel oIface oLabel LIBptr
0: -1 -1 3 0 -1
1: -1 -1 5 0 -1

--) ___ERB dump___ [node: 6] (--
-
FEC LSPid LIBptr  

[ns] help me on packet combining

2012-02-02 Thread prabin maharjan


hello

I'm new to ns2 and i'm searching the code on piggybacking the two packets in 
multicast networks. While sending the packets, two packets will be piggyback or 
merge up to the certain nodes and the original packet has to extract again and 
send it to the respective nodes. If it is possible, then can you please help me.


Thanking in advance



With Regards
Prabin

[ns] Help Me ns Users , Developer , Expert , Fans , Anyone ..

2011-12-04 Thread zmezm 14

hi all 
i have made a wireless scenario regarding wimax handover and its has one 
problem .
am using ns-2.29 and the nist mobility model ...
the problem is i need to generate file content the position and movement 
pattern for a number of mobile node using ./setdest ,
but when i try to run the tcl script i got this error ..
and when i remove it the tcl file work but all the mobile node in the same 
place and there is no movement ..

so can anyone tell me how to configure the tcl script so it can read the 
movement scenario pattern that i have generated using ./setdest


zmezm@hz ~/ns-allinone-2.29/ns-2.29/tcl/mobility/scene
 $ ns 100nzwimax.tcl NOAH scen-100
 num_nodes is set 102
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 INITIALIZE THE LIST xListHead
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs updated. Bw=500.00, n=1.152000, new value is 5.76e+06
 Fs 

[ns] help me to implement DCF mode??

2010-10-15 Thread chithra17


Hi friends,
I want to implement dcf operation in ns2. Can I use the
unicast_validation.tcl code (tcl/ex/802.11/unicast) for reference?. I am
a beginner in ns2. so please If you have any other suggestion let me know. 
Your inputs would really help me.  

Thanks for your help.

Regards,
Chithra
-- 
View this message in context: 
http://old.nabble.com/help-me-to-implement-DCF-mode---tp29947353p29947353.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] help me to solve the mentioned error in NS 2.29

2010-07-23 Thread mobi faizy

*Hi Dear ALL,'*
**
*Can anyone help me to solve the below error.*
**
*I have install NS 2.29 on Ubuntu and Also on Windows through Cygwin.*
**
*ita85[/home/salam/229/ns-allinone-2.29/ns-2.29]# ./ns scen229/project.tcl
*num_nodes is set 100
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
couldn't read file cbr-nodes-test: no such file or directory
while executing
source.orig cbr-nodes-test
(uplevel body line 1)
invoked from within
uplevel source.orig [list $fileName]
invoked from within
if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
...
(procedure source line 8)
invoked from within
source  $val(cp)
(file scen229/project.tcl line 70)


Regards,


[ns] Help me please!!!!!!

2010-07-20 Thread Cecy C.




From: clc...@hotmail.com
To: ns-users@isi.edu
Subject: Help me please!!
Date: Tue, 20 Jul 2010 09:50:54 -0500








Hi ns-users

Hello, I have a question, hopefully someone can help me, because I'm very 
desperate.  How
I can change the AODV protocol to be able to send several times at any
time a package sendHello, disabling HelloTimer and send message
Hello when a node moves to another position? The Hello message must reach out 
to neighbors who are to 3 hops away from the node to be moved.

I will be very grateful for the help I can get.

Cecy L. 
  
  
_
¿Te crees fan de Messenger? Compruébalo
www.vivirmessenger.com


[ns] Help me find the JET protocol

2010-07-10 Thread Christos Spatiotis

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I needed the JET (Just Enough Time) protocol for obs networks.
How can i make obs networks with this protocol?

Thanks for all
- -- 
===
Undergraduate student Spatiotis Christos
Department of Computer Engineering  Informatics (CEID)
University of Patras, Greece
e-mail: spati...@ceid.upatras.gr
website: http://spatiotis.wordpress.com

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMOImJAAoJEEsBwmwz6MuRZIQIAIubfYWF4FXVa74nW4So2Z+O
YEyCsHDrdhWeZvY4Dv4A6gIFHkIuXudqQ8FFYZD6QwY0DHWgEOsOFrcZXGjCFFqA
z+LC7djlmAlnvSMKAIrAIb50Cc272KT5XwV1WdGLjtJeS12olrMxz1WI0GyNyUFZ
pHIZ+WvoPK4h/JPV0mI9vzEqhf2oqXA1tJIRsSklcedyckeNfp2Db0efN8wDA6lY
oYuBKdPKNoaS3mf+ahKPITQaVpFmGLYgSVrSjRsu/UClwpd8tKU2pU1uCOKdIF5R
mU+F/V3dbczknWNLlB/6+MvKVl4XMtthRg10dobgRK1hpLofPyGUJeQEh24r2Fw=
=u3Fp
-END PGP SIGNATURE-



[ns] help me to run TORA routing protocol

2010-06-08 Thread mobi faizy

Dear All,

I am using NS 2.31 , but *TORA* is not working properly.
Can anyone help me in this regard.

Regards,


[ns] help me for add packet droping node

2010-03-16 Thread dhaval thakar

hi friends

I am going to implement one paper in that I need to add some node which act
as a blackhole packet droping node so any
kind of idea or code please help me

thanx in advance


[ns] help me please

2010-01-11 Thread Fahimeh Akbari

hello every body

I write a new protocol in ns and when I make it, I see this error:
make: *** No rule to make target `rcrt/rcrtsink.o', needed by `ns'.  Stop.

can anybody help me, plese!!

thanks: fahimeh



  


[ns] Help me multichannels

2009-11-10 Thread thang

Hi all,
Anyone uses multichannels as
http://www.cse.msu.edu/~wangbo1/ns2/nshowto8.html? 

I made hyacinth on Ns-2.29 and test with twoflows-2channel.tcl and run
well. Now i have some nodes 01(4)---3---2.There are 2
channels: 1--2--4 and 2---3---4. How to transfer a packet from 1 to
4 and 2 to 4. I tried

# Add routing tag
$node_(0) add-route-tag 1 999
$node_(1) add-route-tag 4 88
$node_(2) add-route-tag 3 8
$node_(3) add-route-tag 4 99
#$ragent add-next-hop $dst $tag $hop $nic
# Add next hop
$node_(0) add-next-hop 1 999 1 2
$node_(1) add-next-hop 4 88 4 5
$node_(2) add-next-hop 3 8 3 3
$node_(3) add-next-hop 4 99 4 1
*****
set null0 [new Agent/Null] 
$ns_ attach-agent $node_(1) $null0 
set cbr0 [attach-cbr-traffic $node_(0) $null0 500 0.005] 

$ns_ at 0.001 $cbr0 start
$ns_ at 4.9 $cbr0 stop

set null1 [new Agent/Null]
$ns_ attach-agent $node_(3) $null1
set cbr1 [attach-cbr-traffic $node_(2) $null1 500 0.005]
$ns_ at 0.001 $cbr1 start
$ns_ at 4.9 $cbr1 stop
== result is only packets transfer from 0 to 1, 2 to 3, packets can't
reach to 4. 
Please, please help me soon.
Thank you very much.




Re: [ns] Help me

2009-10-12 Thread Sebastian Terence.J

Hi,

Thank you Sir,

In my project, i am  Using  Hello Packets for neighbor discovery.

But i don know how to create Hello Packets for neighbor discovery.

If you have any idea, please share with me. It will usefull to me.


Thank you


With Regards
Sebastian Terence



On 10/9/09, Mubashir Rehmani mshrehm...@gmail.com wrote:

 Hi,

 See these links

 http://www.nabble.com/Finding-Neighbors-of-a-Mobile-Node.-td21019174.html#a21019289

 Regards
 Mubashir Husain Rehmani


 2009/10/9 Sebastian Terence.J jsebi...@gmail.com


 Hi Friends,

 I want to know how to discover neighbor nodes in mobile environment. If
 any
 one know please tell me, it will useful for me.

 Thank you

 -Sebastian Terence




 --
 Mubashir Husain Rehmani





[ns] Help me

2009-10-09 Thread Sebastian Terence.J

Hi Friends,

I want to know how to discover neighbor nodes in mobile environment. If any
one know please tell me, it will useful for me.

Thank you

-Sebastian Terence


Re: [ns] Help me

2009-10-09 Thread Mubashir Rehmani

Hi,

See these links
http://www.nabble.com/Finding-Neighbors-of-a-Mobile-Node.-td21019174.html#a21019289

Regards
Mubashir Husain Rehmani


2009/10/9 Sebastian Terence.J jsebi...@gmail.com


 Hi Friends,

 I want to know how to discover neighbor nodes in mobile environment. If any
 one know please tell me, it will useful for me.

 Thank you

 -Sebastian Terence




-- 
Mubashir Husain Rehmani


[ns] help me for 802.11e

2009-09-17 Thread ali bala

hi
i installed 802.11e tkn under ns-2.31 and after installation of that i run 
multi_udpflows.tcl of course i run this example with 1000 sec instead of 
1 sec and i get this message :

num_nodes is set 5 
wired node 0 created 
wired node 1 created 
wired node 2 created 
INITIALIZE THE LIST xListHead 
Base-Station node 3 created 
wireless node 0 created ... 
wireless node 1 created ... 
wireless node 2 created ... 
wireless node 3 created ... 
warning: Route to base_stn not known: dropping pkt 
warning: Route to base_stn not known: dropping pkt 
warning: Route to base_stn not known: dropping pkt 
warning: Route to base_stn not known: dropping pkt 
warning: Route to base_stn not known: dropping pkt 
warning: Route to base_stn not known: dropping pkt 
warning: Route to base_stn not known: dropping pkt 
warning: Route to base_stn not known: dropping pkt 
warning: Route to base_stn not known: dropping pkt 
warning: Route to base_stn not known: dropping pkt 
warning: Route to base_stn not known: dropping pkt 
warning: Route to base_stn not known: dropping pkt 
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ 
highestAntennaZ_ = 1.5,  distCST_ = 550.0 
SORTING LISTS ...DONE! 
ns exiting...
 
i have 2 questions :
1- is it errore or only it's a warning and i install tkn succesfully?
2-if i didn't install tkn sccesfully please help me to do that succesfully
 
after run this example i write new example and run it under 802.11e
i attached the new tcl
when i run it with dsdv all packet dropped and when i run it with dsr in tr 
file i saw sfs in first of all row
and when i run it with aodv it run but the output file was empty.
3- what's the problem of 802.11e with routing protocols?
please help me for working well with 802.11e tkn
i need it very soon
thanks for your attentions
 
 mr.ali.balador
homepage:www.balador.org 


  


[ns] help me to make modification to ns-2.27 files (.cc .h)

2009-08-23 Thread ali majeed

hi to all
I tried to run the instruaction make depend; make from your web site to make 
recompile to pi.cc pi.h(because i modified these files) and i attached the 
message with this email that i get after running but my problem till now not 
solved .
 
please help me to solve my problem (make modified)
 
note : 
please if i need to add new files .cc   .h  with new name to ns2 please can 
you provide me the steps or instructions to do that.
 
thank you 
ali m


  

[ns] help me please in ns-2.27

2009-08-21 Thread ali majeed



--- On Fri, 8/21/09, ali majeed alimm...@yahoo.com wrote:


From: ali majeed alimm...@yahoo.com
Subject: 
To: ns-users@isi.edu
Date: Friday, August 21, 2009, 11:14 PM










  

[ns] help me in finding the problem

2009-06-18 Thread Atif Sharif

Hi!
I am simulating the WSN using energy model but I have the follwoing confusions
1. As you can see that I have defined the grid 100m *100 m, and specifically 
defined the node positions 10 m a part from each other along x-axis. But when i 
start simulaion the nodes initially are invisible for some time then they 
appeared in overlapped fashion... why?
 I have defined the thredhold but It didn't work as when in simualtion 
environment I manually drag the sink and source wide a part they still exchange 
messages directly... how can I overcome this?
Also the relay nodes are not seen in data exchange why?

code

# Generated by Topology Generator for Network Simulator (c) Elmurod Talipov
set val(chan) Channel/WirelessChannel ;# channel type
set val(prop) Propagation/TwoRayGround ;# radio-propagation model
set val(netif) Phy/WirelessPhy/802_15_4 ;# network interface type
set val(mac) Mac/802_15_4 ;# MAC type
set val(ifq) Queue/DropTail/PriQueue ;# interface queue type
set val(ll) LL ;# link layer type
set val(ant) Antenna/OmniAntenna ;# antenna model
set val(ifqlen) 100 ;# max packet in ifq
set val(nn) 4;# number of mobilenodes0;# X dimension of topography100 ;# Y 
dimension of topography10;# simulation period atif1.tr w]tif1.nam w]3) label 
SinkRelay2) label Relay0) $tcp0 3) $sink0 2$ftp0 start 10.0 $ftp0 
stopatif1.nam  
set val(rp) AODV ;# protocol tye
set val(x) 10
set val(y) 
set val(stop) 
set val(energymodel) EnergyModel ;# Energy Model
set val(initialenergy) 100 ;# value
set ns [new Simulator]
$ns color 1 Blue
set tracefd [open 
set namtrace [open a
$ns trace-all $tracefd
$ns namtrace-all-wireless $namtrace $val(x) $val(y)
 
set dist(5m) 7.69113e-06
set dist(9m) 2.37381e-06
set dist(10m) 1.92278e-06
set dist(11m) 1.58908e-06
set dist(12m) 1.33527e-06
set dist(13m) 1.13774e-06
set dist(14m) 9.81011e-07
set dist(15m) 8.54570e-07
set dist(16m) 7.51087e-07
set dist(20m) 4.80696e-07
set dist(25m) 3.07645e-07
set dist(30m) 2.13643e-07
set dist(35m) 1.56962e-07
set dist(40m) 1.20174e-07
Phy/WirelessPhy set CSThresh_ $dist(40m)
Phy/WirelessPhy set RXThresh_ $dist(40m)
 
# set up topography object
set topo [new Topography]
$topo load_flatgrid $val(x) $val(y)
create-god $val(nn)
# configure the nodes
$ns node-config -adhocRouting $val(rp) \
-llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val(ant) \
-propType $val(prop) \
-phyType $val(netif) \
-channel [new $val(chan)] \
-topoInstance $topo \
-agentTrace ON \
-routerTrace ON \
-macTrace ON \
-movementTrace ON \
-energyModel $val(energymodel) \
-initialEnergy $val(initialenergy) \
-rxPower 35.28e-3 \
-txPower 31.32e-3 \
-idlePower 712e-6 \
-sleepPower 144e-9 
#-IncomingErrProc MultistateErrorProc \
#-OutgoingErrProc MultistateErrorProc
for {set i 0} {$i  $val(nn) } { incr i } {
set mnode_($i) [$ns node]
}
for {set i 0} {$i  $val(nn) } { incr i } {
$mnode_($i) set X_ [ expr {20 + $i * 10} ] #$mnode_($i) set X_ [ expr {$val(x) 
* rand()} ]
$mnode_($i) set Y_ 20.0 #$mnode_($i) set Y_ [ expr {$val(y) * rand()} ]
$mnode_($i) set Z_ 0.0 #$mnode_($i) set Z_ 0
}
$mnode_(
$mnode_(0) label Source
$mnode_(1) label 
$mnode_(
 
# Set a TCP connection between node_(0) and node_(1) 
set tcp0 [new Agent/TCP/Newreno] 
$ns attach-agent $mnode_(
set sink0 [new Agent/TCPSink] 
$ns attach-agent $mnode_(
$ns connect $tcp0 $sink0 
set ftp0 [new Application/FTP] 
$ftp0 attach-agent $tcp0 
$ns at 0.
$ns at 
$tcp0 set fid_ 1 
# Telling nodes when the simulation ends
for {set i 0} {$i  $val(nn) } { incr i } {
$ns at $val(stop) $mnode_($i) reset;
}
# ending nam and the simulation
$ns at $val(stop) stop
$ns at $val(stop) $ns nam-end-wireless $val(stop)
$ns at [expr $val(stop) + 0.01] puts \end simulation\; $ns halt
proc stop {} {
global ns tracefd namtrace
$ns flush-trace
close $tracefd
close $namtrace
exec nam 
exit 0 
}
$ns run


  


[ns] help me about MAODV trace file

2008-12-12 Thread 胡杰

 
  
 hello all,
i run the MAODV protocol,but i found a interesting thing:
--s 401.509417279 _0_ AGT  --- 746 cbr 256 [0 0 0 0] --- [0:0 234881024:-1 
32 0] [746] 0 0
--r 401.509417279 _0_ RTR  --- 746 cbr 256 [0 0 0 0] --- [0:0 234881024:-1 
32 0] [746] 0 0
--s 410.543042838 _0_ RTR  --- 746 cbr 276 [0 0 0 0] --- [0:0 234881024:-1 
30 34] [746] 0 0
why node 0 send the packet 746 after so long time?
thanks your help

[ns] help me

2008-09-02 Thread arvin ashavan

very very thanks.your help was great!
i do programming in ns-allinone-2.26 .but in finish proc i dont know run 
namfilter file. please help me about.
 
exec tclsh.




  


[ns] help me

2008-08-26 Thread arvin ashavan

hi to all.
please guaide me about indtall ns-allinone-2.26 in redhat 9.
i wnat install it but dont be work for me!
please say me step tp step of install.
tanx


  


[ns] help me to implementation hybrid RED algorithm in ns 2

2008-07-01 Thread gede mangku sarjana

hai guysmy name gedecan you help me to understant and implementing
hybrid RED algorithm for congestion control in TCP??
thanksthats the paper.


[ns] help me

2008-04-11 Thread mohamed saad

salam alikom

 after i wrote example1.tcl program as

set ns [new simulator]
  .
  .
$ns run

 i run the program by type ns example1.tcl command
it give error message
   invalid command name simulator
   while executing
  simulator create_03
invoked from within
  .
  :
what is wrong in this program?
and what i do?
note i work in mandrake10
can you help me
gazak allah khiran

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[ns] help me to solve this error please

2008-04-11 Thread mohamed saad

salam alikom

when run aprogram by typing acommand
ns example1.tcl
it give me this error
no display name and no $DISPLAY environment variable
can you help me what is this?and what i do to solve this error
note i run on mandrake10
gazak allah khiran

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[ns] help me regarging handoff simulation plz

2008-02-26 Thread rashi saxena

hello all

   i want to simulate soft handoff of cellular network by using ns-2 but i 
don't have any idea abt that plz tellme is their any script available or not?i 
have to simulate call blocking and call dropping probability of soft handoff of 
CDMA and GSM network

plz help me out

plz.i'll be thankful to u


Rashi Saxena
India


[ns] help me out in installing ns-2.28 in ns-2.30

2008-01-22 Thread Malar


Hi,

I have installed ns-allinone-2.30 on Fedora core 8.0.But I am in need of
ns-allinone-2.28 version to run.
I don't know whether the version ns-allinone-2.28 can be installed in the
current ns-2.30 folder itself or not.
If any one know do help me out in resolving this.

Thanks  Regards,
Malar 
-- 
View this message in context: 
http://www.nabble.com/help-me-out-in-installing-ns-2.28-in-ns-2.30-tp15015233p15015233.html
Sent from the ns-users mailing list archive at Nabble.com.


[ns] help me in the segemnation fault pleassee!!!!!!!!!!!!

2007-12-04 Thread Tamer Ahmed

Dear NS-users,

I am running a tcl scripts using the AODV, DSDV and DSR routing protocols
for my scripts under ns-2.29. Actually, the AODV and DSDV are both working
well. But, we I apply the DSR routing protocol, it gives me:

*Segmentation fault (core dumped)*
Actually, this problem is with me in both windows, and linux fedrora because
I installed the ns-2 on both and working on both the windows and linux.

So, could anybody help me how to solve this problem because I searched lots
and tried lots and lots with it plzzz.

Regards,

Thamer Jahamneh

-- 
Thamer Al-Jahamneh


[ns] help me regarding the make file plzzzzzz

2007-12-03 Thread Will Spearman

Try make distclean or make distclean-recursive. It will do a full 
reconfigure from scratch. Look in the Makefile for all the different 
types of targets. Hope that helps.



 
 Message: 1
 Date: Sun, 2 Dec 2007 20:33:26 -0500
 From: Tamer Ahmed [EMAIL PROTECTED]
 Subject: [ns] help me regarding the make file plzz
 To: ns-users@ISI.EDU
 Message-ID:
   [EMAIL PROTECTED]
 Content-Type: text/plain; charset=ISO-8859-1
 
 Dea NS-Users,
 
 I have installed the ns-2.29 on machine under Linux Fedora and tried also
 with the ns-2.31.
 
 Actually, after I have unzipped the tar file and wrote the
 ./installcommand, it gave me the following:
 
 make: Warning: File `Makefile.in' has modification time 1.3e+08 s in the
 future
 Makefile.in is newer than Makefile.
 You need to re-run configure.
 false
 make: *** [Makefile] Error 1
 Ns make failed!
 See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
 
 I did the ./configure command again and typed  the make, but gave me the
 following again:
 
 config.status: creating indep-utils/webtrace-conv/nlanr/Makefile
 config.status: creating indep-utils/webtrace-conv/epa/Makefile
 config.status: creating indep-utils/cmu-scen-gen/setdest/Makefile
 config.status: creating autoconf.h
 config.status: autoconf.h is unchanged
 [EMAIL PROTECTED] ns-2.31]$ make
 make: Warning: File `Makefile.in' has modification time 1.3e+08 s in the
 future
 Makefile.in is newer than Makefile.
 You need to re-run configure.
 false
 make: *** [Makefile] Error 1
 [EMAIL PROTECTED] ns-2.31]$
 
 So, Could any body help me regarding that please?? It is urgent
 please.
 
 Thanks in advance
 
 Thamer Al-Jahamneh



[ns] help me regarding the make file plzzzzzz

2007-12-02 Thread Tamer Ahmed

Dea NS-Users,

I have installed the ns-2.29 on machine under Linux Fedora and tried also
with the ns-2.31.

Actually, after I have unzipped the tar file and wrote the
./installcommand, it gave me the following:

make: Warning: File `Makefile.in' has modification time 1.3e+08 s in the
future
Makefile.in is newer than Makefile.
You need to re-run configure.
false
make: *** [Makefile] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

I did the ./configure command again and typed  the make, but gave me the
following again:

config.status: creating indep-utils/webtrace-conv/nlanr/Makefile
config.status: creating indep-utils/webtrace-conv/epa/Makefile
config.status: creating indep-utils/cmu-scen-gen/setdest/Makefile
config.status: creating autoconf.h
config.status: autoconf.h is unchanged
[EMAIL PROTECTED] ns-2.31]$ make
make: Warning: File `Makefile.in' has modification time 1.3e+08 s in the
future
Makefile.in is newer than Makefile.
You need to re-run configure.
false
make: *** [Makefile] Error 1
[EMAIL PROTECTED] ns-2.31]$

So, Could any body help me regarding that please?? It is urgent
please.

Thanks in advance

Thamer Al-Jahamneh
-- 
Thamer Al-Jahamneh


Re: [ns] help me regarding the make file plzzzzzz

2007-12-02 Thread Kamil H. Suleiman

Hello Tamer,

I think there are two ns-2 groups, the releases earlier thank 2.30 and
later thank and including 2.30. The first group requires older c++
compiler and you should only install them in a linux fedora version
earlier than core 5. This applies to your 2.29, which should be
installed either in core 4 or earlier. The latter should be installed
int a core 5 or later release of Fedora.   

Hope this helps,
Kamil
https://crg.ee.uct.ac.za/~kamil

On Sun, 2007-12-02 at 20:33 -0500, Tamer Ahmed wrote:
 Dea NS-Users,
 
 I have installed the ns-2.29 on machine under Linux Fedora and tried also
 with the ns-2.31.
 
 Actually, after I have unzipped the tar file and wrote the
 ./installcommand, it gave me the following:
 
 make: Warning: File `Makefile.in' has modification time 1.3e+08 s in the
 future
 Makefile.in is newer than Makefile.
 You need to re-run configure.
 false
 make: *** [Makefile] Error 1
 Ns make failed!
 See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
 
 I did the ./configure command again and typed  the make, but gave me the
 following again:
 
 config.status: creating indep-utils/webtrace-conv/nlanr/Makefile
 config.status: creating indep-utils/webtrace-conv/epa/Makefile
 config.status: creating indep-utils/cmu-scen-gen/setdest/Makefile
 config.status: creating autoconf.h
 config.status: autoconf.h is unchanged
 [EMAIL PROTECTED] ns-2.31]$ make
 make: Warning: File `Makefile.in' has modification time 1.3e+08 s in the
 future
 Makefile.in is newer than Makefile.
 You need to re-run configure.
 false
 make: *** [Makefile] Error 1
 [EMAIL PROTECTED] ns-2.31]$
 
 So, Could any body help me regarding that please?? It is urgent
 please.
 
 Thanks in advance
 
 Thamer Al-Jahamneh



[ns] Help me why ! Thanks all.

2007-11-18 Thread He thong vien thong

Hi all !

Thanks for your helping.

I just successfully installed Ns-2.1b6 on RedHat Linux  to use OWns
with environment variabale (.bashrc):

export NS_HOME=/home/an/ns-allinone-2.1b6
export 
PATH=$NS_HOME/ns-2.1b6:$NS_HOME/bin:$NS_HOME/tcl8.0.4/unix:$NS_HOME/bin:$PATH
export PATH=$NS_HOME/tk8.0.4/unix:$NS_HOME/nam-1.11:$NS_HOME/xgraph-12.1:$PATH
export 
LD_LIBRARY_PATH=$NS_HOME/otcl-1.0a5:$NS_HOME/tclcl-1.0b9:$LD_LIBRARY_PATHexport
LD_LIBRARY_PATH=$NS_HOME/lib:$LD_LIBRARY_PATH
export TCL_LIBRARY=$NS_HOME/tcl8.0.4/library

But when I use NS command to compile owns_demo.tcl then have error
with report: ENVIRONMENT VARIABALE NS-2 NOT SET.
Could you understand that report ? If could, pls tell me as soon as posible !

Thanks again.
Best Regards.



[ns] Help me to write awk scripts fromTrace File (new format) to find Route Acquisition Time, Average End-to-end delay and Protocol Load

2007-11-04 Thread SuNiL SoNi

Hi,
 I have wireless program for three nodes and I am able
to generate trace file successfully. Trace file is
having new revised format like following.
 
s -t 0.898988 -Hs 0 -Hd -1 -Ni 0 -Nx 5.00 -Ny 2.00 -Nz
0.00 -Ne -1.000 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt
0 -Is 0.255 -Id -1.255 -It message -Il 32 -If 0 -Ii 0
-Iv 32
s -t 1.552488 -Hs 1 -Hd -1 -Ni 1 -Nx 390.00 -Ny 386.00
-Nz 0.00 -Ne -1.000 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0
-Mt 0 -Is 1.255 -Id -1.255 -It tcp -Il 1000 -If 0 -Ii
0 -Iv 32

Now, According to different criteria mentioned in
subject line, I want to generate files which can
generate Xgraph for above criteria.

I need awk scripts to select specific required data
from main trace file. So if anybody is having that
scripts please help me out.

Thanks. 



  Now you can chat without downloading messenger. Go to 
http://in.messenger.yahoo.com/webmessengerpromo.php



[ns] Help me to develop AODV, SAODV implementation/simulation in NS2

2007-10-16 Thread SuNiL SoNi

Dear friends,

I like to develop AODV and SAODV implementation or
simulation using NS2.

If anybody having any code in NS2 about AODV or SAODV
then please reply me.

Or if you have any information about same then also
reply me.

Bye.


  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/



[ns] Help me with the DCCP module!

2007-09-10 Thread WangYaogong

Hi all,

I'm using the DCCP module contributed by: http://lifc.univ-fcomte.fr/~dedu/ns2/ 
 in ns-2.31. But when I tried the simple script in the attachment, I got the 
following error:

DCCPAckVector::sendAckVector - Failed to add ack vector to option: err -1, size 
254

Can anyone help me out? It's really urgent!

Thank you.

Yaogong

_
Windows Live Spaces 中最年轻的成员!
http://miaomiaogarden2007.spaces.live.com/

[ns] Help me to fix this error

2007-08-30 Thread adi suryo wibowo

Hii ns user

I confused how to fix the common problems of friend class of drr.cc,
imep/rxmit_queue.h, sfq.cc, snoop.h, tcp-full.h, tcp-rbp.cc,
tfrc-sink.h, and tfrc.h   What this means
Can you help me??

Can ADMR and ODMRP install in NS 2.30? Until now I have error and error



Thanks



Re: [ns] help me with the dsr segmentation problem

2007-04-16 Thread Bryan Hogan

Change 
set val(ifq)  Queue/DropTail/PriQueue
to
CMUPriQueue

Regards,

Bryan
Bryan's Dynamic Source Routing FAQ - http://www.geocities.com/b_j_hogan/

On Wed, 28 Feb 2007, sandeep v wrote:


 hi. this is my tcl script to simulate for 3 nodes using dsr routing
 protocol. it s givin as segmentation fault. but the same script works for
 dsdv just by changin the routing protocol in the script pasted
 below...please help me at the earliest as i ve lost a lot of time tryin to
 solve this.

 the terminal display when i run the tcl script is

 [EMAIL PROTECTED] ns-allinone-2.30]# ns simple-dsr.tcl
 num_nodes is set 3
 INITIALIZE THE LIST xListHead
 SORTING LISTS ...DONE!
 channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
 highestAntennaZ_ = 1.5,  distCST_ = 550.0
 Segmentation fault
 [EMAIL PROTECTED] ns-allinone-2.30]#

 this is the tcl script

 # Define options
 set val(chan)   Channel/WirelessChannel;# channel type
 set val(prop)   Propagation/TwoRayGround   ;# radio-propagation
 model
 set val(netif)  Phy/WirelessPhy;# network interface type
 set val(mac)Mac/802_11 ;# MAC type
 set val(ifq)Queue/DropTail/PriQueue;# interface queue type
 set val(ll) LL ;# link layer type
 set val(ant)Antenna/OmniAntenna;# antenna model
 set val(ifqlen) 50 ;# max packet in ifq
 set val(nn) 3  ;# number of mobilenodes
 set val(rp) DSR  ;# routing protocol
 set val(x)  500;# X dimension of
 topography
 set val(y)  400;# Y dimension of
 topography
 set val(stop)   150;# time of simulation end

 set ns[new Simulator]
 set tracefd   [open simple-dsr.tr w]
 set windowVsTime2 [open win.tr w]
 set namtrace  [open simwrls.nam w]

 $ns trace-all $tracefd
 $ns use-newtrace
 $ns namtrace-all-wireless $namtrace $val(x) $val(y)

 # set up topography object
 set topo   [new Topography]

 $topo load_flatgrid $val(x) $val(y)

 create-god $val(nn)
 set chan_1_ [new $val(chan)]
 #
 #  Create nn mobilenodes [$val(nn)] and attach them to the channel.
 #

 # configure the nodes
$ns node-config -adhocRouting $val(rp) \
 -llType $val(ll) \
 -macType $val(mac) \
 -ifqType $val(ifq) \
 -ifqLen $val(ifqlen) \
 -antType $val(ant) \
 -propType $val(prop) \
 -phyType $val(netif) \
 #-channelType $val(chan) \
 -topoInstance $topo \
 -agentTrace ON \
 -routerTrace ON \
 -macTrace OFF \
 -movementTrace ON\
 -channel $chan_1_

for {set i 0} {$i  $val(nn) } { incr i } {
set node_($i) [$ns node]
}

 # Provide initial location of mobilenodes
 $node_(0) set X_ 5.0
 $node_(0) set Y_ 5.0
 $node_(0) set Z_ 0.0

 $node_(1) set X_ 490.0
 $node_(1) set Y_ 285.0
 $node_(1) set Z_ 0.0

 $node_(2) set X_ 150.0
 $node_(2) set Y_ 240.0
 $node_(2) set Z_ 0.0

 # Generation of movements
 $ns at 10.0 $node_(0) setdest 250.0 250.0 3.0
 $ns at 15.0 $node_(1) setdest 45.0 285.0 5.0
 $ns at 110.0 $node_(0) setdest 480.0 300.0 5.0

 # Set a TCP connection between node_(0) and node_(1)
 set tcp [new Agent/TCP/Newreno]
 $tcp set class_ 2
 set sink [new Agent/TCPSink]
 $ns attach-agent $node_(0) $tcp
 $ns attach-agent $node_(1) $sink
 $ns connect $tcp $sink
 set ftp [new Application/FTP]
 $ftp attach-agent $tcp
 $ns at 10.0 $ftp start

 # Printing the window size
 proc plotWindow {tcpSource file} {
 global ns
 set time 0.01
 set now [$ns now]
 set cwnd [$tcpSource set cwnd_]
 puts $file $now $cwnd
 $ns at [expr $now+$time] plotWindow $tcpSource $file }
 $ns at 10.1 plotWindow $tcp $windowVsTime2

 # Define node initial position in nam
 for {set i 0} {$i  $val(nn)} { incr i } {
 # 30 defines the node size for nam
 $ns initial_node_pos $node_($i) 30
 }

 # Telling nodes when the simulation ends
 for {set i 0} {$i  $val(nn) } { incr i } {
$ns at $val(stop) $node_($i) reset;
 }

 # ending nam and the simulation
 $ns at $val(stop) $ns nam-end-wireless $val(stop)
 $ns at $val(stop) stop
 $ns at 150.01 puts \end simulation\ ; $ns halt
 proc stop {} {
global ns tracefd namtrace
$ns flush-trace
close $tracefd
close $namtrace
 }

 $ns run




[ns] What distribution function suitable for distribute sensor in NS(help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!)

2007-04-05 Thread Amin Irandoost

hi all
what random function suitable for distribute sensor
for example i want that 30 senor(node) distribute in 50*50 area

Uniform random is  suitable ?
normal is suitable ?
or ...?

please help me

-- 
Amin Irandoost


[ns] Help me!Problem when running LEACH with ns-2.27

2007-03-27 Thread Nguyen Vo Minh Chau

Please help me !
When I run the LEACH with ns-2.27,it show an error like that :
ns: _o2042 send_now 0x  0x 0 84 2 139.0 0: invalid command name
//puts
while executing
//puts Warning dst_ is no longer being supported in NS. $args
(procedure _o2039 line 3)
(Agent set line 3)
invoked from within
[$self agent] set dst_ $mac_dst
(procedure _o2042 line 3)
(Application/LEACH send_now line 3)
invoked from within
_o2042 send_now 0x  0x 0 84 2 139.0 0

I do'nt know how to correct them.Anyone help me please ?
Thanks a lot !



 
-
Don't get soaked.  Take a quick peek at the forecast 
 with theYahoo! Search weather shortcut.


[ns] Help me the files for Dynamic Virtual BackBone Routing Protocl(A hybrid protocol for Adhoc Networks) NS2 code

2007-03-06 Thread taraka praveen


Hi friends,
Please help to get the NS2 code for  Dynamic Virtual
BackBone Routing Protocl(A hybrid protocol for Adhoc
Networks) .The author name is Melvin John ,THE
UNIVERISTY IF ADELAIDE,Australia.

I didn't get his email id.
Please if you have this NS2 code forward it to me.

Thank you very much,
Thank you,
Regards,
Tarakapraveen Uppalapati Goud




__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/



[ns] Help me with Perl files

2007-03-05 Thread paolalonetti

Hi all,
do anyone work with multipath and can help me sending me a perl file which 
count how many path there are between 2 nodes?

Thanks in advance

bye


--
Mutui da 200.000 euro? Tassi ridotti da 4.25% solo per richieste online. 
Mutuionline.it
http://click.libero.it/mutuionline5mar07





[ns] help me with the dsr segmentation problem

2007-02-28 Thread sandeep v

hi. this is my tcl script to simulate for 3 nodes using dsr routing
protocol. it s givin as segmentation fault. but the same script works for
dsdv just by changin the routing protocol in the script pasted
below...please help me at the earliest as i ve lost a lot of time tryin to
solve this.

the terminal display when i run the tcl script is

[EMAIL PROTECTED] ns-allinone-2.30]# ns simple-dsr.tcl
num_nodes is set 3
INITIALIZE THE LIST xListHead
SORTING LISTS ...DONE!
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 550.0
Segmentation fault
[EMAIL PROTECTED] ns-allinone-2.30]#

this is the tcl script

# Define options
set val(chan)   Channel/WirelessChannel;# channel type
set val(prop)   Propagation/TwoRayGround   ;# radio-propagation
model
set val(netif)  Phy/WirelessPhy;# network interface type
set val(mac)Mac/802_11 ;# MAC type
set val(ifq)Queue/DropTail/PriQueue;# interface queue type
set val(ll) LL ;# link layer type
set val(ant)Antenna/OmniAntenna;# antenna model
set val(ifqlen) 50 ;# max packet in ifq
set val(nn) 3  ;# number of mobilenodes
set val(rp) DSR  ;# routing protocol
set val(x)  500;# X dimension of
topography
set val(y)  400;# Y dimension of
topography
set val(stop)   150;# time of simulation end

set ns[new Simulator]
set tracefd   [open simple-dsr.tr w]
set windowVsTime2 [open win.tr w]
set namtrace  [open simwrls.nam w]

$ns trace-all $tracefd
$ns use-newtrace
$ns namtrace-all-wireless $namtrace $val(x) $val(y)

# set up topography object
set topo   [new Topography]

$topo load_flatgrid $val(x) $val(y)

create-god $val(nn)
set chan_1_ [new $val(chan)]
#
#  Create nn mobilenodes [$val(nn)] and attach them to the channel.
#

# configure the nodes
$ns node-config -adhocRouting $val(rp) \
 -llType $val(ll) \
 -macType $val(mac) \
 -ifqType $val(ifq) \
 -ifqLen $val(ifqlen) \
 -antType $val(ant) \
 -propType $val(prop) \
 -phyType $val(netif) \
 #-channelType $val(chan) \
 -topoInstance $topo \
 -agentTrace ON \
 -routerTrace ON \
 -macTrace OFF \
 -movementTrace ON\
 -channel $chan_1_

for {set i 0} {$i  $val(nn) } { incr i } {
set node_($i) [$ns node]
}

# Provide initial location of mobilenodes
$node_(0) set X_ 5.0
$node_(0) set Y_ 5.0
$node_(0) set Z_ 0.0

$node_(1) set X_ 490.0
$node_(1) set Y_ 285.0
$node_(1) set Z_ 0.0

$node_(2) set X_ 150.0
$node_(2) set Y_ 240.0
$node_(2) set Z_ 0.0

# Generation of movements
$ns at 10.0 $node_(0) setdest 250.0 250.0 3.0
$ns at 15.0 $node_(1) setdest 45.0 285.0 5.0
$ns at 110.0 $node_(0) setdest 480.0 300.0 5.0

# Set a TCP connection between node_(0) and node_(1)
set tcp [new Agent/TCP/Newreno]
$tcp set class_ 2
set sink [new Agent/TCPSink]
$ns attach-agent $node_(0) $tcp
$ns attach-agent $node_(1) $sink
$ns connect $tcp $sink
set ftp [new Application/FTP]
$ftp attach-agent $tcp
$ns at 10.0 $ftp start

# Printing the window size
proc plotWindow {tcpSource file} {
global ns
set time 0.01
set now [$ns now]
set cwnd [$tcpSource set cwnd_]
puts $file $now $cwnd
$ns at [expr $now+$time] plotWindow $tcpSource $file }
$ns at 10.1 plotWindow $tcp $windowVsTime2

# Define node initial position in nam
for {set i 0} {$i  $val(nn)} { incr i } {
# 30 defines the node size for nam
$ns initial_node_pos $node_($i) 30
}

# Telling nodes when the simulation ends
for {set i 0} {$i  $val(nn) } { incr i } {
$ns at $val(stop) $node_($i) reset;
}

# ending nam and the simulation
$ns at $val(stop) $ns nam-end-wireless $val(stop)
$ns at $val(stop) stop
$ns at 150.01 puts \end simulation\ ; $ns halt
proc stop {} {
global ns tracefd namtrace
$ns flush-trace
close $tracefd
close $namtrace
}

$ns run


[ns] Help me in finding throughput and delay for wired environment

2007-02-27 Thread jenefa jebarani

Hai i've created a very simple MPLS network in NS2 in TCL coding now i need to 
calculate the delay and throughput for that program. 
   
  I've one delay.c program as i executed that i get the answer as 
   
  average end-end delay is : nan. or   nan   0
  
   Kindly help me to execute it and find the delay and throughput.
   
  Thank you.

 
-
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.


[ns] Help me in creating MPLS network

2007-02-26 Thread jenefa jebarani

Hi, any one kindly please help me in creating MPLS network efficiently 
in Ns2. Please do tell me the commands like,
   
  1. flow aggrregation
  2. LDP setup
  3. LDP release etc 


 
-
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.


[ns] help me to finish installing NS correctly

2006-12-06 Thread amira bourayou

*hi all,*
when I did the ./install, I obtained These messages after that ns was
installed successfuly:

put
 /home/you/ns-allinone-2.30/bin :
 /home/you/ns-allinone-2.30/tcl8.4.13/unix:
 /home/you/ns-allinone-2.30/tk8.4.13/unix into your path environnement so
that you ll be able to run itm/tclsh/wish/xgraph
you must put   /home/you/ns-allinone-2.30/otcl-1.12,
 /home/you/ns-allinone-2.30//lib into your LD-LIBRARY-PATH environnement
variables
if it complains about X libraries,add path to your X librairies into
LD-LIBRARY-PATH

if you are using csh,you can see like:
setenv LD-LIBRARY-PATHpaths
 if you are using sh,you can see like:
export LD-LIBRARY-PATH=paths

put  /home/you/ns-allinone-2.30/tcl 8.4.13/library into your TCL-LIBRARY
environnement variables *Question:*
*1)** How  can i do this?where will i find my LD-LIBRARY-PATH and my
TCL-LIBRARY environnement variables and my path environnement so that i ll
be able to run itm/tclsh/wish/xgraph? *
**
*Regards.*


Re: [ns] help me to finish installing NS correctly

2006-12-06 Thread Larry Brigman

On 12/6/06, amira bourayou [EMAIL PROTECTED] wrote:

 *hi all,*
 when I did the ./install, I obtained These messages after that ns was
 installed successfuly:

 put
  /home/you/ns-allinone-2.30/bin :
  /home/you/ns-allinone-2.30/tcl8.4.13/unix:
  /home/you/ns-allinone-2.30/tk8.4.13/unix into your path environnement so
 that you ll be able to run itm/tclsh/wish/xgraph
 you must put   /home/you/ns-allinone-2.30/otcl-1.12,
  /home/you/ns-allinone-2.30//lib into your LD-LIBRARY-PATH environnement
 variables
 if it complains about X libraries,add path to your X librairies into
 LD-LIBRARY-PATH

 if you are using csh,you can see like:
 setenv LD-LIBRARY-PATHpaths
  if you are using sh,you can see like:
 export LD-LIBRARY-PATH=paths

 put  /home/you/ns-allinone-2.30/tcl 8.4.13/library into your TCL-LIBRARY
 environnement variables *Question:*
 *1)** How  can i do this?where will i find my LD-LIBRARY-PATH and my
 TCL-LIBRARY environnement variables and my path environnement so that i ll
 be able to run itm/tclsh/wish/xgraph? *

Make a script like this one below and place it in you ns-allinone-2.30
directory.
When you need to run your NS simulations go to that directory and
source the script.

#!/bin/sh
# added for Xterm window title change
export PROMPT_COMMAND='echo -ne \033]0;NS-2.30
${HOSTNAME%%.*}:${PWD/#$HOME/~}\007'
# added for command prompt change
export PS1=[EMAIL PROTECTED] \W]\$ 
if [ x$NS != x ] ; then
export NS_ORIG=$NS
fi
export NS=`pwd`
if [ x$LD_LIBARY_PATH != x ] ; then
export LD_LIBRARY_PATH_ORIG=$LD_LIBRARY_PATH
fi
export LD_LIBRARY_PATH=$NS/otcl-1.12:$NS/lib
if [ x$TCL_LIBRARY != x ] ; then
export TCL_LIBRARY_ORIG=$TCL_LIBRARY
fi
export TCL_LIBRARY=$NS/tcl8.4.13/library
export PATH_ORIG=$PATH
export 
PATH=$PATH:$NS/bin:$NS/ns-2.30/bin:$NS/tcl8.4.13/unix:$NS/tk8.4.13/unix
unset NS



[ns] Help me in trace files

2006-03-13 Thread Mohammed Fawaz Kamarudin