[ns] problem in running script swarm routing patch in ns-2

2007-02-13 Thread suman gautam

I have  already amended swarm patch as per NS-2.29 and its working fine now.
when I run tclsh  with  Expt-das- compare.tcl I got error msg as:


Analysing results
 Packet Delivery Ratio
ERROR while executing
simulation_results/compare-das-10-AODV-103-2007-12Feb-Mon142339:
  Illegal division by zero at ./analyse- packetdeliveryratio.pl line 175, <>
line 67.
Creating Simulation in simulation_results/compare-das
-10-DSR-104-2007-12Feb-Mon142341...
INITIALIZE THE LIST xListHead
   Loading node movement file: movement/scen- 1500x300-50nodes-900s-20ms-900
-11.ns_movements
   Loading traffic file: traffic/scen-50-10flow-cbr -512b-4ps-11
Running Simulation in
simulation_results/compare-das-10-DSR-104-2007-12Feb-Mon14234
1..


 Packet Delivery Ratio
ERROR while executing simulation_results/compare-das
-10-DSR-104-2007-12Feb-Mon14234 1:
  Illegal division by zero at ./analyse- packetdeliveryratio.pl line 175, <>
line 68.
Creating Simulation in
simulation_results/compare-das-10-SWARM-105-2007-12Feb-Mon142344...
INITIALIZE THE LIST xListHead
ERROR while executing simulation_results/compare-das
-10-SWARM-105-2007-12Feb-Mon142344:
  error when calling class Agent/SWARM: port-dmux _o31


[ns] Simulating MultiiProcololLabelSwitching

2007-02-13 Thread gtorres

Hello,

I installed the ns-simulator-all-in-one 2.30. I'm trying to simulate mpls
networks with explict routes. I would like to know what version of mns is
included in ns 2.30. There is a directory mpls called mpls inside root
program dir.

If anyone have a documentation about mns ou some examples, please send it
to my e-mail.

Best Regards!




[ns] Is FTP traffic over TCP connection uses always the same route?

2007-02-13 Thread Dr. Mohamed Ben Othman

Dear all,

 

I have a topology of 6 nodes: a src, dst and 4 connected routers:

Src connected to r1

Dst connected to r4

 

r1 connected to r2 and r3

r2 connected to r4

r3 connected to r4

 

Src  r1 r2

   |   |

   R3---r4---dst

 

I sent traffic from src to dst and monitored the different queues. The
problem is that the traffic always passes through r1, r2 and then r4.

The queue of r3 is always empty.

I tried to modify the queues sizes, the delay etc but I didn't succeed.

I thought that TCP connection may take more than one route and the traffic
passes via all possible routes.

Can anyone help me.

Thank you.

Mohamed ben Othman

 



[ns] ns-2.30 and ns-2.28 installation problems -- otcl configure stopped, etc.

2007-02-13 Thread Yishen Sun

Hi,

I met some difficulties when trying to install ns-2.30
and ns-2.28 under Red Hat Linux.  Not sure whether
anyone had similar experience before and may provide
some hints.  Thanks in advance.

For ns-2.30, I tried both allinone and build from
pieces, and had the same error.  When running
./configure under otcl-1.12, the process stopped after
the following messages:
*
checking for libtcl8.4... -L/usr/lib -ltcl
checking for init.tcl... no
checking for http.tcl... no
checking Tcl http.tcl library... configure: error:
Couldn't find http.tcl in 
/http  /http2.4  /http2.3  /http2.1 /http2.0 /http1.0"
**


Then I tried to install ns-2.28 allinone.  The
configuration and make commands went OK.  However,
when executing ns binary, even just the simple.tcl
under ./tcl/ex, the error message showed:
*
ns:
[code omitted because of length]
: no instvar in global :: scope
(Object instvar line 1)
invoked from within
"$self instvar id"
(procedure "SplitObject" line 2)
(SplitObject getid line 2)
invoked from within
"SplitObject getid"
(procedure "new" line 2)
invoked from within
"new RNG"
invoked from within
"set defaultRNG [new RNG]"
**
It seems that the simple.tcl hasn't been executed
yet...

Any pointers are highly appreciated.

Yishen Sun


 

Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html



[ns] help to install ns-allinone-2.1b8a.tar.gz

2007-02-13 Thread roger juan huanca sevilla

Hi everyone
I need to install ns-allinone-2.1b8a but when I executed the install
script I obtain this errors:

