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

Defining Aliases for CoS Value Bit Patterns

date_range 19-Feb-21

To define a CoS value alias, include the code-point-aliases statement at the [edit class-of-service] hierarchy level:

content_copy zoom_out_map
[edit class-of-service]
code-point-aliases {
    (dscp | dscp-ipv6 | exp | ieee-802.1 | ieee-802.1ad | inet-precedence) {
        alias-name bit-pattern;
    }
}

The CoS marker types are as follows:

  • dscp—Differentiated Services code point aliases for IPv4 packets.

  • dscp-ipv6—Differentiated Services code point aliases for IPv6 packets.

  • exp—Layer 2 CoS values for MPLS packets.

  • ieee-802.1—Layer 2 IEEE 802.1 CoS values.

  • ieee-802.1—Layer 2 IEEE 802.1ad (DEI) CoS values.

  • inet-precedence—IP precedence for IPv4 packets. IP precedence mapping requires only the first three bits of the DSCP field.

For example, you might configure the following aliases:

content_copy zoom_out_map
[edit class-of-service]
code-point-aliases {
    dscp {
        my1 110001;
        my2 101110;
        be 000001;
        cs7 110000;
    }
}

To specify this configuration:

  1. Specify the code-point-alias type as DSCP:
    content_copy zoom_out_map
    [edit]
    user@host# edit class-of-service code-point-aliases dscp
    
  2. Specify the alias names and DSCP 6-bit pattern.
    content_copy zoom_out_map
    [edit class-of-service code-point-aliases dscp]
    user@host# set my1 110001
    user@host# set my2 101110
    user@host# set be 000001
    user@host# set cs7 110000
    

This configuration produces the following mapping:

content_copy zoom_out_map
user@host> show class-of-service code-point-aliases dscp
Code point type: dscp
Alias              Bit pattern
ef/my2             101110
af11               001010
af12               001100
af13               001110
af21               010010
af22               010100
af23               010110
af31               011010
af32               011100
af33               011110
af41               100010
af42               100100
af43               100110
be                 000001
cs1                001000
cs2                010000
cs3                011000
cs4                100000
cs5                101000
nc1/cs6/cs7        110000
nc2                111000
my1                110001

The following notes explain certain results in the mapping:

  • my1 110001:

    • 110001 was not mapped to anything before, and my1 is a new alias.

    • Nothing in the default mapping table is changed by this statement.

  • my2 101110:

    • 101110 is now mapped to my2 as well as ef.

  • be 000001:

    • be is now mapped to 000001.

    • The old value of be, 000000, is not associated with any alias. Packets with this DSCP value are now mapped to the default forwarding class.

  • cs7 110000:

    • cs7 is now mapped to 110000, as well as nc1 and cs6.

    • The old value of cs7, 111000, is still mapped to nc2.

footer-navigation