Re: [ns] how to get node_id in classifier.cc in wired network simulation

2009-03-17 Thread Mohammed Abu Hajar

I think you should put it in the implementation code of the designated protocol 
you need to modify it.

Mohammed ABuHajar





From: muralikrishna g 
To: Mohammed Abu Hajar 
Sent: Tuesday, March 17, 2009 8:36:11 AM
Subject: Re: [ns] how to get node_id in classifier.cc in wired network  
simulation

hi sir,,,

in which class i can keep 

printf("net_id = %s",net_id.dump());

can u tell me the exact location where to usse this code...

thnaku sir



  


Re: [ns] how to get node_id in classifier.cc in wired network simulation

2009-03-16 Thread Mohammed Abu Hajar

I advice you to implement some simple scenarios with smaller number of nodes 
also try to analaysis the output file. In wireless environment there are multi 
node working. 

All the best,

Mohammed AbuHajar



From: muralikrishna g 
To: Mohammed Abu Hajar 
Sent: Monday, March 16, 2009 11:49:15 AM
Subject: Re: [ns] how to get node_id in classifier.cc in wired network  
simulation

hi sir..

everybody tell me that to use net_id.dump( ), but my problem is that i
have to check the classifier for which node it is presently working..
no all the nodes.. so there by i compare the node_id with required
node_id, if it satisfies i can make a special function to that node by
some if condition..

sir,.. please help me regarding this..

thank u sir

On 3/16/09, Mohammed Abu Hajar  wrote:
> use net_id.dump(), this is the code used by the trace mechanism
>
>
>
> 
> From: muralikrishna g 
> To: NS-mail 
> Sent: Monday, March 16, 2009 11:23:16 AM
> Subject: [ns] how to get node_id in classifier.cc in wired network
> simulation
>
>
> hi to all..
>
> i am in need to have node_id of a node in classifier.cc, so that i can
> add new functionality to a node.. so please help me how to get node_id
> in classifier
>
> by
>
> muralikrishna
>
>
>



  


Re: [ns] how to get node_id in classifier.cc in wired network simulation

2009-03-16 Thread Mohammed Abu Hajar

use net_id.dump(), this is the code used by the trace mechanism 




From: muralikrishna g 
To: NS-mail 
Sent: Monday, March 16, 2009 11:23:16 AM
Subject: [ns] how to get node_id in classifier.cc in wired network simulation


hi to all..

i am in need to have node_id of a node in classifier.cc, so that i can
add new functionality to a node.. so please help me how to get node_id
in classifier

by

muralikrishna


  


Re: [ns] plot offered load vs. throughput

2009-02-03 Thread Mohammed Abu Hajar

Dear Camilla,

I didn't use Tracegraph software in details, but if you want to use it, try 
fellow installtion steps of the  package and try to plot some simple example to 
become more familiar with the package and to understand how to deal with it(how 
to extract output, how to justify it and...) before starting with your own 
application.

With Best Wishes,

Mohammed AbuHajar






From: Camilla Fiorese 
To: Mohammed Abu Hajar 
Sent: Tuesday, February 3, 2009 6:53:41 PM
Subject: Re: plot offered load vs. throughput

Dear Mohammed,

Thank you for the advise. I've been looking around for a way to plot a
graph that shows load vs throughput (like in the famous paper from Jain,
where is shown the knee and the cliff). Did you figure out how to do
that? Did you use that suite www.tracegraph.com?

Thank you and regards,
Camilla
On Mon, 2009-02-02 at 22:44 -0800, Mohammed Abu Hajar wrote:
> Dear Camilla,
> 
> Yes, there are a tool called Trace graph http://www.tracegraph.com./
> used for plotting, but form my experience I advise you to plot your
> graph using Mathlab program, its effiecient and better, All graphs you
> had seen in papers are graphed be Matlab software.
> 
> All the Best,
> 
> Mohammed AbuHajar
> Deir ElBalah Industrial Secondary School - Department of IT
> The General Administration of Colleges for Vocational and Technical
> Education
> Ministry of Education and Higher Education - Palestine Territory,
> Occupied
> Tel: +972 599 896972
> 
> 
> 
> 
> 
> 
> 
> 
> __
> From: Camilla Fiorese 
> To: mcs...@yahoo.com
> Sent: Monday, February 2, 2009 6:24:19 AM
> Subject: plot offered load vs. throughput
> 
> Hello Mohammed,
> 
> did you find out how to plot it in ns2?
> I've been looking around, but nobody seems to know.
> 
> Regards,
> Camilla
> 
> 
> 


  


Re: [ns] plot offered load vs. throughput

2009-02-02 Thread Mohammed Abu Hajar

Dear Camilla,

Yes, there are a tool called Trace graph http://www.tracegraph.com./used for 
plotting, but form my experience I advise you to plot your graph using Mathlab 
program, its effiecient and better, All graphs you had seen in papers are 
graphed be Matlab software.

All the Best,

Mohammed AbuHajar
Deir ElBalah Industrial Secondary School - Department of IT
The General Administration of Colleges for Vocational and Technical Education
Ministry of Education and Higher Education - Palestine Territory, Occupied
Tel: +972 599 896972










From: Camilla Fiorese 
To: mcs...@yahoo.com
Sent: Monday, February 2, 2009 6:24:19 AM
Subject: plot offered load vs. throughput

Hello Mohammed,

did you find out how to plot it in ns2?
I've been looking around, but nobody seems to know.

Regards,
Camilla


  


Re: [ns] ns2 environment variables settings in .bashrc file

2009-01-25 Thread Mohammed Abu Hajar

I advice you to work in pure linux operating system.

Mohammed AbuHajar






From: Arslan Munir 
To: ns-users@ISI.EDU
Sent: Sunday, January 25, 2009 4:41:42 PM
Subject: [ns] ns2 environment variables settings in .bashrc file


Hi all,

I have installed ns2-allinone-2.33 (the current release). I am running it on 
Cygwin on Windows Vista. After running Cygwin, we need to set environment 
variables before ns2 commands can be run. Alternatively, we can set them in
..bashrc file so that the environment variables for ns2 are
automatically set each time when Cygwin is run instead of manually
entering them on command line.

When I add the environment
variables path in .bashrc files, it gives an error when Cygwin starts
saying that ns2-allinone-2.33-2.33 not fount. The commands work fine on
the Cygwin prompt. Also Cygwin appends an extra 2.33 at the end
automatically when giving an error.

Here is the code for updating the environment variables in .bashrc file. The 
first line is which is giving error:

export NS_HOME=/home/Owner/ns-allinone-2.33/
export PATH=$NS_HOME/tcl8.4.18/unix:$NS_HOME/tk8.4.18/unix:$NS_HOME/bin:$PATH
export LD_LIBRARY_PATH=$NS_HOME/tcl8.4.18/unix:$NS_HOME/tk8.4.18/unix:\
$NS_HOME/otcl-1.13:$NS_HOME/lib:$LD_LIBRARY_PATH
export TCL_LIBRARY=$NS_HOME/tcl8.4.18/library 

On the Cygwin command prompt, we enter the same commands except for the first 
line which is:

export NS_HOME=`pwd`

Please tell me if any body faced the similar problem and got it fixed. Thanks!


  


Re: [ns] AWK programms

2009-01-05 Thread Mohammed Abu Hajar

Salam Alikm,

About the first point: there are two type of packets ( Data and Control ) 
packets. control=request+reply messages. Also I am referring you to see the 
NS-2 manual about Packets in NS-2.

About the second: yes 

 packet_id = $41; 41 column. also try study the output trace file to get more 
information

I advise all the beginner into NS-2 to try simple programs and scenarios.

All the best,

Mohammed AbuHajar
Master of Computer Science








From: sarym binome 
To: mcs...@yahoo.com
Sent: Monday, January 5, 2009 1:11:46 PM
Subject: RE: [ns] AWK programms

 hello, salem
i prepar a simulation for AODV routing protocol, for E2E delay , i saw your 
example you work in application layer (AGT),

if (( $1 == "r") &&  ( $35 == "cbr" ) && ( $19=="AGT" )) {  end_time[packet_id] 
= time;  }
   else {  end_time[packet_id] = -1;  }

don't we work whith pkt type ( AODV  REQUEST and  REPLY)??(i'm new and 
i realy don't know )
 { if (($1=="s")&&($25=="(REQUEST)")&&($17=="0]")) { time[$23,$21]=$2 
;printf ("le temps d'émission de requête : %f \n",time[$23,$21] );}; 

an other question about   # CALCULATE DELAY 
( packet_id = $41;) whay you choose $41 is the trace file for DRS has a 
more than 26 column !?

thanks, best regards.


> Date: Mon, 5 Jan 2009 11:56:37 -0800
> From: mcs...@yahoo.com
> To: g.ha...@gmail.com
> CC: ns-users@ISI.EDU
> Subject: Re: [ns] AWK programms
> 
> 
> Hi,
> 
> About the first point: you need to check your simulation environment and 
> parameters and try to simulate these protocol with simple simulation 
> scenarios.
> About the second point: because I need to remove the size of the packet 
> header from the received packet, so I need exactly to know how the size of 
> header.
> 
> All the Successes,
> Mohammed AbuHajar
> Palestine Territory, Occupied.
> 
> 
> 
> 
> 
> 
> From: hajer h 
> To: mcs...@yahoo.com
> Sent: Monday, January 5, 2009 1:04:41 AM
> Subject: AWK programms
> 
> 
> hello i am working with ns2..
> and i am loocking for some awk programme that calculate the average 
> throughput, e-2-e delay, NRL and PDF...for all protcol AODV OLSR DSR DSDV...
> can you help me in this way...
> i have tried 
> http://mailman.isi.edu/pipermail/ns-users/2007-August/060808.html those 
> programme i didn't understand why they gives 0 for such protocol like DSR or 
> DSDV...
> i have anothers questions : about the avearge thtoughut : why did you 
> subtrain  512 ...did you calcul the average throughput for TCP traffic???
> thanks in advance...
> 
> 
> 
> 
> -- 
> 
> "Somewhere, something incredible is waiting to be known."
> 
> 
> 


Téléchargez le nouveau Windows Live Messenger ! Téléchargez Messenger, c'est 
gratuit !


  


Re: [ns] AWK programms

2009-01-05 Thread Mohammed Abu Hajar

Hi,

About the first point: you need to check your simulation environment and 
parameters and try to simulate these protocol with simple simulation scenarios.
About the second point: because I need to remove the size of the packet header 
from the received packet, so I need exactly to know how the size of header.

All the Successes,
Mohammed AbuHajar
Palestine Territory, Occupied.






From: hajer h 
To: mcs...@yahoo.com
Sent: Monday, January 5, 2009 1:04:41 AM
Subject: AWK programms


hello i am working with ns2..
and i am loocking for some awk programme that calculate the average throughput, 
e-2-e delay, NRL and PDF...for all protcol AODV OLSR DSR DSDV...
can you help me in this way...
i have tried http://mailman.isi.edu/pipermail/ns-users/2007-August/060808.html 
those programme i didn't understand why they gives 0 for such protocol like DSR 
or DSDV...
i have anothers questions : about the avearge thtoughut : why did you subtrain  
512 ...did you calcul the average throughput for TCP traffic???
thanks in advance...
 
 


-- 

"Somewhere, something incredible is waiting to be known."


  


Re: [ns] i need help

2008-04-11 Thread Mohammed Abu Hajar

There is a lot of tutorial through the internet you can read it.

Regards
Mohammed AbuHajar

mohamed saad <[EMAIL PROTECTED]> wrote: 
salam alikom

can you help me
to run asimulator NS2
i use it first
i has written aprogram in text editor and save it as "ex1.tcl"
but
when i run it by typing "ns ex1.tcl" in the shell
it say
   couldn't read file "exi.tcl"no such file or directory
i didn't understand what is this?
could you help me HOW TO USE NS2
i'am new to use NS2 

GAZAK ALLAH KHIRN

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: [ns] trace files

2007-12-04 Thread Mohammed Abu Hajar

Hi, 
I would like to know that the awk script is for DSR protocol and you can change 
it to other protocol like AODV, DSDV,etc. Second thing the awk script for 
wireless channel, if you see at the begining in the TCL configuration file "set 
opt(chan)   Channel/WirelessChannel" so you take care about that, and thers is 
another configuration like mobility senarios file, mobility model. From my 
point view I advice you to do some sample examples for wired and wireless 
environment and try to mixed between them later, I think there are many points 
will be clear to you, however If I get somthing relevant to your work I will 
provide you as soon as possible.

Regards,
Mohammed AbuHajar



- Original Message 
From: suryowibowo.adi <[EMAIL PROTECTED]>
To: Mohammed Abu Hajar <[EMAIL PROTECTED]>
Sent: Wednesday, December 5, 2007 12:36:25 AM
Subject: re: trace files

hiii
Thanks for your mail,
I was tried your awk and I get this again
send = 8871.00
recv = 0.00
routingpkts = 741.00
PDF = 0.00
NRL = inf
Average e-e delay(ms)= nan
No. of dropped data (packets) = 47
No. of dropped data (bytes)   = 25212
Packet Loss [
Do you have other solution..?
need to know that i simulated wired_wireless simulation with new trace and I 
was modified the ns-default.tcl to get spcecification 802.11b 
I think our awk only for wireless?isn't it..

how to  calculate in domain wired and wireless, must i calcullate domain per 
domain separatelly? have you suggest to me..?
When I simulated I have this warning whats means:
8388617) !!! DROP_RTR_QFULL at 52.928734 !!!
8388617) !!! DROP_RTR_QFULL at 52.968734 !!!
12582918) !!! DROP_RTR_QFULL at 57.716066 !!!
after i search in cmu-trace.h this meaning is "queue full" isn't normal?
How to fix this?

