Re: [ns] awk script to calculate total frames sent ?

2013-03-05 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

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://WhatILearnFromReading.com
http://www.ece.ubc.ca/~teerawat



On Mar 5, 2013, at 6:30 PM, shiny wrote:

 
 hi all,
 anybody have an awk script to calculate total frames sent..
 
 --thanx
 With Regards,
 John Shiny.J
 




Re: [ns] awk script to read flags

2013-01-30 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

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://WhatILearnFromReading.com
http://www.ece.ubc.ca/~teerawat



On Jan 30, 2013, at 11:23 AM, abinaya rajendhiran wrote:

 
 hi all,how to write an awk script to read flag bit set (i.e,C,N,A) in
 trace file of NS2???
 -- 
 Reagards.,
 R.Abinaya,B.Tech,(M.E)
 




Re: [ns] urgent plzzzz

2012-11-01 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

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 Nov 1, 2012, at 1:40 PM, abinaya rajendhiran wrote:

 
 can anyone send me the awk script to calculate bandwidth for wireless in
 ns2.34??
 -- 
 Reagards.,
 R.Abinaya,B.Tech,(M.E)
 




Re: [ns] awk script for end2end delay and throughput

2012-04-18 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

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 Apr 18, 2012, at 9:42 PM, Mouaz Chamieh wrote:

 
 Dear NS2-Users,
 
I am evaluating GPSR performance, and I need an awk script or any other
 reliable script or program that enables me to calculate packets delay and
 throughput from a specific source to a specific destination, thanks in
 advance.
 
 BR,
 Mouaz Chamieh,
 




Re: [ns] Trace file output help for beginner

2012-04-17 Thread Teerawat@UBC

Hi,

Please have a look here. It may help:

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

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 Apr 12, 2012, at 4:00 PM, mbasitrizvi wrote:

 
 
 
 Im getting this for example:
 
 + 2.82793 0 1 cbr 210 --- 0 0.0 1.0 751 751
 
 According to the documentation :
 
 + means enqueue
 2.82793 is the time
 0 is then src
 1 is then dest
 cbr is then packet type
 210 is then packet size
 
 after that the dashes confuse me... and what comes after it? 
 
 Im trying to make sense from here:
 http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats
 
 
 im running a simple script:
 
 http://pastebin.com/tCC7q95f 
 
 -- 
 View this message in context: 
 http://old.nabble.com/Trace-file-output-help-for-beginner-tp33649856p33649856.html
 Sent from the ns-users mailing list archive at Nabble.com.
 



Re: [ns] Changes made not taking effect after compile

2012-04-17 Thread Teerawat@UBC

Hi 

If you would like to add a new module into NS2, please read

http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2

I hope this will help.

Best Wishes,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.ece.ubc.ca/~teerawat
http://www.t-issariyakul.blogspot.com
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
On Apr 16, 2012, at 6:17 PM, Carlo Santos wrote:

 
 Good day.
 
 I am having trouble with my NS-2 installation. Every time I make changes,
 the changes I made do not seem to be reflected after compiling
 (./configure; make;). I tried adding printf in the 802_11 mac but
 specifically in the Mac802_11::command but when I execute a simulation
 script, the added printf does not appear.
 
 -- 
 Carlo Santos
 



[ns] [NS2-ANS]Re: adding components for ns2

2012-04-09 Thread Teerawat@UBC

Hi 

If you would like to add a new module into NS2, please read

http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2

You might want to check out the reasons behind Tcl error messages from the link 
below:

- General error message interpretation: 
http://www.ns2ultimate.com/post/419191200/tcl-error-message-in-ns2

To fix the error, please read the following posts:

- Invalid command name: 
http://www.ns2ultimate.com/post/995668627/error-message-invalid-command
- To add new OTcl class: 
http://www.ns2ultimate.com/post/689847378/c-and-otcl-linkage-binding-c-and-otcl-classes
- To add an OTcl command: 
http://www.ns2ultimate.com/post/801303612/c-and-otcl-linkage-otcl-commands-getting-started
- To add a new module: 
http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2

I hope this will help.

