[ns] pls help me

2007-03-27 Thread kumari sudhakar

Hi,
I am doing my project in adhoc networks. I simulate the networking
environment
using ns2 simulator. My project is preventing Denial of Service (DoS)
attacks
using game theory concept along with Watchlist mechanism and Utility Dynamic

Source Routing (UDSR). These two mechanisms are  based on cooperation and
reputation
concepts. Cooperation means how close the two nodes are and reputation is
like some reward
give to node if that node forward the incoming packets to their neighbour
without dropping any packets.

I need your help regarding this. Please help me by giving source code or
other information related to how to proceed. I am eagerly waiting for your
reply.

Regards
Kumari.


Re: [ns] calculating throughput using AWK

2007-03-27 Thread salcaraz



Hi,

Below I have write my awk script to calculate throughput.

The columns that you need are:

column 7: TCP bytes sent
column 8: interval

then the throughput is

column7/column8

And, this script also calculates: bytes drops, packets drops, bytes 
arrivals als packets arrivals.

I'm sorry, but the names of variables are in Spanish.

/salva




#:
echo [$1:$2:$3] ...Obteniendo bytes/packets/flows sent/dropped TCP 
cat $TMP/out.tr | perl column 3 0 2 1 | sort -g | 
awk '
   BEGIN { max = 0 }
   {
 # i  = fid
 # flujo[i,1] = packets_arrivals (+)
 # flujo[i,2] = packets_drops(d)
 # flujo[i,3] = packets_sent (-)
 # flujo[i,4] = bytes_arrivals
 # flujo[i,5] = bytes_drops
 # flujo[i,6] = bytes_sent
 # flujo[i,7] = instante inicio
 # flujo[i,8] = instante final

 i  = $1;
 tiempo = $4;
 evento = $2;

 max = ((i  max) ? i : max);

 contabilizar = 0;

 if (evento == +) {
flujo[i,1]++;
flujo[i,4] += $3;
contabilizar = 1;
 } else if (evento == d) {
flujo[i,2]++;
flujo[i,5] += $3;
contabilizar = 1;
 } else if (evento == -) {
flujo[i,3]++;
flujo[i,6] += $3;
contabilizar = 1;
 }

 if (contabilizar == 1) {
tiempo = $4;

if (flujo[i,7] == 0) { flujo[i,7]= tiempo };
if (flujo[i,8] == 0) { flujo[i,8]= tiempo };

if ( tiempo  flujo[i,7]) { flujo[i,7] = tiempo};
if ( tiempo  flujo[i,8]) { flujo[i,8] = tiempo};
 }
   }
   END {
  for (i=0; i=max ; i++) {
lapsus = flujo[i,8] - flujo[i,7];

if ( lapsus  0 ) { 
printf(%d\t%d\t%d\t%d\t%d\t%d\t%d\t%f\n,i,flujo[i,1],flujo[i,2],flujo[i,3],flujo[i,4],flujo[i,5],flujo[i,6],lapsus)
 }
  }
   }'  $TMP/tcp_flows.dat


#:
#::: FIN
#:











On Mon, 26 Mar 2007, paul yoong wrote:


 Hi all,

 I want to calculate the throughput of a link using awk. Can anyone tell me 
 how to do this for a simple 2 node link. If anyone could direct me to any 
 example on the web that would be great.

 Thanks





 ___
 Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. 
 http://uk.docs.yahoo.com/nowyoucan.html




[ns] Help me!Problem when running LEACH with ns-2.27

2007-03-27 Thread Nguyen Vo Minh Chau

Please help me !
When I run the LEACH with ns-2.27,it show an error like that :
ns: _o2042 send_now 0x  0x 0 84 2 139.0 0: invalid command name
//puts
while executing
//puts Warning dst_ is no longer being supported in NS. $args
(procedure _o2039 line 3)
(Agent set line 3)
invoked from within
[$self agent] set dst_ $mac_dst
(procedure _o2042 line 3)
(Application/LEACH send_now line 3)
invoked from within
_o2042 send_now 0x  0x 0 84 2 139.0 0