./install
...
...
...
tclcl-mappings.h: In static member function ‘static int
TclObjectHelper::dispatch_(void*, Tcl_Interp*, int, char**)’:
tclcl-mappings.h:51: error: se utilizó el tipo incompleto ‘Tcl’ en un
especificador de nombre anidado
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

when the application is trying to build the tclcl something is wrong.

Regards



Re: [ns] Multi-interface support howto, Ramon Submission

2007-02-13 Thread Nguyen Lan

Hello Ramon et al,

My problem is that I declared nIfaces, targetlist and ifqueuelist in the 
aodv.h file but out of the class declaration. Now I can recompile ns but 
I still had many many warnings like that

/usr/local/ns/mulf/ns-allinone-2.27/tclcl-1.15/tracedvar.h:49: warning: 
‘class TracedVar’ has virtual functions but non-virtual destructor
/usr/local/ns/mulf/ns-allinone-2.27/tclcl-1.15/tracedvar.h:87: warning: 
‘class TracedInt’ has virtual functions but non-virtual destructor
/usr/local/ns/mulf/ns-allinone-2.27/tclcl-1.15/tracedvar.h:130: warning: 
‘class TracedDouble’ has virtual functions but non-virtual destructor

common/scheduler.h:71: warning: ‘class Handler’ has virtual functions 
but non-virtual destructor
common/ip.cc: In member function ‘virtual void 
IPHeaderClass::export_offsets()’:
common/ip.cc:53: warning: invalid access to non-static data member 
‘hdr_ip::src_’ of NULL object
common/ip.cc:53: warning: (perhaps the ‘offsetof’ macro was used 
incorrectly)
common/ip.cc:54: warning: invalid access to non-static data member 
‘hdr_ip::dst_’ of NULL object
common/ip.cc:54: warning: (perhaps the ‘offsetof’ macro was used 
incorrectly)
common/ip.cc:55: warning: invalid access to non-static data member 
‘hdr_ip::ttl_’ of NULL object
common/ip.cc:55: warning: (perhaps the ‘offsetof’ macro was used 
incorrectly)
common/ip.cc:56: warning: invalid access to non-static data member 
‘hdr_ip::fid_’ of NULL object
common/ip.cc:56: warning: (perhaps the ‘offsetof’ macro was used 
incorrectly)
common/ip.cc:57: warning: invalid access to non-static data member 
‘hdr_ip::prio_’ of NULL object
common/ip.cc:57: warning: (perhaps the ‘offsetof’ macro was used 
incorrectly)

Any idea about this is welcome.

Cheers,
Nguyen.

