[Click] nsclick wireless traces etc
David Bath
david.bath at triaddo.com
Mon Feb 26 07:53:45 EST 2007
Hey List,
Sorry, me again. I've done a bit of ns debugging, and in cmu-trace.cc
(which seems to handle the tracing) there's a function CMUTrace::command
which is responsible for setting the newtrace variable.
CMUTrace::command(int argc, const char*const* argv) {
if(argc == 3) {
if(strcmp(argv[1], "node") == 0) {
node_ = (MobileNode*)
TclObject::lookup(argv[2]);
if(node_ == 0)
return TCL_ERROR;
return TCL_OK;
}
if (strcmp(argv[1], "newtrace") == 0) {
newtrace_ = atoi(argv[2]);
return TCL_OK;
}
}
return Trace::command(argc, argv);
}
However, although it's being called, argv[1] is always "namattach" or
"attach" or "target", so the newtrace_ variable is never set.
Any thoughts would be much appreciated!
Best Regards,
Dave
-----Original Message-----
From: click-bounces at pdos.csail.mit.edu
[mailto:click-bounces at pdos.csail.mit.edu] On Behalf Of David Bath
Sent: 25 February 2007 21:26
To: click at pdos.csail.mit.edu
Subject: Re: [Click] nsclick wireless traces etc
Hi List,
A small update on this. I've been working today to try and find a more
precise set of conditions. It seems I can't produce a new trace format
if I use the a mobile node of type Click.
As suggested in the nsclick papers, I am using
Simulator set node_factory_ Node/MobileNode/ClickNode
As soon as I do that, the use-newtrace directive appears to be being
ignored.
I can't really find out a sensible combination of options to get more
precise than this - purely that something about using a ClickNode
prohibits traces in the new format.
Any thoughts very gratefully received!
Best Regards,
Dave
-----Original Message-----
From: click-bounces at pdos.csail.mit.edu
[mailto:click-bounces at pdos.csail.mit.edu] On Behalf Of David Bath
Sent: 25 February 2007 01:17
To: click at pdos.csail.mit.edu
Subject: [Click] nsclick wireless traces etc
Hi List,
This may be the wrong place, but the nsclick lists appear to have moved
and I haven't managed to track them down. Please feel free to redirect
me if this is best answered somewhere else.
I've been working with ns(2.3) and latest[checked out a few days ago]
click(cvs).
As far as I can tell, basic features are working fine. However, I'm
having some problems with the trace format.
I've tried the well documented:
set tracefd [open "<filename>" w]
$ns_ use-newtrace
$ns_ trace-all $tracefd
But the trace file comes out in the old format still.
I also don't quite understand how the ClickNode factory works. Is the
standard mobilenode creation process triggered?
i.e. is $ns_ node-config .... etc valid syntax? (I ask because setting
movementTrace ON like this seems to make no difference).
Any help would be gratefully received. I seem to have run dry on web
resources on this issue (at least, I am supposing it's an nsclick thing
as the standard instructions for ns don't seem to work).
Cheers,
Dave Bath
University of Bristol
_______________________________________________
click mailing list
click at amsterdam.lcs.mit.edu
https://amsterdam.lcs.mit.edu/mailman/listinfo/click
_______________________________________________
click mailing list
click at amsterdam.lcs.mit.edu
https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list