[net2-wg] Configuration Interface for CTP

Omprakash Gnawali gnawali at usc.edu
Wed Feb 28 19:48:11 PST 2007


Here is a proposed interface for CTP configuration. The goal is to
enable rate control by setting the inter packet interval and provide
information to congestion/rate control algorithms about queue
occupancy.

Please send your comments.

- om_p

interface CtpConfig {

   /*  Packet interval is defined as the minimum time
    *  between two successful packet transmissions
    */

   /* Set the packet interval to 'interval' ms */
   command void setPacketInterval(uint16_t interval);

   /* Returns the current inter packet interval in ms */
   command uint16_t getPacketInterval();

  /* The size of the forwarding queue */
   command uint8_t getQueueSize();

  /* The number of packets in the forwarding queue */
   command uint8_t getNumPacketsQueued();

  /* Signals if a packet is enqueued or dequeued from the
   * forwarding queue.
   * The queue occupancy has changed by 'change' number of
   * of packets and the new queue occupancy is 'numpackets'
   */
   event void QueueUpdated(int8_t change, uint8_t numpackets);

}



More information about the net2-wg mailing list