ON THIS PAGE
Example: Configuring Segmented and Interpolated Style Profiles
This example shows how to configure segmented and interpolated style profiles.
Requirements
No special configuration beyond device initialization is required before configuring this feature.
Overview
In this example, you configure the segmented style profile by setting the drop probability to 25 percent when the queue is 25 percent full. The drop probability increases to 50 percent when the queue is 50 percent full. You set the drop probability to 75 percent when the queue is 75 percent full and finally the drop probability is set to 95 percent when the queue is 100 percent full.
Then you configure the interpolated style profile and set the fill level to 50 percent and 75 percent. Finally you set the drop probability to 25 percent and later to 50 percent.
Configuration
Configuring Segmented Style Profiles
CLI Quick Configuration
To quickly configure segmented style profiles, copy the following commands and paste them into the CLI:
[edit] set class-of-service drop-profiles segmented-style-profile fill-level 25 drop-probability 25 set class-of-service drop-profiles segmented-style-profile fill-level 50 drop-probability 50 set class-of-service drop-profiles segmented-style-profile fill-level 75 drop-probability 75 set class-of-service drop-profiles segmented-style-profile fill-level 95 drop-probability 100
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode.
To configure segmented style profiles:
Configure class of service.
[edit] user@host# edit class-of-service
Configure segmented style profile.
[edit class-of-service] user@host# edit drop-profiles segmented-style-profile
Specify fill levels and drop probabilities.
[edit class-of-service drop-profiles segmented-style-profile] user@host# set fill-level 25 drop-probability 25 user@host# set fill-level 50 drop-probability 50 user@host# set fill-level 75 drop-probability 75 user@host# set fill-level 95 drop-probability 100
Results
From configuration mode, confirm your configuration by entering the show class-of-service command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.
[edit]
user@host# show class-of-service
drop-profiles {
segmented-style-profile {
fill-level 25 drop-probability 25;
fill-level 50 drop-probability 50;
fill-level 75 drop-probability 75;
fill-level 95 drop-probability 100;
}
}
If you are done configuring the device, enter commit from configuration mode.
Configuring Interpolated Style Profiles
CLI Quick Configuration
To quickly configure interpolated style profiles, copy the following commands and paste them into the CLI:
[edit] set class-of-service drop-profiles interpolated-style-profile interpolate fill-level 50 set class-of-service drop-profiles interpolated-style-profile interpolate fill-level 75 set class-of-service drop-profiles interpolated-style-profile interpolate drop-probability 25 set class-of-service drop-profiles interpolated-style-profile interpolate drop-probability 50
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode.
To configure interpolated style profile:
Configure class of service.
[edit] user@host# edit class-of-service
Configure interpolated style profile.
[edit class-of-service] user@host# edit drop-profiles interpolated-style-profile interpolate
Specify fill levels.
[edit class-of-service drop-profiles interpolated-style-profile interpolate] user@host# set fill-level 50 user@host# set fill-level 75
Specify drop probabilities.
[edit class-of-service drop-profiles interpolated-style-profile interpolate] user@host# set drop-probability 25 user@host# set drop-probability 50
Results
From configuration mode, confirm your configuration by entering the show class-of-service command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.
[edit]
user@host# show class-of-service
drop-profiles {
interpolated-style-profile {
fill-level [ 50 75 ];
drop-probability [ 25 50 ];
}
}
}
If you are done configuring the device, enter commit from configuration mode.
Verification
To confirm that the configuration is working properly, perform these tasks:
Verifying Segmented Style Profile Configuration
Purpose
Verify that the segmented style profile is configured properly.
Action
From configuration mode, enter the show class-of-service command.