Hi guys,

maybe somebody can help me out here.
I have a standard link
$ns duplex-link $n2 $n3 100Mb 0.01ms SFQ

and I would like to change the maxqueue_ variable of the SFQ algorithm.
from the manual follows that
$ns queue-limit $n2 $n3 100
should work, however it doesn't.
In the code of sfq.cc I found
int SFQ::command(int argc, const char*const* argv)
{
  if (argc == 3) {
    if (strcmp(argv[1], "limit") == 0) {
      maxqueue_ = atoi(argv[2]);
      fairshare = maxqueue_ / buckets_;
      return (TCL_OK);
    }
    if (strcmp(argv[1], "buckets") == 0) {
      clear();
      buckets_ = atoi(argv[2]);
      return (TCL_OK);
    }
  }
  return (Queue::command(argc, argv));
}

however, I don't know how to get access to the link
I tried

set sfq [ $ns duplex-link $n2 $n3 100Mb 0.01ms SFQ ]
$sfq limit_ 100

but that also didn't help.
I'm clueless.

Any ideas?



With kind regards

Matthias

Reply via email to