<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Background regarding the 802.1Q TCI Priority bits and IP TOS (DSCP) bits in FAQs</title>
    <link>https://community.extremenetworks.com/t5/faqs/background-regarding-the-802-1q-tci-priority-bits-and-ip-tos/m-p/50552#M666</link>
    <description>Article ID: 5811 &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Protocols/Features&lt;/B&gt;&lt;BR /&gt;
TOS&lt;BR /&gt;
DSCP&lt;BR /&gt;
QoS&lt;BR /&gt;
CoS &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Standards&lt;/B&gt;&lt;BR /&gt;
802.1Q&lt;BR /&gt;
802.1p &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Related to&lt;/B&gt;&lt;BR /&gt;
TCI&lt;BR /&gt;
Priority &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Goals&lt;/B&gt;&lt;BR /&gt;
Location of 802.1Q TCI / Priority bits&lt;BR /&gt;
Location / decode of IP TOS / DSCP bits &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Symptoms&lt;/B&gt;&lt;BR /&gt;
VLAN tag&lt;BR /&gt;
IP header &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Cause&lt;/B&gt;&lt;BR /&gt;
Any discussion of Quality of Service or Class of Service will typically include examining and/or setting the 802.1Q TCI Priority bits and/or the IP Type of Service / Differentiated Services Code Point bits. &lt;BR /&gt;
&lt;BR /&gt;
This solution outlines where these fields are located in an Ethernet_II frame, and also provides a bit decoder for the IP Precedence and DSCP fields. &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Solution&lt;/B&gt;&lt;BR /&gt;
&lt;B&gt;802.1Q TCI Priority bits&lt;/B&gt; &lt;BR /&gt;
&lt;BR /&gt;
The Tag Control Information Priority bits are located in the &lt;I&gt;optional&lt;/I&gt; 802.1Q VLAN Tag. If present, the Tag is inserted as Layer 2 information immediately following the Destination and Source MAC addresses, and preceding the ethertype. &lt;BR /&gt;
&lt;BR /&gt;
This 32-bit (4-byte) tag has the following layout: bits 001-016  (2 bytes) TPID                          0x8100 ("ethertype")&lt;BR /&gt;
 bits 017-032  (2 bytes) TCI (Tag Control Information)&lt;BR /&gt;
   bits 17-19  (3 bits)  802.1p Priority               0x0 -&amp;gt; 0x7 (0 -&amp;gt; 7)&lt;BR /&gt;
   bits 20-20  (1 bit)   Canonical Format Indicator    0x0 for ethernet traffic&lt;BR /&gt;
   bits 21-32  (12 bits) VLAN ID                       0x000 -&amp;gt; 0xfff (0 -&amp;gt; 4095)&lt;BR /&gt;