I do'nt know how to correct them.Anyone help me please ?
Thanks a lot !



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


[ns] LAR NS2 code

2007-03-27 Thread barbara battisti

Hi!!! I'm Barbara! I need a module of NS2 for LAR Routing in wireless network!!!
  Thank tou so much


-
 L'email della prossima generazione? Puoi averla con la  nuova Yahoo! Mail


[ns] LAR NS2 code

2007-03-27 Thread barbara battisti

Hi!!! I'm Barbara! I need a module of NS2 for LAR Routing in wireless network!!!
  Thank tou so much


-
 L'email della prossima generazione? Puoi averla con la  nuova Yahoo! Mail


[ns] LAR NS2 code

2007-03-27 Thread barbara battisti

Hi!!! I'm Barbara! I need a module of NS2 for LAR Routing in wireless network!!!
  Thank tou so much


-
 L'email della prossima generazione? Puoi averla con la  nuova Yahoo! Mail


[ns] LAR NS2 code

2007-03-27 Thread barbara battisti

Hi!!! I'm Barbara! I need a module of NS2 for LAR Routing in wireless network 
and a module of EDF!!!
  Thank tou so much
  Barbara


-
 L'email della prossima generazione? Puoi averla con la  nuova Yahoo! Mail


[ns] LAR NS2 code

2007-03-27 Thread barbara battisti

Hi!!! I'm Barbara! I would need for my thesis a module of NS2 for LAR Routing 
in wireless network, a module for EERC and a module of EDF!!!
  Thank tou so much
  Barbara


-
 L'email della prossima generazione? Puoi averla con la  nuova Yahoo! Mail


[ns] LAR NS2 code

2007-03-27 Thread barbara battisti

Hi!!! I'm Barbara! I would need for my thesis a module of NS2 for LAR Routing 
in wireless network, a module for EERC and a module of EDF!!!
  Thank tou so much
  Barbara


-
 L'email della prossima generazione? Puoi averla con la  nuova Yahoo! Mail


[ns] Simulating Autonomous systems in NS-2

2007-03-27 Thread Bharadwaj

Hi,

I am working on implementing a new inter-domain QoS protocol in NS. For this 
i need to create ASes in my simulation. I have searched the net and the 
manual, but couldn't find the answer. Please direct me.

Thanks for your attention

Bharadwaj



[ns] multipath fading in Eurane: constant?

2007-03-27 Thread neila el héni

Hello,
I am using the Eurane patch for ns 2.30. I am interested in studying the
impact of fast fading due to multipath on scheduling decisions (especially
in multicast).
In the Matlab files generating the input traces, a comment says that only
the shadowing fading (ie. slow fading) varies in time. In other words, the
fast fading  is constant. However, while trying to display the multipath
fading values (represented by the summed power of the different taps: P_ff
variable in the Matlab  main file), I saw that the multipath fading (P_ff)
takes varying values. Fast fading is therefore not constant in Eurane, which
is in contradiction with what is said in the documentation!?
Could you  provide me with  explanations if you see that I have made some
confusions?

Regards,
Neila


[ns] How to add a timer in one existing agent?

2007-03-27 Thread kerwin

Hi! all,
I want to add a new timer in one existing agent,
 such as TCP, SCTP etc.
The object is sending a especial packet periodically.
But I have no idea to do the work.
Thank for any suggestions.
 
Kerwin
  


改變每一天 從Xuite開始
http://www.xuite.net


[ns] awk in cygwin

2007-03-27 Thread paul yoong

Hi all,

I'm using ns 2.27 under cygwin but when I try to use the awk command I get the 
following error message:

invalid command name 'awk'

Can anyone tell me whether cygwin allows the awk command to be used.

Thanks in advance





___ 
The all-new Yahoo! Mail goes wherever you go - free your email address from 
your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html


[ns] MIMO support in the PHY layer

2007-03-27 Thread Anand PG

Dear all,
 I am working on transmission of video over WiFi(802.11) and
