[ns] WFQ implemantation

2008-10-10 Thread Davide

hi @ all,

is it possible to implement the WFQ algorithm in ns2 ?
is it possible to make some link dependent each other in terms of service
time and bandwidth?

i want to implement many queues, each of them goes in the same
server...quite like the philosophy of a radio link but I'm interested to the
tcp behavior so i cannot use the wireless nude becaus is affected by all the
problems of a wireless link

thanks in advance

Davide


[ns] Wireless Scenario Generator for NS-2 using MATLAB GUI, Help for some Developments

2008-10-10 Thread Hamid Shiri

Hi every body,

I've implemented a simple scenario generator for
wireless networks to make it easy to simulate wireless nets on NS-2. By
the way it's almost customized and I want to develop it for  a general
field in wireless simulation.
That was not so easy for me to compile
some available open source scenario generators on windows OS so I made
my own using MATLAB GUI environment. Also I've some problems with
NS-Mapper software, for example it was not allowed to save settings or
running the generator because some plug-ins was not available on my
system.
My S-Gen is so easy to work, using a very friendly 
simple environment and I'm trying to make it as friendly as NS-Mapper.
So I want to know if you can help me to complete this generator 
deploy it for distribution as an easy to use Scenario Generator for NS-2
wireless simulation.

You can download My_S_Gen source files following this link :
http://mailman.isi.edu/mailman/options/ns-users/[EMAIL PROTECTED]

Best regards.
Hamid Shiri (Phoenix)

Email : [EMAIL PROTECTED]


  


[ns] Is antenna position relative to node position?

2008-10-10 Thread Leyond


Hi,
   I want to calculate the value of received signal strength, so I need to
know the position of Mobile Node and Access Point. And I found something
interesting in the file mobile/propagation.cc
   Xr += r-getAntenna()-getX();
Yr += r-getAntenna()-getY();
Zr += r-getAntenna()-getZ();
Xt += t-getAntenna()-getX();
Yt += t-getAntenna()-getY();
Zt += t-getAntenna()-getZ();
 And I print out these values :

Xt 589.478206: Yt 489.478206,Zt 0.25:Xr 589.478206,Yr 489.478206:Zr
0.25

Xt 600.00: Yt 500.00,Zt 0.25:Xr 600.00,Yr 500.00:Zr
0.25

Xt 589.487894: Yt 489.487894,Zt 0.25:Xr 589.487894,Yr 489.487894:Zr
0.25

Xt 620.503211: Yt 520.503211,Zt 0.25:Xr 620.503211,Yr 520.503211:Zr
0.25
.
To my surprise is that the values of Xt,Yt are variant which are supposed to
be invariable because the AP is fixed. So, How to explain  these codes? Is
antenna position relative to node position?
Thanks very much
Leyond


-- 
View this message in context: 
http://www.nabble.com/Is-antenna-position-relative-to-node-position--tp19915340p19915340.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Simulation of broadcasting nodes interpreting trace file

2008-10-10 Thread Vishal Agarwal

Hello all,

I am trying to do a comparative study of two wireless standards by using one
broadcast protocol in which there are 25 nodes and every node broadcasts its
message after every 0.25 secs. After running the simulation, the trace file
corresponding to it got generated but am not able to identify as in what are
the parameters i can extract using the file as in all the packets are
transmitting ideally after regular interval so if i want to to do throughput
analysis, or delay or of packet loss so i should do that for a system as a
whole or by considering any node?

Also i don't know how to interpret and extract information from he trace
file generated. I read many reviews and searched a lot about the awk script
but am still unclear. I tried using tracegraph but what i am suppose to do
after i convert the *.tr file into *.mat file?

Please someone help.

Thanks and Regards,


-- 
Vishal


[ns] how to use tracegraph

2008-10-10 Thread Vishal Agarwal

Dear users,

I am trying to use tracegraph for interpreting and extracting information
from my trace file. Can anyone please tell me the steps which i need to
follow to install and then use it to do some analysis.
I have matlab 7.0 installed on my computer.

Thanks in advance


-- 
Vishal


[ns] Wireless Scenario Generator for NS-2 using MATLAB GUI, Help for some Developments

