[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

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 


Re: [ns] problem when make is used

2008-04-11 Thread siva rupesh ss

Hi rashmi,
  First thing is that you should save the "ex-linkage.cc" in
a newly
created directory(for example "newproto") under ns-2.31 directory

  Then add a line in Makefile.in which is in ns-2.31
directory
in OBJ_CC    like

   newproto/exlinkage.o \

Then run ./configure  and make  .  under the ns-2.31 directory

The reason for the error  messages u specified may  be..
1.If u r not running "make" under ns-2.31  directory
2.If the path u specified for the source may not visible to "make"...

Hope this may help you,
Rupesh







On Fri, Apr 11, 2008 at 12:12 PM, rashmi bhat <[EMAIL PROTECTED]> wrote:

>
> Hey everyone,
> Im trying out the example on "NS by Example" site. There's one example for
> OTcl linkage where the following instructions are said:
>
>
>   1. Download "ex-linkage.cc >"
>   file, and save it under the "ns-2" directory.
>   2. Open "Makefile", add "ex-linkage.o" at the end of object file list.
>
>   3. Re-compile NS using the "make" command.
>   4. Download the
> "ex-linkage.tcl"
>   file that contains "MyAgent" testing OTcl commands. (see Figure 22 for
> the
>   input script and the result)
>   5. Run the OTcl script using command "ns ex-linkage.tcl".
>
> I searched the archives in here & did a few things. I saved the file
> "ex-linkage.cc" under the ns-2.31 directory. I added "[tab]ex-linkage.o \"
> in the "Makefile.in" file under the ns-2.31 directory. Then i did "sudo
> ./configure". It did some checks. Then when i did "make clean" and "make",
> it says
>
> make: *** No rule to make target `clean'.  Stop.
>
> make: *** No targets.  Stop.
>
> respectively. Anybody knows what I am doing wrong?(or if at all i did
> anything right!) Awaiting suggestions & help.
>
> Rashmi
>


[ns] problem when make is used

2008-04-11 Thread rashmi bhat

Hey everyone,
Im trying out the example on "NS by Example" site. There's one example for
OTcl linkage where the following instructions are said:


   1. Download "ex-linkage.cc"
   file, and save it under the "ns-2" directory.
   2. Open "Makefile", add "ex-linkage.o" at the end of object file list.

   3. Re-compile NS using the "make" command.
   4. Download the
"ex-linkage.tcl"
   file that contains "MyAgent" testing OTcl commands. (see Figure 22 for the
   input script and the result)
   5. Run the OTcl script using command "ns ex-linkage.tcl".

I searched the archives in here & did a few things. I saved the file
"ex-linkage.cc" under the ns-2.31 directory. I added "[tab]ex-linkage.o \"
in the "Makefile.in" file under the ns-2.31 directory. Then i did "sudo
./configure". It did some checks. Then when i did "make clean" and "make",
it says

make: *** No rule to make target `clean'.  Stop.

make: *** No targets.  Stop.

respectively. Anybody knows what I am doing wrong?(or if at all i did
anything right!) Awaiting suggestions & help.

Rashmi


[ns] Help in Wimax mesh network patch

2008-04-11 Thread Adnan Munir

 AOA,
 i am working on wimax mesh network patch, I am trying to modify
create_vod in traffic.msh by changing the transport layer protocol from UDP
to TCP or SCTP but it gives me error 'Segmentation fault'. note that i also
create sink in tcp or sctp case but this problem is not getting solved

kindly please help me !!

Profound regards
Adnan


[ns] Need of a program to calculate the throughput, packet delivery ratio.....

2008-04-11 Thread gprabhu



Hi all,

  I am working on the AODV protocol and i got the simulation output with
trace  file. From the trace file i want to calculate the throughput,
packet-delivery-ratio... from it... Can anyone have the program code to
calculate the above plz give to me. I am in need of that urgently...

Thank you,
G.Prabhu



-
This email was sent using TCEMail Service.
Thiagarajar College of Engineering
Madurai - 625015 (India)



[ns] how to use the "two state error model class" in ns2

2008-04-11 Thread Bin Zhang

hi dear friends,

i need some help with regard to the usage of "TwoStateErrorModelClass" 
in ns2. I have searched through the internet for some useful 
information, but was still not getting very clear.

can anybody show me some example tcl scripts? I appreciate any Help from 
you?

best regards,

Bin



Re: [ns] i need help

2008-04-11 Thread Mohammed Abu Hajar

There is a lot of tutorial through the internet you can read it.

Regards
Mohammed AbuHajar

mohamed saad <[EMAIL PROTECTED]> wrote: 
salam alikom

can you help me
to run asimulator NS2
i use it first
i has written aprogram in text editor and save it as "ex1.tcl"
but
when i run it by typing "ns ex1.tcl" in the shell
it say
   couldn't read file "exi.tcl"no such file or directory
i didn't understand what is this?
could you help me HOW TO USE NS2
i'am new to use NS2 

GAZAK ALLAH KHIRN

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


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


[ns] AOMDV packet loss

2008-04-11 Thread Marcello Caleffi

Have you tried to "reduce" the AOMDV to the AODV disabling the multi- 
path feature?

PS I've started the thread for you. Check here to subscribe http:// 
www.isi.edu/nsnam/ns/ns-users-list.html



-

Marcello Caleffi
Department of Electronic and Telecommunication Engineering
University of Naples "Federico II"
21 Claudio street - 80125 Naples ITALY
Tel +39-(0)81-7683810. Fax +39-(0)81-7683149
http://wpage.unina.it/marcello.caleffi/


Il giorno 11/apr/08, alle ore 11:34, Siddharth Khimsara ha scritto:
> Hi Marcello..
> Thats a great idea.. How do i start a thread on the mailing list? Do i
> need to register anywhere?
>
> I have made all possible changes in aomdv.h but havent got much
> difference in the packet loss.. I even bypassed the disjointness logic
> in the code to find all possible paths but that didnt help either.
>
> Sid
>
> On 4/11/08, Marcello Caleffi <[EMAIL PROTECTED]> wrote:
>> Siddharth,
>> I've noted the same in my simulations. Have you looked at the
>> aomdv.h? There are some parameters to set. Just one: to use link
>> disjoint or node disjoint paths.
>> I think that we should look at this.
>>
>> PS maybe we should continue this conversation on the ns2 mailing  
>> list?
>>
>> Il giorno 09/apr/08, alle ore 03:55, Siddharth Khimsara ha scritto:
>>> Hi Marcello,
>>>
>>> I have been running the simulations on the new code and I tried
>>> comparing it with pure AODV. I can see that the packeloss is much
>>> more in AOMDV (16%) than pure AODV (3%).  I was wondering what that
>>> is so.  Could you give me some idea as to what that must happen?
>>> I am currently trying to get results similar to the AOMDV journal
>>> paper by Samir Das and Mahesh Marina but I am not able to
>>> understand whats going wrong in my simulations. I am using the
>>> exact scenarios as described in their paper.
>>> I also saw that you updated your website by including the
>>> aomdv.tcl  script. Thanks for the same.
>>>
>>> Awaiting your reply.
>>> Thanks in advance.
>>>
>>> Siddharth
>>>
>>> On Sat, Apr 5, 2008 at 1:39 PM, Siddharth Khimsara
>>> <[EMAIL PROTECTED]> wrote:
>>> Hi Marcello,
>>>
>>> Thanks for your reply.
>>> I did figure that out when I saw the difference between the old and
>>> the new   aomdv.diff files. However, I am not able to figure out
>>> why the packetloss has increased. In fact I have kept all the other
>>> parameters same (as in aomdv.h)  .
>>>
>>> Cheers,
>>> Siddharth
>>>
>>>
>>> On Sat, Apr 5, 2008 at 5:17 AM, Marcello Caleffi
>>> <[EMAIL PROTECTED]> wrote:
>>> Siddharth,
>>> the difference between the last and the previous patch is that in
>>> the latter I forgot to initialize the ifqueue (AOMDVifqueue) object
>>> in the mobilenode.tcl. (tcl/lib/ns-mobilenode.tcl):
>>>
>>> diff -ruN ./ns-2.32/tcl/lib/ns-mobilenode.tcl ./ns-2.32 modified/
>>> tcl/lib/ns-mobilenode.tcl
>>> --- ./ns-2.32/tcl/lib/ns-mobilenode.tcl 2007-01-30
>>> 06:00:51.0 +0100
>>> +++ ./ns-2.32 modified/tcl/lib/ns-mobilenode.tcl2008-04-04
>>> 12:26:12.0 +0200
>>> @@ -186,6 +186,14 @@
>>> [$self set imep_(0)] rtagent $agent
>>> }
>>> 
>>> +   # Begin Marcello Caleffi, <[EMAIL PROTECTED]>, 08-04-01
>>> +   # Special processing for AOMDV
>>> +   set aomdvonly [string first "AOMDV" [$agent info class]]
>>> +   if {$aomdvonly != -1 } {
>>> +   $agent if-queue [$self set ifq_(0)]   ;# ifq between LL and MAC
>>> +   }
>>> +   # End Marcello Caleffi, <[EMAIL PROTECTED]>, 08-04-01
>>> +   
>>> # Special processing for AODV
>>> set aodvonly [string first "AODV" [$agent info class]]
>>> if {$aodvonly != -1 } {
>>>
>>> This could help you?
>>>
>>>
>>> Il giorno 05/apr/08, alle ore 00:05, Siddharth Khimsara ha scritto:
>>>
 Hi Marcello,

 The code is working fine now. No segmentation fault.
 However, I just ran a 100 node  (1000x1000 area) - Random Waypoint
 model,  50 CBR/UDP connections of 1 packets/sec  and mean node
 speed 10 m/s  and  I see a increase in data packet loss from 28%
 (when i used the old AOMDV code) to 37% (when i use the new  
 code)  ..
 since I had commented the part where it drops HELLO packets in
 nb_delete() ,  I did the same in the new code, but it doesn't
 help. :(  anyway..i will figure out what the problem is. :)
 hey ..btw... the route table dump function is an awesome addition.
 I had added a similar function when I was using Ahmad Kayyat's
 code for ns 2.29 :) ..

 Regards,
 Siddharth

 On Fri, Apr 4, 2008 at 1:46 PM, Siddharth Khimsara
 <[EMAIL PROTECTED]> wrote:
 Hi Marcello,

 thanks a lot. I will try it right now and let u know immediately :)

 Regards,
 Siddharth

 On Fri, Apr 4, 2008 at 1:38 PM, Marcello Caleffi
 <[EMAIL PROTECTED]> wrote:
 I upload the new one today.
 Try the last one and let me know what happens without commenting
 anything!


 Il giorno 04/a

