[ns] Some (basic) variable-passing (between modules in NS2) questions in C++

2008-07-28 Thread Scott Novich
Hi All, A bit of an OO C++ newbie here. I'm trying to accomplish some basic tasks that seem to be giving me trouble. Any help would be greatly appreciated! 1. Working on a yet-to-be instantiated variable in C: Problem: I have defined a new sort of class. One of the public elements is a packet c

Re: [ns] Installation help

2008-07-29 Thread Scott Novich
Hi Siraj, When I installed this on gutsy about a month ago, I found I had A LOT of libraries missing that I had to add from the package-manager (X11 - xlibs etc). As I'm not much of a programmer or linux user in general, I basically went around checking off tons of libs to install. If you want my

[ns] Makefile Linking Question (Undefined Reference error for a custom library)

2008-09-02 Thread Scott Novich
Hey all! > > I have a problem that I think would be pretty simple for someone to help me > troubleshoot if they have the proper knowledge! My coding background isn't > the best, so apologies :) > > I created a simple library that defines a global variable, and provides a > simple access / increme

[ns] Request for a simple timer example!

2008-09-07 Thread Scott Novich
Hi all - I was wondering if someone could help show me how to make a simple timer that maybe just periodically prints to the console at some interval... I'm not much of a coder and the manual (11.1.1) was a bit tough for me to follow with regards of how one can provide an expiration time and star

Re: [ns] Example of Simple Timer

2008-09-08 Thread Scott Novich
t agent, but do you know why this is? - Second, what is the variable "check" used for, and where is it be defined? Once again, thanks so much for your help! Best, Scott On Mon, Sep 8, 2008 at 2:03 AM, Mubashir Rehmani <[EMAIL PROTECTED]>wrote: > Hi Scott Novich >

Re: [ns] How to calculate average throughput

2009-02-11 Thread Scott Novich
Hi Faraz, You can modify the recv function in your TCP layers to collect ACK/Data packets, by using the header-access functions for the supplied packet. I would then create a counter that increments whenever the desired packet is received. Then create a timer that expires / resets at the desire

[ns] 802.11 ACK frames being sent by APs not RXing data??

2009-02-26 Thread Scott Novich
Hey all, I've recently been doing some rudimentary packet collection / statistics gathering @ the 802.11 layer. In running a simple wireless uni directional link w/ TCP Newreno and a Sink, it seems ACK frames are being received at both sides. I know this shouldn't happen at the Traffic/TCP layer

Re: [ns] Re : TCL VAR bind C++ linking

2009-06-23 Thread Scott Novich
> > Yes - go into your NS src then open Tools/CBR_Traffic.cc > Create a timer (see NS2 Manual / follow the tcp.cc/tcp.h code as an > example) that triggers every x seconds, and use a random variable function > to set the rate variable. You may need to create a header file for > CBR_Traffic.cc -> .