Configuring DSCP to CoS Mapping


Netvisor ONE supports creating hardware maps that associate Differentiated Services Code Point (DSCP) values in ingress in the received IP headers to Class of Service (CoS) priorities. This functionality also helps in prioritizing traffic based on DSCP markings by using the appropriate egress CoS-based queues to forward traffic out.


A DSCP map can be created, deleted and modified with the following commands:


CLI (network-admin@switch) >  dscp-map-create


dscp-map-create

Create a DSCP priority mapping table with default DSCP to priority mappings.

name name-string

Create a name for the DSCP map.

scope local|fabric

Specifies the scope for DSCP map.


CLI (network-admin@Spine1) >  dscp-map-delete


dscp-map-delete

Delete a DSCP priority mapping table.

name name-string

Name for the DSCP map.



CLI (network-admin@switch) >  dscp-map-pri-map-modify


dscp-map-pri-map-modify

Update priority mappings in tables.

dscp-map selector:

name name-string

Specify the name for the DSCP map to modify.

the following pri-map arguments:         

pri number

Specify a CoS priority from 0 to 7.

dsmap number-list

Specify a DSCP value(s) as a single value, comma separated list, or a number range.



To show the list of DSCP maps, you can use the command:


CLI (network-admin@switch) >  dscp-map-show


dscp-map-show

Display a DSCP priority mapping table.

name name-string

Display the name of the DSCP map.

scope local|fabric

The scope for DSCP map.


For example:


CLI (network-admin@switch) > dscp-map-create name dscp-map1 scope fabric


CLI (network-admin@switch) > dscp-map-show name dscp-map1

name      scope

--------- ------

dscp-map1 fabric


The output of the command is empty if no maps have been created.


To show the associations in a DSCP map, you can use the command:


CLI (network-admin@switch) > dscp-map-pri-map-show

dscp-map-pri-map-show

Display priority mappings in tables.

dscp-map selector:

name name-string

Display the name of the DSCP map

the following pri-map arguments:         

pri number

Display a CoS priority from 0 to 7.

dsmap number-list

Display a DSCP value(s) as a single value, comma separated list, or a number range.


The default values are listed in the following dscp-map-pri-map-show output:


CLI (network-admin@switch) > dscp-map-create name dscp-map1 scope fabric


CLI (network-admin@switch) >  dscp-map-pri-map-show name dscp-map1


switch name pri dsmap

------ ---- --- -----------

switch  ds2 0   none

switch  ds2 1   8,10,12,14

switch  ds2 2   16,18,20,22

switch  ds2 3   24,26,28,30

switch  ds2 4   32,34,36,38

switch  ds2 5   40

switch  ds2 6   48

switch  ds2 7   56


Furthermore, the port-config-modify command has a parameter, dscp-map map-name|none, to apply a DSCP map to a port. (Using the option none removes the DSCP map previously configured on the port.)


For example:


CLI (network-admin@switch) > port-config-modify port 17,21 dscp-map dscp-map1


CLI (network-admin@switch) > port-config-show port 17,21 format switch,intf,dscp-map,


switch  intf dscp-map

------- ---- ---------

switch  17   dscp-map1

switch  21   dscp-map1


To modify a DSCP map that is in use, you can change its associations like so:


CLI (network-admin@switch) > dscp-map-pri-map-modify name dscp-map1 pri 5 dsmap 32


CLI (network-admin@switch) > dscp-map-pri-map-show

name      pri dsmap

--------- --- -----------

dscp-map1 0   40

dscp-map1 1   8,10,12,14

dscp-map1 2   16,18,20,22

dscp-map1 3   24,26,28,30

dscp-map1 4   34,36,38

dscp-map1 5   32

dscp-map1 6   48

dscp-map1 7   56


You can delete a DSCP map from a port like so:


CLI (network-admin@switch) > port-config-modify port 17,21 dscp-map none

north
    keyboard_arrow_up
    keyboard_arrow_down
    description
    print
    feedback
    support
    business
    rss_feed
    south