The second is 
I was get this warning but my nam and .tr run without problem/ I don't know is 
success simulation or unsuccess.
Nam syntax has changed: v -t 0 set_rate_ext 0.014999 1
Please use this format in the future.
v -t  -e 

Warning: Tracefile events are not sorted by time.
m -t 3.6744717602359467 -s 10 -n m10 -c green -h circle
The above event should occur at or after -t 3.674472.

Warning: Tracefile events are not sorted by time.
m -t 8.565819535886785 -s 19 -n m19 -c green -h circle
The above event should occur at or after -t 8.565820.

I am very appreciate for Your attention .





Bergabunglah dengan orang-orang yang berwawasan, di bidang Anda di Yahoo! 
Answers


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


[ns] Wireless Communication Books

2007-12-03 Thread Mohammed Abu Hajar

I am searching for electrnics book for the following, if any one have its good 
to send me 

B. P. Lathi: Modern Digital and Analog Communication Systems 3/e, Oxford 
University Press 1998. 
William Stalling: Wireless Communications and Networks, 



  
"Digital Communications: Fundamentals and Applications", by Bernard Sklar, 
Prentice Hall, 2001, ISBN 0-13-084788-7 
"Communication systems engineering", by John G. Proakis and Masoud Salehi, 
Prentice Hall, 2002, ISBN 0-13-095007-6 
·"Introduction to digital communications", by Michael B. Pursley, 
Pearson, Prentice Hall, 2005, International edition, ISBN: 0-13-123392-0 

·"Digital communications", by Ian A. Glover and Peter M. Grant, 
Pearson, Prentice Hall, 2004, second edition, ISBN: 0-13-089399-4 

·“Data and Computer Communications,” W. Stallings, 7th ed., Prentice 
Hall, 2004.


·“Data Communications and Networking,” Behrouz A. Forouzan, 3rd ed, 
Mc-Graw Hill, 2004


  

Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 


Re: [ns] Fwd: help me fix this trace

2007-12-01 Thread Mohammed Abu Hajar

Dear Sir,

Don't worry about that, I will help you step by step to get the correct 
results, firstly use the attach awk script to extract results from you 
simulation output file using the command: 
awk -f metrics.awk out.tr 
and let me see the results, if its not worked well, there is another soultion..

Regards,
Mohammed AbuHajar
MSc Computer Science
University of Northern Virginia



- Original Message 
From: adi suryo wibowo <[EMAIL PROTECTED]>
To: Mohammed Abu Hajar <[EMAIL PROTECTED]>; NS2 
Sent: Saturday, December 1, 2007 12:19:46 AM
Subject: Fwd: help me fix this trace

Hii ns-User

I was read in ns mailing list and I found your name in contribute helping other 
peoples.
I truly need your help..
I was simulated my tcl script in ns2.30 using new_trace format
I have out.tr then I want to calculate 3 performance metric :
paket delivery ratio, normalized overhead and end to end delay.
I use my awk script to get desire value but I don't know that was not success.
I get this value in my parsing result
send = 8871.00
recv = 0.00
routingpkts = 682.00
PDF = 0.00
NRL = inf
Average e-e delay(ms)= nan
No. of dropped data (packets) = 322
No. of dropped data (bytes)   = 171304

I am attach .tr file in my mail, please help me what's wrong..?
why my recv and PDF = 0.00?
My awk script was wrong? or
can you give me correct calculation with my out2.tr in my attachment ? 
What meaning of :  NRL = inf
  Average e-e delay(ms)= nan
thanks for your reply.
STTTelkom Student at Indonesia


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hsBEGIN {
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;  }

#= 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 = routing load but 
it differ from routing overhead
   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);
   printf("Packet Loss [%]= %.2f  \n", 
(droppedPackets/(highest_packet_id+1))*100);
}


Re: [ns] Re : Yes Sir

2007-11-29 Thread Mohammed Abu Hajar

do you work under linux or windows to run awk utility...?
Your awk  code is correct, just write the following command on linux:
awk -f fil2.awk out.tr > 1.txt
you will get like the attach file .. it work well.

Mohammed AbuHajar
Palestine



- Original Message 
From: loussayef marouane <[EMAIL PROTECTED]>
To: Mohammed Abu Hajar <[EMAIL PROTECTED]>
Sent: Thursday, November 29, 2007 8:43:35 PM
Subject: Re : Yes Sir


Hi,

file is attached
awk -f fil2.awk out.tr > out2.xgr
Thanks


- Message d'origine 
De : Mohammed Abu Hajar <[EMAIL PROTECTED]>
À : loussayef marouane <[EMAIL PROTECTED]>
Envoyé le : Jeudi, 29 Novembre 2007, 12h38mn 35s
Objet : Yes Sir/Madam


Yes, if you can sent to me the awk script file and fil2.awk its good, The 
problem may be in your awk file there something error.
 
Yours Sincerely,
Mohammed AbuHajar


- Original Message 
From: loussayef marouane <[EMAIL PROTECTED]>
To: Mohammed Abu Hajar <[EMAIL PROTECTED]>
Sent: Thursday, November 29, 2007 3:44:47 PM
Subject: Re : Re : [ns] help : error


Hi,

when I run my program and execute awk -f fil2.awk out.tr > out2.xgr
the file out2.xgr contain juste one value!
can you help me please.
thanks


----- Message d'origine 
De : Mohammed Abu Hajar <[EMAIL PROTECTED]>
À : loussayef marouane <[EMAIL PROTECTED]>
Envoyé le : Jeudi, 29 Novembre 2007, 2h56mn 10s
Objet : Re: Re : [ns] help : error


which graph utility do you use?


 
- Original Message 
From: loussayef marouane <[EMAIL PROTECTED]>
To: Mohammed Abu Hajar <[EMAIL PROTECTED]>
Sent: Wednesday, November 28, 2007 10:16:04 PM
Subject: Re : [ns] help : error


Hi,
I resolve error, awk is working. but when I show a graph it's null. I don't 
know a problem.
Can you help me please.
Thanks


- Message d'origine 
De : Mohammed Abu Hajar <[EMAIL PROTECTED]>
À : loussayef marouane <[EMAIL PROTECTED]>
Cc : NS_2 Mailing List 
Envoyé le : Mercredi, 28 Novembre 2007, 3h03mn 44s
Objet : Re: [ns] help : error


Yes Sir,
Try to execute the command  awk -f f0.awk out.tr > t0.xgr on linux command line 
prompt including the tcl file, I face this problem previous and solve it later 
like this
 
Mohammed AbuHajar


- Original Message 
From: loussayef marouane <[EMAIL PROTECTED]>
To: ns-users@ISI.EDU
Sent: Wednesday, November 28, 2007 1:04:55 AM
Subject: [ns] help : error


Hello,

can anyone help me for this error message

ns: finish: awk: syntax error near line 1
awk: bailing out near line 1
while executing
"exec awk -f f0.awk out.tr > t0.xgr"
(procedure "finish" line 7)
invoked from within
"finish"


Thanks




  
_ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 






Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.





Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 





Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.





Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 





Get easy, one-click access to your favorites. Make Yahoo! your homepage. 





Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail


  

Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 0 0
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
9 0
10 0
11 0
12 0
13 0
14 0
15 0
16 0
17 0
18 0
19 0
20 160
21 160
22 1592000
23 1608000
24 1592000
25 160
26 1608000
27 1592000
28 160
29 1608000
30 1592000
31 160
32 1608000
33 1592000
34 1608000
35 160
36 160
37 160
38 160
39 1592000
40 1608000
41 160
42 1592000
43 1608000
44 160
45 1592000
46 160
47 160
48 1608000
49 1592000
50 1608000
51 160
52 160
53 160
54 1592000
55 160
56 1608000
57 160
58 1592000
59 160
60 808000
61 80
62 752000
63 712000
64 856000
65 864000
66 76
67 728000
68 792000
69 744000
70 824000
71 784000
72 872000
73 736000
74 80
75 792000
76 808000
77 848000
78 864000
79 784000
80 848000
81 752000
82 824000
83 776000
84 776000
85 832000
86 824000
87 728000
88 784000
89 816000
90 768000
91 76
92 776000
93 768000
94 776000
95 792000
96 80
97 768000
98 752000
99 76
100 592000
101 672000
102 456000
103 48
104 544000
105 544000
106 504000
107 504000
108 592000
109 44
110 552000
111 584000
112 512000
113 528000
114 408000
115 52
116 424000
117 488000
118 568000
119 488000
120 368000
121 52
122 536000
123 488000
124 576000
125 496000
126 52
127 536000
128 536000
129 424000
130 52
131 448000
132 496000
133 544000
134 528000
135 488000
136 416000
137 512000
138 48
139

Re: [ns] help : error

2007-11-28 Thread Mohammed Abu Hajar

Yes Sir,
Try to execute the command  awk -f f0.awk out.tr > t0.xgr on linux command line 
prompt including the tcl file, I face this problem previous and solve it later 
like this

Mohammed AbuHajar


- Original Message 
From: loussayef marouane <[EMAIL PROTECTED]>
To: ns-users@ISI.EDU
Sent: Wednesday, November 28, 2007 1:04:55 AM
Subject: [ns] help : error


Hello,

can anyone help me for this error message

ns: finish: awk: syntax error near line 1
awk: bailing out near line 1
while executing
"exec awk -f f0.awk out.tr > t0.xgr"
(procedure "finish" line 7)
invoked from within
"finish"


Thanks




  
_ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail


  

Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.  
http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ


[ns] Yes there is

2007-11-23 Thread Mohammed Abu Hajar

