|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.totem.domain.diffserv.MAMModel
public class MAMModel
Implements the Maximum Allocation Bandwidth Constraints Model (MAM). See RFC 4125.
Creation date: 7/01/2008
Method Summary | |
---|---|
boolean |
checkConstraints(Domain domain,
float[] bc,
float mrbw)
Every bandwidth constraint should be inferior or equal to the maximum reservable bandwidth |
static MAMModel |
getInstance()
|
float[] |
getReservableBandwidth(Domain domain,
float[] bc,
float[] reservedBwArray,
float mrbw)
Computes the reservable bandwidth array in the following way: |
float |
getReservableBandwidth(Domain domain,
int priority,
float[] bc,
float[] reservedBwArray,
float mrbw)
Returns the reservable bandwidth at a given priority level given the constraints and the reserved bandwidth. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static MAMModel getInstance()
public boolean checkConstraints(Domain domain, float[] bc, float mrbw)
checkConstraints
in interface DiffServModel
domain
- bc
- mrbw
-
public float[] getReservableBandwidth(Domain domain, float[] bc, float[] reservedBwArray, float mrbw)
"Unreserved TE-Class [i]" = MIN [ [ BCc - SUM ( Reserved(CTc,q) ) ] for q <= p , [ Max-Res-Bw - SUM (Reserved(CTb,q)) ] for q <= p and 0 <= b <= 7, ] where: TE-Class [i] <--> < CTc , preemption p> in the configured TE-Class mapping.
getReservableBandwidth
in interface DiffServModel
domain
- bc
- reservedBwArray
- mrbw
-
public float getReservableBandwidth(Domain domain, int priority, float[] bc, float[] reservedBwArray, float mrbw)
"Unreserved TE-Class [i]" = MIN [ [ BCc - SUM ( Reserved(CTc,q) ) ] for q <= p , [ Max-Res-Bw - SUM (Reserved(CTb,q)) ] for q <= p and 0 <= b <= 7, ] where: TE-Class [i] <--> < CTc , preemption p> in the configured TE-Class mapping.
getReservableBandwidth
in interface DiffServModel
domain
- priority
- <bc
- Array of bandwidth constraints, indexed by the constraint numberreservedBwArray
- Array representing the reserved bandwidth at each of the priority levelmrbw
- Maximum reservable bandwidth
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |