[ns] ns2.27 installation problem (help)

2007-04-16 Thread ghazale khojaste

Hi all, 
  I have a problem in ns2.27 installation.
  The error is:
  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
   
  Any suggestions are welcome.

Thank you,

ghazale khojaste


   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.


[ns] tcl script for TORA protocol

2007-04-16 Thread prabha devi

hi,

i am simulating TORA protocol in ns-2.If anyone know
about this plz help me. if any have tcl script of TORA
plz mail me. i am in urgent as i hav to sumitt my
MTEch report in the earliest.

Thanks all!!


  Send a FREE SMS to your friend's mobile from Yahoo! Messenger. Get it now 
at http://in.messenger.yahoo.com/



[ns] RE : Packet Drop due to Collision

2007-04-16 Thread siad lamri

dear there;
   
  first you should enable MAC trace and then from trace file you can mesure the 
number of packet dropped because of collision by testing the fifth column of 
each row of this file.
  when a collision is made the fifth column is set to COL. So you should 
calculate the number of rows containing COL in the 5th column.
   
   
  Regards.
  
  
Goutham B [EMAIL PROTECTED] a écrit :   
Hello,

Can someone indicate as to how do we estimate the number of packet drops
because of collisions ?

Regards

Goutham


   
-
 Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses.


[ns] simulation IEEE802.11

2007-04-16 Thread chiraz benkhelfa

Je suis étudiante et je cherche à simuler un réseau wifi : la norme 
IEEE802.11 (mode infrastructure) aven le network simulator (NS2).mon 
problème est comment créer le trafic entre une station de base  et les 
stations wireless. En outre comment déterminer la zone de couverture d’une 
cellule ? SVP aidez moi.

_
MSN Messenger: appels gratuits de PC à PC ! 
http://www.msn.fr/newhotmail/Default.asp?Ath=f



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




Re: [ns] DSR and Segmentation Fault

2007-04-16 Thread Bryan Hogan

Hello,

Segementation faults can be difficult to track down.
I once had a seg fault occurring in a class that is not even called by 
DSR, I finally tracked it back to a an array that i had set to size 3 but 
I was filling it with 15 elements or more...took me 12 hours to find the 
problem.

So, check your code for this find of problem.

Regards,

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


On Thu, 1 Mar 2007, paolalonetti wrote:


 Hi,
 I'm working to make DSR multipath , I've modified the classes mobicache.cc 
 and path.cc.
 The problem is the segmentation fault at line 214 (o about) at
 path[c]=rhs.path[c], where is defined operator =
 I didn't touch this method, but it's called from my methods.

 Anyone have found the same problems? And can help me?
 thank, in advance
 bye


 --
 Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
 http://click.libero.it/infostrada1marz07






Re: [ns] DSR FRAGMENTATION ERROR

2007-04-16 Thread Bryan Hogan

hello,

You'll have to provide a little more information than that.

Regards,

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

On Tue, 6 Mar 2007, antonis antoniou wrote:



 hi all,
 I use dsr and  i have fragmentation error when cbr traffic is more than 
 100kbps.

 for lower data rates is ok...

 what happens

 thanks




Re: [ns] How to run script(AODV,DSR,DSDV) in ns-allinone-2.30?

2007-04-16 Thread Bryan Hogan

You should read the tutorial provided by Marc Greis
www.isi.edu/nsnam/ns/tutorial/

Regards,

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

On Thu, 15 Mar 2007, vava vvava wrote:


 Hello,
 I'm new user for ns2 and I've ns-allinone-2.30 running on Ubuntu 6.06.. I 
 want to run the sample of the script in few ad hoc routing protocols such as 
 AODV, DSR and DSDV that is in the directory ../ns-allinone-2.30/ns-2.30/aodv 
 or dsr or dsdv.

 Is it possible to me to run this script? (aodv.tcl, aodv.cc, aodv.h). What is 
 the command I should use for?
 How can I run the script for dsdv directory that contain dsdv.cc and dsdv.h 
 file?
 Could anyone show me step by step?


 -
 Now that's room service! Choose from over 150,000 hotels
 in 45,000 destinations on Yahoo! Travel to find your fit.




Re: [ns] Segmentation fault in DSR Routing protocol

2007-04-16 Thread Bryan Hogan

Hello Shailesh,

Are you using Queue/DropTail/PriQueue in your TCL file? if so, change to 
CMUPriQueue.

Regards,

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

On Wed, 28 Mar 2007, Shailesh Gamit wrote:


 I have a problem with the DSR protocol in ns2.29
 when i run the tcl script sometimes it gives the segmentation fault error.
 I think that this segmentation error is giving only when there is a path break
 is it ture ... or what  is the problem.
 thanks..

 -- 
 Shailesh Gamit
 M.Tech (CSE),
 Nirma Institute of Technology,
 Ahmedabad, India




