|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.comp.Component
drcl.net.Module
drcl.inet.core.PktFilter
drcl.diffserv.TrafficConditioner
This implements a wrapper class for classifier and profiler(meter, marker). A packet is first classified to find the profile it belongs to by the source, destination and DF fields in the packet header, and then it will be passed to the meter and marker installed for the profile for further processing.
| Nested Class Summary |
| Nested classes inherited from class drcl.comp.Component |
Component.Locks |
| Field Summary |
| Fields inherited from class drcl.net.Module |
address, downPort, PortGroup_DOWN, PortGroup_UP, timerPort, upPort |
| Fields inherited from interface drcl.inet.core.InetCoreConstants |
CONFIG_PORT_ID, PULL_PORT_ID |
| Constructor Summary | |
TrafficConditioner()
|
|
TrafficConditioner(java.lang.String id_)
|
|
| Method Summary | |
void |
addProfile(long src_,
DFProfile dfp_)
This method calls addProfile(src_, -1L, 0L, 0L, 0L, 0L, dfp_). |
void |
addProfile(long src_,
long dest_,
DFProfile dfp_)
This method calls addProfile(src_, -1L, dest_, -1L, 0L, 0L, dfp_). |
void |
addProfile(long src_,
long dest_,
long dscp_,
DFProfile dfp_)
This method calls addProfile(src_, -1L, dest_, -1L, dscp_, -1L, dfp_). |
void |
addProfile(long src_,
long srcmask_,
long dest_,
long destmask_,
long dscp_,
long dscpmask_,
DFProfile dfp_)
|
protected void |
dataArriveAtUpPort(java.lang.Object data_,
Port upPort_)
The callback which handles the event when a packet arrives at the up port. |
void |
duplicate(java.lang.Object source_)
Duplicates the content of source_, including ID, name, child components and connections among them, to this component. |
DFProfile |
getProfile(long src_,
long dest_,
long dscp_)
Returns the longest matched profile. |
java.lang.String |
info()
Returns information regarding this component. |
boolean |
isInspectionEnabled()
Returns true if inspection of individual flows is enabled. |
void |
removeProfile(DFProfile dfp_)
|
void |
removeProfile(long src_,
long dest_,
long dscp_)
Removes the longest matched profile. |
void |
reset()
Resets the component for being used anew. |
void |
setInspectionEnabled(boolean enabled_)
Enables/disables inspection of individual flows. |
| Methods inherited from class drcl.inet.core.PktFilter |
createConfigPort, dataArriveAtDownPort, processOther |
| Methods inherited from class drcl.net.Module |
cancelTimeout, deliver, getAddress, process, removeDefaultDownPort, removeDefaultUpPort, removeTimerPort, setAddress, setTimeout, setTimeoutAt, timeout |
| Methods inherited from class drcl.DrclObj |
clone |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TrafficConditioner()
public TrafficConditioner(java.lang.String id_)
| Method Detail |
public void duplicate(java.lang.Object source_)
Component
duplicate in interface ObjectDuplicableduplicate in class PktFilterpublic void reset()
Component
reset in class Componentpublic java.lang.String info()
Component
info in class Component
public void addProfile(long src_,
long srcmask_,
long dest_,
long destmask_,
long dscp_,
long dscpmask_,
DFProfile dfp_)
public void addProfile(long src_,
long dest_,
long dscp_,
DFProfile dfp_)
addProfile(src_, -1L, dest_, -1L, dscp_, -1L, dfp_).
addProfile(long, long, long, long, long, long, DFProfile)
public void addProfile(long src_,
long dest_,
DFProfile dfp_)
addProfile(src_, -1L, dest_, -1L, 0L, 0L, dfp_).
addProfile(long, long, long, long, long, long, DFProfile)
public void addProfile(long src_,
DFProfile dfp_)
addProfile(src_, -1L, 0L, 0L, 0L, 0L, dfp_).
addProfile(long, long, long, long, long, long, DFProfile)
public DFProfile getProfile(long src_,
long dest_,
long dscp_)
public void removeProfile(DFProfile dfp_)
public void removeProfile(long src_,
long dest_,
long dscp_)
protected void dataArriveAtUpPort(java.lang.Object data_,
Port upPort_)
PktFilter
dataArriveAtUpPort in class PktFilterpublic void setInspectionEnabled(boolean enabled_)
public boolean isInspectionEnabled()
|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||