gov.nist.antd.diffserv
Class DiffServMeterMarker

java.lang.Object
  |
  +--gov.nist.antd.diffserv.DiffServMeterMarker
Direct Known Subclasses:
SRTCMMeter, TRTCMMeter

public abstract class DiffServMeterMarker
extends java.lang.Object

This abstract class (DiffServMeterMarker) provides the basic functions of the measurement of data rate of the DiffServ packet flow.
It measures the traffic rate according to the traffic parameters (PDR/PBS, CDR/CBS+EBS)for the class-type, and marks according to the result.
The mark of the result is one of three colors: red, yellow or green.
SRTCM (Single Rate, Two Color Marker) and TRTCM (Two Rate, Three Color Marker) are implemented based on this abstract class.

 This class was developed at the National Institute of Standards and
 Technology by employees of the Federal Government in the course of
 their official duties. Pursuant to title 17 Section 105 of the United
 States Code this software is not subject to copyright protection and
 is in the public domain.
 NIST assumes no responsibility whatsoever for its use by other parties,
 and makes no guarantees, expressed or implied, about its quality,
 reliability, or any other characteristic.
 
We would appreciate acknowledgement if the software is used.
NIST ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.

Author:
Young-Tak Kim
, Eun-Hyuk Lim , borchert

Field Summary
 double bitrate
          Field bitrate - XXX
 int ClassType
          Field ClassType - XXX
 boolean debug
          Field debug - XXX
 int DiffServFlowID
          Field DiffServFlowID - XXX
static int GREEN
          Field GREEN - XXX
 int GreenBytes
          Field GreenBytes - XXX
 int GreenCount
          Field GreenCount - XXX
 java.lang.String hostID
          Field hostID - XXX
 Host localHost
          Field localHost - XXX
 java.lang.String name
          Field name - XXX
 Net net
          Field net - XXX
static int RED
          Field RED - XXX
 int RedBytes
          Field RedBytes - XXX
 int RedCount
          Field RedCount - XXX
 java.lang.String use
          Field use - XXX
static int YELLOW
          Field YELLOW - XXX
 int YellowBytes
          Field YellowBytes - XXX
 int YellowCount
          Field YellowCount - XXX
 
Constructor Summary
DiffServMeterMarker()
          Constructor DiffServMeterMarker
 
Method Summary
 void config(com.renesys.raceway.DML.Configuration cfg)
          Method config XXX
 void GreenPacketCount(ProtocolMessage message)
          Method GreenPacketCount XXX
 void init(DiffServPrfFlowProfile pf)
          Method init XXX
abstract  void Meter(ProtocolMessage message)
          Method Meter XXX
 void RedPacketCount(ProtocolMessage message)
          Method RedPacketCount XXX
 void resetCount()
          Method resetCount
 void setColor(int color, ProtocolMessage message)
          Method setColor XXX
 void YellowPacketCount(ProtocolMessage message)
          Method YellowPacketCount XXX
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hostID

public java.lang.String hostID
Field hostID - XXX


name

public java.lang.String name
Field name - XXX


use

public java.lang.String use
Field use - XXX


DiffServFlowID

public int DiffServFlowID
Field DiffServFlowID - XXX


ClassType

public int ClassType
Field ClassType - XXX


localHost

public Host localHost
Field localHost - XXX


net

public Net net
Field net - XXX


debug

public boolean debug
Field debug - XXX


GreenCount

public int GreenCount
Field GreenCount - XXX


GreenBytes

public int GreenBytes
Field GreenBytes - XXX


YellowCount

public int YellowCount
Field YellowCount - XXX


YellowBytes

public int YellowBytes
Field YellowBytes - XXX


RedCount

public int RedCount
Field RedCount - XXX


RedBytes

public int RedBytes
Field RedBytes - XXX


bitrate

public double bitrate
Field bitrate - XXX


GREEN

public static final int GREEN
Field GREEN - XXX

See Also:
Constant Field Values

YELLOW

public static final int YELLOW
Field YELLOW - XXX

See Also:
Constant Field Values

RED

public static final int RED
Field RED - XXX

See Also:
Constant Field Values
Constructor Detail

DiffServMeterMarker

public DiffServMeterMarker()
Constructor DiffServMeterMarker

Method Detail

init

public void init(DiffServPrfFlowProfile pf)
Method init XXX

Parameters:
pf - - XXX

config

public void config(com.renesys.raceway.DML.Configuration cfg)
            throws com.renesys.raceway.DML.configException
Method config XXX

Parameters:
cfg - - XXX
Throws:
com.renesys.raceway.DML.configException

setColor

public void setColor(int color,
                     ProtocolMessage message)
Method setColor XXX

Parameters:
color - - XXX
message - - XXX

GreenPacketCount

public void GreenPacketCount(ProtocolMessage message)
Method GreenPacketCount XXX

Parameters:
message - - XXX

YellowPacketCount

public void YellowPacketCount(ProtocolMessage message)
Method YellowPacketCount XXX

Parameters:
message - - XXX

RedPacketCount

public void RedPacketCount(ProtocolMessage message)
Method RedPacketCount XXX

Parameters:
message - - XXX

resetCount

public void resetCount()
Method resetCount


Meter

public abstract void Meter(ProtocolMessage message)
Method Meter XXX

Parameters:
message - - XXX