[ns] How to find the 2 queues in a duplex-link

2011-03-15 Thread dipjahid

Hi all,
I am working with ns duplex-link and I have to find the 2 queue (2
simple-link queue going up and down) variables to communicate between
them in the c++ level. My main purpose is to communicate from one RED
queue instance to the other one in the opposite direction. If anyone has
any idea then it will be of great help.

Thanks
-Jahid




[ns] installation problem

2011-03-15 Thread Saqib Ali

hi
i have installed ns 2.34.Working fine but when i run fine with % but
when i run a batch file ns simple.tcl it give errors


simple.tcl
set ns [new Simulator]
$ns at 1  “puts HelloWorld!”
$ns at 1.5 “exit”
$ns run

Thanks


[ns] help with a tcl code which breakdown large data into small packets

2011-03-15 Thread Moses Mbira

Hie

Can anyone help me with a tcl code which break down large data into small
packets and sent it over two nodes.

I'm using ns2.34

 

--

Regards

 

Panganai Mbira

Cell: 0772487215

 

"Only a life lived for others is a life worthwhile".  ~Albert Einstein

 



[ns] Does anyone know an algorithm which break down large data into small packets and sent it over a network using ns2.34

2011-03-15 Thread Moses Mbira

Does anyone have an idea of an algorithm which break down large data into
small packets and send it over a network and recompile it again to one on
the receiver.

 



[ns] Broadcasting in MANETs

2011-03-15 Thread salahedin rehan

Hi,

I came across you broadcasting agent of 2001: 
http://www.isi.edu/nsnam/archive/ns-users/webarch/2001/msg05889.html

Can anybody give me a hand to implement it and use it. I am using 
ns-allinone-2.34. I really need to learn how it works and how to use it.

Thanks in advance.


  


[ns] Probabilistic broadcasting in MANETs

2011-03-15 Thread salahedin rehan

Hi all,

i came across this nice exercise:

 http://www.crhc.illinois.edu/wireless/assignments/simulations/lab108.html

However, I am getting two different errors:

1. Ambiguous input redirect.
2. Missing name for redirect.

Can anybody tell me how can I run the simulation exactly??

Thanks,



  


[ns] help example tcl program for RTP and RTCP

2011-03-15 Thread amareswararao k

hi all,
 could any any one please give me a tcl program which uses RTP (sender) and 
RTCP (receiver) .
i am using ns 2.34
thanks in advance



Re: [ns] Multihop Broadcasting in MANET with ns2

2011-03-15 Thread Salahedin


Check the ip header's tll and make sure that it is greater than 1. For
example:
iphdr->ttl() = 10;   I am not sure about the value it must take, but it
mustnt be 1.