Best Wishes,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.ece.ubc.ca/~teerawat
http://www.t-issariyakul.blogspot.com
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
On Apr 9, 2012, at 5:28 AM, savan kiran wrote:

 
 i have followed the steps given in the Marc Greis tutorial to the last word
 and put the renamed ping files into a directory named
 ns-allinone-2.35/ns2-2.35/eammh/
 
 i've made the necessary changes in files like packet.h etc...
 my files are eammh.cc and eammh.h
 after doing make clean,make depend,make
 the eammh.o file is being created successfully.
 but even then i get the following error whenever i try to include
 Agent/Eammh in a tcl file.
 
 error:
 
 invalid command name Agent/Eammh
 while executing
 Agent/Eammh instproc recv {from rtt} {
 $self instvar node_
 puts node [$node_ id] received ping answer from \
 $from with round-trip-ti...
 (file eammh.tcl line 32)
 
 what is the problem?
 
 -- 
 $@V@N
 




Re: [ns] how to use awk script

2012-04-04 Thread Teerawat@UBC

Hi Robin,

Isn't that obvious? It's because your denominator is zero. You can't compute 
anything with zero denominator. The result would be infinity.

Best Regards,

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 Apr 5, 2012, at 12:02 AM, robin turna wrote:

 
 
 i m using awk script to calculate values of certain parameters but it gives 
 me error: Fatal division by zero ,,can you help me regarding this. waiting 
 for  reply
 
 with regards 
 robin
 
  BEGIN {
sends=0;
recvs=0;
   
 routing_packets=0.0;
droppedBytes=0;
droppedPackets=0;
highest_packet_id =0;
sum=0;
recvnum=0;
  }

   {
   time = $3;
   packet_id = $41;

   # CALCULATE PACKET DELIVERY FRACTION
   if ((
 $1 == s)   ( $35 == cbr )  ( $19==AGT )) {  sends++; }

   if (( $1 == r)   ( $35 == cbr )  ( $19==AGT ))   {  recvs++; }

   # CALCULATE DELAY 
   if ( start_time[packet_id] == 0 )  start_time[packet_id] = time;
   if (( $1 == r)   ( $35 == cbr )  ( $19==AGT )) {  
 end_time[packet_id] = time;  }
else {  end_time[packet_id] = -1;  }

   # CALCULATE TOTAL DSR OVERHEAD 
   if (($1 == s || $1 == f)  $19 == RTR  $35 ==DSR) 
 routing_packets++;

   # DROPPED DSR PACKETS 
   if (( $1 == d )  ( $35 == cbr )   ( $3  0 ))
   
 {
  droppedBytes=droppedBytes+$37;
  droppedPackets=droppedPackets+1;
}

#find the number of packets in the simulation
   if (packet_id  highest_packet_id)
  highest_packet_id = packet_id;
   }

   END {

   for ( i in end_time )
   {
   start = start_time[i];
   end = end_time[i];
   packet_duration = end - start;
   if ( packet_duration  0 )  
   {sum += packet_duration;
recvnum++; 
   }
   }
   
 
  delay=sum/recvnum;
  NRL = routing_packets/recvs;  #normalized routing load 
  PDF = (recvs/sends)*100;  #packet delivery ratio[fraction]
  printf(send = %.2f\n,sends);
  printf(recv = %.2f\n,recvs);
  printf(routingpkts = %.2f\n,routing_packets++);
  printf(PDF = %.2f\n,PDF);
  printf(NRL = %.2f\n,NRL);
  printf(Average e-e delay(ms)= %.2f\n,delay*1000);
  printf(No. of dropped data (packets) = %d\n,droppedPackets);
  printf(No. of dropped data (bytes)   = %d\n,droppedBytes);
   }
 




Re: [ns] awk script for Tora old trace file

2012-04-02 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 Apr 2, 2012, at 11:32 AM, smita singh wrote:

 
 hi,
 
 I am simulating Tora protocol and using old trace file format,i want awk
 script to calculate packet delivery ratio,end to end delay number of
 dropped packets and normalized routing load.If anyone is having pls help me
 its very urgent.plss help me.
 
 
 Regards
 Smita Singh
 email id- smi126@gmail.com
 




Re: [ns] From where Connector::drop_ is initialized .?

2012-04-01 Thread Teerawat@UBC

Hi Pathik,

If you'd like to learn about packet forwarding mechanism in NS2, please read

http://www.ns2ultimate.com/post/9620995373/packet-forwarding-mechanism-in-ns2-main-post

You will find the answer you need in the final post of this series.

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 Mar 31, 2012, at 12:16 PM, Pathik Shah wrote:

 
 Dear all,
 
 We know in function Connector::drop(Packet* p, const char *s), if
 *drop_* iszero then it will pass the packet to the object using
 *drop_*-recv(p,s).
 I want to know *where* and *when* it was *initialized*?
 
 Hoping for the best help asap.
 
 *p.s.* : It is clear to me that when we set up a simple simulation, we do
 not write for the initialization of the drop_. Although it is initialized.
 So I am asking about the insight.
 
 -- Pathik Shah
 



Re: [ns] Calculate TCP/UDP throughput in mobile/wireless/ad hoc network?

2012-03-26 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

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 Apr 5, 2012, at 7:10 PM, rajendra wrote:

 
 Please send me a tcl script for calculating throughput
 




Re: [ns] Fwd: Implementing Round Robin Scheduler

2012-03-19 Thread Teerawat@UBC

HI Richard,

So, what is the question?

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 Mar 19, 2012, at 11:43 PM, Ricard Alegre wrote:

 
 Dear all,
 
 I wanted to implement a Round Robin packet scheduler just following the
 process in the book Introduction to Network Simulator ns2 from Ekran
 Hossain:
 
 According to the process I have created the following *.cc and *.h files:
 
 *//classifier-flow.h*
 
 #ifndef ns_gw_flow_classifier_h
 #define ns_gw_flow_classifier_h
 
 #include packet.h
 #include ip.h
 #include classifier.h
 
 class FlowClassifier : public Classifier {
 protected:
int classify(Packet *p);
 };
 
 #endif
 
 
 *//classifier-flow.cc*
 #include gw_flow_classifier.h
 #include stdlib.h
 
 
 static class FlowClassifierClass : public TclClass {
 public:
FlowClassifierClass() : TclClass(Classifier/Flow) {}
TclObject* create(int, const char*const*) {
return (new FlowClassifier());
}
 } class_flow_classifier;
 
 
 
 int FlowClassifier::classify(Packet *p) {
return hdr_ip::access(p)-flowid();
 }
 
 
 *//pkt-sched.h*
 
 #ifndef ns_gw_pkt_sch_h
 #define ns_gw_pkt_sch_h
 
 #include packet.h
 #include ip.h
 #include connector.h
 #include queue.h
 
 #define NS 10
 
 
 class PktScheduler : public Connector {
 public:
PktScheduler();
virtual void handle(Event*);
virtual void recv(Packet*, Handler*);
 protected:
void send(int fid, Handler* h);
virtual void resume();
int getFlowID(Packet* p) {return hdr_ip::access(p)-flowid();};
virtual int nextID() = 0;
Handler* qh_[NS];
Packet* pkt_[NS];
int blocked_;
int active_flow_id_;
 };
 
 //RR
 class RRScheduler : public PktScheduler {
 public:
 RRScheduler();
 private:
virtual int nextID();
int current_id_;
 };
 
 #endif
 
 
 *//pkt-sched.cc*
 #include gw_pkt_sch.h
 
 PktScheduler::PktScheduler()
 {
int i;
for (i=0;iNS ;i++) {
pkt_[i] = 0;
qh_[i]=0;
}
blocked_ = 0;active_flow_id_ = -1;
 }
 
 void PktScheduler::recv(Packet* p, Handler* h)
 {
int fid = getFlowID(p);
pkt_[fid] = p;qh_[fid] = h;
if (!blocked_) {
send(fid,this);
blocked_ = 1;
active_flow_id_ = fid;
}
 }
 
 
 void PktScheduler::send(int fid_idx, Handler* h)
 {
Connector::send(pkt_[fid_idx],h);
pkt_[fid_idx] = 0;
 }
 
 
 void PktScheduler::handle(Event*) { resume(); }
 
 void PktScheduler::resume()
 {
qh_[active_flow_id_]-handle(0);
int index = nextID();
blocked_ = 0;
if (index = 0) {
send(index,this);
blocked_ = 1;
active_flow_id_ = index;
}
 }
 
 //RR
 RRScheduler::RRScheduler()
 {
current_id_ = -1;
 }
 static class RRSchedulerClass: public TclClass {
 public:
RRSchedulerClass() : TclClass(PktScheduler/RR) {}
TclObject* create(int, const char*const*) {
return (new RRScheduler());
}
 } class_rr_scheduler;
 
 int RRScheduler::nextID()
 {
int count = 0;
current_id_++;current_id_ %= NS;
while((pkt_[current_id_] == 0)(count  NS)){
current_id_++;current_id_ %= NS;
count++;
}
if (count == NS)
return -1;
else{
return current_id_;
}
 }
 
 *And the following Otcl file:*
 
 *#ns-link.tcl*
 
 Class LinkSch -superclass Link
 
 LinkSch instproc init {src dst bw delay num_queues} {
$self next $src $dst
$self instvar link_ queue_ head_ toNode_ ttl_
$self instvar drophead_
$self instvar num_queues_ sch_ flow_clsfr_
set ns [Simulator instance]
set head_ [new Connector]
set drophead_ [new Connector]
set link_ [new DelayLink]
set ttl_ [new TTLChecker]
set flow_clsfr_ [new Classifier/Flow]
set sch_ [new PktScheduler/RR]
set num_queues_ $num_queues
$head_ set link_ $self
$drophead_ target [$ns set nullAgent_]
$head_ target $flow_clsfr_
for {set i 0} {$i  $num_queues_} {incr i} {
set queue_($i) [new Queue/DropTail]
$queue_($i) target $sch_
$queue_($i) drop-target $drophead_
}
$sch_ target $link_
$link_ target $ttl_
$link_ drop-target $drophead_
$link_ set bandwidth_ $bw
$link_ set delay_ $delay
$ttl_ target [$dst entry]
$ttl_ drop-target $drophead_
 }
 
 LinkSch instproc add-flow { fid } {
$self instvar queue_ flow_clsfr_
$flow_clsfr_ install $fid $queue_($fid)
 }
 
 Simulator instproc sch-link { n1 n2 bw delay num_queues} {
$self instvar link_ queueMap_ nullAgent_ useasim_
set sid [$n1 id]
set did [$n2 id]
set link_($sid:$did) [new LinkSch $n1 $n2 $bw $delay $num_queues]
set pushback 0
$n1 add-neighbor $n2 $pushback
 }
 
 Simulator instproc add-flow { n1 n2 prio } {
$self instvar link_
set sid [$n1 id]
set did [$n2 id]
$link_($sid:$did) add-flow $prio
 }
 
 *The output of the compilation is correct. 

Re: [ns] Goodput script

2012-03-14 Thread Teerawat@UBC

Hi,

If you are interested in learning how to compute throughput in NS2, please read

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

You may have to apply it to compute TCP goodput.

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 Mar 14, 2012, at 10:05 PM, Ghassan Akrem wrote:

 
 Dear NS users..
  
 I'm search for workable script to measure the goodput for one or more TCP 
 variant
  
 any one can help to provide this tcl script?
  
 Thanks
 




Re: [ns] Need help Regarding Use of NS2 Graph.

2012-02-22 Thread Teerawat@UBC

Hi,

To process NS2 results, I suggest you to read the following post:

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 Feb 23, 2012, at 7:31 AM, maneshwarakumaran wrote:

 
 Hi,
 
 I need help in how to use graph in NS2. I need to plot the outputs like no
 of packets send vs time and all those things. Kindly help me if you know
 how to use graph for ns2
 
 Thanks
 MWK
 




Re: [ns] Need awk script of new trace file

2012-02-19 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 Feb 20, 2012, at 12:49 PM, Bety Barreto Soares wrote:

 
 hi all,
 
 could anyone provide or send me awk script of (end-to-end delay, packet 
 delivery fraction, routing overhead and throughput)? i have done aodv.tcl 
 script and got the result of new trace file format, all i need is to have 
 those metrics to analyze the performance of aodv and aomdv.
 Thank you very much in advance
 Regards 
 
 
 Bety
 




Re: [ns] warning: no class variable

2011-11-30 Thread Teerawat@UBC

HI,

Check your variable name. It should be var_myAgent, not var_mainAgent.

Best Regards,

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 Nov 30, 2011, at 7:23 PM, K. M. wrote:

 
 
 Hi all,
 
 
 I defined the following agent
 
 
 Main_Agent::Main_Agent() : Agent(PT_UDP) {
...
 bind(var_mainAgent, var_mainAgent);
 ...
 }
 
 
 I also defined the following agent which inherits from the previous
 
 
 My_Agent::My_Agent() : Main_Agent() {
...
   bind(var_myAgent, var_myAgent);
 ...
 }
 
 
 
 When I execute my file I get the following message
 
 
 warning: no class variable Agent/My_Agent :: var_mainAgent
 
 
 I believe this is because the Main_Agent's constructor is not executed when I 
 call the My_Agent's constructor. How do I solve this?
 
 
 Kind Regards
   
   
 




Re: [ns] how to get the value of a variable present in C++ code to a TCl file.

2011-11-10 Thread Teerawat@UBC

Hi,

You can bind the variables in C++ and OTcl. Please read the following posts:

http://www.ns2ultimate.com/post/774980608/c-and-otcl-linkage-binding-variables

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 Nov 9, 2011, at 12:34 AM, Divya G wrote:

 
 Hello friends..!!
 
 Can you please help me how to get the value of a variable which is present
 in C++ code (aodv.cc) to a TCl file.
 Any help is really appreciated. Can you please give me some response as
 soon as possible, since its VERY VERY URGENT...
 
 Thanks  Regards,
 



[ns] [NS-ANS] Re: Q configuration of ns-2 after changing protocol source code

2011-10-28 Thread Teerawat@UBC

Hi,

If you would like to add a new module into NS2, please read
http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2

You also need  to learn about how C++ and OTcl are bound. Please read the 
series of blog posts indicated below:

http://www.ns2ultimate.com/post/648508440/c-and-otcl-linkage-why-two-languages

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 Oct 26, 2011, at 12:10 PM, aref hp wrote:

 
 Dear all,
 I'm going to change DSDV routing protocol source code in ns-2. After
 changing the source code I have done these steps for ns-2 in the directory
 of ns-2.
 1- sudo make clean
 2-sudo ./configure
 3-sudo make
 4-sudo ./validate
 
 But after running the scenario which I have run with original DSDV, I
 get exactly same result as before.  ns-2 with this protocol
 works exactly like before.
 Please help me to how should I run the new source code of protocol
 
 Thanks in advanced
 Aref
 




Re: [ns] setdest command under ubuntu

2011-10-28 Thread Teerawat@UBC

Hi Javier,

The utility setdest is located in the directory 
ns-2.35/indep-utils/cmu-scene-gen and 
ns-2.35/indep-utils/cmu-scene-gen/setdest. In future opportunities, if you'd 
like to find a certain file in NS2, you can you find utility in Linux. The 
instruction is provided below:

http://www.ns2ultimate.com/post/12062783403/linux-find-utility-looking-for-a-certain-file-e-g

Best Wishes,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.ece.ubc.ca/~teerawat
http://www.t-issariyakul.blogspot.com
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
On Oct 27, 2011, at 8:58 PM, Javier Cancio del Busto wrote:

 
 Hi,
 
 
 I'm looking for setdest command under Ubuntu 11.04. I've installed ns-2.35
 from official ubuntu repositories, but I couldn't find setdest executable in
 order to generate mobility traces for my ad-hoc simulations. I've been
 looking for this tools in google but I found nothing.
 
 Any idea of how can I compile it? I think it's something like perl/python
 script instead of a .c/cpp code, but anyway I don't know where can I get it.
 
 
 Thanks in advance,
 
 -- 
 ==
  Javier Cancio del Busto
 ==
 



[ns] [NS-ANS] Re: Setdest (mobility model)

2011-10-28 Thread Teerawat@UBC

Hi,

The utility setdest is a standalone utility. It must be invoked at the command 
prompt. The utility is located in the directory 
ns-2.35//indep-utils/cmu-scen-gen/setdest. Go to that directory and execute

./setdest -v 1 -n 50 -p 0 -M 20 -t 900 -x 1500 -y 300

The utility will create Tcl mobility statements for you. You can copy these 
commands and insert into your NS2 Tcl simulation script. 

But generally, the above run would create too many Tcl statements. You can 
store all the statements in a file 'out.txt' by running

./setdest -v 1 -n 50 -p 0 -M 20 -t 900 -x 1500 -y 300  out.txt

Then you can copy the mobility statements from the file out.txt to your NS2 Tcl 
simulation script.

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 Oct 21, 2011, at 12:11 AM, samira h wrote:

 
 Dear all,
 Colud you please help me how to use command setdest like setdest -v 1 -n 50
 -p 0 -M 20 -t 900 -x 1500 -y 300 in a ns program? I got the error: invalid
 command name setdest.
 




[ns] [NS-ANS] Re: integrate my standalone application written in C++

2011-10-02 Thread Teerawat@UBC

Hi 

If you would like to add a new module into NS2, please read

http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2

I hope this will help.

Best Wishes,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.ece.ubc.ca/~teerawat
http://www.t-issariyakul.blogspot.com
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
On Oct 2, 2011, at 1:50 PM, manishsingh chaudhary wrote:

 
 hi to all ,
 
 I want to integrate my standalone application written in C++
 to NS2.34.
 
 what are possible options for the
 integration. preferably easiest one,
 please provide step by step explaination .
 
 I just need to test my application
 within NS2.34 Simulation and get some results.
 
 with kind regards,
 manish
 



[ns] [NS2-ANS]Re: segmentation fault

2011-09-30 Thread Teerawat@UBC

Hi,

Segmentation fault is usually due to memory access violation. A common
example is as follows.

int x[10];
x[20] = 0;

where you create an array x with 10 slots, but try to access 20th slot of x.

Another cause is the misconfiguration. You might send packets to a object which 
does not exist.

For more details, please read

http://www.ns2ultimate.com/post/567918455/segmentation-fault-a-common-error-in-ns2

Hope this will help.

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 Sep 29, 2011, at 8:40 PM, manishsingh chaudhary wrote:

 
 hi to all
 
 there was error during compilation
 like
 *segmentation fault*
 
 what to do please help me out.
 thanks
 
 with regard
 manish
 




[ns] [NS-ANS]Re: sending frames in NS2

2011-09-30 Thread Teerawat@UBC

Hi,

If you’d like to learn about how NS2 creates, forwards, and destroys packets, 
please read the following post:

http://www.ns2ultimate.com/post/9620995373/packet-forwarding-mechanism-in-ns2-main-post

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 Sep 28, 2011, at 1:08 PM, Divya G wrote:

 
 Hello sir,
 
 Can you please help me in writing the code to send frames from one node to
 other in NS2 simulation.
 
 Thanks  Regards,
 Divya
 




[ns] [NS-ANS]Re: integration of program written in c++

2011-09-30 Thread Teerawat@UBC

Hi 

If you would like to add a new module into NS2, please read

http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2

I hope this will help.

Best Wishes,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.ece.ubc.ca/~teerawat
http://www.t-issariyakul.blogspot.com
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
On Sep 28, 2011, at 10:26 AM, manishsingh chaudhary wrote:

 
 Hi ,
 
 I want to integrate my standalone application written in C++
 to NS2.34.
 Can someone please help me with this, what are possible options for the
 integration. preferably easiest one, I just need to test my application
 within NS2.34 Simulation and get some results.
 
 with kind regards,
 manish
 



[ns] [ns-ans] Re: error statement

2011-09-28 Thread Teerawat@UBC

Try to change 

$ns runs 

to

$ns run

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 Sep 29, 2011, at 4:19 AM, manishsingh chaudhary wrote:

 
 hi to all
 
 there was error during compilation
 
   (_o3 cmd line 1)
invoked from within
 _o3 cmd runs
invoked from within
 catch $self cmd $args ret
invoked from within
 if [catch $self cmd $args ret] {
 set cls [$self info class]
 global errorInfo
 set savedInfo $errorInfo
 error error when calling class $cls: $args $...
(procedure _o3 line 2)
(SplitObject unknown line 2)
invoked from within
 $ns runs 
(file wireless1.tcl line 146)
 please sort out the problem .it will be great help for me.
 thanks
 
 with regard
 manish
 



[ns] [NS-ANS] Re: [NS-ANS] counting control packet in trace file

2011-09-09 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 Sep 9, 2011, at 6:07 PM, Mariam A. Moustafa wrote:

 
 This may help, http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats
 -
 
 #explanation of trace file
 #ACTION: [s|r|D]: s -- sent, r -- received, D -- dropped
 #WHEN: the time when the action happened
 #WHERE: the node where the action happened
 #LAYER: AGT -- application,
 # RTR -- routing,
 # LL  -- link layer (ARP is done here)
 # IFQ -- outgoing packet queue (between link and mac layer)
 # MAC -- mac,
 # PHY -- physical
 #flags:
 #SEQNO: the sequence number of the packet
 #TYPE: the packet type
 # cbr -- CBR data stream packet
 # DSR -- DSR routing packet (control packet generated by routing)
 # RTS -- RTS packet generated by MAC 802.11
 # ARP -- link layer ARP packet
 #SIZE: the size of packet at current layer, when packet goes down, size
 increases, goes up size decreases
 #[a b c d]: a -- the packet duration in mac layer header
 # b -- the mac address of destination
 # c -- the mac address of source
 # d -- the mac type of the packet body
 # energy [ energy w ei x es y et z er m ]:
 # w -- the total energy of the node
 # x -- the total energy consumed while the node was in idle state
 # y -- the total energy consumed while the node was in sleep state
 # z -- the total energy consumed during packet transmission
 # m -- the total energy consumed during packet reception
 # flags:
 #
 #[..]: [
 # source node ip : port_number
 # destination node ip (-1 means broadcast) : port_number
 # ip header ttl
 # ip of next hop (0 means node 0 or broadcast)
 # ]
 
 
 Dear all,
 I wanted to count control packets in the trace file by using awk file,
 but I don't know which packets are control packet as the most type of
 packets are cbr from routing layer (RTR).can anyone tell me which kinds of
 packet are control packet in trace file?
 Regards,
 
 
 
 
 
 




[ns] [NS-ANS] Re: new object in ns2

2011-09-05 Thread Teerawat@UBC

Hi 

If you would like to add a new module into NS2, please read

http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2

I hope this will help.

Best Wishes,

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


On Sep 5, 2011, at 5:30 AM, Natalya wrote:

 
 
 Hello all,
 
 I need to add the new object in ns2. Can you tell me please the general
 steps to register my class ?
 
 Thanks,
 Natalya
 -- 
 View this message in context: 
 http://old.nabble.com/new-object-in-ns2-tp32397841p32397841.html
 Sent from the ns-users mailing list archive at Nabble.com.
 




[ns] [NS-ANS] Re: NAM : NO DISPLAY NAME AND NO $DISPLAY ENVIRONMENT VARIABLE

2011-09-02 Thread Teerawat@UBC

Hi,

You have to install NAM (Network Animator). To test whether, NAM was installed 
correctly. Please try to type

nam

at the command prompt.

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 Sep 2, 2011, at 1:36 PM, Bety Barreto Soares wrote:

 
 
 
 still in the same example myfirst_ns.tcl, i have changed and do some change 
 but when run it showed that :
 
 NAM : NO DISPLAY NAME AND NO $DISPLAY ENVIRONMENT VARIABLE
 
 
 I HAVE BROWSED ON THE INTERNET BUT I GOT NO SOLUTION...PLEASE HELP ME OUT
 
 THANK YOU
 




Re: [ns] NS-Users Q-process Guideline

2011-08-16 Thread Teerawat@UBC

Dear Tom,

Thanks for your comments. It is quite hard to find a moderator, indeed. It 
would be hard to do so. I'm not quite sure how to fix the problem, except for 
putting [NS-ANS] tag on the subject. A lot of mail clients can do the filter 
and shows on the answer. 

In fact, what I have done so far is as follows. I've been blogging about NS2 
regularly at ns2ultimate.com. When I see the question that can be answered with 
my blog, I just refer those people to my blog. For those who do not ask 
responsibly, e.g., please send me the source code of  protocols, I direct 
them to my blog post on Ethic. 

http://www.ns2ultimate.com/post/535741560/assistance-and-ethics

Best Regards,
Teerawat





On Aug 16, 2011, at 4:03 PM, Mariam A. Moustafa wrote:

 
 Dear Tom,
 
 Thanks a lot for your important points, I encourage the point of WIKI too
 much..., concerning the admins or moderated, how can we reach them?!
 
 and really Greate Work @ NS3-Wiki, we hope the same here...
 
 Thanks dear,
 Mariam
 
 
 
 On Mon, Aug 15, 2011 at 6:16 PM, Tom Henderson t...@tomh.org wrote:
 
 
 On 08/15/2011 01:45 AM, Mariam A. Moustafa wrote:
 
 Dear Teerawat,
 
 Actually I have thought in this issue for a long time :)
 
 I think, there is an admin of this list and this is his responsability!!
 
 Else we have another silly choice, what about sending this guideline
 periodically, say at the start of each month. (I may do this silly task
 :( )
 to notify the new members and review with the older.
 
 In fact the really gain from this guideline is sending the answer using
 RELPY TO ALL, this will save the answers.
 
 Kindly, if you have any other suggestions, please share with us.
 
 Thanks
 Mariam
 
 
 Here are a few thoughts on this topic.  This issue has been around for
 as long as the list itself (~15 years) and admins have tried to deal
 with it through various mechanisms:
 
 - First-time posters bounce message
 - Monthly FAQ on ns-2 sent out automatically
 - Make people subscribe through a gateway web page that asks them to
 follow list rules. (http://www.isi.edu/nsnam/ns/ns-dev-list.html has
 done this for the developers list)
 
 Despite this, some people will always ask the list first, without
 searching.  This will be unavoidable in an unmoderated list.
 
 I think there are two basic options here:
 1) (moderated) more intrusive moderation of the list, and bouncing
 inappropriate questions from first-time posters with some suggestions
 about how they need to improve their question.  This is probably nicer
 for everyone on the list (improving signal to noise ratio) but is a lot
 of work for the moderator.
 2) (unmoderated) keep up with some combination of what we are doing now,
 perhaps with some updates from the ideas in this thread
 
 Unless someone or some small group of individuals wants to take on
 active moderation duties (note, I do not want to do this myself), I
 think that some of the ideas in this thread can be used to enhance what
 has already been done; namely, an (improved) monthly FAQ/posting
 guidelines reminder, also sent to new list members if possible upon
 successful subscription, the first time posters bounce script, and
 having people click through a web page with the posting rules, before
 getting to the subscription page.
 
 Another thing we have been doing occasionally on ns-3 is to try to
 answer some FAQs by writing the answers on a wiki page, and point people
 to this wiki in the reply, rather than answering in line on the list:
 http://www.nsnam.org/wiki/index.php/HOWTOs
 Then, people discover the presence of this wiki.  If someone wants to be
 a wiki curator of an ns-2 FAQ/HOWTO, we could set that up too.
 
 - Tom
 
 
 




