[ns] WSN packet size

2010-01-20 Thread wsn


Hi,
I want to know how can I effectively choose the packetSize_ in my tcl
file?
(I'm simulating WSN with 802.15.4/WPAN's tcl)
For example, in wpan_demo4.tcl, why packetSize = 80 bytes?

proc cbrtraffic { src dst interval starttime } {
   global ns_ node_
   set udp_($src) [new Agent/UDP]
   eval $ns_ attach-agent \$node_($src) \$udp_($src)
   set null_($dst) [new Agent/Null]
   eval $ns_ attach-agent \$node_($dst) \$null_($dst)
   set cbr_($src) [new Application/Traffic/CBR]
   eval \$cbr_($src) set packetSize_ 80
   eval \$cbr_($src) set interval_ $interval
   eval \$cbr_($src) set random_ 0
   #eval \$cbr_($src) set maxpkts_ 1
   eval \$cbr_($src) attach-agent \$udp_($src)
   eval $ns_ connect \$udp_($src) \$null_($dst)
   $ns_ at $starttime $cbr_($src) start
}

while in wpan_demo1.tcl, wpan_demo2.tcl  wpan_demo3.tcl packetSize =
70 bytes ?


Regards
-- 
View this message in context: 
http://old.nabble.com/WSN-packet-size-tp27238663p27238663.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] can I send application level bytes when using Application/TrafficGenerator/CBR?

2010-01-20 Thread Gautam Thaker

Hello:

I understand that general rule of thumb is that any UDP based appl can be 
configured to send application level data, while under NS tcp apps can not 
send application level data.

Given this, I am using Application/TrafficGenerator/CBR. I want to send 
application level data (even if a fixed same payload each time) w/ this 
generator. Is this possible? Are there any examples one can point to?

Thanks.

Gautam



[ns] Could anyone gives me instruction on NAT configuration in NS2?

2010-01-20 Thread sabrina.zhx

Hello, all
I am a new to NS2 ,and now I have to configure a NAT node (if there is ) in NS2 
for my research.I have no idea about it .Any suggestion about the nat module in 
NS2 is appreciate,especially simple examples.Thanks!
2010-01-21 

2010-01-21 



sabrina.zhx 


[ns] Required ODMRP, AMRoute, AMRIS, CAMP code for NS2

2010-01-20 Thread soni

Dear Sir/Madam
I am Sunil Soni Research scholar from Punjab
Technical University India I require NS2 Implemented code of multicast
routing protocols Like ODMRP,AMRoute,AMRIS, CAMP etc

I shall be very thank full to yours

-- 
Thanks  Regards:


Sunil Kumar Soni
Asstt.Prof. - Deptt. of Computer Science
Email: sunilson...@gmail.com
Phone: +91-98725-00787
Fax: +91-172-5094173
www.sasiitmohali.com



Re: [ns] Required ODMRP, AMRoute, AMRIS, CAMP code for NS2

2010-01-20 Thread Sidney Doria

http://nsnam.isi.edu/nsnam/index.php/Contributed_Code#Multicast

Sidney Doria
UFCG / BRAZIL

2010/1/21 soni sunilson...@gmail.com:

 Dear Sir/Madam
                            I am Sunil Soni Research scholar from Punjab
 Technical University India I require NS2 Implemented code of multicast
 routing protocols Like ODMRP,AMRoute,AMRIS, CAMP etc

 I shall be very thank full to yours

 --
 Thanks  Regards:

 
 Sunil Kumar Soni
 Asstt.Prof. - Deptt. of Computer Science
 Email: sunilson...@gmail.com
 Phone: +91-98725-00787
 Fax: +91-172-5094173
 www.sasiitmohali.com
 




-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] Can NS2 code be injected on sensors

2010-01-20 Thread Fazlullah Khan

Hello everybody!
Please any one can tell me that Can we inject NS2 code on sensors?
Can NS2 be used for implementaion purpose?

Regards
Fazlullah Khan