[ns] [NS-ANS] Re: Needed awk script for throughput in wireless scenario

2011-05-10 Thread Teerawat@UBC

Hi,

If you are interested in learning how tracing works in NS2, please read

http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post

The above posts are based on the normal trace. If you are interested in 
wireless trace you might have to modify it  a bit. Please look at new wireless 
trace format at the link below:

http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats#New_Wireless_Trace_Formats


Best Wishes,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
http://www.t-issariyakul.blogspot.com
http://www.ece.ubc.ca/~teerawat



On May 10, 2011, at 11:34 AM, yugesh gowda wrote:

 
 Hello,
 Does anyone have the awk script to calculate delay,throughput, packet
 loss, end to end delay in wireless scenario?
 I will really appreciate it.
 Regards.
 Urgent
 




Re: [ns] Problem in GPSR implementation

2011-05-10 Thread pradeep_ramesh


Hi vanshi
iam doing performance test on gpsr.could you please send me tcl script for
GPSR .it will be so helpfull to me 

thanks
pradeep
pradeepsecx...@yahoo.com
00447501001287

vamshikr wrote:
 
 
 Hi all,
 I was using GPSR_KeLiu_SUNY_Binghamton.
 tar packet to simulate the GPSR protocol in ns-2.34.When I tried to
 execute
 it using ns wireless-gpsr.tcl,I got the following error
 
 invalid command name Agent/GPSR
 while executing
 Agent/GPSR set planar_type_  1   
 (file wireless-gpsr.tcl line 112)
 
 Can anyone help me out?
  Thank you
 
 
 -- 
 Regards ,
 Vamshi Krishna Muthyapu
 Graduate Student
 Electrical Engineering
 University at Buffalo,State University of New York
 
 

-- 
View this message in context: 
http://old.nabble.com/Problem-in-GPSR-implementation-tp31468109p31584077.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] a simple question about the format of a trace file : Thank you

2011-05-10 Thread pradeep_ramesh


Hi Zakia
Iam pradeep,am doing project on GPSR,could you please send me the tcl script
to me.

Thanks
pradeep
pradeepsecx...@yahoo.com
00447501001287

Zakia Khalfallah wrote:
 
 
 
 Hi friends, 
 i'm simulating the GPSR protocol combined with the location service HLS .
 the trace file that i obtainde has this format :
 
 HLS_CUpd  5.472465613941 3 [0 5.4500 351.95 35.23]
 RTE: 5.472465613941 _3_: RouteInfo 10 (0-3) : 1 1r 5.472465614 _3_ MAC 
 --- 10 cbr 189 [13a 3 0 800] --- [0:0 3:0 128 3] [6] 1 0
 s 5.472475614 _3_ MAC  --- 0 ACK 38 [0 0 0 0] r 5.472490614 _3_ AGT  ---
 10 cbr 189 [13a 3 0 800] --- [0:0 3:0 128 3] [6] 1 0
 r 5.472779711 _0_ MAC  --- 0 ACK 38 [0 0 0 0] s 5.473109711 _0_ MAC  --- 0
 RTS 44 [a36 3 0 0] 
 r 5.473461808 _3_ MAC  --- 0 RTS 44 [a36 3 0 0] s 5.473471808 _3_ MAC  ---
 0 CTS 38 [8fc 0 0 0] 
 r 5.473775905 _0_ MAC  --- 0 CTS 38 [8fc 0 0 0] 
 
 I don't know which numbre refers to the  packet id  because it's not
 shown as the standard format of NS trace file  like
 
 
 s -t 0.293822201 -Hs 0 -Hd -2 -Ni 0 -Nx 100.00 -Ny 400.00 -Nz 0.00 -Ne
 -1.00 -Nl AGT -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.0 -Id 1.0 -It cbr
 -Il 512 -If 0 
 etc...
 
 So, how can i know where is the packet id and also for other informations
 . In other words, how can i know what every information refers to
 than you and goog luck
 zak,
 
 
 

-- 
View this message in context: 
http://old.nabble.com/a-simple-question-about-the-format-of-a-trace-file-%3A-Thank-you-tp31576422p31584090.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] Problem in GPSR implementation

2011-05-10 Thread Teerawat@UBC

Hi,

A lot of people are having the same problem. I am curious why. My guess is just 
because the GPSR are not incorporated to NS2 properly. These links might help:



http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2
http://www.ns2ultimate.com/post/689847378/c-and-otcl-linkage-binding-c-and-otcl-classes

If it is due to some other cause, I would be interested to learn about that 
too. Please let me know. 