Re: [ns] NS-Users Q-process Guideline

2011-08-14 Thread Teerawat@UBC

Dear Mariam,

Thanks a lot for the conclusion. It looks good to me. But we still have one 
problem. Where are we going to put this guideline? I mean, most of the new 
comers would come directly to this page, not reading this guideline. We need a 
place where we can point them to read this guideline.

Best Regards,

 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 Aug 14, 2011, at 1:19 AM, Mariam A. Moustafa wrote:

 
 Salam Alaikum wa Rahmatullahi wa Barakatuh,
 Dears NS-Users
 
 According to our discussion in the mail of  a subject [VIP] Discussion, We
 agreed on these guidelines to effectively manage the question's process on
 this mailing list
 
 Here is the rules: (please mention, if I forget a thing)
 ---
 
 *1- To minimize the trivial question, the asker should search the archiving
 first to find the answer else if doesn't exist, kindly pay some efforts and
 time to google for the answer else send here!*
 *
 *
 *2- The answer of elaborated questions will be sent for the all user not
 only the asker with a tag [NS-ANS]*
 *
 *
 *3- Homework and college's assignment are prevented to be solved here, only
 if a guidance for a piece of work.*
 
 That's all, hope to follow these rules for good utilizing this list, and
 thanks a lot for all active members for participating in expressing this
 guideline.
 
 
 At the end, we would like to thank Mohit Tahiliani for start following the
 rules on his reply [ns] [NS-ANS]: how to change the node color with energy
 consumption
 
 Thanks dears,
 hope the best for all of you
 Mariam
 




