SonicWALL TZ 180 Humidifier User Manual


 
Firewall > QoS Mapping
473
SonicOS Enhanced 4.0 Administrator Guide
QoS Mapping is a feature which converts layer 2 802.1p tags to layer 3 DSCP tags so that
they can safely traverse (in mapped form) 802.1p-incapable links; when the packet arrives
for delivery to the next 802.1p-capable segment, QoS Mapping converts from DSCP back
to 802.1p tags so that layer 2 QoS can be honored.
In our above scenario, the firewall at the Main Site assigns a DSCP tag (e.g. value 48) to
the VoIP packets, as well as to the encapsulating ESP packets, allowing layer 3 QoS to be
applied across the WAN. This assignment can occur either by preserving the existing DSCP
tag, or by mapping the value from an 802.1p tag, if present. When the VoIP packets arrive
at the other side of the link, the mapping process is reversed by the receiving SonicWALL,
mapping the DSCP tag back to an 802.1p tag.
3. The receiving SonicWALL at the Remote Site is configured to map the DSCP tag range 48-
55 to 802.1p tag 6. When the packet exits the SonicWALL, it will bear 802.1p tag 6. The
Switch will recognize it as voice traffic, and will prioritize it over the file-transfer,
guaranteeing QoS even in the event of link saturation.
DSCP Marking
DSCP (Differentiated Services Code Point) marking uses 6 bits of the 8 bit ToS field in the IP
Header to provide up to 64 classes (or code points) for traffic. Since DSCP is a layer 3 marking
method, there is no concern about compatibility as there is with 802.1p marking. Devices that
do not support DSCP will simply ignore the tags, or at worst, they will reset the tag value to 0.
The above diagram depicts an IP packet, with a close-up on the ToS portion of the header. The
ToS bits were originally used for Precedence and ToS (delay, throughput, reliability, and cost)
settings, but were later repurposed by RFC2474 for the more versatile DSCP settings.
The following table shows the commonly used code points, as well as their mapping to the
legacy Precedence and ToS settings.
DSCP DSCP Description Legacy IP Precedence Legacy IP ToS (D, T, R)
0 Best effort 0 (Routine – 000) -
8 Class 1 1 (Priority – 001) -
10 Class 1, gold (AF11) 1 (Priority – 001) T
12 Class 1, silver (AF12) 1 (Priority – 001) D
14 Class 1, bronze (AF13) 1 (Priority – 001) D, T
16 Class 2 2 (Immediate – 010) -
18 Class 2, gold (AF21) 2 (Immediate – 010) T
20 Class 2, silver (AF22) 2 (Immediate – 010) D
22 Class 2, bronze (AF23) 2 (Immediate – 010) D, T
24 Class 3 3 (Flash – 011) -