[Scamper-dev] scamper notes draft 2

Ken Keys kkeys at caida.org
Thu May 20 12:38:05 PDT 2004


On Thu, May 20, 2004 at 12:10:22PM -0700, Bradley Huffaker wrote:
> I also think it might be a good idea to have the prober be able to read
> commands from a file with either a command in the file or a config option 
> to have it loop over the file.

I don't think you'd want to do this under normal operations, but
it could be useful while testing/debugging, or in special situations.
Problem:  the commands, as we've defined them, all contain a CycleId.
When looping over a file, obviously the CycleId will not change;
Prober will need to generate its own.  This raises the question:
do we really need CycleId in the commands at all?  Young and I think
not.  The Start Cycle and End Cycle commands are sufficient to mark
cycle boundaries, and there will never be overlapping cycles from
the same list in the command stream.  Then, the only difference
between reading from a file and reading from a named pipe connected
to ListManager is what to do when read() returns 0:  for a file,
seek to the beginning (if the loop flag was set); for a pipe, select
until it's readable.

-- 
Ken Keys
kkeys at caida.org


More information about the Scamper-dev mailing list