adoul_2009 wrote:
> 
> 
> 
> 
> 
> 
> Hi dears ns-users,
> 
>   I'm writing an agent that broadcast a packet to All the neighbor
> nodes in the MANET network. I have search for a long time
> in the Internet to do it with ns2.33 but I fail. In fact, the problem is
> that only neighbors in the range of one hop  from the sender node
> can receive the packet !!  I have used many Ad hoc routing protocols (even
> OLSR !! ) but the problem remains the same. The solution
> proposed for the broadcast problem by Jeff Bolen didn't resolve the
> problem. ( Please follow this link for more details :
> http://www.isi.edu/nsnam/archive/ns-users/webarch/2000/msg02832.html). In
> his proposition Jeff says that we should make
> a duplicate the packet and send a copy with the original packet up but I
> didn't know how to do it and in which layer !! :( ... I absolutely agree
> with Sanjay Raghani in its post ( Please follow this link for more details
> : http://www.mail-archive.com/ns-users@isi.edu/msg02771.html )
> when he says that the solution of Jeff is not the correct one for many
> reasons but till now I don't have any idea how to proceed to solve my
> problem :(
> Really I'm very confused !!
> 
>  My C++ function which I use to broadcast the packet is below :
> 
> void DistacAgent::broadcast_packet( )
> {
> 
>   Packet *p = allocpkt();
>   if(p==NULL){
>   abort();
> }
> 
>   hdr_cmn *ch = HDR_CMN(p);
>   hdr_ip *ih = HDR_IP(p);
> 
>   //filling the Common header
>   ch->ptype() = PT_DISTAC; // My agent packet type !!
>   ch->size() = IP_HDR_LEN + sizeof(hdr_distac);
>   ch->iface() = -2;
>   ch->error() = 0;
>   ch->addr_type() = NS_AF_NONE;
>   ch->prev_hop_ = Agent::addr();
>   ch->next_hop() = IP_BROADCAST;
>   ch->direction() = hdr_cmn::DOWN ; 
> 
>   //filling the IP header
>   ih->saddr() = Agent::addr();
>   ih->daddr() =  IP_BROADCAST;
> 
>   ih->sport() = DISTAC_PORT;
>   ih->dport() = DISTAC_PORT;
> 
>   ih->ttl_ = 32; 
> 
> // and finally sending the packet by putting it on the scheduler
>   Scheduler::instance().schedule(target_, p, 0);
> 
> }
> 
> Please if you can help or have any idea about this topic, don't hesitate
> to write to me and many thanks in advance.
> 
>Regards !! /Adel.
> 
> Windows Live: Keep your friends up to date with what you do online.   
>   
> Windows Live:  Friends get your Flickr, Yelp, and Digg updates when they
> e-mail you. 
> _
> Windows Live: Make it easier for your friends to see what you’re up to on
> Facebook.
> http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009
> 

-- 
View this message in context: 
http://old.nabble.com/Multihop-Broadcasting-in-MANET-with-ns2-tp25938572p31154537.html
Sent from the ns-users mailing list archive at Nabble.com.




[ns] Can anyone help me in executing the following program with 30 nodes?

2011-03-15 Thread sree ram

There was a hardware failure in my system. So i cant execute the above code
in my system. please someone execute the above code using ns-2 and send me
the trace file and nam file which r created during the execution of the
program. Its urgent i hv to submit the report next week.


Re: [ns] Ns-users Digest, Vol 87, Issue 14

2011-03-15 Thread Érico Porto

Hello,

Are you also from Brasil?

Érico V. Porto


On Tue, Mar 15, 2011 at 9:01 AM, marllus lustosa
wrote:

>
> An example for the Sinalgo simulator exists. You can adptar the code of
> Java
> for TCL.
>
> page: www.ufpi.br/subsiteFiles/ercemapi/arquivos/files/minicurso/mc3.pdf
>
>
>
> --
>
> Message: 2
> Date: Mon, 14 Mar 2011 02:43:20 +
> From: Angel Lopez 
> Subject: [ns] Geocast code NS2
> To: 
> Message-ID:  w653f3790e73a317d6e71489b...@phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> Hi,
>
> I'm implementing a geocast protocol for manet's, and i'll need to compare
> it. So, do you know about an available geocast code for manets in NS2?
>
> Thanks in advance.
> Angel Lopez.
>
>
> --
> att,
>
> Marllus de Melo Lustosa - lattes -> http://bit.ly/dlm86f / HomePage ->
> http://www.marllus.com
> Bacharelando em Ciência da Computação - UFPI
> Departamento de Informática e Estatística - DIE
> Grupo de Pesquisa e Estudos em Redes de computadores - GoPER -
> http://die.ufpi.br/goper/
>


Re: [ns] OLSRD inside NS-2

2011-03-15 Thread Érico Porto

Hey, found some answers to my questions in here:
http://www.inf.ufrgs.br/~wlccordeiro/resources.php

I believe there is more people interested on this!

Thanks to Saverio Proto from the OLSR mailing list.

Érico V. Porto


On Tue, Mar 15, 2011 at 9:18 AM, Érico Porto wrote:

> Hello,
>
> The OLSRD implementation is far better now, than was years ago. The OLSR
> implementation IN NS-2 seems to follow the RFC3626, but does anyone know how
> it relates with the actual OLSRD implementation?
>
> And has someone built the Quality extension or the Fish eye quality
> extension over the NS-2 OLSR?
>
> Regards
>
> Érico V. Porto
>


[ns] problem with validation NS-2.34

2011-03-15 Thread Sept Sept




Hello
I use Ubuntu 10.04 and I try to install NS2.34 
after running the validation "./validate" this message appear



validate overall report: some portable tests failed:
 ./test-all-red
some non-portable tests also failed:

 ./test-all-srm ./test-all-smac-multihop ./test-all-hier-routing 
./test-all-algo-routing ./test-all-mcast ./test-all-vc 
./test-all-session ./test-all-mixmode ./test-all-webcache 
./test-all-mcache ./test-all-plm ./test-all-wireless-tdma
to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME


could you help me please
thanks
 



  


[ns] OLSRD inside NS-2

2011-03-15 Thread Érico Porto

Hello,

The OLSRD implementation is far better now, than was years ago. The OLSR
implementation IN NS-2 seems to follow the RFC3626, but does anyone know how
it relates with the actual OLSRD implementation?

And has someone built the Quality extension or the Fish eye quality
extension over the NS-2 OLSR?

Regards

Érico V. Porto


Re: [ns] Ns-users Digest, Vol 87, Issue 14

2011-03-15 Thread marllus lustosa

An example for the Sinalgo simulator exists. You can adptar the code of Java
for TCL.

page: www.ufpi.br/subsiteFiles/ercemapi/arquivos/files/minicurso/mc3.pdf



--

Message: 2
Date: Mon, 14 Mar 2011 02:43:20 +
From: Angel Lopez 
Subject: [ns] Geocast code NS2
To: 
Message-ID: 
Content-Type: text/plain; charset="iso-8859-1"


Hi,

I'm implementing a geocast protocol for manet's, and i'll need to compare
it. So, do you know about an available geocast code for manets in NS2?

Thanks in advance.
Angel Lopez.


-- 
att,

Marllus de Melo Lustosa - lattes -> http://bit.ly/dlm86f / HomePage ->
http://www.marllus.com
Bacharelando em Ciência da Computação - UFPI
Departamento de Informática e Estatística - DIE
Grupo de Pesquisa e Estudos em Redes de computadores - GoPER -
http://die.ufpi.br/goper/


[ns] Problem with "A new protocol for ns"

2011-03-15 Thread zhou2090

hello
I have done just like the tutorial writes, such as  "make" is ok,
but the agent which i added was can't work
can anyone give any suggest ?
thanks a lot
=
% Agent/Pingnew
invalid command name "Agent/MyAgentOtcl"
%

sinwel@ubuntu:/opt/ns-allinone-2.34/ns-2.34$ make
g++ -c -Wall -Wno-write-strings  -DTCP_DELAY_BIND_ALL -DNO_TK 
-DTCLCL_CLASSINSTVAR  -DNDEBUG -DLINUX_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_TCLINT_H -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION 
-DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test  -I. 
-I. -I/opt/ns-allinone-2.34/tclcl-1.19 -I/opt/ns-allinone-2.34/otcl -
 
for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec 
indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr 
indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done
make[1]: Entering directory 
`/opt/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen/setdest'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/opt/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory 
`/opt/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/dec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/opt/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/dec'
make[1]: Entering directory 
`/opt/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/epa'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/opt/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/epa'
make[1]: Entering directory 
`/opt/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/opt/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory 
`/opt/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/opt/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/ucb'
=








[ns] Fwd: codec for evalvid

2011-03-15 Thread Tami Nesher

-- Forwarded message --
From: Tami Nesher 
Date: Tue, Mar 15, 2011 at 2:40 AM
Subject: codec for evalvid
To: ns-users@isi.edu




 Hi,
I am trying to run an example on Evalvid, under Linux.
According to the instructions of the example in the link:
 http://140.116.72.80/~smallko/ns2/myevalvid2.htm
I wrote in the shell :

./xvid_encraw -i akiyo_cif.yuv -w 352 -h 288 -framerate 30
-max_key_interval 30 -o a01.m4v

I need to download the Xvid_encraw in order to do it.
Do you know where can I find it?
please help me as soon as possible
Thanks a lot.*

ves.*






-- 
רבי משה בן מכיר זצ"ל, מגדולי הראשונים כתב:
מי שאומר את ברכת "אשר יצר" בכוונה, ומוציא כל מילה מפיו בקול רם וברור,  לא
יבוא עליו שום חולי שבעולם, ולא יזדקק כלל לרופאים או לתרופות!