Devices which evaluate a packet deeper than the Layer 2 MAC addressing and which do not recognize ethertype 0x8100 (are not "802.1Q aware") will drop the packet. &lt;BR /&gt;
Devices which evaluate a packet deeper than the Layer 2 MAC addressing and which &lt;I&gt;do&lt;/I&gt; recognize ethertype 0x8100 (are "802.1Q aware") will read the Tag information and then parse past it to the true ethertype field. &lt;BR /&gt;
&lt;BR /&gt;
If the ethertype is 0x0800 (IP), then the IP Header will follow. &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;IP TOS bits&lt;/B&gt; &lt;BR /&gt;
&lt;BR /&gt;
The IP TOS field is located in the IP Header. &lt;BR /&gt;
&lt;BR /&gt;
This 160-bit (20-byte) header has the following layout: bits 001-004  (4 bits)  IP Version                     0x4 (IPv4) or 0x6 (IPv6)&lt;BR /&gt;
 bits 005-008  (4 bits)  Header length in 32-bit words  0x5 (160 bits)&lt;BR /&gt;
 bits 009-016  (1 byte)  TOS - Type of Service byte&lt;BR /&gt;
   bits 09-11  (3 bits)  IP Precedence (see decoder)    0x0 -&amp;gt; 0x7 (0 -&amp;gt; 7)&lt;BR /&gt;
   bits 12-15  (4 bits)  TOS field                      0x0 -&amp;gt; 0xf (0 -&amp;gt; 15)&lt;BR /&gt;
    bits 12-12 (1 bit)   Minimize Delay                 0x1 (set) or 0x0 (not set)&lt;BR /&gt;
    bits 13-13 (1 bit)   Maximize Throughput            0x1 (set) or 0x0 (not set)&lt;BR /&gt;
    bits 14-14 (1 bit)   Maximize Reliability           0x1 (set) or 0x0 (not set)&lt;BR /&gt;
    bits 15-15 (1 bit)   Minimize Monetary Cost         0x1 (set) or 0x0 (not set)&lt;BR /&gt;
   bits 16-16  (1 bit)   currently unused               0x0&lt;BR /&gt;
 bits 009-016  (1 byte)  Differentiated Services byte (TOS byte redefinition)&lt;BR /&gt;
   bits 09-14  (6 bits)  DSCP (see decoder)             0x00 -&amp;gt; 0x3f (0 -&amp;gt; 63)&lt;BR /&gt;
   bits 15-15  (1 bit)   Explicit Cong Notif capable    0x1 (set) or 0x0 (not set)&lt;BR /&gt;
   bits 16-16  (1 bit)   Explicit Cong Notif eligible   0x1 (set) or 0x0 (not set)&lt;BR /&gt;
 bits 017-032  (2 bytes) Total IP datagram length       0x0000 -&amp;gt; 0xffff (0 -&amp;gt; 65535)&lt;BR /&gt;
 bits 033-048  (2 bytes) Identification for reassembly  0x0000 -&amp;gt; 0xffff (0 -&amp;gt; 65535)&lt;BR /&gt;
 bits 049-049  (1 bit)   Reserved flag                  0x0&lt;BR /&gt;
 bits 050-050  (1 bit)   Don't Fragment flag            0x1 (set) or 0x0 (not set)&lt;BR /&gt;
 bits 051-051  (1 bit)   More Fragments flag            0x1 (set) or 0x0 (not set)&lt;BR /&gt;
 bits 052-064  (13 bits) Frag offset in 64-bit words    0x0000 -&amp;gt; 0x1fff (0 -&amp;gt; 8191)&lt;BR /&gt;
 bits 065-072  (1 byte)  TTL - Time to Live             0x00 -&amp;gt; 0xff (0 -&amp;gt; 255)&lt;BR /&gt;
 bits 073-080  (1 byte)  Protocol (L4 originator)       0x06 (TCP), 0x11 (UDP), etc&lt;BR /&gt;
 bits 081-096  (2 bytes) Header checksum                0x0000 -&amp;gt; 0xffff&lt;BR /&gt;
 bits 097-128  (4 bytes) Source IP address (IPv4)       0.0.0.0 -&amp;gt; 255.255.255.255&lt;BR /&gt;
 bits 129-160  (4 bytes) Destination IP address (IPv4)  0.0.0.0 -&amp;gt; 255.255.255.255&lt;B&gt;&lt;BR /&gt;
IP Precedence / DSCP decoder&lt;/B&gt; &lt;BR /&gt;
&lt;BR /&gt;
The "well known" IP Precedence / DiffServ Code Point values (as defined by &lt;A href="https://www.ietf.org/rfc/rfc2474.txt" target="_blank" rel="nofollow noreferrer noopener"&gt;RFC2474&lt;/A&gt;, &lt;A href="https://www.ietf.org/rfc/rfc2597.txt" target="_blank" rel="nofollow noreferrer noopener"&gt;RFC2597&lt;/A&gt;, and &lt;A href="https://www.ietf.org/rfc/rfc3246.txt" target="_blank" rel="nofollow noreferrer noopener"&gt;RFC3246&lt;/A&gt;) are listed here in order from lowest to highest priority: Precedence  Precedence value   DSCP   Class      Drop         DSCP value&lt;BR /&gt;
  Mnemonic   (binary) (decimal) Mnem  Selector  Precedence  (binary) (decimal) &lt;BR /&gt;
 ****************************** **********************************************&lt;BR /&gt;