Nguyen Lan wrote:
> Hello,
>
> I have not declared them in common/packet.h. The only place I put them 
> in is aodv.h (as in the document). I think this problem came from 
> other place and I should read the document carefully but now I don't 
> know yet.
> Thank you very much.
>
> Cheers,
> Nguyen
>
> Ramon Aguero wrote:
>> Hello,
>>
>> Why have you declared nIfaces, targetlist and ifqueuelist in 
>> common/packet.h?
>>
>> Cheers,
>> Ramón
>>
>> At 07:34 06/02/2007, Nguyen Lan wrote:
>>> Hi Ramon and all,
>>>
>>> After following the document when I recompile ns I got this error. 
>>> Maybe I was wrong some where
>>>
>>> aodv/aodv.o:/usr/local/ns/mulf/ns-allinone-2.27/tclcl-1.15/tclcl.h:60: 
>>> multiple definition of `nIfaces'
>>> aodv/aodv_logs.o:./common/packet.h:413: first defined here
>>> aodv/aodv.o:./aodv/aodv_packet.h:161: multiple definition of 
>>> `targetlist'
>>> aodv/aodv_logs.o:./common/packet.h:353: first defined here
>>> aodv/aodv.o:aodv/aodv.cc:65: multiple definition of `ifqueuelist'
>>> aodv/aodv_logs.o:./common/packet.h:423: first defined here
>>> collect2: ld returned 1 exit status
>>> make: *** [ns] Error 1
>>>
>>> Could anyone help me.
>>>
>>> Thanks
>>> Ramon Aguero wrote:
 Hi Anthony,

 thanks for your feedback; I think that your proposal is perfectly 
 fine.

 I've sent an email previously, about the same changes. I think that 
 the problem was that in the first version of the document we did 
 not highlight a couple of lines (the ones that you've modified); in 
 the original ns-mobilenode.tcl file, these two lines started with 
 $arptable_ **Note the underscore**

 In the modified procedure, however, it was $arptable **Without the 
 underscore**, which is, exactly what you propose, since the 
 $arptable variable is $arptable_($t).

 Cheers,
 Ramón

 At 07:29 04/02/2007, Anthony Plummer wrote:

> Ramon's submission (http://personales.unican.es/aguerocr/) of a
> multiple-channel extension to ns2 works well after a slight
> modification to the code in the pdf. In tcl/lib/ns-mobilenode.tcl the
> arptable modification (pg. 24 & 25 of pdf) needs to change the
> arptable in two additional lines.
> #We also create one ARP table per interface
> set arptable_($t) [new ARPTable $self $mac]
> set arptable $arptable_($t)
> # FOR backward compatibility sake, hack only
> if {$imepflag != ""} {
> set drpT [$self mobility-trace Drop "IFQ"]
> } else {
> set drpT [cmu-trace Drop "IFQ" $self]
> }
> $arptable_($t) drop-target $drpT // Should be changed to this here
> if { $namfp != "" } {
> $drpT namattach $namfp
> }
>
> #
> # Link Layer
> #
> $ll arptable $arptable_($t) // Should be changed to this here
> $ll mac $mac
> $ll down-target $ifq
>




>>
>>
>
>



Re: [ns] Multi-interface support howto, Ramon Submission

2007-02-13 Thread Ramon Aguero

Hello,

Ok, I'm glad that you solved the problems related to the extension. I don't 
really know how to address these warnings or whether they are relevant (at 
least the virtual destructor one should not).

Cheers,
Ramón

At 13:25 13/02/2007, Nguyen Lan wrote:
>Hello Ramon et al,
>
>My problem is that I declared nIfaces, targetlist and ifqueuelist in the 
>aodv.h file but out of the class declaration. Now I can recompile ns but I 
>still had many many warnings like that
>
>/usr/local/ns/mulf/ns-allinone-2.27/tclcl-1.15/tracedvar.h:49: warning: 
>‘class TracedVar’ has virtual functions but non-virtual destructor
>/usr/local/ns/mulf/ns-allinone-2.27/tclcl-1.15/tracedvar.h:87: warning: 
>‘class TracedInt’ has virtual functions but non-virtual destructor
>/usr/local/ns/mulf/ns-allinone-2.27/tclcl-1.15/tracedvar.h:130: warning: 
>‘class TracedDouble’ has virtual functions but non-virtual destructor
>
>common/scheduler.h:71: warning: ‘class Handler’ has virtual functions but 
>non-virtual destructor
>common/ip.cc: In member function ‘virtual void 
>IPHeaderClass::export_offsets()’:
>common/ip.cc:53: warning: invalid access to non-static data member 
>‘hdr_ip::src_’ of NULL object
>common/ip.cc:53: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
>common/ip.cc:54: warning: invalid access to non-static data member 
>‘hdr_ip::dst_’ of NULL object
>common/ip.cc:54: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
>common/ip.cc:55: warning: invalid access to non-static data member 
>‘hdr_ip::ttl_’ of NULL object
>common/ip.cc:55: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
>common/ip.cc:56: warning: invalid access to non-static data member 
>‘hdr_ip::fid_’ of NULL object
>common/ip.cc:56: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
>common/ip.cc:57: warning: invalid access to non-static data member 
>‘hdr_ip::prio_’ of NULL object
>common/ip.cc:57: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
>
>Any idea about this is welcome.
>
>Cheers,
>Nguyen.
>
>Nguyen Lan wrote:
>>Hello,
>>
>>I have not declared them in common/packet.h. The only place I put them in 
>>is aodv.h (as in the document). I think this problem came from other 
>>place and I should read the document carefully but now I don't know yet.
>>Thank you very much.
>>
>>Cheers,
>>Nguyen
>>
>>Ramon Aguero wrote:
>>>Hello,
>>>
>>>Why have you declared nIfaces, targetlist and ifqueuelist in 
>>>common/packet.h?
>>>
>>>Cheers,
>>>Ramón
>>>
>>>At 07:34 06/02/2007, Nguyen Lan wrote:
Hi Ramon and all,

After following the document when I recompile ns I got this error. 
Maybe I was wrong some where

aodv/aodv.o:/usr/local/ns/mulf/ns-allinone-2.27/tclcl-1.15/tclcl.h:60: 
multiple definition of `nIfaces'
aodv/aodv_logs.o:./common/packet.h:413: first defined here
aodv/aodv.o:./aodv/aodv_packet.h:161: multiple definition of `targetlist'
aodv/aodv_logs.o:./common/packet.h:353: first defined here
aodv/aodv.o:aodv/aodv.cc:65: multiple definition of `ifqueuelist'
aodv/aodv_logs.o:./common/packet.h:423: first defined here
collect2: ld returned 1 exit status
make: *** [ns] Error 1

