[ns] Strange behaviour of 802.3 Simulation

2007-10-09 Thread Georg Piewald
Hello, I want to simulate a LAN with CSMA/CD. Since the Mac/Csma/Cd Class seems to be not supported anymore (and I never managed to get it running), I use Mac/802_3. I attached the script at the end of the mail. This I can get it to work, but I don't understand the results. When I watch the NAM

Re: [ns] Strange behaviour of TCPSink instvar "bytes_"

2007-06-14 Thread Georg Piewald
Ok, this explains it - thanks a lot for your answer! -Georg- Filippos Kolovos wrote: > - > Hi, > I do not think that there is a "problem" with the variables per se, > but with the way that the TCL interpreter handles the command substitutions. > > For example, when you invoke the command direc

Re: [ns] Strange behaviour of TCPSink instvar "bytes_"

2007-06-13 Thread Georg Piewald
Georg Piewald wrote: > [...] Ok, maybe the subject is a bit wrong - I just noticed that this problem is true for any instance variable. It can also be shown for example on "cwnd_" which is a variable of "Agent/TCP". Regards, Georg

[ns] Strange behaviour of TCPSink instvar "bytes_"

2007-06-13 Thread Georg Piewald
Hi everybody, I experienced a very odd problem. I want to output the number of bytes received by a TCPSink agent at a specified time. This can be read by the instance variable $bytes_. Now if I call a procedure at the required point of time, which outputs the nr of bytes, everything works fine. L

[ns] Scheduling procedures at packet arrival

2007-04-14 Thread Georg Piewald
Hello, Quite a newbie question, but I couldn't find an answer though I've been searching the web and the ns-manual for hours... How (if at all) can I schedule a TCL procedure to be run every time a packet arrives at a specific node (or, better, at a specific agent)? Example: The following proc