&lt;BR /&gt;
  Routine    0x'000'     0      be                         0x'000000'   00&lt;BR /&gt;
                                cs0                        0x'000000'   00&lt;BR /&gt;
                                cs1                        0x'001000'   08&lt;BR /&gt;
 Priority    0x'001'     1      af11     1        Low      0x'001010'   10&lt;BR /&gt;
 Priority    0x'001'     1      af12     1       Medium    0x'001100'   12&lt;BR /&gt;
 Priority    0x'001'     1      af13     1        High     0x'001110'   14&lt;BR /&gt;
                                cs2                        0x'010000'   16&lt;BR /&gt;
 Immediate   0x'010'     2      af21     2        Low      0x'010010'   18&lt;BR /&gt;
 Immediate   0x'010'     2      af22     2       Medium    0x'010100'   20&lt;BR /&gt;
 Immediate   0x'010'     2      af23     2        High     0x'010110'   22&lt;BR /&gt;
                                cs3                        0x'011000    24&lt;BR /&gt;
   Flash     0x'011'     3      af31     3        Low      0x'011010'   26&lt;BR /&gt;
   Flash     0x'011'     3      af32     3       Medium    0x'011100'   28&lt;BR /&gt;
   Flash     0x'011'     3      af33     3        High     0x'011110'   30&lt;BR /&gt;
                                cs4                        0x'100000'   32&lt;BR /&gt;
 Override    0x'100'     4      af41     4        Low      0x'100010'   34&lt;BR /&gt;
 Override    0x'100'     4      af42     4       Medium    0x'100100'   36&lt;BR /&gt;
 Override    0x'100'     4      af43     4        High     0x'100110'   38&lt;BR /&gt;
                                cs5                        0x'101000'   40&lt;BR /&gt;
 Critical    0x'101'     5      ef                         0x'101110'   46&lt;BR /&gt;
                                cs6                        0x'110000'   48&lt;BR /&gt;
 Int Ctl     0x'110'     6&lt;BR /&gt;
                                cs7                        0x'111000'   56&lt;BR /&gt;
 Net Ctl     0x'111'     7</description>
    <pubDate>Wed, 06 Nov 2013 21:14:00 GMT</pubDate>
    <dc:creator>FAQ_User</dc:creator>
    <dc:date>2013-11-06T21:14:00Z</dc:date>
    <item>
      <title>Background regarding the 802.1Q TCI Priority bits and IP TOS (DSCP) bits</title>
      <link>https://community.extremenetworks.com/t5/faqs/background-regarding-the-802-1q-tci-priority-bits-and-ip-tos/m-p/50552#M666</link>
      <description>Article ID: 5811 &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Protocols/Features&lt;/B&gt;&lt;BR /&gt;
TOS&lt;BR /&gt;
DSCP&lt;BR /&gt;
QoS&lt;BR /&gt;
CoS &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Standards&lt;/B&gt;&lt;BR /&gt;
802.1Q&lt;BR /&gt;
802.1p &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Related to&lt;/B&gt;&lt;BR /&gt;
TCI&lt;BR /&gt;
Priority &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Goals&lt;/B&gt;&lt;BR /&gt;
Location of 802.1Q TCI / Priority bits&lt;BR /&gt;
Location / decode of IP TOS / DSCP bits &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Symptoms&lt;/B&gt;&lt;BR /&gt;
VLAN tag&lt;BR /&gt;
IP header &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Cause&lt;/B&gt;&lt;BR /&gt;
Any discussion of Quality of Service or Class of Service will typically include examining and/or setting the 802.1Q TCI Priority bits and/or the IP Type of Service / Differentiated Services Code Point bits. &lt;BR /&gt;
&lt;BR /&gt;
This solution outlines where these fields are located in an Ethernet_II frame, and also provides a bit decoder for the IP Precedence and DSCP fields. &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Solution&lt;/B&gt;&lt;BR /&gt;
&lt;B&gt;802.1Q TCI Priority bits&lt;/B&gt; &lt;BR /&gt;
&lt;BR /&gt;
The Tag Control Information Priority bits are located in the &lt;I&gt;optional&lt;/I&gt; 802.1Q VLAN Tag. If present, the Tag is inserted as Layer 2 information immediately following the Destination and Source MAC addresses, and preceding the ethertype. &lt;BR /&gt;
&lt;BR /&gt;
This 32-bit (4-byte) tag has the following layout: bits 001-016  (2 bytes) TPID                          0x8100 ("ethertype")&lt;BR /&gt;
 bits 017-032  (2 bytes) TCI (Tag Control Information)&lt;BR /&gt;
   bits 17-19  (3 bits)  802.1p Priority               0x0 -&amp;gt; 0x7 (0 -&amp;gt; 7)&lt;BR /&gt;
   bits 20-20  (1 bit)   Canonical Format Indicator    0x0 for ethernet traffic&lt;BR /&gt;
   bits 21-32  (12 bits) VLAN ID                       0x000 -&amp;gt; 0xfff (0 -&amp;gt; 4095)&lt;BR /&gt;
