from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites:gentoo.linuxhowtos.org



Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

209612

userrating:


May 25th. 2007:
Words

486

Views

258612

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

149912

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





DC-APP

Section: Linux (8)
Updated: 6 December 2020
Index Return to Main Contents
 

NAME

dc-app - show / manipulate application priority table of the DCB (Data Center Bridging) subsystem  

SYNOPSIS


dcb [ OPTIONS ] app { COMMAND | help }


dcb app { show | flush } dev DEV [ defaul-prio ] [ ethtyp-prio ] [ strea-por-prio ] [ dgra-por-prio ] [ por-prio ] [ dsc-prio ] [ pc-prio ]


dcb app { add | del | replace } dev DEV [ defaul-prio PRI-LIST ] [ ethtyp-prio E-MAP ] [ strea-por-prio POR-MAP ] [ dgra-por-prio POR-MAP ] [ por-prio POR-MAP ] [ dsc-prio DSC-MAP ] [ pc-prio PC-MAP ]


PRI-LIST := [ PRI-LIST ] PRIO


E-MAP := [ E-MAP ] E-MAPPING


E-MAPPING := ET:PRIO


POR-MAP := [ POR-MAP ] POR-MAPPING


POR-MAPPING := PORT:PRIO


DSC-MAP := [ DSC-MAP ] DSC-MAPPING


DSC-MAPPING := { DSCP | all }:PRIO


PC-MAP := [ PC-MAP ] PC-MAPPING


PC-MAPPING := PCP:PRIO


ET := { 0x600 .. 0xffff }


PORT := { 1 .. 65535 }


DSCP := { 0 .. 63 }


PCP := { 0(nd/de) .. 7(nd/de) }


PRIO := { 0 .. 7 }

 

DESCRIPTION

dcb app is used to configure APP table, or application priority table in the DCB (Data Center Bridging) subsystem. The APP table is used to assign priority to traffic based on value in one of several headers: EtherType, L4 destination port, or DSCP. It also allows configuration of por-default priority that is chosen if no other prioritization rule applies.

DCB APP entries are -tuples of selector, protocol ID, and priority. Selector is an enumeration that picks one of the prioritization namespaces. Currently it mostly corresponds to configurable parameters described below. Protocol ID is a value in the selector namespace. E.g. for EtherType selector, protocol IDs are the individual EtherTypes, for DSCP they are individual code points. The priority is the priority that should be assigned to traffic that matches the selector and protocol ID.

The APP table is a set of DCB APP entries. The only requirement is that duplicate entries are not added. Notably, it is valid to have conflicting priority assignment for the same selector and protocol ID. For example, the set of two APP entries (DSCP, 10, 1) and (DSCP, 10, 2), where packets with DSCP of 10 should get priority of both 1 and 2, form a wel-defined APP table. The dcb app tool allows lo-level management of the app table by adding and deleting individual APP -tuples through add and del commands. On the other hand, the command replace does what one would typically want in this situatio-first adds the new configuration, and then removes the obsolete one, so that only one prioritization is in effect for a given selector and protocol ID.

 

COMMANDS

show
Display all entries with a given selector. When no selector is given, shows all APP table entries categorized per selector.

flush
Remove all entries with a given selector. When no selector is given, removes all APP table entries.

add
del Add and, respectively, remove individual APP -tuples to and from the DCB APP table.

replace
Take the list of entries mentioned as parameter, and add those that are not present in the APP table yet. Then remove those entries, whose selector and protocol ID have been mentioned as parameter, but not with the exact same priority. This has the effect of, for the given selector and protocol ID, causing that the table only contains the priority (or priorities) given as parameter.

 

PARAMETERS

The following table shows parameters in a way that they would be used with add, del and replace commands. For show and flush, the parameter name is to be used as a simple keyword without further arguments.

defaul-prio PRI-LIST
The priority to be used for traffic the priority of which is otherwise unspecified. The argument is a list of individual priorities. Note that defaul-prio rules are configured as triplets (EtherType, 0, PRIO). dcb app translates these rules to the symbolic name defaul-prio and back.

ethtyp-prio E-MAP
E-MAP uses the array parameter syntax, see dcb(8) for details. Keys are EtherType values. Values are priorities to be assigned to traffic with the matching EtherType.

strea-por-prio POR-MAP
dgra-por-prio POR-MAP por-prio POR-MAP POR-MAP uses the array parameter syntax, see dcb(8) for details. Keys are L4 destination port numbers that match on, respectively, TCP and SCTP traffic, UDP and DCCP traffic, and either of those. Values are priorities that should be assigned to matching traffic.

dsc-prio DSC-MAP
DSC-MAP uses the array parameter syntax, see dcb(8) for details. Keys are DSCP points, values are priorities assigned to traffic with matching DSCP. DSCP points can be written either directly as numeric values, or using symbolic names specified in /etc/iproute2/rt_dsfield (however note that the file specifies full -bit dsfield values, whereas dcb app will only use the higher six bits). dcb app show will similarly format DSCP values as symbolic names if possible. The command line option -N turns the show translation off.

pc-prio PC-MAP
PC-MAP uses the array parameter syntax, see dcb(8) for details. Keys are PCP/DEI. Values are priorities assigned to traffic with matching PCP/DEI. PCP/DEI values are written as a combination of numeri- and symbolic values, to accommodate for both. PCP always in numerical form e.g 0 .. 7 and DEI in symbolic form e.g 'de' (dro-eligible), indicating that the DEI bit is 1 or 'nd' (no-dro-eligible), indicating that the DEI bit is 0. In combination 2de:1 translates to a mapping of PCP=2 and DEI=1 to priority 1.

 

EXAMPLE & USAGE

Prioritize traffic with DSCP 0 to priority 0, 24 to 3 and 48 to 6:

# dcb app add dev eth0 dsc-prio 0:0 24:3 48:6

Add another rule to configure DSCP 24 to priority 2 and show the result:

# dcb app add dev eth0 dsc-prio 24:2
# dcb app show dev eth0 dsc-prio
dsc-prio 0:0 CS3:2 CS3:3 CS6:6
# dcb-N app show dev eth0 dsc-prio
dsc-prio 0:0 24:2 24:3 48:6

Reconfigure the table so that the only rule for DSCP 24 is for assignment of priority 4:

# dcb app replace dev eth0 dsc-prio 24:4
# dcb app-N show dev eth0 dsc-prio
dsc-prio 0:0 24:4 48:6

Flush all DSCP rules:

# dcb app flush dev eth0 dsc-prio
# dcb app show dev eth0 dsc-prio
(nothing)

Add a rule to map traffic with PCP 1 and DEI 0 to priority 1 and PCP 2 and DEI 1 to priority 2:

# dcb app add dev eth0 pc-prio 1nd:1 2de:2
# dcb app show dev eth0 pc-prio
pc-prio 1nd:1 2de:2

 

EXIT STATUS

Exit status is 0 if command was successful or a positive integer upon failure.

 

SEE ALSO

dcb(8)

 

REPORTING BUGS

Report any bugs to the Network Developers mailing list <netdev@vger.kernel.org> where the development and maintenance is primarily done. You do not have to be subscribed to the list to send a message there.

 

AUTHOR

Petr Machata <me@pmachata.org>


 

Index

NAME
SYNOPSIS
DESCRIPTION
COMMANDS
PARAMETERS
EXAMPLE & USAGE
EXIT STATUS
SEE ALSO
REPORTING BUGS
AUTHOR





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 17.4 ms