Re: [ns] DSR Packets

2007-04-16 Thread Bryan Hogan

Hello,

Take a look at the code in the recv function, you'll see how a packet with
a valid DSR header is handled -

else if (srh-valid() == 1)


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


On Sat, 7 Apr 2007, Jezabel Miriam Molina Gil wrote:


 Hello, I am working with DSR and I have to know all about forward
 nodes. I have where information packets are forwarded in DSR but I do
 not know where DSR paquets are forwarded.
 Maybe I could use the information that the trace file use for writing
 s, f or r but I have not find it in dsragent.cc.
 can someone help me?

 -- 
 Saludos
 Jezabel M. Molina Gil




[ns] problems with wired-cum-wireless with ns-2.31

2007-04-16 Thread JOAO FILIPE MARQUES SILVA

Hi, i'm using ns-2.31 to simulate a wired-cum-wireless and 
its giving the following error:

Error!!
str2addr:Address 7239534 outside range of address field 
length 2048

Does anyone know why this error appears? I used the Marc 
Greis Tutorial to implement the wired-cum-wireless 
simulation.

Thank you,
João Silva



[ns] tracegraph problem with Eurane trace files

2007-04-16 Thread neila el héni

Hello,
I am using the EURANE (Enhanced UMTS ...) patch  for NS 2.30.
While trying to open a trace file using trace graph I have an error
message saying
wired format detected
ERROR: Cannot read the file!
Trouble reading integer from file (row 25, field 8) ==  0 7.0 2.0 0 0
0\n
File '0 7.0 2.0 0 0 0\n' not found.

A remark the tracefiles .tr   in Eurane have one more additional column
compared to the classical ns-2 traces (it adds a last culmun for RLC
seq)

Does this explain the message error?
Can you provide with a solution to resolve the problem??


Regards
Neila


[ns] TORA Related....

2007-04-16 Thread manpreet grewal

Hello all,
I am trying to modify tora_dest.cc
Can anyone please tell me which is basic function that TORA_Dest 
Class uses??

Thanks in advance...
Manpreet...



[ns] TcpApp + Mobile Nodes

2007-04-16 Thread M.F. Caetano

Hi Folks,

I'm looking for the same functionality found in the TcpApp class for wired 
network to mobile environment.

Reading the ns2 source code, I've verified that TcpApp class is found in the 
application layer, and needs the FullTcp Agent to transfer ADU (Application 
Level Data Unit) packets between wired nodes. 

Anybody knows if is there any kind of implementation of TcpApp class that will 
allow it to use Mobile Agents like: AODV, DSDV or DumbAgent?

I'm thinking about implement it, but I don't want to if there's something like 
that already implemented. 

If I need to do this, is there anybody interested in this functionality?

Best regards,
M.F. Caetano
-- 
 -
 CAETANO, Marcos Fagundes.
 -
 M.Sc. Student of Computer Science 
 at Brasilia University - UnB

 Web...: http://www.cic.unb.br/~caetano
 E-mail: [EMAIL PROTECTED]
 Phone : +55 61 3307 2702 ramal 228
 -


[ns] TcpApp + Mobile Nodes

2007-04-16 Thread M.F. Caetano

Hi Folks,

I'm looking for the same functionality found in the TcpApp class for wired 
network to mobile environment.

Reading the ns2 source code, I've verified that TcpApp class is found in the 
application layer, and needs the FullTcp Agent to transfer ADU (Application 
Level Data Unit) packets between wired nodes. 

Anybody knows if is there any kind of implementation of TcpApp class that will 
allow it to use Mobile Agents like: AODV, DSDV or DumbAgent?

I'm thinking about implement it, but I don't want to if there's something like 
that already implemented. 

If I need to do this, is there anybody interested in this functionality?

Best regards,
M.F. Caetano
-- 
 -
 CAETANO, Marcos Fagundes.
 -
 M.Sc. Student of Computer Science 
 at Brasilia University - UnB - Brazil

 Web...: http://www.cic.unb.br/~caetano
 E-mail: [EMAIL PROTECTED]
 Phone : +55 61 3307 2702 extension 228
 -


[ns] NS for Milti-interface of different radio technology.

2007-04-16 Thread Das Santos Kumar


Dear NS users,

patch file/ns-extension
Please advise me for the following simulation.

1. I need to simulate a multi-interface based mobile network. The interface are 
of different types such as WiFi, WiMAX, Bluetooth, UMTS and WLAN.

2. Is there any patch file/ns-extension for the above scenario?

3. Instead is there any generic type of patch file/ns-extension for 
multi-interface based mobile node simulation.

Looking forward to see your kind response.

Thanks in advance.

Best Regards,
Santos