Devices which evaluate a packet deeper than the Layer 2 MAC addressing and which do not recognize ethertype 0x8100 (are not "802.1Q aware") will drop the packet. &lt;BR /&gt;
Devices which evaluate a packet deeper than the Layer 2 MAC addressing and which &lt;I&gt;do&lt;/I&gt; recognize ethertype 0x8100 (are "802.1Q aware") will read the Tag information and then parse past it to the true ethertype field. &lt;BR /&gt;
&lt;BR /&gt;
If the ethertype is 0x0800 (IP), then the IP Header will follow. &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;IP TOS bits&lt;/B&gt; &lt;BR /&gt;
&lt;BR /&gt;
The IP TOS field is located in the IP Header. &lt;BR /&gt;
&lt;BR /&gt;
This 160-bit (20-byte) header has the following layout: bits 001-004  (4 bits)  IP Version                     0x4 (IPv4) or 0x6 (IPv6)&lt;BR /&gt;
 bits 005-008  (4 bits)  Header length in 32-bit words  0x5 (160 bits)&lt;BR /&gt;
 bits 009-016  (1 byte)  TOS - Type of Service byte&lt;BR /&gt;
   bits 09-11  (3 bits)  IP Precedence (see decoder)    0x0 -&amp;gt; 0x7 (0 -&amp;gt; 7)&lt;BR /&gt;
   bits 12-15  (4 bits)  TOS field                      0x0 -&amp;gt; 0xf (0 -&amp;gt; 15)&lt;BR /&gt;
    bits 12-12 (1 bit)   Minimize Delay                 0x1 (set) or 0x0 (not set)&lt;BR /&gt;
    bits 13-13 (1 bit)   Maximize Throughput            0x1 (set) or 0x0 (not set)&lt;BR /&gt;
    bits 14-14 (1 bit)   Maximize Reliability           0x1 (set) or 0x0 (not set)&lt;BR /&gt;
    bits 15-15 (1 bit)   Minimize Monetary Cost         0x1 (set) or 0x0 (not set)&lt;BR /&gt;
   bits 16-16  (1 bit)   currently unused               0x0&lt;BR /&gt;
 bits 009-016  (1 byte)  Differentiated Services byte (TOS byte redefinition)&lt;BR /&gt;
   bits 09-14  (6 bits)  DSCP (see decoder)             0x00 -&amp;gt; 0x3f (0 -&amp;gt; 63)&lt;BR /&gt;
   bits 15-15  (1 bit)   Explicit Cong Notif capable    0x1 (set) or 0x0 (not set)&lt;BR /&gt;
   bits 16-16  (1 bit)   Explicit Cong Notif eligible   0x1 (set) or 0x0 (not set)&lt;BR /&gt;
 bits 017-032  (2 bytes) Total IP datagram length       0x0000 -&amp;gt; 0xffff (0 -&amp;gt; 65535)&lt;BR /&gt;
 bits 033-048  (2 bytes) Identification for reassembly  0x0000 -&amp;gt; 0xffff (0 -&amp;gt; 65535)&lt;BR /&gt;
 bits 049-049  (1 bit)   Reserved flag                  0x0&lt;BR /&gt;
 bits 050-050  (1 bit)   Don't Fragment flag            0x1 (set) or 0x0 (not set)&lt;BR /&gt;
 bits 051-051  (1 bit)   More Fragments flag            0x1 (set) or 0x0 (not set)&lt;BR /&gt;
 bits 052-064  (13 bits) Frag offset in 64-bit words    0x0000 -&amp;gt; 0x1fff (0 -&amp;gt; 8191)&lt;BR /&gt;
 bits 065-072  (1 byte)  TTL - Time to Live             0x00 -&amp;gt; 0xff (0 -&amp;gt; 255)&lt;BR /&gt;
 bits 073-080  (1 byte)  Protocol (L4 originator)       0x06 (TCP), 0x11 (UDP), etc&lt;BR /&gt;
 bits 081-096  (2 bytes) Header checksum                0x0000 -&amp;gt; 0xffff&lt;BR /&gt;
 bits 097-128  (4 bytes) Source IP address (IPv4)       0.0.0.0 -&amp;gt; 255.255.255.255&lt;BR /&gt;
 bits 129-160  (4 bytes) Destination IP address (IPv4)  0.0.0.0 -&amp;gt; 255.255.255.255&lt;B&gt;&lt;BR /&gt;