2008-10-10 Thread Hamid Shiri

Hi every body,

I've implemented a simple scenario generator for wireless networks to make it 
easy to simulate wireless nets on NS-2. By the way it's almost customized and I 
want to develop it for  a general field in wireless simulation.
That was not so easy for me to compile some available open source scenario 
generators on windows OS so I made my own using MATLAB GUI environment. Also 
I've some problems with NS-Mapper software, for example it was not allowed to 
save settings or running the generator because some plug-ins was not available 
on my system.
My S-Gen is so easy to work, using a very friendly  simple environment and I'm 
trying to make it as friendly as NS-Mapper. So I want to know if you can help 
me to complete this generator  deploy it for distribution as an easy to use 
Scenario Generator for NS-2 wireless simulation.

You can download My_S_Gen source files following this link :
http://www.4shared.com/file/66383308/5c891e22/My_TG_MATLAB-Src_.html

Best regards.
Hamid Shiri (Phoenix)

Email : [EMAIL PROTECTED]



  


[ns] Wireless Scenario Generator for NS-2 using MATLAB GUI, Help for some Developments

2008-10-10 Thread Hamid Shiri


Hi every body,

I've implemented a simple scenario generator for
wireless networks to make it easy to simulate wireless nets on NS-2. By
the way it's almost customized and I want to develop it for  a general
field in wireless simulation.
That was not so easy for me to compile
some available open source scenario generators on windows OS so I made
my own using MATLAB GUI environment. Also I've some problems with
NS-Mapper software, for example it was not allowed to save settings or
running the generator because some plug-ins was not available on my
system.
My S-Gen is so easy to work, using a very friendly 
simple environment and I'm trying to make it as friendly as NS-Mapper.
So I want to know if you can help me to complete this generator 
deploy it for distribution as a easy to use Scenario Generator for NS-2
wireless simulation.

You can download My_S_Gen source files following this link :
http://www.4shared.com/file/66383308/5c891e22/My_TG_MATLAB-Src_.html

Best regards.
Hamid Shiri (Phoenix)

Email : [EMAIL PROTECTED]



  


[ns] Wireless Scenario Generator for NS-2 using MATLAB GUI, Help for some Developments

2008-10-10 Thread Hamid Shiri

Hi every body,

I've implemented a simple scenario generator for
wireless networks to make it easy to simulate wireless nets on NS-2. By
the way it's almost customized and I want to develop it for  a general
field in wireless simulation.
That was not so easy for me to compile
some available open source scenario generators on windows OS so I made
my own using MATLAB GUI environment. Also I've some problems with
NS-Mapper software, for example it was not allowed to save settings or
running the generator because some plug-ins was not available on my
system.
My S-Gen is so easy to work, using a very friendly 
simple environment and I'm trying to make it as friendly as NS-Mapper.
So I want to know if you can help me to complete this generator 
deploy it for distribution as a easy to use Scenario Generator for NS-2
wireless simulation.

You can download My_S_Gen source files following this link :
http://mailman.isi.edu/mailman/options/ns-users/[EMAIL PROTECTED]

Best regards.
Hamid Shiri (Phoenix)

Email : [EMAIL PROTECTED]


  


Re: [ns] SplitObject error after adding a simple print function

2008-10-10 Thread Mayur

Asraf wrote:
 I am trying to print out the route table, and rt_print function in aodv.cc
 plus this code on in AODV::command:

 int
 AODV::command(int argc, const char*const* argv) {
 ...
 ...
 else if (strcasecmp(argv[1], rt_print) == 0) {// print routing tables to a
 file
 FILE *fp = fopen(route.txt,a);
 printf(\nRouting table at node %d\n, addr());
 fclose(fp);

 return TCL_OK;
 } 
 }
  
 and call this in my TCL like this:

 for {set i 1} {$i  $nodes} {incr i} {
 $ns_ at 10.0 $node_($i) rt_print
 }

 But I get an error:

 ns: _o32 rt_print:
 (_o32 cmd line 1)
 invoked from within
 _o32 cmd rt_print
 invoked from within
 catch $self cmd $args ret
 (procedure _o32 line 2)
 (SplitObject unknown line 2)
 invoked from within
 _o32 rt_print


 Does anyone know how to solve this SplitObject error. From my understanding,
 SplitObject error is caused by no having a corresponding C++ object used in
 TCL. Any pointers?? 

 Or If I want to print out the routing table in AODV, how do I do it?

 Many Thanks,
 Asraf.

   