WiMax(802.16). My work needs the use of MIMO in the PHY layer. I was
wondering if anyone could give pointers as to where I can get the
right modules.(i.e modules supporting MIMO in the PHY layer for 802.11
and 802.16).


Thanks,
Anand



[ns] help: programme NS

2007-03-27 Thread lecoq


Hi, Can anyone send me an NS-2 program that simulates a clustering of 
an ad hoc Network on the basis of any criteria. 

Thank you.
-- 
View this message in context: 
http://www.nabble.com/help%3A-programme-NS-tf3450076.html#a9623175
Sent from the ns-users mailing list archive at Nabble.com.


Re: [ns] help: programme NS

2007-03-27 Thread wacky


hope this helps...

On 3/22/07, lecoq [EMAIL PROTECTED] wrote:




Hi, Can anyone send me an NS-2 program that simulates a clustering of
an ad hoc Network on the basis of any criteria.

Thank you.
--
View this message in context:
http://www.nabble.com/help%3A-programme-NS-tf3450076.html#a9623175
Sent from the ns-users mailing list archive at Nabble.com.



[ns] wfq demonstration with tcl on ns2

2007-03-27 Thread Venky Rama

hello - please reply to my personal mail if interested: 
[EMAIL PROTECTED]
   
  i will give the US$250 cash or money order if you can send me demonstration 
of results 
for wfq algorithm for ns2 on cygwin latest versions. need to see the test 
results that show that the code works i.e. it is providing the ratio for the 
delay and bandwidth for 2 classes in simplest case.
   
  wfq is already written and available on various ns2 add-ons but i am 
looking for help to tell me how to install, run tcl, calculate delay 
and the throughput to show that code is working. it should only take 
experienced user 10 min. 

  my teammate is found code on web but it does not produce accurate result or 
maybe due to error in measurement.
 
  i appreciate anyone taking the offer. need to have this done asap. 
ns-2 is free, wfq knowledge is free, cygwin is free and all copyright 
will be protected so i do not see this as illegal.
   
  thank you.
  venkat


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


[ns] Segmentation fault in DSR Routing protocol

2007-03-27 Thread Shailesh Gamit

I have a problem with the DSR protocol in ns2.29
when i run the tcl script sometimes it gives the segmentation fault error.
I think that this segmentation error is giving only when there is a path break
is it ture ... or what  is the problem.
thanks..

-- 
Shailesh Gamit
M.Tech (CSE),
Nirma Institute of Technology,
Ahmedabad, India



Re: [ns] scenario(movement pattern and connection pattern) problem

2007-03-27 Thread Shailesh Gamit

i am using ns2.29.
so will it work. i have tried the above but still it gives the
segmentation error.
can u send the exact script...
thanks...

On 3/25/07, vava vvava [EMAIL PROTECTED] wrote:
 I wonder if you have done this :
  For AODV and DSDV you use the ifq as Droptail, but with DSR you should
 change it to CMUPriQueue.

 Shailesh Gamit [EMAIL PROTECTED] wrote: with aodv and dsdv the tcl
 script is running but for DSR protocol it gives error msg . if u
 successfully run the DSR protocol then plz reply...

  On 3/24/07, vava vvava [EMAIL PROTECTED] wrote:
 ns2 newbie here...

 I have download a scenarios which contain movement pattern and communication
  pattern using CBR sources from  http://www.monarch.cs.rice.edu/cmu-ns.html
 I would like to use one of the scenario.

 My question is:
 Do i have to copy the scenario(movement pattern and communication pattern
 using CBR) in to ... /ns- 2.30/tcl/mobility/scen like the example in  Marc
 Greis' tutorial? If so, i have tried to do that but some sort of error
 occur.

 I am doing a report on the performance comparision between AODV,DSR,DSDV.
 Can send me a tcl scrip to run these 3 routing protocol?

 Anyone who willing to guide me with these report are welcome.
 Just give me a msn contact if u want to.

 Any advise are also welcome.
 Thank you.




 -
 TV dinner still cooling?
 Check out Tonight's Picks on Yahoo! TV.




 --
 Shailesh Gamit
 M.Tech (CSE),
 Nirma Institute of Technology,
 Ahmedabad, India


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