Yes there is, but let me know something unclear to me: what do you mean by 
"orient outputs to our files directory other than ns-2x"? , Is you need to 
store simulation output file on other location due to limited disk volume. 
clear it...
Another thing I advice you to work under linux operating system, it will help 
you than windows systems, and it will provide you avarity of tools that assist 
you for extracting results from simulation output traces files.
The last thing, fortunatly, I am also work with subjects related to QoS for Ad 
Hoc routing protocols, its fine to meet you.

Regards
Mohammed AbuHajar



- Original Message 
From: Nabila khedimi <[EMAIL PROTECTED]>
To: Mohammed Abu Hajar <[EMAIL PROTECTED]>
Sent: Thursday, November 22, 2007 3:30:00 PM
Subject: RE: OK CBR generator method

Thank you very much for your help, your scripts are very welcomed as all other 
ideas related to the creation  of different scenarios for a simulation, I am 
working on a QoS -routing in the overlay of internet  , I developped two 
formulations and I am working on their performance,
 
do you have an idea on how to orient outputs to our files directory other than 
ns-2x, 
thanks 
nabila



Date: Wed, 21 Nov 2007 22:40:14 -0800
From: [EMAIL PROTECTED]
Subject: Re: OK CBR generator method
To: [EMAIL PROTECTED]
CC: ns-users@isi.edu


I have another idea, try to use a traffic scenario generator tools 
"cbrgen.tcl." that is located in the "~/ns-2.28/indep-utils/cmu-scen-gen" to 
generate your CBR traffic in a separte file. and link your file within your TCL 
scipt. I think this is a good technique, I used it befor. Beside that you can 
use AWK or Perl or bash scripts for extracting results form the simulated 
output file. So If want to want to test this way I will privide you some 
scripts and I will assist you.

About proc I think there is some statement should written in you procedure 
block.. let me search about that.
 
Regards.
Mohammed AbuHajar

- Original Message 
From: Nabila khedimi <[EMAIL PROTECTED]>
To: Mohammed Abu Hajar <[EMAIL PROTECTED]>; ns-users@isi.edu
Sent: Wednesday, November 21, 2007 8:48:28 PM
Subject: RE: OK


just to your knowledge, no problem arises  for the exponnential traffic, the 
procedure works perfectly,  can a cbr  traffic simulated by a an exponential 
with 0 for  idle time?
Thanks for help

> Date: Tue, 20 Nov 2007 10:08:51 -0800
> From: [EMAIL PROTECTED]
> Subject: OK
> To: [EMAIL PROTECTED]
> 
> Dear Mis,Nabila
> I will review this point and will return to you as sooner as possible,don't 
> worry about that.
> 
> Regards
> Mohammed AbuHajar
> 
> - Original Message 
> From: Nabila khedimi 
> To: Mohammed Abu Hajar 
> Cc: NS_2 Mailing List 
> Sent: Tuesday, November 20, 2007 4:38:48 PM
> Subject: RE: [ns] Traffic generation in a proc
> 
> Hi,
> I am still wondering about the no generation of a trafic when it is done by a 
> procedure  although the same code made outside works, but when I put it in a 
> procedure it does not!!!  anyone has an idea
> nabila
> 
> 
> Date: Mon, 19 Nov 2007 10:46:30 -0800
> From: [EMAIL PROTECTED]
> Subject: Re: [ns] Traffic generation in a proc
> To: [EMAIL PROTECTED]
> CC: ns-users@isi.edu
> 
> Hi ns user,
> Try to wirte the cbr traffic without procedure to show it is correct or not. 
> Like
> 
> # Traffic Source 1: Mobile node1->node3, flowid=1
> set udp1 [new Agent/UDP]
> $ns_ attach-agent $node_(1) $udp1
> $udp1 set class_ 1
> $udp1 set fid_ 1
> set cbr1 [new Application/Traffic/CBR]
> $cbr1 attach-agent $udp1
> $cbr1 set rate_ 20kb
> $cbr1 set packetSize_ 512
> #$cbr1 set interval_ 0.2
> # Set loss monitor (to count bytes) at node 3
> set null1 [new Agent/Null]
> $ns_ attach-agent $node_(8) $null1
> # Connect the CBR generator to the loss monitor
> $ns_ connect $udp1 $null1
> 
> 
> Cheers,
> Mohammed AbuHajar
> 
> - Original Message 
> From: Nabila khedimi 
> To: ns-users@ISI.EDU
> Sent: Monday, November 19, 2007 7:27:35 PM
> Subject: [ns] Traffic generation in a proc
> 
> 
> 
> Hi every one,
> I wrote a tcl proc for the generation of a cbr trafic :
> 
> proc generate_cbr_traffic {agent_src size rate start_time end_time} {
> global ns  puts "In generate cbr: $agent_src $size $rate $start_time 
> $end_time" set cbr_ [new Application/Traffic/CBR] $cbr_ set type_ CBR $cbr_ 
> set packetsize_ $size $cbr_ set rate_ $rate $cbr_ attach-agent $agent_src $ns 
> at $start_time "$cbr_ start" $ns at $end_time "$cbr_ stop"}
> 
> I made the connection of the udp agents outside the procedure , when I call 
> the procedure, in the NAM environment no traffic was generated ,
> 
> 
&

Re: [ns] OK CBR generator method

2007-11-21 Thread Mohammed Abu Hajar

I have another idea, try to use a traffic scenario generator tools 
"cbrgen.tcl." that is located in the "~/ns-2.28/indep-utils/cmu-scen-gen" to 
generate your CBR traffic in a separte file. and link your file within your TCL 
scipt. I think this is a good technique, I used it befor. Beside that you can 
use AWK or Perl or bash scripts for extracting results form the simulated 
output file. So If want to want to test this way I will privide you some 
scripts and I will assist you.

About proc I think there is some statement should written in you procedure 
block.. let me search about that.

Regards.
Mohammed AbuHajar

- Original Message 
From: Nabila khedimi <[EMAIL PROTECTED]>
To: Mohammed Abu Hajar <[EMAIL PROTECTED]>; ns-users@isi.edu
Sent: Wednesday, November 21, 2007 8:48:28 PM
Subject: RE: OK


just to your knowledge, no problem arises  for the exponnential traffic, the 
procedure works perfectly,  can a cbr  traffic simulated by a an exponential 
with 0 for  idle time?
Thanks for help

> Date: Tue, 20 Nov 2007 10:08:51 -0800
> From: [EMAIL PROTECTED]
> Subject: OK
> To: [EMAIL PROTECTED]
> 
> Dear Mis,Nabila
> I will review this point and will return to you as sooner as possible,don't 
> worry about that.
> 
> Regards
> Mohammed AbuHajar
> 
> - Original Message 
> From: Nabila khedimi 
> To: Mohammed Abu Hajar 
> Cc: NS_2 Mailing List 
> Sent: Tuesday, November 20, 2007 4:38:48 PM
> Subject: RE: [ns] Traffic generation in a proc
> 
> Hi,
> I am still wondering about the no generation of a trafic when it is done by a 
> procedure  although the same code made outside works, but when I put it in a 
> procedure it does not!!!  anyone has an idea
> nabila
> 
> 
> Date: Mon, 19 Nov 2007 10:46:30 -0800
> From: [EMAIL PROTECTED]
> Subject: Re: [ns] Traffic generation in a proc
> To: [EMAIL PROTECTED]
> CC: ns-users@isi.edu
> 
> Hi ns user,
> Try to wirte the cbr traffic without procedure to show it is correct or not. 
> Like
> 
> # Traffic Source 1: Mobile node1->node3, flowid=1
> set udp1 [new Agent/UDP]
> $ns_ attach-agent $node_(1) $udp1
> $udp1 set class_ 1
> $udp1 set fid_ 1
> set cbr1 [new Application/Traffic/CBR]
> $cbr1 attach-agent $udp1
> $cbr1 set rate_ 20kb
> $cbr1 set packetSize_ 512
> #$cbr1 set interval_ 0.2
> # Set loss monitor (to count bytes) at node 3
> set null1 [new Agent/Null]
> $ns_ attach-agent $node_(8) $null1
> # Connect the CBR generator to the loss monitor
> $ns_ connect $udp1 $null1
> 
> 
> Cheers,
> Mohammed AbuHajar
> 
> - Original Message 
> From: Nabila khedimi 
> To: ns-users@ISI.EDU
> Sent: Monday, November 19, 2007 7:27:35 PM
> Subject: [ns] Traffic generation in a proc
> 
> 
> 
> Hi every one,
> I wrote a tcl proc for the generation of a cbr trafic :
> 
> proc generate_cbr_traffic {agent_src size rate start_time end_time} {
> global ns  puts "In generate cbr: $agent_src $size $rate $start_time 
> $end_time" set cbr_ [new Application/Traffic/CBR] $cbr_ set type_ CBR $cbr_ 
> set packetsize_ $size $cbr_ set rate_ $rate $cbr_ attach-agent $agent_src $ns 
> at $start_time "$cbr_ start" $ns at $end_time "$cbr_ stop"}
> 
> I made the connection of the udp agents outside the procedure , when I call 
> the procedure, in the NAM environment no traffic was generated ,
> 
> 
> Thanks for your help
> nabila
> _
> Your smile counts. The more smiles you share, the more we donate.   Join in.
> www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmtagline
> 
> 
> 
> Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.
> 
> Have fun while connecting on Messenger! Click here to learn more.
> 
> 
> 
> Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it 
> now.

_
R U Ready for Windows Live Messenger Beta 8.5? Try it today!
http://entertainment.sympatico.msn.ca/WindowsLiveMessenger


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


Re: [ns] trace using Perl

2007-11-19 Thread Mohammed Abu Hajar

Hi, 
What do you need to achieve? what is your purpose with perl code? Why do you 
not using awk or bash scripts, or tracegraph utility.

Cheers,
Mohammed AbuHajar


- Original Message 
From: alberto de barros <[EMAIL PROTECTED]>
To: ns ns-users 
Sent: Monday, November 19, 2007 6:22:14 PM
Subject: [ns] trace using Perl


Dear all
How can I use perl code to view the trace from a multicasting wirelless 
routing protocol ?

  regards


-
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
exceptionnels pour appeler la France et l'international.Téléchargez la version 
beta.


  

Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.  
http://overview.mail.yahoo.com/


Re: [ns] Traffic generation in a proc

2007-11-19 Thread Mohammed Abu Hajar

Hi ns user,
Try to wirte the cbr traffic without procedure to show it is correct or not. 
Like

# Traffic Source 1: Mobile node1->node3, flowid=1
set udp1 [new Agent/UDP]
$ns_ attach-agent $node_(1) $udp1
$udp1 set class_ 1
$udp1 set fid_ 1
set cbr1 [new Application/Traffic/CBR]
$cbr1 attach-agent $udp1
$cbr1 set rate_ 20kb
$cbr1 set packetSize_ 512
#$cbr1 set interval_ 0.2
# Set loss monitor (to count bytes) at node 3
set null1 [new Agent/Null]
$ns_ attach-agent $node_(8) $null1
# Connect the CBR generator to the loss monitor
$ns_ connect $udp1 $null1


Cheers,
Mohammed AbuHajar


- Original Message 
From: Nabila khedimi <[EMAIL PROTECTED]>
To: ns-users@ISI.EDU
Sent: Monday, November 19, 2007 7:27:35 PM
Subject: [ns] Traffic generation in a proc



Hi every one,
I wrote a tcl proc for the generation of a cbr trafic :

proc generate_cbr_traffic {agent_src size rate start_time end_time} { 
global ns  puts "In generate cbr: $agent_src $size $rate $start_time 
$end_time" set cbr_ [new Application/Traffic/CBR] $cbr_ set type_ CBR $cbr_ set 
packetsize_ $size $cbr_ set rate_ $rate $cbr_ attach-agent $agent_src $ns at 
$start_time "$cbr_ start" $ns at $end_time "$cbr_ stop"}