[ns] AOMDV packet loss

2008-04-11 Thread Marcello Caleffi

Have you tried to "reduce" the AOMDV to the AODV disabling the multi- 
path feature?

PS I've started the thread for you. Check here to subscribe http:// 
www.isi.edu/nsnam/ns/ns-users-list.html



-

Marcello Caleffi
Department of Electronic and Telecommunication Engineering
University of Naples "Federico II"
21 Claudio street - 80125 Naples ITALY
Tel +39-(0)81-7683810. Fax +39-(0)81-7683149
http://wpage.unina.it/marcello.caleffi/


Il giorno 11/apr/08, alle ore 11:34, Siddharth Khimsara ha scritto:

> Hi Marcello..
> Thats a great idea.. How do i start a thread on the mailing list? Do i
> need to register anywhere?
>
> I have made all possible changes in aomdv.h but havent got much
> difference in the packet loss.. I even bypassed the disjointness logic
> in the code to find all possible paths but that didnt help either.
>
> Sid
>
> On 4/11/08, Marcello Caleffi <[EMAIL PROTECTED]> wrote:
>> Siddharth,
>> I've noted the same in my simulations. Have you looked at the
>> aomdv.h? There are some parameters to set. Just one: to use link
>> disjoint or node disjoint paths.
>> I think that we should look at this.
>>
>> PS maybe we should continue this conversation on the ns2 mailing  
>> list?
>>
>> Il giorno 09/apr/08, alle ore 03:55, Siddharth Khimsara ha scritto:
>>> Hi Marcello,
>>>
>>> I have been running the simulations on the new code and I tried
>>> comparing it with pure AODV. I can see that the packeloss is much
>>> more in AOMDV (16%) than pure AODV (3%).  I was wondering what that
>>> is so.  Could you give me some idea as to what that must happen?
>>> I am currently trying to get results similar to the AOMDV journal
>>> paper by Samir Das and Mahesh Marina but I am not able to
>>> understand whats going wrong in my simulations. I am using the
>>> exact scenarios as described in their paper.
>>> I also saw that you updated your website by including the
>>> aomdv.tcl  script. Thanks for the same.
>>>
>>> Awaiting your reply.
>>> Thanks in advance.
>>>
>>> Siddharth
>>>
>>> On Sat, Apr 5, 2008 at 1:39 PM, Siddharth Khimsara
>>> <[EMAIL PROTECTED]> wrote:
>>> Hi Marcello,
>>>
>>> Thanks for your reply.
>>> I did figure that out when I saw the difference between the old and
>>> the new   aomdv.diff files. However, I am not able to figure out
>>> why the packetloss has increased. In fact I have kept all the other
>>> parameters same (as in aomdv.h)  .
>>>
>>> Cheers,
>>> Siddharth
>>>
>>>
>>> On Sat, Apr 5, 2008 at 5:17 AM, Marcello Caleffi
>>> <[EMAIL PROTECTED]> wrote:
>>> Siddharth,
>>> the difference between the last and the previous patch is that in
>>> the latter I forgot to initialize the ifqueue (AOMDVifqueue) object
>>> in the mobilenode.tcl. (tcl/lib/ns-mobilenode.tcl):
>>>
>>> diff -ruN ./ns-2.32/tcl/lib/ns-mobilenode.tcl ./ns-2.32 modified/
>>> tcl/lib/ns-mobilenode.tcl
>>> --- ./ns-2.32/tcl/lib/ns-mobilenode.tcl 2007-01-30
>>> 06:00:51.0 +0100
>>> +++ ./ns-2.32 modified/tcl/lib/ns-mobilenode.tcl2008-04-04
>>> 12:26:12.0 +0200
>>> @@ -186,6 +186,14 @@
>>> [$self set imep_(0)] rtagent $agent
>>> }
>>> 
>>> +   # Begin Marcello Caleffi, <[EMAIL PROTECTED]>, 08-04-01
>>> +   # Special processing for AOMDV
>>> +   set aomdvonly [string first "AOMDV" [$agent info class]]
>>> +   if {$aomdvonly != -1 } {
>>> +   $agent if-queue [$self set ifq_(0)]   ;# ifq between LL and MAC
>>> +   }
>>> +   # End Marcello Caleffi, <[EMAIL PROTECTED]>, 08-04-01
>>> +   
>>> # Special processing for AODV
>>> set aodvonly [string first "AODV" [$agent info class]]
>>> if {$aodvonly != -1 } {
>>>
>>> This could help you?
>>>
>>>
>>> Il giorno 05/apr/08, alle ore 00:05, Siddharth Khimsara ha scritto:
>>>
 Hi Marcello,

 The code is working fine now. No segmentation fault.
 However, I just ran a 100 node  (1000x1000 area) - Random Waypoint
 model,  50 CBR/UDP connections of 1 packets/sec  and mean node
 speed 10 m/s  and  I see a increase in data packet loss from 28%
 (when i used the old AOMDV code) to 37% (when i use the new  
 code)  ..
 since I had commented the part where it drops HELLO packets in
 nb_delete() ,  I did the same in the new code, but it doesn't
 help. :(  anyway..i will figure out what the problem is. :)
 hey ..btw... the route table dump function is an awesome addition.
 I had added a similar function when I was using Ahmad Kayyat's
 code for ns 2.29 :) ..

 Regards,
 Siddharth

 On Fri, Apr 4, 2008 at 1:46 PM, Siddharth Khimsara
 <[EMAIL PROTECTED]> wrote:
 Hi Marcello,

 thanks a lot. I will try it right now and let u know immediately :)

 Regards,
 Siddharth

 On Fri, Apr 4, 2008 at 1:38 PM, Marcello Caleffi
 <[EMAIL PROTECTED]> wrote:
 I upload the new one today.
 Try the last one and let me know what happens without commenting
 anything!


 Il giorno 04/

