[ns] very long trace files?

2006-12-25 Thread ghada

Dear ALL,



I have set of large trace files around 3 GB; I am using Perl script to 
extract throughput and Data Delivery Ratio,

But it takes a very long time,



Any one has a solution for this...



Thanks for your help,




[ns] How does agent's target_ got initialized?

2006-12-25 Thread Huang Wei

Hi, all. Wish everyone a merry Christmas and a happy new year!

I was going through the source code of ns and got confused when I wanted to
find out how 'target_' of class agent, which is derived from class
connector, gets initialized? I know in Connector::command(), command
target is defined to do so. But where does this got invoked?
In function simulator's attach-agent{}, it calls node's attach{}. But in
attach target command is not invoked. Finally I find the target_ was
initialized after invoking Node's function:add-target { agent port }. But,
how? 
I don't understand the code of this function:

Node instproc add-target { agent port } {
$self instvar ptnotif_
# Replaces the following line from old ns (2.1b7 and earlier)
#   $self add-target $agent $port
foreach m [$self set ptnotif_] {
$m attach $agent $port
}
}

It seems that the expression $m attach $agent $port does not invoke the
function Node instproc attach { agent { port  } }(Because I got it to
print information and if it is called it will print). What is this attach?
And how is target_ of agent finally got initialized?

Thanks.

HuangWei




[ns] help instalation ns-2.27 problems

2006-12-25 Thread milica marik


Hello users

I was installing ns-2.27(allinone) and while building tclcl it appeared
#
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'

tclcl-1.15 make failed! Exiting...

See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

#
so i couldn't find solution to my problem on the displayed page.
If anyone from you can help me with my
 problem.

Thanks



__
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 


[ns] Where I get the ns2 script of receiver initiated MAC protocol or/and power control MAC?

2006-12-25 Thread Kevin

Dear All,

(1) I am trying to do some experiment on Ad Hoc and WLAN MAC protocol on ns2, 
and I want to implement the receiver initiated MAC proposed by some 
researchers, can anyone tell me where I can some relavent materials? 
(2) I am also trying to implement the power control MAC protocol for Ad hoc 
network, can anyone also give me some hints or relavent materials about that?
I would appreciate if someone can help me within this. 
Thanks in advance and Happy Holidays to all!

Kevin