I made the connection of the udp agents outside the procedure , when I call the 
procedure, in the NAM environment no traffic was generated , 


Thanks for your help
nabila
_
Your smile counts. The more smiles you share, the more we donate.  Join in.
www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmtagline


  

Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 


Re: [ns] video streaming over wireless

2007-11-14 Thread Mohammed Abu Hajar

See this PDF file, may help you
  www.stanford.edu/~bgirod/pdfs/Zhu_Girod_EUSIPCO_07.pdf 
  http://hpds.ee.ncku.edu.tw/~smallko/ns2/Evalvid_in_NS2.htm
   
  Regards,
  Mohammed AbuHajar
  

Gloria <[EMAIL PROTECTED]> wrote:
  
Hello,
Did any one know how to simulate video streaming over wireless networks 
in ns2?


Thanks a lot!!! :-) 

Glo.



   
-
Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.


Re: [ns] why not response!!!!

2007-11-14 Thread Mohammed Abu Hajar

I think its possible, you know that there are a header file *.h and an 
implementation file *.cc and *.tcl for configuration simulation file

  in C++ code use:
  Tcl& tcl = Tcl::instance();
tcl.evalc("Any statement written in you TCL configuration file");
const char* tmp = tcl.resultf() ;
  int NewVariable= atoi(tmp);
   
  in your tcl file use:
  Any statement written in you TCL configuration file 'number'
   
  For further informations, See:
  http://nile.wpi.edu/NS/linkage.html
   
  
http://140.127.22.90/index.files/Subject/Tong(90-2)--Performance_of_system/Chapter%203%20%20Otcl%20Linkage.ppt
   
   
   
  Cheers,
  Mohammed AbuHajar
   
   
  
leticia bela <[EMAIL PROTECTED]> wrote:
  Thanks for your response, I have not problem to generate a traffic file. My 
problem is how can i change the value of a rate for a given source during 
simulation from my c++ file.
thanks again

Mohammed Abu Hajar <[EMAIL PROTECTED]> a écrit :Creating random 
traffic-pattern for wireless scenarios
   
  Random traffic connections of TCP and CBR (Constant Bit Rate) can be setup 
between mobile nodes using a traffic scenario generator script. This traffic 
generator script is available under ~/ns-2.28/indep-utils/cmu-scen-gen and is 
called cbrgen.tcl. The command line looks like the following:
   
  ns cbrgen.tcl [-type cbr|tcp] [-nn nodes] [-seed seed] [-mc 
connections] [-rate rate]
   
  -type cbr|tcp
Type of the generated traffic, TCP or CBR
  -nn nodes
Total number of nodes being simulated
  -seed seed
Random number seed used to initialize part of the seed of various randomly 
generated numbers in the simulation. This can be used to vary the seed of the 
simulation to see the consistency of the results of the simulation
  -mc connections
Number of flow connections
  -rate rate
Number of packets per second.
  cbr gensub-command explanation
   
  The start times for the TCP/CBR connections are randomly generated with a 
maximum value set at 180.0s, thus the simulation time is at least 180 seconds, 
and the number of nodes has no relationship to the maximum number of 
connections.
   
  A typical generated CBR traffic file looks like:
   
  set udp_(1) [new Agent/UDP]
  $ns_ attach-agent $node_(4) $udp_(1)
  set null_(1) [new Agent/Null]
  $ns_ attach-agent $node_(5) $null_(1)
  set cbr_(1) [new Application/Traffic/CBR]
  $udp_(1) set fid_ 1
  $cbr_(1) set packetSize_ 512
  $cbr_(1) set interval_ 0.25
  $cbr_(1) set random_ 1
  $cbr_(1) set maxpkts_ 1
  $cbr_(1) attach-agent $udp_(1)
  $ns_ connect $udp_(1) $null_(1)
  $ns_ at 56.333118917575632 "$cbr_(1) start"
   
  A typical generated TCP (FTP) traffic file looks like:
   
  set tcp_(0)  [ new Agent/TCP   ]
  set sink_(0) [ new Agent/TCPSink   ]
  set ftp_(0)  [ new Application/FTP ]
  $tcp_(0) set class_ 1
  $tcp_(0) set packetSize_ 512
  $ns_ attach-agent $node_(1) $tcp_(0)
  $ns_ attach-agent $node_(2) $sink_(0)
  $ftp_(0) attach-agent $tcp_(0)
  $ns_ connect $tcp_(0) $sink_(0)
  $ns_ at 2.5568388786897245 "$ftp_(0) start"
  $ns_ at $val(stop)  "$ftp_(0) stop"
   
  If you want to change the values you can use awk script to do that.
   
  
Regards,
  Mohammed AbuHajar
  MSc of Computer Science
   
  
leticia bela <[EMAIL PROTECTED]> wrote:
  
Hi,

Please can any one say me how can i change cbr rate during simulation for a 
given resource from my c++ file. or there are not solution for this 
???

thanks a lot!!!



-
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

  
  
-
  Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.

-
  Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

   
-
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.


Re: [ns] why not response!!!!

2007-11-14 Thread Mohammed Abu Hajar

 Creating random traffic-pattern for wireless scenarios
   
  Random traffic connections of TCP and CBR (Constant Bit Rate) can be setup 
between mobile nodes using a traffic scenario generator script. This traffic 
generator script is available under ~/ns-2.28/indep-utils/cmu-scen-gen and is 
called cbrgen.tcl. The command line looks like the following:
   
ns cbrgen.tcl [-type cbr|tcp] [-nn nodes] [-seed seed] [-mc 
connections] [-rate rate]

   
-type cbr|tcp
Type of the generated traffic, TCP or CBR
  -nn nodes
Total number of nodes being simulated
  -seed seed
Random number seed used to initialize part of the seed of various randomly 
generated numbers in the simulation. This can be used to vary the seed of the 
simulation to see the consistency of the results of the simulation
  -mc connections
Number of flow connections
  -rate rate
Number of packets per second.

  Table 6: cbr gensub-command explanation
   
  The start times for the TCP/CBR connections are randomly generated with a 
maximum value set at 180.0s, thus the simulation time is at least 180 seconds, 
and the number of nodes has no relationship to the maximum number of 
connections.
   
  A typical generated CBR traffic file looks like:
   
set udp_(1) [new Agent/UDP]
  $ns_ attach-agent $node_(4) $udp_(1)
  set null_(1) [new Agent/Null]
  $ns_ attach-agent $node_(5) $null_(1)
  set cbr_(1) [new Application/Traffic/CBR]
  $udp_(1) set fid_ 1
  $cbr_(1) set packetSize_ 512
  $cbr_(1) set interval_ 0.25
  $cbr_(1) set random_ 1
  $cbr_(1) set maxpkts_ 1
  $cbr_(1) attach-agent $udp_(1)
  $ns_ connect $udp_(1) $null_(1)
  $ns_ at 56.333118917575632 "$cbr_(1) start"

   
  A typical generated TCP (FTP) traffic file looks like:
   
set tcp_(0)  [ new Agent/TCP   ]
  set sink_(0) [ new Agent/TCPSink   ]
  set ftp_(0)  [ new Application/FTP ]
  $tcp_(0) set class_ 1
  $tcp_(0) set packetSize_ 512
  $ns_ attach-agent $node_(1) $tcp_(0)
  $ns_ attach-agent $node_(2) $sink_(0)
  $ftp_(0) attach-agent $tcp_(0)
  $ns_ connect $tcp_(0) $sink_(0)
  $ns_ at 2.5568388786897245 "$ftp_(0) start"
  $ns_ at $val(stop)  "$ftp_(0) stop"

   
   
  Also you can use awk script t change parameters
   
  Regards,
  Mohammed AbuHajar
  MSc of Computer Science
   
  

leticia bela <[EMAIL PROTECTED]> wrote:
  
Hi,

Please can any one say me how can i change cbr rate during simulation for a 
given resource from my c++ file. or there are not solution for this 
???

thanks a lot!!!



-
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 


   
-
Get easy, one-click access to your favorites.  Make Yahoo! your homepage.


Re: [ns] why not response!!!!

2007-11-14 Thread Mohammed Abu Hajar

Creating random traffic-pattern for wireless scenarios
   
  Random traffic connections of TCP and CBR (Constant Bit Rate) can be setup 
between mobile nodes using a traffic scenario generator script. This traffic 
generator script is available under ~/ns-2.28/indep-utils/cmu-scen-gen and is 
called cbrgen.tcl. The command line looks like the following:
   
  ns cbrgen.tcl [-type cbr|tcp] [-nn nodes] [-seed seed] [-mc 
connections] [-rate rate]
   
  -type cbr|tcp
Type of the generated traffic, TCP or CBR
  -nn nodes
Total number of nodes being simulated
  -seed seed
Random number seed used to initialize part of the seed of various randomly 
generated numbers in the simulation. This can be used to vary the seed of the 
simulation to see the consistency of the results of the simulation
  -mc connections
Number of flow connections
  -rate rate
Number of packets per second.
  cbr gensub-command explanation
   
  The start times for the TCP/CBR connections are randomly generated with a 
maximum value set at 180.0s, thus the simulation time is at least 180 seconds, 
and the number of nodes has no relationship to the maximum number of 
connections.
   
  A typical generated CBR traffic file looks like:
   
  set udp_(1) [new Agent/UDP]
  $ns_ attach-agent $node_(4) $udp_(1)
  set null_(1) [new Agent/Null]
  $ns_ attach-agent $node_(5) $null_(1)
  set cbr_(1) [new Application/Traffic/CBR]
  $udp_(1) set fid_ 1
  $cbr_(1) set packetSize_ 512
  $cbr_(1) set interval_ 0.25
  $cbr_(1) set random_ 1
  $cbr_(1) set maxpkts_ 1
  $cbr_(1) attach-agent $udp_(1)
  $ns_ connect $udp_(1) $null_(1)
  $ns_ at 56.333118917575632 "$cbr_(1) start"
   
  A typical generated TCP (FTP) traffic file looks like:
   
  set tcp_(0)  [ new Agent/TCP   ]
  set sink_(0) [ new Agent/TCPSink   ]
  set ftp_(0)  [ new Application/FTP ]
  $tcp_(0) set class_ 1
  $tcp_(0) set packetSize_ 512
  $ns_ attach-agent $node_(1) $tcp_(0)
  $ns_ attach-agent $node_(2) $sink_(0)
  $ftp_(0) attach-agent $tcp_(0)
  $ns_ connect $tcp_(0) $sink_(0)
  $ns_ at 2.5568388786897245 "$ftp_(0) start"
  $ns_ at $val(stop)  "$ftp_(0) stop"
   
  If you want to change the values you can use awk script to do that.
   
  
Regards,
  Mohammed AbuHajar
  MSc of Computer Science
   
  
leticia bela <[EMAIL PROTECTED]> wrote:
  
Hi,

Please can any one say me how can i change cbr rate during simulation for a 
given resource from my c++ file. or there are not solution for this 
???

thanks a lot!!!



-
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 


   
-
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.


Re: [ns] help ! for increase communication rage to 1600 m

2007-08-08 Thread Mohammed Abu Hajar

  See the following two web sites for related information:
  http://hpds.ee.ncku.edu.tw/~smallko/ns2/range_en.htm
   
   
  http://140.116.72.80/~smallko/ns2/11b.htm
   
  Mohammed AbuHajar


Phitsanu Eamsomboon <[EMAIL PROTECTED]> wrote:  
My name is Phitsanu from Thailand , I use ns-2 for to do my research .
May I trouble you for ask you some question , I try to increase Transmission
rage is 1600 m by increase Pt but It still can communicate in 500 m range ,


How can I increase transmission rage is 1600 m if I use TwoRayGrounf model.
How can I calculate , Please recommend me 


   
-
Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games. 


Re: [ns] CMU Mobility trace error