On May 10, 2011, at 4:33 PM, pradeep_ramesh wrote:

 
 
 Hi vanshi
 iam doing performance test on gpsr.could you please send me tcl script for
 GPSR .it will be so helpfull to me 
 
 thanks
 pradeep
 pradeepsecx...@yahoo.com
 00447501001287
 
 vamshikr wrote:
 
 
 Hi all,
I was using GPSR_KeLiu_SUNY_Binghamton.
 tar packet to simulate the GPSR protocol in ns-2.34.When I tried to
 execute
 it using ns wireless-gpsr.tcl,I got the following error
 
 invalid command name Agent/GPSR
while executing
 Agent/GPSR set planar_type_  1   
(file wireless-gpsr.tcl line 112)
 
 Can anyone help me out?
 Thank you
 
 
 -- 
 Regards ,
 Vamshi Krishna Muthyapu
 Graduate Student
 Electrical Engineering
 University at Buffalo,State University of New York
 
 
 
 -- 
 View this message in context: 
 http://old.nabble.com/Problem-in-GPSR-implementation-tp31468109p31584077.html
 Sent from the ns-users mailing list archive at Nabble.com.
 




[ns] packets dropped on TTDD

2011-05-10 Thread s s

In the name of God
Hi friends

I need to run TTDD in urgent.
when I run TTDD code on ns-2.1b8a it shows the packets dropped. and I can not 
run nam file.it creates nam file but it doesnt show anything. can ny body help 
me?

Best Regards
Sarah


[ns] node's range

2011-05-10 Thread s s

in the name of God

Hi friends I want to change the node's range in wireless network .how I can 
change it?

Best Regards
Sarah


Re: [ns] about command $ns rtmodel-at 1.0 down $n(1) $n(2)

2011-05-10 Thread ma-haiyuan

Thanks for your reply!
but there is no command Iif in tcl/lib/ns-link.tcl.
 it is  
Link instproc all-connectors op {
 foreach c [$self info vars] {
  $self instvar $c
  if ![info exists $c] continue
  if [array size $c] continue
  foreach var [$self set $c] {
   if [catch $var info class] {
continue
   }
   if ![$var info class Node] { ;# $op on most everything
catch $var $op;# in case var isn't a connector
   }
  }
 }
}

 However ,the script can run successfully on NS-2.26.
 
Thanks!






At 2011-05-07 17:14:01,fivos fivos@gmail.com wrote:

