gov.nist.antd.diffserv
Class SRTCMMeter

java.lang.Object
  |
  +--gov.nist.antd.diffserv.DiffServMeterMarker
        |
        +--gov.nist.antd.diffserv.SRTCMMeter

public class SRTCMMeter
extends DiffServMeterMarker

For the measurement of the arrival rate of the DiffServ class-type packets, Token Bucket Meter (TBM) is used with SRTCM (Single Rate Three Color Marker) or TRTCM (Two Rate Three Color Markter).
TBM with SRTCM is usually used for NCT and EF class-type where the packet rate is defined by peak information rate (PIR) with peak burst size (PBS). According to the result of the data rate measurement, each packet is colored to

	  - Green (conforming PIR/PBS and CIR/CBS)
	  - Yellow (conforming PIR/PBS and CIR, but exceeding CBS)
	  - Red (exceeding PIR/PBS)
   Ref.
	[1] IETF RFC 2697, "A Single Rate Three Color Marker," J. Heinanen et al., September 1999.
	[2] IETF RFC 2698, "A Two Rate Three Color Marker," J. Heinanen et al., September 1999.

 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 CBS
          Field CBS - XXX
 double CBSTokenBucket
          Field CBSTokenBucket - XXX
 double CIR
          Field CIR - XXX
 double EBS
          Field EBS - XXX
 double EBSTokenBucket
          Field EBSTokenBucket - XXX
private  long lastCheckTime
           
 
Fields inherited from class gov.nist.antd.diffserv.DiffServMeterMarker
bitrate, ClassType, debug, DiffServFlowID, GREEN, GreenBytes, GreenCount, hostID, localHost, name, net, RED, RedBytes, RedCount, use, YELLOW, YellowBytes, YellowCount
 
Constructor Summary
SRTCMMeter()
          Constructor SRTCMMeter
 
Method Summary
 void config(com.renesys.raceway.DML.Configuration cfg)
          Method config XXX
 void Meter(ProtocolMessage message)
          Method Meter XXX
 void updateTokenBucket()
          Method updateTokenBucket
 
Methods inherited from class gov.nist.antd.diffserv.DiffServMeterMarker
GreenPacketCount, init, RedPacketCount, resetCount, setColor, YellowPacketCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CIR

public double CIR
Field CIR - XXX


CBS

public double CBS
Field CBS - XXX


EBS

public double EBS
Field EBS - XXX


CBSTokenBucket

public double CBSTokenBucket
Field CBSTokenBucket - XXX


EBSTokenBucket

public double EBSTokenBucket
Field EBSTokenBucket - XXX


lastCheckTime

private long lastCheckTime
Constructor Detail

SRTCMMeter

public SRTCMMeter()
Constructor SRTCMMeter

Method Detail

config

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

Overrides:
config in class DiffServMeterMarker
Parameters:
cfg - - XXX
Throws:
com.renesys.raceway.DML.configException

updateTokenBucket

public void updateTokenBucket()
Method updateTokenBucket


Meter

public void Meter(ProtocolMessage message)
Method Meter XXX

Specified by:
Meter in class DiffServMeterMarker
Parameters:
message - - XXX