|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.foxsmart.csu.config.CiscoRouterConfigParser
com.foxsmart.csu.config.CiscoRouterConfigComponent
com.foxsmart.csu.config.global.policymap.classmap.RandomDetectComponent
public class RandomDetectComponent
To random detect commands configures Weighted Random Early Detection (WRED) and distributed WRED (DWRED) parameters for a particular IP Precedence. To configure WRED parameters for a particular IP Precedence for a class policy in a policy map, use the random-detect precedence policy-map class configuration command.
WRED is a congestion avoidance mechanism that slows traffic by randomly dropping packets when congestion exists. DWRED is similar to WRED but uses the Versatile Interface Processor (VIP) instead of the Route Switch Processor (RSP). When you configure the random-detect command on an interface, packets are given preferential treatment based on the IP Precedence of the packet. Use the random-detect precedence command to adjust the treatment for different precedences. If you want WRED or DWRED to ignore the precedence when determining which packets to drop, enter this command with the same parameters for each precedence. Remember to use reasonable values for the minimum and maximum thresholds. Note that if you use the random-detect precedence command to adjust the treatment for different precedences within class policy, you must ensure that WRED is not configured for the interface to which you attach that service policy.
| Field Summary | |
|---|---|
static java.lang.String |
EXPONENTIAL_WEIGHTING_CONSTANT
|
static java.lang.Integer |
MAX_EXPONENTIAL_WEIGHTING_CONSTANT
The maximum exponential weighting constant. |
static java.lang.Integer |
MIN_EXPONENTIAL_WEIGHTING_CONSTANT
The minimum exponential weighting constant. |
static java.lang.String |
PRECEDENCE
|
static java.lang.String |
RANDOM_DETECT
|
static java.lang.String |
RSVP
|
| Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigComponent |
|---|
commentComponent, componentMap, log, parentComponent |
| Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser |
|---|
NO, tokenIndex |
| Constructor Summary | |
|---|---|
RandomDetectComponent()
Constructs a priority object. |
|
| Method Summary | |
|---|---|
java.util.List |
buildFromIos(java.util.List configLines)
Parse and populate the specific CiscoRouterComponent object based on the passed in individual lines of the IOS configuration. |
Commands |
generateDeleteIos(CiscoRouterConfig updatedCiscoRouterConfig)
Generates the IOS configuration commands to delete this component. |
Commands |
generateIos()
Returns the IOS configuration commands for this component. |
java.lang.Integer |
getExponentialWeightingConstant()
Gets the exponential weighting constant. |
RandomDetectPrecedenceParams |
getPrecedenceParams(RandomDetectPrecedenceEnum randomDetectPrecedenceEnum)
Gets the random detect precedence parameters for a given precedence. |
void |
setExponentialWeightingConstant(java.lang.Integer exponentialWeightingConstant)
Sets the exponential weighting constant. |
void |
setPrecedenceParams(RandomDetectPrecedenceEnum randomDetectPrecedenceEnum,
RandomDetectPrecedenceParams params)
Sets the precedence parameters for a particular precedence. |
void |
validate()
Validates this object to ensure it contains a valid IOS configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String RANDOM_DETECT
public static final java.lang.String EXPONENTIAL_WEIGHTING_CONSTANT
public static final java.lang.String PRECEDENCE
public static final java.lang.String RSVP
public static final java.lang.Integer MIN_EXPONENTIAL_WEIGHTING_CONSTANT
public static final java.lang.Integer MAX_EXPONENTIAL_WEIGHTING_CONSTANT
| Constructor Detail |
|---|
public RandomDetectComponent()
| Method Detail |
|---|
public void setExponentialWeightingConstant(java.lang.Integer exponentialWeightingConstant)
exponentialWeightingConstant - The exponential weighting constant.public java.lang.Integer getExponentialWeightingConstant()
public void setPrecedenceParams(RandomDetectPrecedenceEnum randomDetectPrecedenceEnum,
RandomDetectPrecedenceParams params)
randomDetectPrecedenceEnum - The precedenceparams - The random detect precedence parameters for the given precedence.public RandomDetectPrecedenceParams getPrecedenceParams(RandomDetectPrecedenceEnum randomDetectPrecedenceEnum)
randomDetectPrecedenceEnum - The enum to get precedence parameters.
public java.util.List buildFromIos(java.util.List configLines)
throws InvalidConfigurationException
CiscoRouterConfigComponent
buildFromIos in class CiscoRouterConfigComponentconfigLines - The list of IOS configuration lines.
InvalidConfigurationException - if the IOS configuration can not be parsed for any reason.CiscoRouterConfigComponent
public void validate()
throws InvalidConfigurationException
CiscoRouterConfigComponent
validate in class CiscoRouterConfigComponentInvalidConfigurationException - if the configuration is invalid.CiscoRouterConfigComponent
public Commands generateIos()
throws InvalidConfigurationException
CiscoRouterConfigComponent
generateIos in class CiscoRouterConfigComponentInvalidConfigurationException - if the IOS configuration is invalid and the IOS string can not be generated.
The validate() method is used to determine if the configuration is valid.CiscoRouterConfigComponent
public Commands generateDeleteIos(CiscoRouterConfig updatedCiscoRouterConfig)
throws InvalidConfigurationException
CiscoRouterConfigComponent
generateDeleteIos in class CiscoRouterConfigComponentupdatedCiscoRouterConfig - the updated Cisco router configuration.
InvalidConfigurationException - if the IOS configuration is invalid and the IOS string can not be generated.
The validate() method is used to determine if the configuration is valid.MultiLineComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||