2007-08-02 Thread Mohammed Abu Hajar

- Make sure you are define path well
  - recomplie the ns-2 or make new instalation
  =
  I use this script to generate secenario file
Bash script for generate scenarios
make-scenario.sh

   
  #!/bin/bash
   
  dest_dir="movement"
   
  if [ -d $dest_dir ]
  then
   # Do nothing
   echo "'$dest_dir' is a directory"
  else
   echo "Creating directory $dest_dir";
   mkdir --verbose $dest_dir
  fi
   
  
setdest_loc="/home/ns-allinone-2.28q/ns-2.28/indep-utils/cmu-scen-gen/setdest/setdest";
   
  if [ -x $setdest_loc ]
  then
   # Do nothing
   echo "$setdest_loc is executable"
  else
   echo "$setdest_loc does not exist or is not executable";
   exit;
  fi
   
  # Create the scenarios
   
  for i in 900
  do
   for j in 1 2 3 4 5
   do
 $setdest_loc -v 1 -n 50 -p $i -M 20 -t 900 -x 1500 -y 300 > 
$dest_dir/scen-50-$i-$j
   done
  done
   
  echo ""
  echo "Created the following files"
  echo ""
  ls -la $dest_dir/scen-50*
   
   
Mohammed AbuHajar
   
   
  

Saleemsheikh <[EMAIL PROTECTED]> wrote:

  

hi, 

i got this error when i genrate any of wireless sceneario uder
~ns2.29/indep-utils/cmu-scene-gen/setdest 


$ ./setdest -n 100 -p 50.0 -s 2.0 -t 100.0 -x 500 -y 500 > scene-100-test 
assertion "speed != 0.0" failed: file "setdest.cc", line 595 
Aborted (core dumped) 


Can any one know this & would like to help me in this regard. 


Regards, 
Saleem
-- 
View this message in context: 
http://www.nabble.com/CMU-Mobility-trace-error-tf4206099.html#a11964404
Sent from the ns-users mailing list archive at Nabble.com.



   
-
Yahoo! oneSearch: Finally,  mobile search that gives answers, not web links. 


Re: [ns] tcl scripts for calcualting

2007-08-02 Thread Mohammed Abu Hajar

 Scripts for Getting Results

 
  Main script for running the complete simulation
run-dsr.sh

 
  #!/bin/bash
  for i in 20
  do
   for j in 120
   do
 clear
 rm temp.tr
 rm trace2.nam
  ./ns compare.tcl -scen movement/scen-50-$j -tfc traffic/cbr-50-$i -tr 
temp.tr -rpr 1;
 awk -f parameters.awk temp.tr
 awk -f Throughput.awk temp.tr
 awk -f Jitter.awk temp.tr
   done
  done

 
  AWK script to measure send, receive, routing and drop packets. Packet 
delivery ratio, routing overhead, normalize routing load, average end to end 
delay.
parameters.awk

 
  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);
  }

 
  AWK script for calculate the throughput
