Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Example: Configuring Translation Tables on SONET/SDH OC48/STM16 IQE PICs

    The following example translates incoming DSCP values to the new values listed in the translation table. All incoming DSCP values other than 111111, 111110, 000111, and 100111 are translated to 000111.

    [edit class-of-service]
    translation-table {to-dscp-from-dscp dscp-trans-table {to-code-point 000000 from-code-points 111111;to-code-point 000001 from-code-points 111110;to-code-point 111000 from-code-points [ 000111 100111 ];to-code-point 000111 from-code-points *;}}

    You must apply the translation table to the logical interface input on the SONET/SDH OC48/STM16 IQE PIC:

    [edit class-of-service interfaces so-1/0/0 unit 0]translation-table to-dscp-from-dscp dscp-trans-table;

    If you try to configure mutually exclusive translation tables on the same interface unit, you get a warning message when you display or commit the configuration:

    so-0/1/1 {
        unit 0 {
            translation-table {
                ##
                ## Warning: to-dscp-from-dscp and to-inet-precedence-from-inet-precedence not allowed on same unit
                ##
                to-inet-precedence-from-inet-precedence inet-trans-table;
                to-dscp-from-dscp dscp-trans-table;
            }
        }
    }

    You can issue the following operational mode commands to verify your configuration:

    • show class-of-service translation-table
    • show class-of-service interface interface-name

    To verify that the correct values are configured, use the show class-of-service translation-table command. The show class-of-service translation-table command displays the code points of all translation tables configured. All values are displayed, not just those configured:

    user@host> show class-of-service translation-table
    Translation Table: dscp-trans-table, Translation table type: dscp-to-dscp, Index: 6761
      From Code point    To Code Point
      000000                      000111
      000001                      000111
      000010                      000111
      000011                      000111
      000100                      000111
      000101                      000111
      000110                      000111
      000111                      111000
      001000                      000111
      001001                      000111
      001010                      000111
      001011                      000111
      001100                      000111
      001101                      000111
      001110                      000111
      001111                      000111
      010000                      000111
      010001                      000111
      010010                      000111
      010011                      000111
      010100                      000111
      010101                      000111
      010110                      000111
      010111                      000111
      011000                      000111
      011001                      000111
      011010                      000111
      011011                      000111
      011100                      000111
      011101                      000111
      011110                      000111
      011111                      000111
      100000                      000111
      100001                      000111
      100010                      000111
      100011                      000111
      100100                      000111
      100101                      000111
      100110                      000111
      100111                      111000
      101000                      000111
      101001                      000111
      101010                      000111
      101011                      000111
      101100                      000111
      101101                      000111
      101110                      000111
      101111                      000111
      110000                      000111
      110001                      000111
      110010                      000111
      110011                      000111
      110100                      000111
      110101                      000111
      110110                      000111
      110111                      000111
      111000                      000111
      111001                      000111
      111010                      000111
      111011                      000111
      111100                      000111
      111101                      000111
      111110                      000001
      111111                      000000

    To verify that the configured translation table is applied to the correct interface, use the show class-of-service interface interface-name command. The show class-of-service interface interface-name command displays the translation tables applied to the IQE interface:

    user@host> show class-of-service interface so-2/3/0
      Logical interface: so-2/3/0.0, Index: 68
        Object                  Name                   Type                    Index
        Rewrite                 exp-default            exp (mpls-any)             29
        Classifier              dscp-default           dscp                        7
        Classifier              exp-default            exp                        10
        Translation Table       exp—trans—table        EXP_TO_EXP              61925

    ToS translation on the SONET/SDH OC48/STM16 IQE PIC is a form of behavior aggregate (BA) classification. The SONET/SDH OC48/STM16 IQE PIC does not support multifield classification of packets at the PIC level. For more information about multifield classification, see Multifield Classifier Overview.

    Published: 2013-07-31