In your TCL script, you have called rt_print as :

*$ns_ at 10.0 $node_($i) rt_print*

This is as if it is a /procedure of NODE object/, (which is certainly 
not true here!). Rather you should call it as
/ ... $val(rp) rt_print/
where, $val(rp) is your AODV, adhocRouting. You can now fine tune 
yourself as per your need.

regards,
Mayur



[ns] Trace file

2008-10-10 Thread Hamid Shiri

Hi

Can you tell me more details about your simulation ? Wired or wireless ? which 
type of routing protocol is used in simulation ? and ...

Hamid Shiri



  


[ns] Need help -Running files

2008-10-10 Thread pepe Delino

hi guys ,
I am new to NS . Can you please help me running these files .
I am including them as an attachment.

Pepe


Re: [ns] Wireless Scenario Generator for NS-2 using MATLAB GUI, Updated Oct-10-2008

2008-10-10 Thread Hamid Shiri

Hi everyone

My scenario generator have been updated, help me please to develop it and fix 
it's probabilistic bugs.
You can see about 4 similar messages in the list that caused by bad delivery of 
my mail server, they are all corrupted.

Download Link : 
http://www.4shared.com/file/66443065/aed1a6f9/MY_TG_MATLAB_Src_.html

Regards.
Hamid Shiri



  


Re: [ns] errors when type make

2008-10-10 Thread Wang Danqi


It seems your compiler considers the declaration of char** p_info::name_ 
char* is different from the definition of  p_info::name_ [59].

You may check the version of  g++ in your system, by g++ -v

g++ 4.2.4 works well with ns-allinone-2.33


eng Rony wrote:
 
 
 
 
 Eng Rony
  
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ make
 
 g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG
 -DL=
 INUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
 -DHAVE_LIBOTCL1_13=
 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H
 -D=
 HAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=3Dstd
 -DUSE_SIN=
 GLE_ADDRESS_SPACE -Drng_test -I. -I.
 -I/home/rania/ns-allinone-2.33/tclcl-1=
 ...19 -I/home/rania/ns-allinone-2.33/otcl
 -I/home/rania/ns-allinone-2.33/inc=
 lude -I/home/rania/ns-allinone-2.33/include -I/usr/include/pcap -I./tcp
 -I.=
 /sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile
 -I.=
 /trace -I./routing -I./tools -I./classifier -I./mcast
 -I./diffusion3/lib/ma=
 in -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns
 -I./diffusion=
 3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o
 commo=
 n/packet.o common/packet.cc
 common/packet.cc:44: error: conflicting declaration 'char** p_info::name_'
 common/packet.h:277: error: 'p_info::name_' has a previous declaration as
 '=
 char* p_info::name_ [59]'
 common/packet.cc:44: error: declaration of 'char* p_info::name_ [59]'
 outsi=
 de of class is not definition
 common/packet.cc:45: error: 'unsigned int p_info::nPkt_' is not a static
 me=
 mber of 'class p_info'
 
 =20
 common/packet.cc:46: error: expected constructor, destructor, or type
 conve=
 rsion before '*' token
 common/packet.cc:48: error: no 'int p_info::addPacket(char*)' member
 functi=
 on declared in class 'p_info'
 common/packet.cc: In member function 'int p_info::addPacket(char*)':
 common/packet.cc:50: error: 'nPkt_' was not declared in this scope
 common/packet.cc:51: error: 'initName' was not declared in this scope
 common/packet.cc:53: error: 'nPkt_' was not declared in this scope
 common/packet.cc:55: error: 'initName' was not declared in this scope
 make: *** [common/packet.o] Error 1
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$
 
 
 
 
   
 
 

-- 
View this message in context: 
http://www.nabble.com/errors-when-type-make-tp19886080p19894159.html
Sent from the ns-users mailing list archive at Nabble.com.