IP Precedence / DSCP decoder&lt;/B&gt; &lt;BR /&gt;
&lt;BR /&gt;
The "well known" IP Precedence / DiffServ Code Point values (as defined by &lt;A href="https://www.ietf.org/rfc/rfc2474.txt" target="_blank" rel="nofollow noreferrer noopener"&gt;RFC2474&lt;/A&gt;, &lt;A href="https://www.ietf.org/rfc/rfc2597.txt" target="_blank" rel="nofollow noreferrer noopener"&gt;RFC2597&lt;/A&gt;, and &lt;A href="https://www.ietf.org/rfc/rfc3246.txt" target="_blank" rel="nofollow noreferrer noopener"&gt;RFC3246&lt;/A&gt;) are listed here in order from lowest to highest priority: Precedence  Precedence value   DSCP   Class      Drop         DSCP value&lt;BR /&gt;
  Mnemonic   (binary) (decimal) Mnem  Selector  Precedence  (binary) (decimal) &lt;BR /&gt;
 ****************************** **********************************************&lt;BR /&gt;
&lt;BR /&gt;
  Routine    0x'000'     0      be                         0x'000000'   00&lt;BR /&gt;
                                cs0                        0x'000000'   00&lt;BR /&gt;
                                cs1                        0x'001000'   08&lt;BR /&gt;
 Priority    0x'001'     1      af11     1        Low      0x'001010'   10&lt;BR /&gt;
 Priority    0x'001'     1      af12     1       Medium    0x'001100'   12&lt;BR /&gt;
 Priority    0x'001'     1      af13     1        High     0x'001110'   14&lt;BR /&gt;
                                cs2                        0x'010000'   16&lt;BR /&gt;
 Immediate   0x'010'     2      af21     2        Low      0x'010010'   18&lt;BR /&gt;
 Immediate   0x'010'     2      af22     2       Medium    0x'010100'   20&lt;BR /&gt;
 Immediate   0x'010'     2      af23     2        High     0x'010110'   22&lt;BR /&gt;
                                cs3                        0x'011000    24&lt;BR /&gt;
   Flash     0x'011'     3      af31     3        Low      0x'011010'   26&lt;BR /&gt;
   Flash     0x'011'     3      af32     3       Medium    0x'011100'   28&lt;BR /&gt;
   Flash     0x'011'     3      af33     3        High     0x'011110'   30&lt;BR /&gt;
                                cs4                        0x'100000'   32&lt;BR /&gt;
 Override    0x'100'     4      af41     4        Low      0x'100010'   34&lt;BR /&gt;
 Override    0x'100'     4      af42     4       Medium    0x'100100'   36&lt;BR /&gt;
 Override    0x'100'     4      af43     4        High     0x'100110'   38&lt;BR /&gt;
                                cs5                        0x'101000'   40&lt;BR /&gt;
 Critical    0x'101'     5      ef                         0x'101110'   46&lt;BR /&gt;
                                cs6                        0x'110000'   48&lt;BR /&gt;
 Int Ctl     0x'110'     6&lt;BR /&gt;
                                cs7                        0x'111000'   56&lt;BR /&gt;
 Net Ctl     0x'111'     7</description>
      <pubDate>Wed, 06 Nov 2013 21:14:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/faqs/background-regarding-the-802-1q-tci-priority-bits-and-ip-tos/m-p/50552#M666</guid>
      <dc:creator>FAQ_User</dc:creator>
      <dc:date>2013-11-06T21:14:00Z</dc:date>
    </item>
  </channel>
</rss>