Re: [ns] [VIP] Discussion

2011-08-13 Thread Teerawat@UBC

Hi,

I agree. I would be great if we follow this guideline.  I also have one more 
rule to add: Put a tag [NS-ANS: ] in front  of the subject for the answer.

Best
Teerawat




On Aug 13, 2011, at 3:13 PM, Mariam A. Moustafa wrote:

 As it is a free-will, we can agree on rules which enhance the asking process!
 
 we have two ways:
 
 1- after his problem is solved the asker is responsible for forwarding the 
 detailed answer (only one detailed full answer).
 
 2- those who answered even if a partial answer, send the answer to all not in 
 private. (so we will have many of partial answers by compiling them we can 
 get the full answer).
 
 else this archiving is useless and becomes full of repeated questions with no 
 answers! 
 
 and if we lost the active members here, the list will die :)
 
 
 it is just a suggestion!
 Thanks all,
 Mariam
 
 On Sat, Aug 13, 2011 at 9:33 AM, Teerawat@UBC teera...@ece.ubc.ca wrote:
 Hi,
 
 I think what Mariam means is to post the solved problem. Although, people use 
 REPLY ALL to post the answer. We don't know whether the answer really solve 
 the solution. As for me, most of the time, I only give a partial answer, 
 leaving the askers something to think of by themselves. This forces the 
 askers not to rely entirely on anwerers. But again, NS2 mailing list exists 
 on free-will only. We can't force people to do things (even if they are good 
 things). In the end, it would be up to people on the list.
 
 Best,
 Teerawat
 On Aug 13, 2011, at 12:46 PM, Fahimeh Akbari wrote:
 
 
 
 
  Hi every body (salam)
  I think It's completely true, but in another groups (like yahoogroup) the 
  sender of e-mail is yahoogroup, so when we reply to e-mail it will forward 
  to group, and then all it's users.
 
  I think it must be like that in ns-users group!
 
  with special thanks to mariam: Fahimeh
 
 
  
  From: Mariam A. Moustafa elansary@gmail.com
  To: ns-users@ISI.EDU
  Sent: Friday, August 12, 2011 12:43 PM
  Subject: [ns] [VIP] Discussion
 
 
  Salam Alaikum wa Rahmatullahi wa Barakatuh, Dears NS2 users, Shortly, in our
  archive we have a lot of questions and few of them are attached with thier
  answers!! Also as an open community we rely on the existance of expert and
  active persons.. due to the dynamic nature of this mailing list we need to
  arrange the process of asking and answering a question here is an initial
  suggestion and the subject is open for discussion.. what is about the person
  who ask the question and get a full and correct answer, S/he is the
  responsible to thank the list by forward the answer after it works.
  depending in the honesty on the memebers! what do you see?? Thanks Mariam
 
 
 
 
 
 -- 
 Best regards,
 
 Mariam Ahmed Moustafa
 
 Software Engineer, RD Department
 
 Integrated Solutions For Ports
 
 Tel: +(203) 4293846/4294632 Extn: 207
 
 Email:  mka...@isfpegypt.com
 
 Web Site: www.isfpegypt.com



Re: [ns] awk fille for calculating pdr, avg end to end delay, and throughput

2011-08-03 Thread Teerawat@UBC

HI Sumit,

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 Jul 28, 2011, at 6:52 PM, sumit singh wrote:

 
 Hey, Please anybody send me the awk file for calculating average end to end
 delay, throughput and packet delivery ratio for analyzing dsr trace file.
 I have downloaded some awk files from internet but it show segmentation
 fault with dsr trace file. But it works fine with AODV trace file.
 thanxs  in advance.
 
 -- 
 with regards,
 Sumit Kumar Singh.
 




Re: [ns] Sending RREQ periodically, any suggestion?

2011-05-25 Thread Teerawat@UBC

Hi Mohamed,

You need to have the list of destination address and you can call the following 
function for all your destination

sendRequest(dst)

Do it when the timer expires.

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 23, 2011, at 2:04 AM, Mohamed Ibrahim Salman wrote:

 
 
 Hi,
 I want to send out a RREQ periodically from only one specific node, any 
 suggestion?
 I made a Timer, but How to loop through all the nodes in the network to send 
 a RREQ for them if they are available.
 
 




[ns] [NS-ANS] Re: [NS2]What is meaning in Ns-default.tcl (tcl\lib):LL set delay_

2011-05-25 Thread Teerawat@UBC

Hi Bruce, 

This statement set the default value of the class variable 'delay_'  all 'LL' 
objects to be 25e-6 s.

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 9, 2011, at 9:13 AM, ¤終於aware wrote:

 
 Hi,
 What is  meaning in Ns-default.tcl (tcl\lib):LL set delay_
25us? I analyzed the trace file and found that the difference value 
 between the time when a packet is receive on MAC and the time when the packet 
 is forwarded on RTR.
  Looking forward to your reply,thanks
 
 yours,
 Bruce