Go to tcl/lib/ns-link.tcl and try renaming lif to if and recompile ns
. it should work then.
Iif ![$var info class Node] { ;# $op on most everything   -  if
![$var info class Node] { ;# $op on most everything

cheers

2011/5/6 ma-haiyuan ma-haiy...@163.com:


 Hello everyone!

 When I do the tutorial for the network simulator NS originally developed 
 by Mac Greis, the subsection VI.2, the example can not run on my ns(version 
 2.31). The error is as follows:

 invalid command name Iif
while executing
 Iif ![$var info class Node] { ;# $op on most everything
 catch $var $op;# in case var isn't a connector
 }
(procedure _o63 line 10)
(Link all-connectors line 10)
invoked from within
 $self all-connectors isDynamic
(procedure _o63 line 10)
(SimpleLink dynamic line 10)
invoked from within
 $links_($l) dynamic
(procedure _o177 line 8)
(rtModel configure line 8)
invoked from within
 $m configure
(foreach body line 2)
invoked from within
 foreach m $rtModel_ {
 $m configure
 }
invoked from within
 if [info exists rtModel_] {
 set rtq_ [new rtQueue $self]
 foreach m $rtModel_ {
 $m configure
 }
 }
(procedure _o3 line 3)
(Simulator rtmodel-configure line 3)
invoked from within
 $self rtmodel-configure
(procedure _o3 line 4)
(Simulator run line 4)
invoked from within
 $ns run
(file example.tcl line 60)

 I just download the example script without any modifization.

 If I comment out the commands
 #$ns rtmodel-at 1.0 down $n(1) $n(2)
 #$ns rtmodel-at 2.0 up $n(1) $n(2)
 The example can run succefully.

 How can this happen?
 Thanks very much!






Re: [ns] RTP over wireless connection between two nodes

2011-05-10 Thread pebbles


Thanx a lot for your answer!

I used PUMA, but I think there's sth wrong with the packet order. I also saw
too many RTP packets and too few RTCP.
-- 
View this message in context: 
http://old.nabble.com/RTP-over-wireless-connection-between-two-nodes-tp31407109p31586209.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] How to pass multiple objects from oTcl to c++ ???

2011-05-10 Thread lukman_hanif

Hi,

Anybody knows how to pass multiple objects from oTcl to c++ ??

For example I want to retrieve 2 link head object ( link_($src1:$dst1) and  
link_($src2:$dst2) ) from oTcl calling from C++ Simulator class

NsObject* Simulator::getTheLinks(ParentNode *src1, int dst1, ParentNode 
*src2, int dst2 ) {

Tcl tcl = Tcl::instance();
tcl.evalf([Simulator instance] get-link-head %d %d %d %d, 
src1-nodeid(), dst1, src2-nodeid(), dst2);

}

Assume that the Simulator get-link-head instproc will return 2 links head in a 
form of list or arrays 

return links [list  link_($src1:$dst1) link_($src2:$dst2)]

So now how to retrieve those 2 links head  and associate them to different C++ 
NsObject *pointers using tcl.result() ??? 


[ns] Segmentation fault error..

2011-05-10 Thread yugesh gowda

Hi I am doing some project in Ns2..
I have attached ma project files below..
When i run the program it gives segmentation fault..
It is supposed to be run for 100s..
If any changes are to be done please inform me..
Thanx in advance.
Urgent...


Re: [ns] How to change energy config of perticular mobile node in

2011-05-10 Thread Clederson

Since the node-config is set in the Simulator instance, the first
thing that comes to my mind is to set up node-config in Simulator
instance for every single node you want and then start your
simulation.

I'm pretty sure this is not the best way.

On Tue, May 10, 2011 at 8:42 PM, Bipul Chandra bipu...@gmail.com wrote:

 Hi,

 I am doing my simulation on ad-hoc network and i am using NS-2.  I am
 creating a bunch of mobile nodes.
 However, i don;t want all of these nodes to have same initial energy.
 I want to have them different initial energy

 Do any one knows how to override the initial config of a node ?
 Any suggestions will be heartily welcomed.

 Regards,
 Bipul





-- 
Clederson



Re: [ns] node's range

2011-05-10 Thread Clederson

This might help you:

http://mailman.isi.edu/pipermail/ns-users/2004-July/043516.html

On Tue, May 10, 2011 at 9:59 AM, s s parvazt...@yahoo.com wrote:

 in the name of God

 Hi friends I want to change the node's range in wireless network .how I can
 change it?

 Best Regards
 Sarah




-- 
Clederson



Re: [ns] [Wireless - AODV] HOWTO stop simulation right after a node dies?

2011-05-10 Thread Clederson

Thank you very much for your answer.
My problem is now solved!

[]'s

On Sat, May 7, 2011 at 11:43 AM, fivos fivos@gmail.com wrote:
 My previous answer is wrong i think but you get the point. You need to
 return (TCL_ERROR) at the c++ function that was called by TCL.
 You can then catch the error at your tcl script and do what you want
 when that error is raised.


 On Sat, May 7, 2011 at 5:40 PM, fivos fivos@gmail.com wrote:
 try : return (TCL_ERROR);
 instead of:  exit(1);

 On Sat, May 7, 2011 at 4:53 PM, Clederson clederso...@gmail.com wrote:
 In my case it'd be stopping completely the simulation.
 I've been trying to abort the execution in the Mobilenode::log_energy 
 method.
 I'm doing something like this:
 void
 MobileNode::log_energy(int flag)
 {
  if (!log_target_)
    return;
  Scheduler s = Scheduler::instance();
  if (flag) {
 //    sprintf(log_target_-pt_-buffer(),N -t %f -n %d -e %f, s.clock(),
    sprintf(log_target_-pt_-buffer(),N -t %f -n %d -e %.20f, s.clock(),
      address_, energy_model_-energy());
  } else {
    sprintf(log_target_-pt_-buffer(),N -t %f -n %d -e 0 , s.clock(),
      address_);
  }
 // MY INCLUDED CODE
  if (energy_model_-energy() = 0) {
    fprintf(stdout,DEATH -t %f -n %d -e %.20f, s.clock(),
      address_, energy_model_-energy());
    fprintf(stderr,DEATH -t %f -n %d -e %.20f, s.clock(),
      address_, energy_model_-energy());
    exit(1);
  }
 // END OF MY INCLUDED CODE
  log_target_-pt_-dump();
 }

 What modifications do you suggest?

 Thank you for your reply.

 On Sat, May 7, 2011 at 9:45 AM, fivos fivos@gmail.com wrote:
 You mean stopping completely or pausing and then resuming the
 simulation? I am positive the first is possible with some slight
 modifications while the second is doubtful or at least very hard to
 accomplish. Maybe someone else can shed some light on the second
 possibility.

 cheers, Fivos

 On Sat, May 7, 2011 at 3:18 PM, Clederson clederso...@gmail.com wrote:

 Hello,

 I'd like to know how could I stop the simulation in the moment a mobile 
 node
 have energy = 0.
 In tcl scripts I've only seen people stopping the simulation by time.

 Is it possible to be done?

 Thank you in advance.


 --
 Clederson





 --
 Clederson






-- 
Clederson