Throughput.awk

 
  BEGIN {
   recvdSize = 0
   startTime = 1e6
   stopTime = 0
  }
   
  {
   # Trace line format: normal
   if ($2 != "-t") {
 event = $1
 time = $2
 if (event == "+" || event == "-") node_id = $3
 if (event == "r" || event == "d") node_id = $4
 flow_id = $8
 pkt_id = $12
 pkt_size = $6
 flow_t = $5
 level = "AGT"
   }
   # Trace line format: new
   if ($2 == "-t") {
 event = $1
 time = $3
 node_id = $5
 flow_id = $39
 pkt_id = $41
 pkt_size = $37
 flow_t = $45
 level = $19
   }
   
  # Store start time
  if (level == "AGT" && (event == "+" || event == "s") && pkt_size >= 512) {
if (time < startTime) {
 startTime = time
 }
   }
   
  # Update total received packets' size and store packets arrival time
  if (level == "AGT" && event == "r" && pkt_size >= 512) {
   if (time > stopTime) {
 stopTime = time
 }
   # Rip off the header
   hdr_size = pkt_size % 512
   pkt_size -= hdr_size
   # Store received packet's size
   recvdSize += pkt_size
   }
  }
   
  END {
   printf("Average Throughput[kbps] = %.2f\t\t 
StartTime=%.2f\tStopTime=%.2f\n",(recvdSize/(stopTime-startTime))*(8/1000),startTime,stopTime)
  }

 

 

 

 

 

 

 
  AWK script for compute delay jitter
Jitter.awk

 
  BEGIN {
 num_recv=0
   }
   
  {
   # Trace line format: normal
   if ($2 != "-t") {
 event = $1
 time = $2
 if (event == "+" || event == "-") node_id = $3
 if (event == "r" || event == "d") node_id = $4
 flow_id = $8
 pkt_id = $12
 pkt_size = $6
 flow_t = $5
 level = "AGT"
   }
   # Trace line format: new
   if ($2 == "-t") {
 event = $1
 time = $3
 node_id = $5
 flow_id = $39
 pkt_id = $41
 pkt_size = $37
 flow_t = $45
 level = $19
   }
   
  # Store packets send time
  if (level == "AGT" && sendTime[pkt_id] == 0 && (event == "+" || event == "s") 
&& pkt_size >= 512) {
   sendTime[pkt_id] = time
  }
  

Re: [ns] Require Awk script for Old Trace Format File

2007-08-01 Thread Mohammed Abu Hajar

About the awk script for calculate jitter and the awk script for calculate 
throughput is true( notice the first part )
   # Trace line format: normal(for old trace)
 if ($2 != "-t") {
  event = $1
  time = $2
  if (event == "+" || event == "-") node_id = $3
  if (event == "r" || event == "d") node_id = $4
  flow_id = $8
  pkt_id = $12
  pkt_size = $6
  flow_t = $5
  level = "AGT"
 }

  About the awk that calculate Packet Delivery Fraction , Normalize routing 
load, End to End delay and drop packets and Routing Load(overhead) its valid 
for new trace only. So you can modify the parameters used in the awk script 
only or when there ia available time I will modfy it for you.
   
  Lastly I advice you to use new trace format using TCL command in your TCL 
file :
  $ns_ use-newtrace 
  you will get the trace file in new fashion
   
  Mohammed AbuHajar
  
Sofia Iqbal Khanzada <[EMAIL PROTECTED]> wrote:
v\:* {behavior:url(#default#VML);}  o\:* {behavior:url(#default#VML);}  
w\:* {behavior:url(#default#VML);}  .shape {behavior:url(#default#VML);}
st1\:*{behavior:url(#default#ieooui) }Thakyou for earliest 
prompt. The given script is for new trace file format and also generating error 
with new trace file format 
  FNR=760166) fatal: divi sion by zero attempted 
   
  But my trace files are of old format i-e 
   
  DSR format 

M 0.0 nn 50 x 1000 y 1000 rp DSR 
M 0.0 sc 
~/ns-allinone-2.30/ns-2.30/tcl/mobility/scene/NRENO-DSR-Mobility-S2-PT0/DSDV-NRENO-S2-PT0-0
 cp ~/ns-allinone-2.30/ns-2.30/tcl/mobility/scene/TCP-NewReno-TrafficFile seed 
1.0 
M 0.0 prop Propagation/TwoRayGround ant Antenna/OmniAntenna 
Sconfig 0.0 tap: on snoop: rts? on errs? on 
Sconfig 0.0 salvage: on !bd replies? on 
Sconfig 0.0 grat error: on grat reply: on 
Sconfig 0.0 $reply for props: on ring 0 search: on 
Sconfig 0.0 using MOBICACHE 
M 0.0 0 (313.64, 43.50, 0.00), (442.09, 926.57), 2.00 
M 0.0 1 (970.07, 601.01, 0.00), (720.90, 277.89), 2.00 
M 0.0 2 (354.37, 386.19, 0.00), (997.43, 797.71), 2.00 
M 0.0 3 (161.48, 218.16, 0.00), (447.07, 813.34), 2.00 
M 0.0 4 (988.06, 330.81, 0.00), (727.83, 911.39), 2.00 
M 0.0 5 (339.30, 958.75, 0.00), (149.38, 412.51), 2.00 
M 0.0 6 (253.38, 61.00, 0.00), (715.89, 31.36), 2.00 
M 0.0 7 (86.21, 619.90, 0.00), (734.28, 690.18), 2.00 
M 0.0 8 (822.74, 970.59, 0.00), (289.19, 505.51), 2.00 
s 2.556838879 _1_ AGT  --- 0 tcp 40 [0 0 0 0] --- [1:0 2:0 32 0] [0 0] 0 4 
r 2.556838879 _1_ RTR  --- 0 tcp 40 [0 0 0 0] --- [1:0 2:0 32 0] [0 0] 0 4 
s 2.557152010 _1_ RTR  --- 1 DSR 32 [0 0 0 0] --- [1:255 2:255 32 0] 1 [1 
1] [0 1 0 0->0] [0 0 0 0->0] 
r 2.557964124 _28_ RTR  --- 1 DSR 32 [0  1 800] --- [1:255 2:255 32 
0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0] 
r 2.557964384 _22_ RTR  --- 1 DSR 32 [0  1 800] --- [1:255 2:255 32 
0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0] 
r 2.557964432 _34_ RTR  --- 1 DSR 32 [0  1 800] --- [1:255 2:255 32 
0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0] 
r 2.557964491 _15_ RTR  --- 1 DSR 32 [0  1 800] --- [1:255 2:255 32 
0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0] 
r 2.557964595 _25_ RTR  --- 1 DSR 32 [0  1 800] --- [1:255 2:255 32 
0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0] 
r 2.557964635 _11_ RTR  --- 1 DSR 32 [0  1 800] --- [1:255 2:255 32 
0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0]
   
  I need script for these files L I have spent around 2 months for simulating 
720 files L 
   
  I ‘ll be grateful to you for ur kind support.
   
  Thanks & Regards,
  
-
  
  From: Mohammed Abu Hajar [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 01, 2007 12:38 PM
To: Sofia Iqbal Khanzada
Cc: NS_2 Mailing List
Subject: Re: [ns] Require Awk script for Old Trace Format File

   
   Tools and Scripts for Getting Results
   
  AWK script to measure send, receive, routing and drop packets. Packet 
delivery ratio, routing overhead, normalize routing load, average end to end 
delay.
parameters.awk

 
  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;  }
   
  #

Re: [ns] Require Awk script for Old Trace Format File

2007-08-01 Thread Mohammed Abu Hajar

About the awk script for calculate jitter and the awk script for calculate 
throughput is true( notice the first part )
   # Trace line format: normal(for old trace)
 if ($2 != "-t") {
  event = $1
  time = $2
  if (event == "+" || event == "-") node_id = $3
  if (event == "r" || event == "d") node_id = $4
  flow_id = $8
  pkt_id = $12
  pkt_size = $6
  flow_t = $5
  level = "AGT"
 }

  About the awk that calculate Packet Delivery Fraction , Normalize routing 
load, End to End delay and drop packets and Routing Load(overhead) its valid 
for new trace only. So you can modify the parameters used in the awk script 
only or when there ia available time I will modfy it for you.
   
  Lastly I advice you to use new trace format using TCL command in your TCL 
file :
  $ns_ use-newtrace 
  you will get the trace file in new fashion
   
  Mohammed AbuHajar
  
Sofia Iqbal Khanzada <[EMAIL PROTECTED]> wrote:
v\:* {behavior:url(#default#VML);}  o\:* {behavior:url(#default#VML);}  
w\:* {behavior:url(#default#VML);}  .shape {behavior:url(#default#VML);}
st1\:*{behavior:url(#default#ieooui) }Thakyou for earliest 
prompt. The given script is for new trace file format and also generating error 
with new trace file format 
  FNR=760166) fatal: divi sion by zero attempted 
   
  But my trace files are of old format i-e 
   
  DSR format 

M 0.0 nn 50 x 1000 y 1000 rp DSR 
M 0.0 sc 
~/ns-allinone-2.30/ns-2.30/tcl/mobility/scene/NRENO-DSR-Mobility-S2-PT0/DSDV-NRENO-S2-PT0-0
 cp ~/ns-allinone-2.30/ns-2.30/tcl/mobility/scene/TCP-NewReno-TrafficFile seed 
1.0 
M 0.0 prop Propagation/TwoRayGround ant Antenna/OmniAntenna 
Sconfig 0.0 tap: on snoop: rts? on errs? on 
Sconfig 0.0 salvage: on !bd replies? on 
Sconfig 0.0 grat error: on grat reply: on 
Sconfig 0.0 $reply for props: on ring 0 search: on 
Sconfig 0.0 using MOBICACHE 
M 0.0 0 (313.64, 43.50, 0.00), (442.09, 926.57), 2.00 
M 0.0 1 (970.07, 601.01, 0.00), (720.90, 277.89), 2.00 
M 0.0 2 (354.37, 386.19, 0.00), (997.43, 797.71), 2.00 
M 0.0 3 (161.48, 218.16, 0.00), (447.07, 813.34), 2.00 
M 0.0 4 (988.06, 330.81, 0.00), (727.83, 911.39), 2.00 
M 0.0 5 (339.30, 958.75, 0.00), (149.38, 412.51), 2.00 
M 0.0 6 (253.38, 61.00, 0.00), (715.89, 31.36), 2.00 
M 0.0 7 (86.21, 619.90, 0.00), (734.28, 690.18), 2.00 
M 0.0 8 (822.74, 970.59, 0.00), (289.19, 505.51), 2.00 
s 2.556838879 _1_ AGT  --- 0 tcp 40 [0 0 0 0] --- [1:0 2:0 32 0] [0 0] 0 4 
r 2.556838879 _1_ RTR  --- 0 tcp 40 [0 0 0 0] --- [1:0 2:0 32 0] [0 0] 0 4 
s 2.557152010 _1_ RTR  --- 1 DSR 32 [0 0 0 0] --- [1:255 2:255 32 0] 1 [1 
1] [0 1 0 0->0] [0 0 0 0->0] 
r 2.557964124 _28_ RTR  --- 1 DSR 32 [0  1 800] --- [1:255 2:255 32 
0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0] 
r 2.557964384 _22_ RTR  --- 1 DSR 32 [0  1 800] --- [1:255 2:255 32 
0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0] 
r 2.557964432 _34_ RTR  --- 1 DSR 32 [0  1 800] --- [1:255 2:255 32 
0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0] 
r 2.557964491 _15_ RTR  --- 1 DSR 32 [0  1 800] --- [1:255 2:255 32 
0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0] 
r 2.557964595 _25_ RTR  --- 1 DSR 32 [0  1 800] --- [1:255 2:255 32 
0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0] 
r 2.557964635 _11_ RTR  --- 1 DSR 32 [0  1 800] --- [1:255 2:255 32 
0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0]
   
  I need script for these files L I have spent around 2 months for simulating 
720 files L 
   
  I ‘ll be grateful to you for ur kind support.
   
  Thanks & Regards,
  
-
  
  From: Mohammed Abu Hajar [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 01, 2007 12:38 PM
To: Sofia Iqbal Khanzada
Cc: NS_2 Mailing List
Subject: Re: [ns] Require Awk script for Old Trace Format File

   
   Tools and Scripts for Getting Results
   
  AWK script to measure send, receive, routing and drop packets. Packet 
delivery ratio, routing overhead, normalize routing load, average end to end 
delay.
parameters.awk

 
  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;  }
   
  #

Re: [ns] jitter NRL PDF throughput end to end delay

2007-08-01 Thread Mohammed Abu Hajar

Hi manpreet,
   
  In general, a routing protocol is better if the normalized routing load is 
low.
   
   
  Regards
  Mohammed AbuHajar

manpreet grewal <[EMAIL PROTECTED]> wrote:
  
Hi
Sir, i want to know either larger value of NRL is better or 
smaller value of NRL???
I am comparing two networks and want to take NRL as parameter...
SO pls tell me which value(larger or smaller) of NRL is 
better.

Thanks..
Regards,
Manpreet.

On Wed, 18 Jul 2007 Mohammed Abu Hajar wrote :
>About Normalized Routing Load (NRL) it is
> It is the number of routing packet required to be send per 
>data packet delivered.
>
> NRL = (NumberofRoutingPacket)/(NumberofPacketReceived)
> so if you want to change the NRL value you should either 
>change one of the parametres used in equation, this is done by 
>changing the number of traffic sources, number of data packet per 
>second or number of mobile nodes in your simulation scenarion
>
> about the second query , try to see tracegraph analysier, it 
>may help you , and I will do some searching through the internet 
>for other relevant information.
>
> Mohamed AbuHajar
>
>
>
>manpreet grewal wrote:
>
>Hello Sir,
>Thanks alot for your help.
>Your scripts have helped me alot and have solved my big
>problem..
>
>Sir, i had one query... we should try to either increase or
>decrease normalised routing load for our network??
>
>Also Sir, i want your help. i will be highly thankful to you.
>
>Actually i am working on load balancing techniques..
>For results, i want to get following:
>1. Load balance at Routing layer
>under this Sqaured sum- Routing level ((kbps)^2)
>and Load Variance- Routing level ((kbps)^2) are to
>be calculated
>2. Load balance at MAC layer
>under this Sqaured sum- MAC level ((kbps)^2)
>and Load Variance- MAC level ((kbps)^2) are to be
>calculated.
>
>Please if you know something regarding this parameters..please
>help me. Its very urgent for my project.
>
>Regards,
>Manpreet Kaur Grewal.
>
>
>On Sun, 15 Jul 2007 Mohammed Abu Hajar wrote :
> >Yes, plz see the following awk scripts that calcualate the
> >following
> > 6.1 Performance Metrics Used
> > 6.3.1 Routing Overhead
> > 6.3.2 Normalize Routing Load
> > 6.3.3 Packet Delivery Fraction
> > 6.3.4 Average End to End delay
> > 6.3.5 Jitter
> > 6.3.6 Drop Packets
> > 6.3.7 Drop Bytes
> > 6.3.8 Throughput
> > == jitter.awk
> >
> > BEGIN {
> > num_recv=0
> > }
> > {
> > # Trace line format: normal
> > if ($2 != "-t") {
> > event = $1
> > time = $2
> > if (event == "+" || event == "-") node_id = $3
> > if (event == "r" || event == "d") node_id = $4
> > flow_id = $8
> > pkt_id = $12
> > pkt_size = $6
> > flow_t = $5
> > level = "AGT"
> > }
> > # Trace line format: new
> > if ($2 == "-t") {
> > event = $1
> > time = $3
> > node_id = $5
> > flow_id = $39
> > pkt_id = $41
> > pkt_size = $37
> > flow_t = $45
> > level = $19
> > }
> > # Store packets send time
> > if (level == "AGT" && sendTime[pkt_id] == 0 && (event == "+" 
>||
> >event == "s") && pkt_size >= 512) {
> > sendTime[pkt_id] = time
> > }
> > # Store packets arrival time
> > if (level == "AGT" && event == "r" && pkt_size >= 512) {
> > recvTime[pkt_id] = time
> > num_recv++
> > }
> >}
> > END {
> > # Compute average jitter
> > jitter1 = jitter2 = tmp_recv = 0
> > prev_time = delay = prev_delay = processed = 0
> > prev_delay = -1
> > for (i=0; processed> if(recvTime[i] != 0) {
> > tmp_recv++
> > if(prev_time != 0) {
> > delay = recvTime[i] - prev_time
> > e2eDelay = recvTime[i] - sendTime[i]
> > if(delay < 0) delay = 0
> > if(prev_delay != -1) {
> > jitter1 += abs(e2eDelay - prev_e2eDelay)
> > jitter2 += abs(delay-prev_delay)
> > }
> > prev_delay = delay
> > prev_e2eDelay = e2eDelay
> > }
> > prev_time = recvTime[i]
> > }
> > processed++
> > }
> >}
> > END {
> >
> > printf("Jitter1 = %.2f\n",jitter1*1000/tmp_recv);
> > printf("Jitter2 = %.2f\n",jitter2*1000/tmp_recv);
> >}
> > function abs(value) {
> > if (value < 0) value = 0-value
> > return value
> >}
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >

Re: [ns] Simulation error

2007-08-01 Thread Mohammed Abu Hajar

This problem happen with me also, I advice you to save your trace file into 
free partition or large free disk space.
   
  Mohammed AbuHajar

Leonard Tracy <[EMAIL PROTECTED]> wrote:
  
First I should have mentioned that I'm running NS 2.31 on Ubuntu 7.04

The error appears to be more than just writing to the trace file. With 
trace-all, when the error occurs, the file will grow as long as I allow 
the simulation to stay hung. One time, this used up the remaining disk 
space on my 40 gig linux partition (about 30 gig). When the simulation 
runs normally, the trace all file ends up being maybe 1 or 2 meg. The 
error occurs less than 1% of the time.


Leonard


Teerawat Issariyakul wrote:
> Dear Leonard,
>
> $ns trace-all generally generates complete information in the trace file.
> Unfortunately, you usually don't need most of it. A better way is not
> to use it. If you are interested in for example if you are interested in
> how seq. no. of TCP changes, you may use
>
> $tcp trace t_seqno_
>
> Another way is to print out your own text by modifying C++ source code
> (e.g., using cout).
>
> Cheers,
> Teerawat
>
> On 7/30/2007, "Leonard Tracy" wrote:
>
> 
>> Hi,
>>
>> I am new to this mailing list and to NS 2. I am trying to use NS 2 to
>> research new MAC protocols for sensor networks. The majority of my
>> simulations run without error, but sometimes the simulation locks and
>> the trace file grows to many gigabytes. When I look in the trace file
>> it is full of:
>>
>> D 125.0 _2_ IFQ END 0 tcp 0 [0 0 0 0] --- [0:0 0:0 0 0] [0
>> 0] 0 0
>>
>>
>> The simulation I'm currently running has four nodes total. Three of
>> them use CBR via UDP to send data to the 4th node. I'm wondering if
>> anyone else has had a similar problem or a may know a solution.
>>
>> Thanks for any help,
>> Leonard
>>
>>
>> 



   
-
Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, 
when. 


Re: [ns] Require Awk script for Old Trace Format File

2007-08-01 Thread Mohammed Abu Hajar

 Tools and Scripts for Getting Results
   
  AWK script to measure send, receive, routing and drop packets. Packet 
delivery ratio, routing overhead, normalize routing load, average end to end 
delay.
parameters.awk

 
  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);
  }

 
  AWK script for calculate the throughput
Throughput.awk

 
  BEGIN {
   recvdSize = 0
   startTime = 1e6
   stopTime = 0
  }
   
  {
   # Trace line format: normal
   if ($2 != "-t") {
 event = $1
 time = $2
 if (event == "+" || event == "-") node_id = $3
 if (event == "r" || event == "d") node_id = $4
 flow_id = $8
 pkt_id = $12
 pkt_size = $6
 flow_t = $5
 level = "AGT"
   }
   # Trace line format: new
   if ($2 == "-t") {
 event = $1
 time = $3
 node_id = $5
 flow_id = $39
 pkt_id = $41
 pkt_size = $37
 flow_t = $45
 level = $19
   }
   
  # Store start time
  if (level == "AGT" && (event == "+" || event == "s") && pkt_size >= 512) {
if (time < startTime) {
 startTime = time
 }
   }
   
  # Update total received packets' size and store packets arrival time
  if (level == "AGT" && event == "r" && pkt_size >= 512) {
   if (time > stopTime) {
 stopTime = time
 }
   # Rip off the header
   hdr_size = pkt_size % 512
   pkt_size -= hdr_size
   # Store received packet's size
   recvdSize += pkt_size
   }
  }
   
  END {
   printf("Average Throughput[kbps] = %.2f\t\t 
StartTime=%.2f\tStopTime=%.2f\n",(recvdSize/(stopTime-startTime))*(8/1000),startTime,stopTime)
  }

 

 

 

 

 

 

 
  AWK script for compute delay jitter
Jitter.awk

 
  BEGIN {
 num_recv=0
   }
   
  {
   # Trace line format: normal
   if ($2 != "-t") {
 event = $1
 time = $2
 if (event == "+" || event == "-") node_id = $3
 if (event == "r" || event == "d") node_id = $4
 flow_id = $8
 pkt_id = $12
 pkt_size = $6
 flow_t = $5
 level = "AGT"
   }
   # Trace line format: new
   if ($2 == "-t") {
 event = $1
 time = $3
 node_id = $5
 flow_id = $39
 pkt_id = $41
 pkt_size = $37
 flow_t = $45
 level = $19
   }
   
  # Store packets send time
  if (level == "AGT" && sendTime[pkt_id] == 0 && (event == "+" || event == "s") 
&& pkt_size >= 512) {
   sendTime[pkt_id] = time
  }
   
  # Store packets arrival time
  if (level == "AGT" && event == "r" && pkt_size >= 512) {
 recvTime[pkt_id] = time
 num_recv++
   }
  }
   
  END {
   # Compute average jitter
   jitter1 = jitter2 = tmp_recv = 0
   prev_time = delay = prev_delay = processed = 0
   prev_delay = -1
   for (i=0; processed wrote:  

hi, 

I have simulated AODV, DSDV and DSR with TCP variants Reno, NewReno 

Re: [ns] How to calculate packet loss ratio in ns-2

2007-07-29 Thread Mohammed Abu Hajar

  Packet loss rate (PLR - The fraction of sent data packets
  not received at their destination)


Diana Tabet <[EMAIL PROTECTED]> wrote:Dear Mohammed,
   
  If you get answer to your below question could you please inform me too? am 
interested.
   
  thank you
   
  Diana

 
  On 7/4/07, Mohammed Abu Hajar <[EMAIL PROTECTED]> wrote:   
Hi ns-users,

How to calculate packet loss ratio in ns-2 trace file ? what its equation?

Regards


-
Don't be flakey. Get Yahoo! Mail for Mobile and
always stay connected to friends.




   
-
Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. 


Re: [ns] how to get node id in classifier

2007-07-18 Thread Mohammed Abu Hajar

I understand from your query that you want to know the current execution mobile 
node , is it that write?
   
  From the error message you get, means net_id variable not found(not declare) 
so may be the data structure (procedure) you deal with node identification does 
not handle , so I advice you to read the structure more times, may the point 
will be clear.
   
   
   
  Mohammed AbuHajar

rubenjy <[EMAIL PROTECTED]> wrote:
  thanks for your replay

it also show 'net_id' undeclared (first function)
error: (Each undeclared identifier is reported only once for each
function it appears in. )

2007/7/19, Mohammed Abu Hajar :
> Try this:
>
> printf("net_id = %d",net_id.getNSAddr_t());
>
> Mohammed AbuHajar
>
> rubenjy wrote:
>
>
> when i use the code in classifier.cc
> printf("net_id = %s",net_id.dump());
>
> it show "net_id" undeclared.
>
>
>
> Mohammed wrote:
> >
> >
> > through net_id.dump()
> >
> > in other words use: printf("net_id = %s",net_id.dump());
> >
> > rubenjy wrote:
> >
> >
> > hello,
> > i want to get node id in classifier.cc
> > i don't know how to get node id.
> > so i include node.h and write code (follow)
> >
> > Node* tempnode;
> > int ttmp;
> > if (tempnode){
> > ttmp=tempnode->address();
> > ttmp=tempnode->nodeid();
> > }
> >
> > but it had segmentation fault(core dumped).
> > i used gdb to trace it.
> > gdb show program received signal SIGILL, Illegal instruction
> >
> > somebody can tell me how to get node id ?
> > --
> > View this message in context:
> >
> http://www.nabble.com/how-to-get-node-id-in-classifier-tf4103981.html#a11671028
> > Sent from the ns-users mailing list archive at Nabble.com.
> >
> >
> >
> >
> > -
> > Building a website is a piece of cake.
> > Yahoo! Small Business gives you all the tools to get online.
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/how-to-get-node-id-in-classifier-tf4103981.html#a11674298
> Sent from the ns-users mailing list archive at Nabble.com.
>
>
>
>
> 
> Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel
> and lay it on us.
>
>


   
-
Yahoo! oneSearch: Finally,  mobile search that gives answers, not web links. 


Re: [ns] how to get node id in classifier

2007-07-18 Thread Mohammed Abu Hajar

through net_id.dump()
   
  in other words use: printf("net_id = %s",net_id.dump());

rubenjy <[EMAIL PROTECTED]> wrote:
  

hello,
i want to get node id in classifier.cc
i don't know how to get node id.
so i include node.h and write code (follow)

Node* tempnode;
int ttmp;
if (tempnode){
ttmp=tempnode->address();
ttmp=tempnode->nodeid();
}

but it had segmentation fault(core dumped).
i used gdb to trace it.
gdb show program received signal SIGILL, Illegal instruction

somebody can tell me how to get node id ?
-- 
View this message in context: 
http://www.nabble.com/how-to-get-node-id-in-classifier-tf4103981.html#a11671028
Sent from the ns-users mailing list archive at Nabble.com.



   
-
Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.


Re: [ns] jitter NRL PDF throughput end to end delay

2007-07-18 Thread Mohammed Abu Hajar

About Normalized Routing Load (NRL) it is
  It is the number of routing packet required to be send per data packet 
delivered.
   
  NRL = (NumberofRoutingPacket)/(NumberofPacketReceived)
  so if you want to change the NRL value you should either change one of the 
parametres used in equation, this is done by changing the number of traffic 
sources, number of data packet per second or number of mobile nodes in your 
simulation scenarion
   
  about the second query , try to see tracegraph analysier, it may help you , 
and I will do some searching through the internet for other relevant 
information.
   
  Mohamed AbuHajar
   
  

manpreet grewal <[EMAIL PROTECTED]> wrote:
  
Hello Sir,
Thanks alot for your help.
Your scripts have helped me alot and have solved my big 
problem..

Sir, i had one query... we should try to either increase or 
decrease normalised routing load for our network??

Also Sir, i want your help. i will be highly thankful to you.

Actually i am working on load balancing techniques..
For results, i want to get following:
1. Load balance at Routing layer
under this Sqaured sum- Routing level ((kbps)^2)
and Load Variance- Routing level ((kbps)^2) are to 
be calculated
2. Load balance at MAC layer
under this Sqaured sum- MAC level ((kbps)^2)
and Load Variance- MAC level ((kbps)^2) are to be 
calculated.

Please if you know something regarding this parameters..please 
help me. Its very urgent for my project.

Regards,
Manpreet Kaur Grewal.


On Sun, 15 Jul 2007 Mohammed Abu Hajar wrote :
>Yes, plz see the following awk scripts that calcualate the 
>following
> 6.1 Performance Metrics Used
> 6.3.1 Routing Overhead
> 6.3.2 Normalize Routing Load
> 6.3.3 Packet Delivery Fraction
> 6.3.4 Average End to End delay
> 6.3.5 Jitter
> 6.3.6 Drop Packets
> 6.3.7 Drop Bytes
> 6.3.8 Throughput
> == jitter.awk 
>
> BEGIN {
> num_recv=0
> }
> {
> # Trace line format: normal
> if ($2 != "-t") {
> event = $1
> time = $2
> if (event == "+" || event == "-") node_id = $3
> if (event == "r" || event == "d") node_id = $4
> flow_id = $8
> pkt_id = $12
> pkt_size = $6
> flow_t = $5
> level = "AGT"
> }
> # Trace line format: new
> if ($2 == "-t") {
> event = $1
> time = $3
> node_id = $5
> flow_id = $39
> pkt_id = $41
> pkt_size = $37
> flow_t = $45
> level = $19
> }
> # Store packets send time
> if (level == "AGT" && sendTime[pkt_id] == 0 && (event == "+" || 
>event == "s") && pkt_size >= 512) {
> sendTime[pkt_id] = time
> }
> # Store packets arrival time
> if (level == "AGT" && event == "r" && pkt_size >= 512) {
> recvTime[pkt_id] = time
> num_recv++
> }
>}
> END {
> # Compute average jitter
> jitter1 = jitter2 = tmp_recv = 0
> prev_time = delay = prev_delay = processed = 0
> prev_delay = -1
> for (i=0; processed> if(recvTime[i] != 0) {
> tmp_recv++
> if(prev_time != 0) {
> delay = recvTime[i] - prev_time
> e2eDelay = recvTime[i] - sendTime[i]
> if(delay < 0) delay = 0
> if(prev_delay != -1) {
> jitter1 += abs(e2eDelay - prev_e2eDelay)
> jitter2 += abs(delay-prev_delay)
> }
> prev_delay = delay
> prev_e2eDelay = e2eDelay
> }
> prev_time = recvTime[i]
> }
> processed++
> }
>}
> END {
>
> printf("Jitter1 = %.2f\n",jitter1*1000/tmp_recv);
> printf("Jitter2 = %.2f\n",jitter2*1000/tmp_recv);
>}
> function abs(value) {
> if (value < 0) value = 0-value
> return value
>}
>
>
>
>
>
>
>
>
>
>
>
>
> ==throughput.awk 
>
> BEGIN {
> recvdSize = 0
> startTime = 1e6
> stopTime = 0
>}
> {
> # Trace line format: normal
> if ($2 != "-t") {
> event = $1
> time = $2
> if (event == "+" || event == "-") node_id = $3
> if (event == "r" || event == "d") node_id = $4
> flow_id = $8
> pkt_id = $12
> pkt_size = $6
> flow_t = $5
> level = "AGT"
> }
> # Trace line format: new
> if ($2 == "-t") {
> event = $1
> time = $3
> node_id = $5
> flow_id = $39
> pkt_id = $41
> pkt_size = $37
> flow_t = $45
> level = $19
> }
> # Store start time
> if (level == "AGT" && (event == "+" || event == "s") && 
>pkt_size >= 512) {
> if (time < startTime) {
> startTime = time
> }
> }
> # Update total received packets' size and store packets 
>arrival time
> if (level == "AGT" && event == "r" &

[ns] jitter NRL PDF throughput end to end delay

2007-07-15 Thread Mohammed Abu Hajar

Yes, plz see the following awk scripts that calcualate the following 
  6.1 Performance Metrics Used
  6.3.1   Routing Overhead
  6.3.2Normalize Routing Load
  6.3.3Packet Delivery Fraction 
  6.3.4Average End to End delay
  6.3.5   Jitter 
  6.3.6   Drop Packets
  6.3.7   Drop Bytes
  6.3.8   Throughput
  == jitter.awk 
  BEGIN {
   num_recv=0
 }
  {
 # Trace line format: normal
 if ($2 != "-t") {
  event = $1
  time = $2
  if (event == "+" || event == "-") node_id = $3
  if (event == "r" || event == "d") node_id = $4
  flow_id = $8
  pkt_id = $12
  pkt_size = $6
  flow_t = $5
  level = "AGT"
 }
 # Trace line format: new
 if ($2 == "-t") {
  event = $1
  time = $3
  node_id = $5
  flow_id = $39
  pkt_id = $41
  pkt_size = $37
  flow_t = $45
  level = $19
 }
   # Store packets send time
 if (level == "AGT" && sendTime[pkt_id] == 0 && (event == "+" || event == "s") 
&& pkt_size >= 512) {
  sendTime[pkt_id] = time
 }
   # Store packets arrival time
 if (level == "AGT" && event == "r" && pkt_size >= 512) {
  recvTime[pkt_id] = time
  num_recv++
 }
}
  END {
 # Compute average jitter
 jitter1 = jitter2 = tmp_recv = 0
 prev_time = delay = prev_delay = processed = 0
 prev_delay = -1
 for (i=0; processed= 512) {
  if (time < startTime) {
   startTime = time
  }
 }
   # Update total received packets' size and store packets arrival time
 if (level == "AGT" && event == "r" && pkt_size >= 512) {
  if (time > stopTime) {
   stopTime = time
  }
  # Rip off the header
  hdr_size = pkt_size % 512
  pkt_size -= hdr_size
  # Store received packet's size
  recvdSize += pkt_size
 }
  }
  END {
 printf("Average Throughput[kbps] = %.2f\t\t 
StartTime=%.2f\tStopTime=%.2f\n",(recvdSize/(stopTime-startTime))*(8/1000),startTime,stopTime)
}
   
   
   
   
   
   
   
   
   
   
   
   
   
  = parameters.awk 
  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;  }
   #= 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 = routing load but 
it differ from routing overhead
   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);
   printf("Packet Loss [%]= %.2f  \n", 
(droppedPackets/(highest_packet_id+1))*100);
}
=== end 
Mohammed AbuHajar
  Master of Computer Science
  
manpreet grewal <[EMAIL PROTECTED]> wrote:
  


Note: Forwarded message attached

-- Original Message --

From: "manpreet grewal" 
To: [EMAIL PROTECTED]
Subject: plot offered load vs. throughput in NS2
From: "manpreet grewal" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: plot offered load vs. throughput in NS2


Hello Sir,
I read your problem in ns-users list..
I also want to calculate some results..

If you could tell me the formulas which can be used to 
calculate
different parameters like
Squared-sum-Routing level,
Load variance-routing level,
Squared sum-MAC level,Laod
variance-MAC level,
End-to-end delay,
throughput(in kbps),
Routing Overhead,offered load.
or some references to them, it will be very helpful to me..

If you have calculated any one of the above parameters do help
me...
May be we can help each other in our projects..

Looking for your positive reply..

Regards,
Manpreet Kaur Grewal.



   
---

[ns] Is there any difference between drop packet and packet loss

2007-07-08 Thread Mohammed Abu Hajar

Hello ns-users,
   
  Is there any difference between drop packet and packet loss?
   
  Thanks

 
-
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.


[ns] plot offered load vs. throughput

2007-07-04 Thread Mohammed Abu Hajar

Hi ns-users, 
   
  I want to plot the relation between offered load and throughput ? , but 
before that how can I generate offered load in kb/s?
   
  Regards

   
-
Choose the right car based on your needs.  Check out Yahoo! Autos new Car 
Finder tool.


[ns] How to calculate packet loss ratio in ns-2

2007-07-04 Thread Mohammed Abu Hajar

Hi ns-users,
   
  How to calculate packet loss ratio in ns-2 trace file ? what its equation?
   
  Regards

 
-
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.


[ns] Ssendfailure Error message DSR

2007-06-28 Thread Mohammed Abu Hajar

Hello ns users,
   
  I am doing simulations using DSR routing protocol. The simulation time is 900 
s, but the simulations never finishs ometimes, it appears a fail message like 
the following:

SSendFailure  2177. _5_ -XX- 5:0 44:0 5->4 1 2 2 3 [|5 4 7 6 12 44] 

Can any one tell me where the bug is?
Regards

   
-
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out. 


[ns] What 's mean by this? In DSRAgent.cc File

2007-05-17 Thread Mohammed Abu Hajar

What 's mean by this? 
   
if (srh->flow_header())
handleFlowForwarding(p);
  else if (!srh->num_addrs())
handleDefaultForwarding(p);

   
  Thanks in advance

   
-
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. 


[ns] What is the purpose of these functions written in DSRAgent.cc file

2007-05-17 Thread Mohammed Abu Hajar

Hi all,
   
  What is the purpose of these functions written in DSRAgent.cc file:
   
  1- processFlowARS(const Packet *packet)
   
  2- tap ( const Packet *packet)
   
  3- diff_subnet(ID dest, ID myid)
   
  Regards

 
-
Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.


[ns] How print the sending node that send the message. DSRAgent ?

2007-05-15 Thread Mohammed Abu Hajar

Hello All,
   
  To print the current executing node in DSRAgent.cc file  I use node_id.dump() 
, But how to print the sending node that send the message.
   
  Thanks 

   
-
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. 


[ns] printing route cache

2007-05-12 Thread Mohammed Abu Hajar

Hello all,
   
  I want to printing the route cache of dsr protocol for each node , If any one 
do that before
   
  Thanks

 
-
The fish are biting.
 Get more visitors on your site using Yahoo! Search Marketing.


[ns] printing route cache

2007-05-12 Thread Mohammed Abu Hajar

Hello all,
   
  I want to print the route cache table of dsr protocol, have any one do that 
before?
   
  Thanks

   
-
Boardwalk for $500? In 2007? Ha! 
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.


[ns] RREQ DSRAgent

2007-05-10 Thread Mohammed Abu Hajar

Hi all,
   
  I'd like to ask what is the name of the first function that initialize Route 
Request message in DSRAgent.cc file.
   
  Thanks

 
-
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.


[ns] print routing table

2007-05-10 Thread Mohammed Abu Hajar

Hello all ns-users,
   
  I'd like to print the routing table for each node ,I am using DSR protocol,so 
is there a ready function that print the routing table?
  Also I want to add a field in the RREQ , RREP messages of DSR protocol , 
Which struct or class that handle this structure.
   
  Thanks in advane 

 
-
Looking for earth-friendly autos? 
 Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.  


Re: [ns] error while executing qaodv routing protocol

2007-05-01 Thread Mohammed Abu Hajar

Yes 
 
 I am now working also at providing AODV QoS extensions , I am face this error 
, so make sure that you define and put your defined function in the correct 
place.
 *.h file for define variables - *.cc for implementation code .
 also you can trace your code by using pintf statement like : printf("I am 
here");
 I'd like to add QoS extension for DSR protocol , So if you have any 
information that hint me , please don't hesiate to tell me 
 
 Regards

Timo Reimann <[EMAIL PROTECTED]> wrote: 
dorababu wrote:
>
> I made some changes in aodv.cc for adding qos extention in aodv
> protocol. after that i type make command in the konsole to check the
> protocol.But i am getting following error " expected primary-expression
> before '.' token" , i am unable to find the problem. any help regarding
> this  very useful for my thesis. i am very much tankful to you. errors are
> like this,

Sounds pretty much like a syntax error, e.g. missing paranthesis,
semi-colon, something like that.

By the way:

> [EMAIL PROTECTED] ns-2.29]# make

Building ns2 as root is evil. ;)


--Timo



   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.


[ns] Tracing code

2007-04-30 Thread Mohammed Abu Hajar

Dear NS-Users,
 
 How can I do tracing for my code execution in ns-2 simulator, like in c 
language , i was press on F7 key and trace my c code line by line , so how can 
I do this.
 
 Regards to all
 
 
   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.


[ns] NS-2 currently does not include ?

2007-04-19 Thread Mohammed Abu Hajar

Hi ns-2 users,
   
  What this statement mean " NS-2 currently does not include and consider node 
statistics during simulation runtime (dynamic node updates).
   
  Thanks

   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.


[ns] Similarity & Differece Between DSR & AODV

2007-04-19 Thread Mohammed Abu Hajar

Hi all ns-users,
   
  Can any one tell me what exactly are the similarity and differences between 
DSR and AODV ad hoc routing protcool.
   
   
  Any possible help is appreciated
   
  Thanks
   
   

   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.


[ns] Adding QoS extensions to DSR Protocol

2007-04-18 Thread Mohammed Abu Hajar

Hello all,
   
  I want to take the QoS Model that already implemented on AODV protocol and 
put it on DSR protocol (in other words, adding some QoS extension to DSR 
protocol). after that I will do a modification on DSR protocol already 
implement and do a simulation for DSR with QoS & without QoS(original one).
  I will be appreciate you if I recieve some hints to treat this point.
   
  Regards
  
 

   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.


[ns] Adding QoS to DSR Protocol

2007-04-18 Thread Mohammed Abu Hajar

Hello all,
   
  I want to take the QoS Model that already implemented on AODV protocol and 
put it on DSR protocol (in other words, adding some QoS extension to DSR 
protocol). after that I will do a modification on DSR protocol already 
implement and do a simulation for DSR with QoS & without QoS(original one). 
   
  I will be appreciate you if I recieve some hints to treat this point.
   
  Regards
   
   

   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.


Re: [ns] Lucents WaveLAN propagation model

2007-04-18 Thread Mohammed Abu Hajar

Hello Dr. Daniel,
   
  Yes, realy I want to simulate the performance of DSR routing protocol using 
NS-2 , I did that and compare my results I got with a published paper called " 
Performance omparison of Two On-Demand Routing Protocols for Ad Hoc Networks ", 
but unfortunatly there were some differences among figures relayed to:  
Normalize Routing Load , Average End to End Delay, Packet delivery Ratio. I am 
using the same parameters used in the paper , but there is a statement menssion 
in the peper talks " 
  The radio model uses
  characteristics similar to a commercial radio interface,
  Lucent’s WaveLAN [14, 15]. WaveLAN is modeled as a
  shared-media radio with a nominal bit rate of 2 Mb/s and a
  nominal radio range of 250 m."
  I am didn't understand how I write this parameter in my TCL script file , So 
I think the differences in my results  related to this point.
   
  please see the attach file to see my figures

  Regards
  
Daniel Mahrenholz <[EMAIL PROTECTED]> wrote:
  Mohammed Abu Hajar schrieb:
> How can I implement(write) Lucent’s WaveLAN propagation model in ns-2 tcl 
> script file?, is it like: 
> set opt(prop) Propagaion/TwoRayGround, or
> set opt(prop) Propagaion/FreeSpace, or
> set opt(prop) Propagaion/Shadowing. 
Don't mix the modelling of a transmitter with the modelling of the 
signal propagation.

The model of the card (see answer from Ran Ren) defines what signal is 
generated (frequency, power), the antenna characteristics (gain), and 
what signals the card is able to receive (*Thresh).

The propagation model defines how the signal changes (signal strength 
degradation, noise, etc.) between the transmitter and the receiver.

If you have more specific questions, don't hesitate to ask me.

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

[ns] how to computer the Transmission range

2007-04-13 Thread Mohammed Abu Hajar

Hi All,
   
Is there any utility in NS-2 that compute the transmission range of a wireless 
node like in glomosim simulator you type at the command line: radio_range 
config.in it's gives the range in m like 375m.
   
  Thanks

   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.


[ns] Lucents WaveLAN propagation model

2007-04-13 Thread Mohammed Abu Hajar

Dear all ns-users,
   
  How can I implement(write)  Lucent’s WaveLAN propagation model in ns-2 tcl 
script file?, is it like: 
  set opt(prop)   Propagaion/TwoRayGround, or
  set opt(prop)   Propagaion/FreeSpace, or
  set opt(prop)   Propagaion/Shadowing.
   
   
  My Regards to all.
   

   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.


[ns] Need iNSpect tool

2007-04-12 Thread Mohammed Abu Hajar

hello sir,
 
 I want  iNSpect tool for my research, how can I get it?
 
 
 Regards

   
-
Don't get soaked.  Take a quick peak at the forecast 
 with theYahoo! Search weather shortcut.