Could anyone help me.

Thanks
Ramon Aguero wrote:
>Hi Anthony,
>
>thanks for your feedback; I think that your proposal is perfectly fine.
>
>I've sent an email previously, about the same changes. I think that 
>the problem was that in the first version of the document we did not 
>highlight a couple of lines (the ones that you've modified); in the 
>original ns-mobilenode.tcl file, these two lines started with 
>$arptable_ **Note the underscore**
>
>In the modified procedure, however, it was $arptable **Without the 
>underscore**, which is, exactly what you propose, since the $arptable 
>variable is $arptable_($t).
>
>Cheers,
>Ramón
>
>At 07:29 04/02/2007, Anthony Plummer wrote:
>
>>Ramon's submission (http://personales.unican.es/aguerocr/) of a
>>multiple-channel extension to ns2 works well after a slight
>>modification to the code in the pdf. In tcl/lib/ns-mobilenode.tcl the
>>arptable modification (pg. 24 & 25 of pdf) needs to change the
>>arptable in two additional lines.
>>#We also create one ARP table per interface
>>set arptable_($t) [new ARPTable $self $mac]
>>set arptable $arptable_($t)
>># FOR backward compatibility sake, hack only
>>if {$imepflag != ""} {
>>set drpT [$self mobility-trace Drop "IFQ"]
>>} else {
>>set drpT [cmu-trace Drop "IFQ" $self]
>>}
>>$arptable_($t) drop-target $drpT // Should be changed to this here
>>if { $namfp != "" } {
>>$drpT namattach $namfp
>>}
>>
>>#
>># Link Layer
>>#
>>$ll arptable $arptable_($t) // Should be changed to this here
>>$ll mac $mac
>>$ll down-target $ifq
>
>
>
>>>
>>




Re: [ns] Trace File Generation

2007-02-13 Thread Ali Hamidian

Hi,

A short answer is: the content of a trace file is generated in the 
~ns/trace/trace.cc and ~ns/trace/cmu-trace.cc

Kind regards
Ali

Bahman Kalantari Sabet wrote:

>
> 
>
> Hi,
>
> Firstly, thank you for your kind suggestions.  Unfortunately, I didn't 
> get any answer to my question as it wasn't a clear one.  So, I am 
> wirting my question one more time in a bit more detail.
>
> What I need to know is that "how" the trace file is constructed.  I 
> mean, for example, is the line (Event, Time, From Node, To Node, 
> Packet Type, Packet Size, etc.) generated from a C++ file or a TCL 
> file.  In other words, is it the output of a C++ file or a TCL file? 
> If so, where can I find this file (that generates each line of the 
> trace file).  I need to check, for instance, where the trace file gets 
> its timing, packet type, etc. from.
>
> Thanks,
>
> Bahman.
>
> _
> MSN Hotmail is evolving - check out the new Windows Live Mail 
> http://ideas.live.com
>


[ns] If any body can help me about OWNS

2007-02-13 Thread Mrinal Nandi

please if any body have any experience in OWNS simulator which is used
in Optical Wavelength Division Multiplexing simulation how i can
install and what are the requirements to install this .please
help me...



[ns] Trace File Generation

2007-02-13 Thread Bahman Kalantari Sabet


Hi,

Firstly, thank you for your kind suggestions.  Unfortunately, I didn't get 
any answer to my question as it wasn't a clear one.  So, I am wirting my 
question one more time in a bit more detail.


What I need to know is that "how" the trace file is constructed.  I mean, 
for example, is the line (Event, Time, From Node, To Node, Packet Type, 
Packet Size, etc.) generated from a C++ file or a TCL file.  In other words, 
is it the output of a C++ file or a TCL file? If so, where can I find this 
file (that generates each line of the trace file).  I need to check, for 
instance, where the trace file gets its timing, packet type, etc. from.


Thanks,

Bahman.

_
MSN Hotmail is evolving – check out the new Windows Live Mail 
http://ideas.live.com




[ns] How to bind to phy.cc

2007-02-13 Thread Bahman Kalantari Sabet


Hi,

Could anyone please help me.

I managed to bind a variable (extra_delay_ ) to wireless-phy.cc and 
mac-802_11.cc files, but don't know how to bind it to phy.cc file.


Any ideas on how to do this please?

Thanks,

Bahman.

_
MSN Hotmail is evolving – check out the new Windows Live Mail 
http://ideas.live.com




Re: [ns] node genration problem

2007-02-13 Thread Tarun Bansal

There seems to be a problem in your routing agent. Match your code
with that of DumbAgent (another routing protocol which does not do
anything): /ns/ns-allinone-2.30/ns-2.30/mobile/dumb-agent.*


Tarun Bansal
http://bansal.tarun.googlepages.com/


On 2/13/07, shams haq <[EMAIL PROTECTED]> wrote:
>
>
>
> - Forwarded Message 
> From: shams haq <[EMAIL PROTECTED]>
> To: ns-users@isi.edu
> Sent: Monday, February 12, 2007 10:38:05 AM
> Subject: tcl or routing agent problem
>
> hi all buddies i am stuck at a point and need immediate help if anybody can 
> do for me i have run script simple-wireless.tcl on my routing agent my 
> routing agent do nothing but i have construct structure for my agent. when i 
> ran make my object file has been made but when in simple-wireless.tcl, i use 
> my own routing agent it gives following errors plz help me out in this 
> situation thanx in advance
>
>
> num_nodes is set 2
>
> warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
>
> INITIALIZE THE LIST xListHead
>
> (_o17 cmd line 1)
>
> invoked from within
>
> "_o17 cmd port-dmux _o26"
>
> invoked from within
>
> "catch "$self cmd $args" ret"
>
> invoked from within
>
> "if [catch "$self cmd $args" ret] {
>
> set cls [$self info class]
>
> global errorInfo
>
> set savedInfo $errorInfo
>
> error "error when calling class $cls: $args" $..."
>
> (procedure "_o17" line 2)
>
> (SplitObject unknown line 2)
>
> invoked from within
>
> "$agent port-dmux $dmux_"
>
> (procedure "_o14" line 11)
>
> (Node/MobileNode add-target-rtagent line 11)
>
> invoked from within
>
> "$self add-target-rtagent $agent $port"
>
> (procedure "_o14" line 23)
>
> (Node/MobileNode add-target line 23)
>
> invoked from within
>
> "$self add-target $agent $port"
>
> (procedure "_o14" line 15)
>
> (Node attach line 15)
>
> invoked from within
>
> "$node attach $ragent [Node set rtagent_port_]"
>
> (procedure "_o3" line 71)
>
> (Simulator create-wireless-node line 71)
>
> invoked from within
>
> "_o3 create-wireless-node"
>
> ("eval" body line 1)
>
> invoked from within
>
> "eval $self create-wireless-node $args"
>
> (procedure "_o3" line 14)
>
> (Simulator node line 14)
>
> invoked from within
>
> "$ns_ node"
>
> ("for" body line 2)
>
> invoked from within
>
> "for {set i 0} {$i < $val(nn) } {incr i} {
>
> set node_($i) [$ns_ node]
>
> $node_($i) random-motion 0 ;# disable random motion
>
> }"
>
> (file 
> "/root/ns-allinone-2.28/ns-2.28/ns-tutorial/examples/simple-wireless.tcl" 
> line 93)
>
> [EMAIL PROTECTED] ns-2.28]#
>
>
>
>
> regards;
>
> shams
>
>
>
>
> Now that's room service! Choose from over 150,000 hotels
> in 45,000 destinations on Yahoo! Travel to find your fit.
>
>
>
>
>
>
> 
> Expecting? Get great news right away with email Auto-Check.
> Try the Yahoo! Mail Beta.
> http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
>



[ns] How to simulate the TCP stack

2007-02-13 Thread Madhukar Mythri


Hi,
   
  Im new to this group, recently i had downloaded the NS package.
  It built fine and validate also went fine.
   
  my doubt is:
  How to Validate/Simulate/test the TCP stack ?
   
  I had executed the "test-all-tcp", whether this will test/validate my 
active Kernel TCP stack ?
   
  mainly, how to allow NS to simulate/validate/test the TCP stack ?
   
  Can anybody, please give an idea on this.
   
  Thanks & Regards,
  Madhukar Mythri.


-
 Here’s a new way to find what you're looking for - Yahoo! Answers 


[ns] ns2 coding problem

2007-02-13 Thread dorababu

Hi,
 while i am executing aodv.tcl,which is in-built function in ns 2.29 one
error is coming

invalid command name "Agent/rtProto/AODV"
while executing
"Agent/rtProto/AODV instproc init args {
$self next $args
}   "
(file "aodv.tcl" line 19)


i am unable to fix this bug.please help me.




-- 
Thanks and Regards,
Dorababu B V R,
MTech in wireless communications,
IIIT ALLAHABAD,INDIA.