Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Example: Configuring Segmented and Interpolated Style Profiles

date_range 29-Nov-23

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:

content_copy zoom_out_map
[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:

  1. Configure class of service.

    content_copy zoom_out_map
    [edit]
    user@host# edit class-of-service
    
  2. Configure segmented style profile.

    content_copy zoom_out_map
    [edit class-of-service]
    user@host# edit drop-profiles segmented-style-profile
    
  3. Specify fill levels and drop probabilities.

    content_copy zoom_out_map
    [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.

content_copy zoom_out_map
[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:

content_copy zoom_out_map
[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:

  1. Configure class of service.

    content_copy zoom_out_map
    [edit]
    user@host# edit class-of-service
    
  2. Configure interpolated style profile.

    content_copy zoom_out_map
    [edit class-of-service]
    user@host# edit drop-profiles interpolated-style-profile interpolate
    
  3. Specify fill levels.

    content_copy zoom_out_map
    [edit class-of-service drop-profiles interpolated-style-profile interpolate]
    user@host# set fill-level 50
    user@host# set fill-level 75
    
  4. Specify drop probabilities.

    content_copy zoom_out_map
    [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.

content_copy zoom_out_map
[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.

Verifying Interpolated Style Profile Configuration

Purpose

Verify that the interpolated style profile is configured properly.

Action

From configuration mode, enter the show class-of-service command.

footer-navigation