[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 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.
 




Re: [ns] error in arq insertion in tcl code

2011-05-08 Thread Teerawat@UBC

Hi Bibhu,


Link-loss model is used in a wired network. In wireless networks, you will have 
to use other approach (e.g., propagation model) to impose error on the link.

Mobile node has different architecture than regular nodes. The ARQ module would 
still work. But you will have to find another place to attach the ARQ module.

Best Regards,

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 5, 2011, at 4:34 PM, bibhu wrote:

 
 
 hello sir, i am implementing TCP performance over wireless MIMO channels
 with ARQ. I have made proper changes for ARQ protocol.in my project i have
 a mobile station with two antennas and a base station. i have added this
 code in my tcl file to include ARQ.
 set em [new ErrorModel]
 $em set rate_ 0.5
 $em unit pkt
 $em ranvar [new RandomVari...able/Uniform]
 $em drop-target [new Agent/Null]
 $ns link-lossmodel $em $wl_n1 $bs
 $ns link-lossmodel $em $wl_n2 $bs
 $ns link-arq 3 $wl_n1 $bs
 proc show_tcp_seqno {} {
 
 global tcp
 puts The final tcp sequence number is
 [$tcp set t_seqno_]
 }
 
 
 but when i run it,it shows error
 
 Configuration of hierarchical addressing done
 num_nodes is set 3
 INITIALIZE THE LIST xListHead
 ...Base Station created
 Replacing scheduler
 wireless node1 created ...
 wireless node2 created ...
 invalid command name 
 while executing
 $link insert-linkloss $lossobj
 (procedure _o3 line 3)
 (Simulator link-lossmodel line 3)
 invoked from within
 $ns link-lossmodel $em $wl_n1 $bs
 (file wimaxtest2.tcl line 258)
 
 what should i do? pls help..
 -- 
 View this message in context: 
 http://old.nabble.com/error-in-arq-insertion-in-tcl-code-tp31548804p31548804.html
 Sent from the ns-users mailing list archive at Nabble.com.
 



[ns] [NS-ANS]Re: instant awk script old trace format

2011-05-08 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 Apr 30, 2011, at 5:06 PM, mikes1313 wrote:

 
 
 Hi does anybody have  instant AWK script for old trace format. I want to
 calculate instant: throughput,delay, dropped - sent - received packet and
 energy consumption.
 
 Thanks 
 Mike 
 
 x5hotst...@hotmail.com
 -- 
 View this message in context: 
 http://old.nabble.com/instant-awk-script-old-trace-format-tp31511445p31511445.html
 Sent from the ns-users mailing list archive at Nabble.com.
 




[ns] [NS-ANS]Re: Scheduler::instance().clock() in ns.2.30

2011-05-08 Thread Teerawat@UBC

Hi Molly,

This C++ statement 

 Scheduler::instance().clock()


returns the simulation time, i..e., the one you see in the trace file.


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 Apr 12, 2011, at 7:58 PM, molly wrote:

 
 Hi all,
 
 Can anybody tell me something about Scheduler::instance().clock(), the
 function returns system time, what kind of system time it returns? Does the
 return time including the current system date and time or something else?? 
 



Re: [ns] TCL Build Errors

2011-04-23 Thread Teerawat@UBC

Hi 

I did some test on NS2 installation. Here is the result

http://www.ns2ultimate.com/post/439346614/working-combination-ns-2-34-ubuntu-8-04-and-perhaps

There is a problem with the current linux-like distribution. Here is the
solution

http://www.ns2ultimate.com/post/441093095/ns-2-35-works-on-cygwin

Also, if you'd like to know about how to setup the initialization file in 
Linux, please read the following post:

http://www.ns2ultimate.com/post/504833450/linux-initialization-files-bash-profile-and-bashrc

I hope this will help.

Best Wishes,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.ece.ubc.ca/~teerawat
http://www.t-issariyakul.blogspot.com
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
On Apr 21, 2011, at 8:07 PM, Tobi Oduyemi wrote:

 
 Hi i'm trying to install ns-2.29 on my linux computer but keep getting the
 error below when trying to install ns-2
 
 
 * Build Tclcl-1.17
 
 No .configure file found in current directory
 Continuing with default options...
 checking build system type... i686-pc-linux-gnu
 checking host system type... i686-pc-linux-gnu
 checking target system type... i686-pc-linux-gnu
 checking for gcc... gcc-4.1
 checking for C compiler default output file name... a.out
 checking whether the C compiler works... yes
 checking whether we are cross compiling... no
 checking for suffix of executables...
 checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether gcc-4.1 accepts -g... yes
 checking for gcc-4.1 option to accept ANSI C... none needed
 checking whether we are using the GNU C++ compiler... no
 checking whether g++-4.1 accepts -g... no
 checking how to run the C preprocessor... gcc-4.1 -E
 checking for egrep... grep -E
 checking for ANSI C header files... yes
 checking for sys/types.h... yes
 checking for sys/stat.h... yes
 checking for stdlib.h... yes
 checking for string.h... yes
 checking for memory.h... yes
 checking for strings.h... yes
 checking for inttypes.h... yes
 checking for stdint.h... yes
 checking for unistd.h... yes
 checking for string.h... (cached) yes
 checking for main in -lXbsd... no
 checking for socket in -lsocket... no
 checking for gethostbyname in -lnsl... yes
 checking for dcgettext in -lintl... no
 checking for getnodebyname in -ldnet_stub... no
 checking standard STL is available... no
 checking for ranlib... ranlib
 checking for snprintf... yes
 checking for ANSI C header files... (cached) yes
 checking for strtoq... yes
 checking for strtoll... yes
 checking for long... yes
 checking size of long... 4
 checking for __int64_t... no
 checking for long long... yes
 checking for int64_t... yes
 checking which kind of 64-bit int to use... int64_t
 checking for tcl.h... -I../include
 checking for tclInt.h... -I../include
 checking for libtcl8.4... -L../lib -ltcl8.4
 checking for init.tcl... ../lib/tcl8.4
 checking for http.tcl... ../lib/tcl8.4/http1.0
 checking Tcl http.tcl library... yes
 checking for tclsh8.4.11... no
 checking for tclsh8.4... ../bin/tclsh8.4
 checking for tk.h... -I../include
 checking for libtk8.4... -L../lib -ltk8.4
 checking for tk.tcl... ../lib/tk8.4
 checking for otcl.h... -I../otcl-1.11
 checking for libotcl1.11... -L../otcl-1.11 -lotcl
 checking for X11 header files
 checking for X11 library archive
 checking for XOpenDisplay in -lX11... yes
 checking for XShmAttach in -lXext... yes
 No explicit static compilation flag; setting V_STATIC to 
 checking for dlopen in -ldl... yes
 checking for a BSD-compatible install... /usr/bin/install -c
 configure: creating ./config.status
 config.status: creating Makefile
 config.status: creating config.h
 config.status: config.h is unchanged
 g++-4.1 -c  -DNO_TK  -DNDEBUG -DUSE_SHM -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H
 -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H
 -DHAVE_CONFIG_H -I. -I/home/tobi/Desktop/ns-allinone-2.29/otcl-1.11
 -I/home/tobi/Desktop/ns-allinone-2.29/include
 -I/home/tobi/Desktop/ns-allinone-2.29/include
 -I/home/tobi/Desktop/ns-allinone-2.29/include -o Tcl.o Tcl.cc
 /usr/bin/g++-4.1: not found (hardened-c++ could not find target)
 make: *** [Tcl.o] Error 127
 tclcl-1.17 make failed! Exiting ...
 See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
 
 
 Any help or solutions on how to correct this would be greatly appreciated.
 
 Regards
 




Re: [ns] Pls its urgent

2011-04-13 Thread Teerawat@UBC

Hi,

You might want to check out the reasons behind Tcl error messages from the link 
below:

- General error message interpretation: 
http://www.ns2ultimate.com/post/419191200/tcl-error-message-in-ns2

To fix the error, please read the following posts:

- Invalid command name: 
http://www.ns2ultimate.com/post/995668627/error-message-invalid-command
- To add new OTcl class: 
http://www.ns2ultimate.com/post/689847378/c-and-otcl-linkage-binding-c-and-otcl-classes
- To add an OTcl command: 
http://www.ns2ultimate.com/post/801303612/c-and-otcl-linkage-otcl-commands-getting-started
- To add a new module: 
http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2


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 Apr 13, 2011, at 9:08 PM, tellajeera sushma wrote:

 
 Hello,
 
 Can anyone please resolve why this type of error occurs. ? Please reply if
 you know as it is urgent.
 
 
 invalid command name Agent/Hip1
   while executing
 Agent/Hip1 instproc recv {from rtt} {
   $self instvar node_
   puts node [$node_ id] received ping answer from \
$from with round-trip-time
 ...
 
 
 Thank You...
 Sushma.
 




[ns] [NS-ANS] Re: help regarding ARQ

2011-04-11 Thread Teerawat@UBC

HI,

If you are interested in implementing ARQ in NS2, please read

http://www.ns2ultimate.com/post/1539258323/arq-module-program-update

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 Apr 11, 2011, at 11:52 PM, amareswararao k wrote:

 
 could any one please give me a suggestion about link layer ARQ
 or any website
 



[ns] [NS-ANS] Re: AWK script for extracting remaining energy of a node

2011-04-10 Thread Teerawat@UBC

Hi,

I don't have specific answer to your question. But 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

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 Apr 9, 2011, at 12:14 AM, Ramakrishna kilari wrote:

 
 Hai friends can any body please provide AWK script for extracting remaining
 energy of a node.
 
 -- 
 Your's Rams
 




Re: [ns] Anyone who can help me with an awk file to view Throughput with Xgraph for smac simulation

2011-04-10 Thread Teerawat@UBC

Hi Mossy,

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 Apr 10, 2011, at 3:01 AM, Mossy Mozila wrote:

 
 
 Anyone who can help me with an awk file to view Throughput with Xgraph from a
 .tr file from smac simulation which have a tcl script MyTest.tcl
 
 Here is the .tr file sample
 
 s 1.0 _0_ AGT  --- 0 cbr 512 [0.00 0 0] [energy 1000.00 ei 0.000
 es 0.000 et 0.000 er 0.000] --- [0:0 1:0 32 0] [0] 0 0
 r 1.0 _0_ RTR  --- 0 cbr 512 [0.00 0 0] [energy 1000.00 ei 0.000
 es 0.000 et 0.000 er 0.000] --- [0:0 1:0 32 0] [0] 0 0
 s 1.0 _0_ RTR  --- 0 cbr 512 [0.00 0 0] [energy 1000.00 ei 0.000
 es 0.000 et 0.000 er 0.000] --- [0:0 1:0 32 0] [0] 0 0
 s 6.003395772 _0_ AGT  --- 1 cbr 512 [0.00 0 0] [energy 1000.00 ei 0.000
 es 0.000 et 0.000 er 0.000] --- [0:0 1:0 32 0] [1] 0 0
 r 6.003395772 _0_ RTR  --- 1 cbr 512 [0.00 0 0] [energy 1000.00 ei 0.000
 es 0.000 et 0.000 er 0.000] --- [0:0 1:0 32 0] [1] 0 0
 s 6.003395772 _0_ RTR  --- 1 cbr 512 [0.00 0 0] [energy 1000.00 ei 0.000
 es 0.000 et 0.000 er 0.000] --- [0:0 1:0 32 0] [1] 0 0
 D 6.003395772 _0_ IFQ  ARP 0 cbr 512 [0.00 0 0] [energy 1000.00 ei 0.000
 es 0.000 et 0.000 er 0.000] --- [0:0 1:0 32 0] [0] 0 0
 s 16.562202932 _0_ AGT  --- 2 cbr 512 [0.00 0 0] [energy 1000.00 ei
 0.000 es 0.000 et 0.000 er 0.000] --- [0:0 1:0 32 0] [2] 0 0
 r 16.562202932 _0_ RTR  --- 2 cbr 512 [0.00 0 0] [energy 1000.00 ei
 0.000 es 0.000 et 0.000 er 0.000] --- [0:0 1:0 32 0] [2] 0 0
 s 16.562202932 _0_ RTR  --- 2 cbr 512 [0.00 0 0] [energy 1000.00 ei
 0.000 es 0.000 et 0.000 er 0.000] --- [0:0 1:0 32 0] [2] 0 0
 D 16.562202932 _0_ IFQ  ARP 1 cbr 512 [0.00 0 0] [energy 1000.00 ei
 0.000 es 0.000 et 0.000 er 0.000] --- [0:0 1:0 32 0] [1] 0 0
 s 17.22100 _0_ MAC  --- 0 SYNC 9 [0.12 0 0] [energy 1000.00 ei 0.000
 es 0.000 et 0.000 er 0.000] 
 N -t 17.221000 -n 1 -e 982.776000
 s 18.63900 _1_ MAC  --- 0 SYNC 9 [0.13 1 0] [energy 982.776000 ei 17.221
 es 0.000 et 0.000 er 0.003] 
 N -t 18.639000 -n 0 -e 981.358000
 s 20.08000 _0_ MAC  --- 0 SYNC 9 [0.12 0 1] [energy 981.358000 ei 18.636
 es 0.000 et 0.003 er 0.003] 
 N -t 20.08 -n 1 -e 979.917000
 s 21.704249539 _0_ AGT  --- 3 cbr 512 [0.00 0 0] [energy 979.917000 ei
 20.074 es 0.000 et 0.006 er 0.003] --- [0:0 1:0 32 0] [3] 0 0
 r 21.704249539 _0_ RTR  --- 3 cbr 512 [0.00 0 0] [energy 979.917000 ei
 20.074 es 0.000 et 0.006 er 0.003] --- [0:0 1:0 32 0] [3] 0 0
 s 21.704249539 _0_ RTR  --- 3 cbr 512 [0.00 0 0] [energy 979.917000 ei
 20.074 es 0.000 et 0.006 er 0.003] --- [0:0 1:0 32 0] [3] 0 0
 D 21.704249539 _0_ IFQ  ARP 2 cbr 512 [0.00 0 0] [energy 979.917000 ei
 20.074 es 0.000 et 0.006 er 0.003] --- [0:0 1:0 32 0] [2] 0 0
 D 21.704249539 _0_ IFQ  ARP 3 cbr 512 [0.00 0 0] [energy 979.917000 ei
 20.074 es 0.000 et 0.006 er 0.003] --- [0:0 1:0 32 0] [3] 0 0
 s 32.98100 _1_ MAC  --- 0 SYNC 9 [0.12 1 0] [energy 979.917000 ei 20.074
 es 0.000 et 0.003 er 0.006] 
 N -t 32.981000 -n 0 -e 967.016000
 N -t 33.102200 -n 1 -e 966.896800
 N -t 34.392000 -n 1 -e 966.894510
 s 34.42000 _0_ MAC  --- 0 SYNC 9 [0.11 0 1] [energy 967.016000 ei 32.972
 es 0.000 et 0.006 er 0.006] 
 N -t 34.42 -n 1 -e 966.863510
 N -t 34.535200 -n 0 -e 965.463800
 N -t 34.535200 -n 1 -e 966.750310
 s 34.869010053 _0_ AGT  --- 4 cbr 512 [0.00 0 0] [energy 965.463800 ei
 34.520 es 0.000 et 0.009 er 0.006] --- [0:0 1:0 32 0] [4] 0 0
 r 34.869010053 _0_ RTR  --- 4 cbr 512 [0.00 0 0] [energy 965.463800 ei
 34.520 es 0.000 et 0.009 er 0.006] --- [0:0 1:0 32 0] [4] 0 0
 s 34.869010053 _0_ RTR  --- 4 cbr 512 [0.00 0 0] [energy 965.463800 ei
 34.520 es 0.000 et 0.009 er 0.006] --- [0:0 1:0 32 0] [4] 0 0
 -- 
 View this message in context: 
 http://old.nabble.com/Anyone-who-can-help-me-with-an-awk-file-to-view-Throughput-with-Xgraph-for-smac-simulation-tp31360695p31360695.html
 Sent from the ns-users mailing list archive at Nabble.com.
 



Re: [ns] Problem installation of NS2.34 in UBUNTU

2011-04-10 Thread Teerawat@UBC

Hi 

I did some test on NS2 installation. Here is the result

http://www.ns2ultimate.com/post/439346614/working-combination-ns-2-34-ubuntu-8-04-and-perhaps

There is a problem with the current linux-like distribution. Here is the
solution

http://www.ns2ultimate.com/post/441093095/ns-2-35-works-on-cygwin

Also, if you'd like to know about how to setup the initialization file in 
Linux, please read the following post:

http://www.ns2ultimate.com/post/504833450/linux-initialization-files-bash-profile-and-bashrc

I hope this will help.

Best Wishes,

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

On Apr 10, 2011, at 9:13 PM, Zakia Khalfallah wrote:

 
 
 Hi Friends,
 i try to install NS2.34 in UBUNTU it shows me this error :
 
 make: *** [tk3d.o] Erreur 1
 tk8.4.18 make failed! Exiting ...
 For problems with Tcl/Tk see http://www.scriptics.com;
 
 Some one has met the same problem and helps me please.
 Thank you
 
 
 




[ns] [NS-ANS] Re: Algorithm in NS2

2011-04-10 Thread Teerawat@UBC

Hi,

As a rule of thumbs, most computation should be done in C++ and most 
configuration should be done in Tcl. If you would like to learn about how C++ 
and OTcl are bound please read the series of blog posts indicated below:

http://www.ns2ultimate.com/post/648508440/c-and-otcl-linkage-why-two-languages

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 Apr 10, 2011, at 11:42 PM, Mohammed Alenezi wrote:

 
 Hi,
 
 I need to put specific algorithm in certain nodes. I'm not sure on which
 level I shall put it. In other words, shall I put in TCL code or in C++
 code?
 
 My algorithm is very simple I just check the node id and add it to an array.
 
 Please guys, your help on this issue is highly appreciated.
 
 -- 
 Regards,
 Mohd.
 




[ns] [NS-ANS] Re: Add the GPSR protocol in NS : Can't declare AGENT/GPSR

2011-04-07 Thread Teerawat@UBC

Hi,

If you would like to add a new module into NS2, please read

http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2


If you would like to add a new  C++ class,  please read the series of blog 
posts indicated below:

http://www.ns2ultimate.com/post/648508440/c-and-otcl-linkage-why-two-languages

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 Apr 7, 2011, at 3:17 PM, Zakia Khalfallah wrote:

 
 
 
 
 
 
 
 
 
 
 Hi Friends. I'm runing GPSR protocol on NS2 (linux). 
 I add in ns-agent.tcl these commands to declare GPSR agent :
 
 Agent/GPSR instproc init args {
$self next $args }   
 ...Agent/GPSR set sport_  0
 Agent/GPSR set dport_ 0
 
 when i just run the command ns, it shows me this error : 
 [code
 omitted beacuse of length]: invalid command name Agent/GPSR while 
 executingAgent/GPSR instproc init args {$self next $args}.
 Brievly, ns can't understand the Agent/GPSR. How and in wich file can i 
 declare this agent/
 Any one can help me ? I'm blocked :(
 Thank you .Cordially
 
 
 




Re: [ns] Drop packet!!!!!

2011-03-17 Thread Teerawat@UBC

Hi Mohammed,

That's correct. Only the object whose class derives from class Connector can 
call the function drop(p). However, there are a lot of class like this, e.g., 
queues, agents.

Best Regards,

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 Mar 9, 2011, at 8:17 AM, Mohammed Alenezi wrote:

 
 Hi,
 I've been reading the below blog :
 http://t-issariyakul.blogspot.com/search/label/NS2?updated-max=2010-03-08T02%3A02%3A00-07%3A00max-results=20
 
 I found this sentence Note that drop(p) is a function of class Connector,
 and therefore must be invoked from within the scope of class Connector.
 
 Does this mean I can't call the drop from outside connector. In other words,
 If I want to call drop I have to create object from connector class then
 call drop???
 
 
 Please help me on this issue?
 
 -- 
 Regards,
 Mohd.
 




[ns] [NS ANS] Re: Send and Receive in NS2

2011-03-17 Thread Teerawat@UBC

Hi Mohammed,

I suggest you to read the following blog post to understand how TCP sends 
packets.

http://www.ns2ultimate.com/post/1255914139/tcp-transmitter-in-a-nutshell


Best Regards,

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 Mar 9, 2011, at 8:41 AM, Mohammed Alenezi wrote:

 
 Hi,
 
 I just want to understand who is responsible for sending the packets in ns2.
 In each layer 4 protocol ( TCP or UDP) there is a function for send and
 receive. However,I read in other blog http://t-issariyakul.blogspot.com.
 -that the function in Agent.cc is the one responsible for sending and
 receiving.!!!
 
 I need to understand the difference. I read the book many times, couldn't
 figure out the difference???
 
 
 Any Help
 
 -- 
 Regards,
 Moe
 



[ns] [NS-ANS] Re: Ns-users Digest, Vol 87, Issue 6

2011-03-07 Thread Teerawat@UBC

Perhaps, one is a regular trace file and another is a nam trace file.


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 Mar 7, 2011, at 9:02 AM, ranjana pathak wrote:

 
 Dear frds,
 
 I am using ns2.34, during compiling two different tcl, I am getting two
 different formats of the trace file.
 
 can anyone tell why using one type of ns version I m getting two types of
 trace files?
 
 
 
 Thanks in advance.
 
 Ranjana
 
 
 On Mon, Mar 7, 2011 at 12:00 PM, ns-users-requ...@isi.edu wrote:
 
 Send Ns-users mailing list submissions to
   ns-users@isi.edu
 
 To subscribe or unsubscribe via the World Wide Web, visit
   http://mailman.isi.edu/mailman/listinfo/ns-users
 or, via email, send a message with subject or body 'help' to
   ns-users-requ...@isi.edu
 
 You can reach the person managing the list at
   ns-users-ow...@isi.edu
 
 When replying, please edit your Subject line so it is more specific
 than Re: Contents of Ns-users digest...
 
 
 Today's Topics:
 
  1. eln in ns2 (shir shwe)
  2. awk file to calculate throughput, routing overhead, delay
 (Nguyen Thanh)
  3. problem with wimax module in ns-2.29 (zmezm 14)
  4. Re: gt-itm problem (stalaei)
 
 
 --
 
 Message: 1
 Date: Sun, 6 Mar 2011 08:44:05 +0530
 From: shir shwe shirs...@gmail.com
 Subject: [ns] eln in ns2
 To: ns-users@isi.edu
 Message-ID:
   aanlktikdolie73znqjisv59tgrwvu53by-_fojjzv...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1
 
 hello everybody,
 I am doing a project on performance improvement of tcp in a wired cum
 wireless network. Can anybody tell me how to implement eln in such a
 network
 using ns2?
 
 
 --
 
 Message: 2
 Date: Sat, 5 Mar 2011 20:50:13 -0800 (PST)
 From: Nguyen Thanh nguyenthanh_cb2...@yahoo.com
 Subject: [ns] awk file to calculate throughput, routing overhead,
   delay
 To: ns-users@isi.edu
 Message-ID: 64167.37044...@web38208.mail.mud.yahoo.com
 Content-Type: text/plain; charset=utf-8
 
 Hello,
 
 I need awk file to calculate throughput, routing overhead, delay,
 
 
   normalized routing load
 
 
 
 
 of AODV,DSR...Could anyone please send me?
 
 Thank you in advance.
 Nguyen
 
 
 
 
 
 
 --
 
 Message: 3
 Date: Sun, 6 Mar 2011 00:25:49 -0800 (PST)
 From: zmezm 14 zmez...@yahoo.com
 Subject: [ns] problem with wimax module in ns-2.29
 To: ns-users@isi.edu
 Message-ID: 951512.92451...@web120720.mail.ne1.yahoo.com
 Content-Type: text/plain; charset=iso-8859-1
 
 
 
 
 good day everyone , i hope you all doing well ..
 
 i have a problem with my wimax module in ns-2.29
 i already install ns2 with the NIST successfully thanks to your help but
 when i try to run any wimax samples? i get an error im quite new to ns so
 can you pleas help me
 
 fear@fear-laptop:~/ns2/test$ ns wimaxtest.tcl
 Configuration of hierarchical addressing done
 num_nodes is set 12
 invalid command name Mac/802_16/BS
 ??? while executing
 Mac/802_16/BS create _o38 
 ??? invoked from within
 catch $className create $o $args msg
 ??? invoked from within
 if [catch $className create $o $args msg] {
 if [string match __FAILED_SHADOW_OBJECT_ $msg] {
 delete $o
 return 
 }
 global errorInfo
 error class $...
 ??? (procedure new line
 3)
 ??? invoked from within
 new $mactype
 ??? (procedure _o28 line 10)
 ??? (Node/MobileNode add-interface line 10)
 ??? invoked from within
 $node add-interface $chan $propInstance_ $llType_ $macType_? $ifqType_
 $ifqlen_ $phyType_ $antType_ $topoInstance_? $inerrProc_ $outerrProc_
 $FECProc_
 ??? (procedure _o3 line 70)
 ??? (Simulator create-wireless-node line 70)
 ??? invoked from within
 _o3 create-wireless-node 1.0.0
 ??? (eval body line 1)
 ??? invoked from within
 eval $self create-wireless-node $args
 ??? (procedure _o3 line 16)
 ??? (Simulator node line 16)
 ??? invoked from within
 $ns node 1.0.0
 ??? invoked from within
 set BaseStation [$ns node 1.0.0]? 
 ???
 (file wimaxtest.tcl line 139)
 
 
 best regards to all ..
 ? ?
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 --
 
 Message: 4
 Date: Sun, 6 Mar 2011 15:54:20 -0800 (PST)
 From: stalaei shahint...@gmail.com
 Subject: Re: [ns] gt-itm problem
 To: ns-users@isi.edu
 Message-ID: 31083841.p...@talk.nabble.com
 Content-Type: text/plain; charset=us-ascii
 
 
 Hi
 
 I have donwloaded the GT-ITM(the Linux version).
 but i don't know how to use it?when i execute the itm file in the binary
 folder it gives me the following line:
 itm spec-file0 spec-file1 
 
 I'm assuming it's asking for parameters.
 what am i suppose to type?
 
 thanks a lot
 shahin
 
 
 
 
 
 
 Hi all,
 i
 installed ns-allinone-2.29.3 but i have problems about running
 gt-itm.My ns-allinone-2.29/gt-itm/bin directory has the itm executable
 

[ns] [NS-ANS] Re: awk file to calculate throughput, routing overhead, delay

2011-03-07 Thread Teerawat@UBC

Hi,

If you’d like to learn AWK for NS2 post simulation processing, please read the 
following series:

Example AWK file to compute link throughput is given below:

http://www.ns2ultimate.com/post/3442965938/post-processing-ns2-result-using-ns2-trace-ex1-link

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 Mar 6, 2011, at 11:50 AM, Nguyen Thanh wrote:

 
 Hello,
 
 I need awk file to calculate throughput, routing overhead, delay,
 
 
   normalized routing load 
   
 
 
 
 of AODV,DSR...Could anyone please send me?
 
 Thank you in advance.
 Nguyen
 
 
 
 




[ns] [NS-ANS] Re: end to end delay

2011-03-07 Thread Teerawat@UBC

Hi Subha,

If you’d like to learn how to use AWK for NS2 post simulation processing, 
please read the following series.

Example AWK programs are given below:

- Link throughput: 
http://www.ns2ultimate.com/post/3442965938/post-processing-ns2-result-using-ns2-trace-ex1-link

- End-to-end throughput:
http://www.ns2ultimate.com/post/3702976577/post-processing-ns2-result-using-ns2-trace-ex2

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 Feb 15, 2011, at 11:28 AM, Subha Uthayaraj wrote:

 
 Hi all,
 
 Anyone have awk script to calculate end to end delay for wireless scenario
 in ns2?
 
 -- 
 Regards,
 Subha
 




[ns] [NS-ANS]Re: installation info

2011-03-04 Thread Teerawat@UBC

Hi 

I did some test on NS2 installation few months ago. Here is the result

http://www.ns2ultimate.com/post/439346614/working-combination-ns-2-34-ubuntu-8-04-and-perhaps

There is a problem with the current linux-like distribution. Here is the
solution

http://www.ns2ultimate.com/post/441093095/ns-2-35-works-on-cygwin

Also, if you'd like to know about how to setup the initialization file in 
Linux, please read the following post:

http://www.ns2ultimate.com/post/504833450/linux-initialization-files-bash-profile-and-bashrc

I hope this will help.

Best Wishes,

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

On Mar 4, 2011, at 12:30 PM, narendra k wrote:

 
 hi, all
 i am trying to install NS2.34 in fedora 14 but getting errors like no gcc
 support or c compiler not found like any body who installed NS2.34 in fedora
 plz suggest me.
 
 thank you
 
 Narendra
 




[ns] [NS-ANS] Re: installation problrm

2011-02-24 Thread Teerawat@UBC

Hi 

I did some test on NS2 installation few months ago. Here is the result

http://www.ns2ultimate.com/post/439346614/working-combination-ns-2-34-ubuntu-8-04-and-perhaps

There is a problem with the current linux-like distribution. Here is the
solution

http://www.ns2ultimate.com/post/441093095/ns-2-35-works-on-cygwin

Also, if you'd like to know about how to setup the initialization file in 
Linux, please read the following post:

http://www.ns2ultimate.com/post/504833450/linux-initialization-files-bash-profile-and-bashrc

I hope this will help.

Best Wishes,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.ece.ubc.ca/~teerawat
http://www.t-issariyakul.blogspot.com
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
On Feb 25, 2011, at 12:24 PM, sachin dahiya wrote:

 
 hi all
 i am trying to install ns-2.29 on cygwin. my operating systen is
 win-xp. every time i have got the message like
 
 Package make not found
 package patch not found
 package perl not found
 package w32api not found
 
 what shoul i hav to do in this case.
 
 plz help me
 sachin
 




Re: [ns] Error in NS2.28

2011-02-24 Thread Teerawat@UBC

Hi 

If you would like to add a new module into NS2, please read

http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2

I hope this will help.

Best Wishes,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.ece.ubc.ca/~teerawat
http://www.t-issariyakul.blogspot.com
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
On Feb 24, 2011, at 9:47 PM, Subha Uthayaraj wrote:

 
 Hi all,
 
 I installed NS2.28 on feroda 8 successfully. I added sensoragent with that.
 
 While compiling I got error like:
 
 Make:*** No rule to make target common/win32.o phenom/debug.o
 
 I added phenom only. Why the error coming for common/win32.o? While
 compiling first time it didnt exist but after added phenom agent it s
 coming? why?
 
 I checked the directory also. Iam confused.
 
 Please anyone make me clear. What may be the error?
 
 Thanks in advance.
 
 -- 
 Regards,
 Subha
 



[ns] [NS-ANS] Re: How do I calculate the node utilization?

2011-02-22 Thread Teerawat@UBC

Hi Ahmed,

In NS2, things happen very briefly in node. If you are working in a wired 
network, things happens in Simple link. For example, the queue is not 
associated  with nodes (as in the physical world), but with the link. So you 
can't really find the utilization of the node. 

But if you are interested in finding link utilization. You may find it from 

link throughput / link capacity. 

I blogged a series on how to post-process NS2 result. You can find link 
utilization computation example from the link below:

http://www.ns2ultimate.com/post/3442965938

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 Feb 22, 2011, at 10:13 AM, Ahmad wrote:

 
 Hi all,
 Trying one more time just incase. Anyone can suggest a way (through code or 
 analyzing trace files) that I can find the utilization of a node? I am trying 
 to 
 prove that a specific node is utilized more due to more packet, and extra 
 overhead processing.. 
 
 thoughts?
 Thank you
 
 
 
 




Re: [ns] Why do we have this group?

2011-02-21 Thread Teerawat@UBC

Hi,

The problem with the latter one (i.e., when a questioner gets the answer, 
repost the answer back to the mailing list) is that the person who's got the 
answer may not forward the answer back to the mailing list. Even when you have 
the rule written say in FAQ, new persons who recently joined the mailing list 
might not know about the rule. Then, they would not forward the answer back to 
the mailing list.

In my opinion, reply all with a simple tag [ANS:NS] or something like this 
might work. People will know that this email message is an answer to a certain 
question. Those who do not care about the answer can immediately delete it. 
They may event get their mail client to delete mail whose subject contain 
[ANS:NS]. 

But we need to come up with an agreed-upon tag for answering the question. 

Note that one drawback of this approach is that there might be too many email 
about the reply, which might annoy our members.

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 Feb 21, 2011, at 7:35 PM, farzin parsa wrote:

 
 the latter one is much better,
 
 --- On Mon, 2/21/11, Mariam A. Moustafa elansary@gmail.com wrote:
 
 From: Mariam A. Moustafa elansary@gmail.com
 Subject: Re: [ns] Why do we have this group?
 To: Ahmad arasem...@yahoo.com, ns-users@ISI.EDU
 Date: Monday, February 21, 2011, 4:38 AM
 
 
 Fine, I suggest two method we can follow
 
 1- All reply for all.
 
 2- All relpy in perivate and then the person who was asking the question,
 gather the replys and forward them as an answer of that question (we will
 only have one collected reply).
 //may be use a tag in the subject of the reply mail as {ANSWER}.
 
 Thanks in advance
 Mariam
 
 
 On Mon, Feb 21, 2011 at 5:49 AM, Ahmad arasem...@yahoo.com wrote:
 
 
 Hi Fellow NS2ers,
 Personally I prefer to see answers for everything as it may be relevent at
 some
 point.
 Anand, you can do what I (and may be many de here), have a special folder
 setup
 with every email with the Subject NS2 being forwarded to it so your
 general
 inbox does not get flooded with it. I am glad to know that there are people
 answer becuase I posted 2 questions  (figured the answer of the first one
 though) and didn't get answers and I saw just questions so I thought no one
 is
 answering here.
 but yea I would personally like seeing all answers so everyone has
 reference
 incase they run into similar issues. I think I saw two more posts sharing
 the
 same likes.
 
 After all, good luck everyone in your research!
 Ahmad
 
 
 
 
 
 From: Teerawat@UBC teera...@ece.ubc.ca
 To: anand waytoan...@gmail.com
 Cc: ns-users@ISI.EDU
 Sent: Sun, February 20, 2011 9:23:02 PM
 Subject: Re: [ns] Why do we have this group?
 
 
   Hi,
 
 I answer to people in this group regularly (as much as I can). But usually,
 I
 just do it to avoid others who have to receive the answers which are
 relevant to
 their interest.
 
 
 There is no guideline on the use of this mailing list. If there is one and
 it
 says that most (if not all) answers should be replied to ALL, I'll be glad
 to do
 so.
 
 What do you guys think?
 
 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 Feb 21, 2011, at 8:28 AM, anand wrote:
 
 
 isi is build like this...it is easy to mail al the groupbut they
 didn't
 considered that one
 may take interest in getting the answers of all the questions.
 besides if they forward to all then ur inbox will always be filled with
 ns-user's mailit will end only u unsubscribeso it's for the best
 :)
 
 
 
 
 
 
 
 -- 
 Best regards,
 
 Mariam Ahmed Moustafa
 
 Software Engineer, RD Department
 
 Integrated Solutions For Ports
 
 Tel: +(203) 4293846/4294632 Extn: 207
 
 Email:  mka...@isfpegypt.com
 
 Web Site: www.isfpegypt.com
 
 
 
 
 




Re: [ns] Why do we have this group?

2011-02-21 Thread Teerawat@UBC

Hi Hadi,

Thanks for the support. I understand that you'd like to make tag more specific 
to fit the readers' need. However, there is a wide variety of question in this 
mailing list. For example,

- Installation basic NS2
- Installation of patch (which some people don't even know that they are 
patching their NS2. They think that they ran into weird problems.)
- Segmentation fault
- Including new protocols
- No-slot (classifier) errors
- OTcl and C++ linkage (e.g., evalf, resultf,...)
- Protocol specific questions (IEEE 802.11, Energy, routing, etc.)

These are just few examples I've seen over past year. If we assign a tag to 
each of the categories above, before long we're gonna have to maintain a long 
list of tags. 

Now the next problem is that the anwerers will have to remember the exact words 
of the tags to conform with the standard we are trying to set here. 

Another problem is that with more complicated tag, you cannot ask your mail 
client (e.g., mail rules in Apple mail) to automatically delete the mail which 
contains a certain tag (e.g., [NS-ANS]). 

Anyway, thank you for your thought. I hope we can help each other make this 
mailing list  a better place. 

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 Feb 21, 2011, at 11:12 PM, El Hadi Cherkaoui wrote:

 
 Hi all,
 
 I agree with Teerawat, the replay to all with special tag is more 
 efficient , However we can define special tag for different questions :
 
 For example I have noted that most of the question is related to the 
 problem of installation : ns2.29 on ubuntu , on fedora  , bad version of 
 gcc..
 I propose to add [ANS:Install:NS] for replay to problem of installation
 
 [ANS:MAC:NS] for mac questions and so on ...
 
 if I am not interested to reply or read to one category I will just have 
 to delet them easily by creating folder.
 
 Best,
 
 Hadi
 
 
 Le 2/21/2011 4:59 PM, Teerawat@UBC a écrit :
 Hi,
 
 The problem with the latter one (i.e., when a questioner gets the answer, 
 repost the answer back to the mailing list) is that the person who's got the 
 answer may not forward the answer back to the mailing list. Even when you 
 have the rule written say in FAQ, new persons who recently joined the 
 mailing list might not know about the rule. Then, they would not forward the 
 answer back to the mailing list.
 
 In my opinion, reply all with a simple tag [ANS:NS] or something like this 
 might work. People will know that this email message is an answer to a 
 certain question. Those who do not care about the answer can immediately 
 delete it. They may event get their mail client to delete mail whose subject 
 contain [ANS:NS].
 
 But we need to come up with an agreed-upon tag for answering the question.
 
 Note that one drawback of this approach is that there might be too many 
 email about the reply, which might annoy our members.
 
 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 Feb 21, 2011, at 7:35 PM, farzin parsa wrote:
 
 the latter one is much better,
 
 --- On Mon, 2/21/11, Mariam A. Moustafaelansary@gmail.com  wrote:
 
 From: Mariam A. Moustafaelansary@gmail.com
 Subject: Re: [ns] Why do we have this group?
 To: Ahmadarasem...@yahoo.com, ns-users@ISI.EDU
 Date: Monday, February 21, 2011, 4:38 AM
 
 
 Fine, I suggest two method we can follow
 
 1- All reply for all.
 
 2- All relpy in perivate and then the person who was asking the question,
 gather the replys and forward them as an answer of that question (we will
 only have one collected reply).
 //may be use a tag in the subject of the reply mail as {ANSWER}.
 
 Thanks in advance
 Mariam
 
 
 On Mon, Feb 21, 2011 at 5:49 AM, Ahmadarasem...@yahoo.com  wrote:
 
 Hi Fellow NS2ers,
 Personally I prefer to see answers for everything as it may be relevent at
 some
 point.
 Anand, you can do what I (and may be many de here), have a special folder
 setup
 with every email with the Subject NS2 being forwarded to it so your
 general
 inbox does not get flooded with it. I am glad to know that there are people
 answer becuase I posted 2 questions  (figured the answer of the first one
 though) and didn't get answers and I saw just questions so I thought no one
 is
 answering here.
 but yea I would personally like seeing all answers so everyone has
 reference
 incase they run into similar issues. I think I saw two more posts sharing
 the
 same likes.
 
 After all, good luck everyone in your research!
 Ahmad
 
 
 
 
 
 From: Teerawat@UBCteera...@ece.ubc.ca
 To: anandwaytoan...@gmail.com
 Cc: ns-users@ISI.EDU
 Sent: Sun, February 20, 2011 9:23:02 PM
 Subject: Re: [ns

Re: [ns] Why do we have this group?

2011-02-20 Thread Teerawat@UBC

Hi,

I answer to people in this group regularly (as much as I can). But usually, I 
just do it to avoid others who have to receive the answers which are relevant 
to their interest. 

There is no guideline on the use of this mailing list. If there is one and it 
says that most (if not all) answers should be replied to ALL, I'll be glad to 
do so.

What do you guys think?

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 Feb 21, 2011, at 8:28 AM, anand wrote:

 
 isi is build like this...it is easy to mail al the groupbut they didn't
 considered that one
 may take interest in getting the answers of all the questions.
 besides if they forward to all then ur inbox will always be filled with
 ns-user's mailit will end only u unsubscribeso it's for the best :)
 




Re: [ns] TCP send and receive?

2011-02-16 Thread Teerawat@UBC

Hi,

I blogged about TCP transmission in a nutshell below:

http://www.ns2ultimate.com/post/1255914139/tcp-transmitter-in-a-nutshell

This might help you get started.

Best Regards,

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 Feb 17, 2011, at 12:46 AM, Mohammed Alenezi wrote:

 
 Hi ,
 
 I'm doing research on TCP wired model. Can anyone tell me what is the
 function responsible for sending packets in TCP and receiving ?
 
 I found many for sending in TCP.cc file. However, it seems the one
 responsible for sending in agent.cc?
 
 Thank you in advance
 
 Regards,
 Mohd.
 



Re: [ns] ARQ implementation in ns 2

2011-02-15 Thread Teerawat@UBC

If you are interested in implementing ARQ in NS2, please read

http://www.ns2ultimate.com/post/1539258323/arq-module-program-update

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 Feb 15, 2011, at 5:00 PM, bibhu wrote:

 
 
 hi friends
 m trying to implement ARQ in ns2 but i thing ns 2.31 doesn't support ARQ
 .can anybody tell me what should i do to implement stop-n-wait arq.
 pls give your suggestions
 
 -- 
 View this message in context: 
 http://old.nabble.com/ARQ-implementation-in-ns-2-tp30929430p30929430.html
 Sent from the ns-users mailing list archive at Nabble.com.
 




Re: [ns] Tcl::evalf(const char* fmt, ....) definition

2011-02-14 Thread Teerawat@UBC

Hi,

This blog post might help.

http://www.ns2ultimate.com/post/1035505402/c-and-otcl-linkage-eval-invoking-otcl-statements

Best Wishes,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.ece.ubc.ca/~teerawat
http://www.t-issariyakul.blogspot.com
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
On Feb 14, 2011, at 4:47 PM, Kuldeep Singh wrote:

 
 Hi,
 
 can anyone tel the location of Tcl::evalf(const char* fmt,...) function in
 Tcl.cc ???
 
 
 It is declared in Line No 128 of file tclcl.h.
 
 Plz inform me, where it is defined 
 




Re: [ns] ARQ implementation

2011-02-08 Thread Teerawat@UBC

Hi, 

If you'd like to implement ARQ, please read

http://www.ns2ultimate.com/post/1539258323/arq-module-program-update

Best Wishes

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.ece.ubc.ca/~teerawat
http://www.t-issariyakul.blogspot.com
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
On Feb 8, 2011, at 1:43 PM, bibhu sharma wrote:

 
 friends,i am doing my project in wimax which doesnt have patch file for ARQ
 implementation in ns-2.31. can anybody help me in doing so...pls reply..
 



Re: [ns] Packets in link's Queue

2011-01-31 Thread Teerawat@UBC

HI,

NS2 implements buffering in link, not in node. This is to model the link with 
large bandwidth-delay product. For example, consider a link with 100 Mbps link 
and 1 s propagation delay, and packets whose size is 1 Mbits. Then this link 
can stores upto 100 packets at any instance. 

Best Regards,

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 Jan 28, 2011, at 4:24 PM, Hosseini Nezhad wrote:

 
 Hi
 
 Suppose that, Node(A) want to send packets to Node(B) by TCP protocol.
 
 Node(A) send a packet , after deliver that ACK send 2 packets and
 after deliver those ACk send 4 packets and ... .
 
 The bandwidth =2Mbps
 Propagation delay is= 10ms
 Link's Queue length=20
 
 My Question is :
 Why some packets(almost 14 packets) go in link's queue?How I can
 describe this event?
 
 Thanks