[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] ACK filtering



Is it possible to implement a simple ACK filter-like protocol (where an intermediate node simply drops some of the ACKs on the return link) in ns-2 WITHOUT coding a new protocol in C++ ?  ie: I wish to simply implement this in a tcl script, perhaps by using the trace-callback function.
 
I already know the basics needed to use the trace-callback feature in ns-2, but I need to know if there is a way to "drop" a packet.
 
eg. trace-callback function:
 
if (packet is an ACK) {
  if (this ACK should be dropped) {
     schedule event to delete ACK from stream (ie: don't forward to next node)
  }
}
else {
  do nothing
}
 
Any help would be great.
 
Thanks,
John Graumann
 
jgrauman@ee.umanitoba.ca
University of Manitoba