Active Virtual Network Management Prediction (AVNMP) Classes

avnmp.java.lp
Class AvnmpBW

java.lang.Object
  |
  +--magician.Node.KU_SmartPacket_V2
        |
        +--avnmp.java.lp.AvnmpBase
              |
              +--avnmp.java.lp.AvnmpBW
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable
Direct Known Subclasses:
AvnmpPacket

public class AvnmpBW
extends AvnmpBase

This class implements methods for calculating bandwidth.

This research is funded by DARPA/ITO Contract Number: F30602-98-C-0230 supported by the Air Force Research Laboratory/IF.

Version:
$Revision: 1.1.1.1 $ $State: Exp $
Author:
Steve Bush
See Also:
Serialized Form

Field Summary
protected  AppCommunicator context
          Allow the packet to be SNMP managable.
 
Fields inherited from class magician.Node.KU_SmartPacket_V2
CPU_Requirements, Destination_Address, IO_BW_Requirements, Memory_Requirements, NextHop, PacketID, Source_Address, TypeID
 
Constructor Summary
AvnmpBW()
           
 
Method Summary
 void exec()
          This is the main processing for this active packet.
protected  long queueSize(int port)
          Incoming Active Node Queue size.
protected  long recvRate()
          This method returns the total number of bytes received by this node divided by the total amount of time this node has been running.
protected  long xmitRate()
          This method returns the total number of bytes transmitted by this node divided by the total amount of time this node has been running.
 
Methods inherited from class magician.Node.KU_SmartPacket_V2
AcquireSmallState, build, CreateSmallState, describeComponents, DestroySmallState, GetCanonicalAddress, GetLinkLayerAddress, GetNetName, GetNextHop, GetNodeName, GetNumberOfHops, GetService, GetSmallState, GetSmallState, getSourceAddress, getTypeId, halt, pathNotFound, run, SendForProcessing, SendSmartPacket, SendSmartPacket, SetSmallState, sleep, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected transient AppCommunicator context
Allow the packet to be SNMP managable.
Constructor Detail

AvnmpBW

public AvnmpBW()
Method Detail

queueSize

protected long queueSize(int port)
Incoming Active Node Queue size. This is an accumulator of all packets received since startup.
Parameters:
port - The receive port number.
Returns:
The current incoming queue size.

xmitRate

protected long xmitRate()
This method returns the total number of bytes transmitted by this node divided by the total amount of time this node has been running.
Returns:
The transmit bandwidth used.

recvRate

protected long recvRate()
This method returns the total number of bytes received by this node divided by the total amount of time this node has been running.
Returns:
The receive bandwidth used.

exec

public void exec()
This is the main processing for this active packet. The primary task is to add itself to the receiving node's input queue.
Overrides:
exec in class magician.Node.KU_SmartPacket_V2

Active Virtual Network Management Prediction (AVNMP) Classes