Re: [ns] Problem about AOMDV

2008-04-11 Thread Marcello Caleffi

Hi Ying,
I guess you have downloaded a malformed path file.
Please try to download a fresh ns-2 source tree (2.32 version) and to  
apply the last patch (online from a few of days) again.

Let me know what happens.

-

Marcello Caleffi
Department of Electronic and Telecommunication Engineering
University of Naples "Federico II"
21 Claudio street - 80125 Naples ITALY
Tel +39-(0)81-7683810. Fax +39-(0)81-7683149
http://wpage.unina.it/marcello.caleffi/


Il giorno 11/apr/08, alle ore 04:55, Ying Huang ha scritto:
>
> Hi Marcello,
>
>   I am Ying HUANG, a student in SUNY-University at Buffalo. I have  
> found your work
> on AOMDV protocol. I meet problems when install the AOMDV patch. (I  
> use fedora
> core 8 and use your method to install ns2. It seems you have  
> updated your webpage
> on installing ns2. I installed the version 2.30 ns2 software you  
> once stated.)
> The error information is like the following:
>
> [EMAIL PROTECTED] ns-2.30]# patch -p2 < ./aomdv.diff
> missing header for unified diff at line 4 of patch
> patching file aomdv/aomdv.cc
> missing header for unified diff at line 1931 of patch
> patching file aomdv/aomdv.h
> missing header for unified diff at line 2444 of patch
> patching file aomdv/aomdv_logs.cc
> missing header for unified diff at line 2608 of patch
> patching file aomdv/aomdv_packet.h
> missing header for unified diff at line 2863 of patch
> patching file aomdv/aomdv_rqueue.cc
> missing header for unified diff at line 3180 of patch
> patching file aomdv/aomdv_rqueue.h
> missing header for unified diff at line 3328 of patch
> patching file aomdv/aomdv_rtable.cc
> missing header for unified diff at line 3877 of patch
> patching file aomdv/aomdv_rtable.h
> missing header for unified diff at line 4177 of patch
> patching file common/packet.h
> missing header for unified diff at line 4218 of patch
> patching file Makefile
> Hunk #1 FAILED at 52.
> Hunk #2 succeeded at 258 (offset -1 lines).
> 1 out of 2 hunks FAILED -- saving rejects to file Makefile.rej
> missing header for unified diff at line 4246 of patch
> patching file Makefile.in
> missing header for unified diff at line 4258 of patch
> patching file makefile.vc
> missing header for unified diff at line 4270 of patch
> patching file queue/priqueue.cc
> missing header for unified diff at line 4286 of patch
> patching file tcl/lib/ns-lib.tcl
> Hunk #1 succeeded at 614 (offset -1 lines).
> Hunk #2 succeeded at 837 (offset -3 lines).
> missing header for unified diff at line 4319 of patch
> patching file tcl/lib/ns-mobilenode.tcl
> missing header for unified diff at line 4337 of patch
> patching file tcl/lib/ns-packet.tcl
> missing header for unified diff at line 4351 of patch
> patching file trace/cmu-trace.cc
> missing header for unified diff at line 4495 of patch
> patching file trace/cmu-trace.h
>
>   Thank you very much for your hekp and thanks a lot for sharing  
> such research
> experiences with us !
>
>
> -- 
> Ying Huang
> SUNY - University at Buffalo
>
> Address:
>   154 Springville Ave
>   Buffalo, NY 14226-3119
>
> Welcome to my personal Homepage:
>   http://yingtex.googlepages.com
>