-- 
Shailesh Gamit
M.Tech (CSE),
Nirma Institute of Technology,
Ahmedabad, India



[ns] ns2.27 installation problems!!

2007-03-27 Thread Litun Mishra

Hi, 

I am trying to install ns2.27 onto my network. But i
get the following error:

In file included from tclcl.h:48,
 from Tcl.cc:47:
tclcl-mappings.h: In static member function `static
int TclObjectHelperT::dispatch_(void*, Tcl_Interp*,
int, char**)':
tclcl-mappings.h:51: error: incomplete type `Tcl' used
in nested name specifier
tclcl-mappings.h:52: error: invalid use of undefined
type `struct Tcl'
tclcl-mappings.h:41: error: forward declaration of
`struct Tcl'
tclcl-mappings.h:57: error: invalid use of undefined
type `struct Tcl'
tclcl-mappings.h:41: error: forward declaration of
`struct Tcl'
make: *** [Tcl.o] Error 1
tclcl-1.15 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for
problems

The problem page also doesnt have any link for ns2.27.


I really want to use the 2.27 version as there is a
SIP implementation patch available for this version. 
What should i do?? I really need your help.

Thanks  Regards,
Litun



 

TV dinner still cooling? 
Check out Tonight's Picks on Yahoo! TV.
http://tv.yahoo.com/



Re: [ns] calculating throughput using AWK

2007-03-27 Thread wacky

could you please tell me how to execute this file, i mean exactly what
command should i type in,
i saved this file as throughput.awk...
then i changed the cat out.tr ( from $TMP/out.tr | perl column 3 0 2 1 |
sort -g | ) to nodes.tr
i tried awk -f throughput.awk  outfile

the I tried the command awk -f throughput.awk  outfile

i get various errors after executing this. please help me...

rgrds
Iqbal

#:
 echo [$1:$2:$3] ...Obteniendo bytes/packets/flows sent/dropped TCP 
 cat $TMP/nodes.tr | perl column 3 0 2 1 | sort -g |
 awk '
BEGIN { max = 0 }
{
  # i  = fid
  # flujo[i,1] = packets_arrivals (+)
  # flujo[i,2] = packets_drops(d)
  # flujo[i,3] = packets_sent (-)
  # flujo[i,4] = bytes_arrivals
  # flujo[i,5] = bytes_drops
  # flujo[i,6] = bytes_sent
  # flujo[i,7] = instante inicio
  # flujo[i,8] = instante final

  i  = $1;
  tiempo = $4;
  evento = $2;

  max = ((i  max) ? i : max);

  contabilizar = 0;

  if (evento == +) {
 flujo[i,1]++;
 flujo[i,4] += $3;
 contabilizar = 1;
  } else if (evento == d) {
 flujo[i,2]++;
 flujo[i,5] += $3;
 contabilizar = 1;
  } else if (evento == -) {
 flujo[i,3]++;
 flujo[i,6] += $3;
 contabilizar = 1;
  }

  if (contabilizar == 1) {
 tiempo = $4;

 if (flujo[i,7] == 0) { flujo[i,7]= tiempo };
 if (flujo[i,8] == 0) { flujo[i,8]= tiempo };

 if ( tiempo  flujo[i,7]) { flujo[i,7] = tiempo};
 if ( tiempo  flujo[i,8]) { flujo[i,8] = tiempo};
  }
}
END {
   for (i=0; i=max ; i++) {
 lapsus = flujo[i,8] - flujo[i,7];

 if ( lapsus  0 ) {
 printf(%d\t%d\t%d\t%d\t%d\t%d\t%d\t%f\n,i,flujo[i,1],flujo[i,2],flujo[i,3],flujo[i,4],flujo[i,5],flujo[i,6],lapsus)
 }
   }
}'  $TMP/tcp_flows.dat


 #:
 #::: FIN
 #: