Chapter 19: QoS Configuration Guide
290
SmartSwitch Router User Reference Manual
The
<tos>
and
<tos-mask>
parameters use values ranging from 0 to 255. They are used in
conjunction with each other to define which bit in the
<tos>
field of the packet is
significant. The
<tos-precedence-rewrite>
value ranges from 0 to 7 and is the value that is
rewritten in the ToS Precedence field (the first three bits of the ToS octet). The
<tos-rewrite>
value ranges from 0 to 31 and is the value that is rewritten in the ToS field (the last five bits
of the ToS octet, which includes both the ToS field and the MBZ bit).
The ToS byte rewrite is part of the QoS priority classifier group. The entire ToS byte can be
rewritten or only the precedence part of the ToS byte can be rewritten. If you specify a
value for
<tos-precedence-rewrite>
, then only the upper three bits of the ToS byte are
changed. If you set
<tos-precedence-rewrite>
to
any
and specify a value for
<tos-rewrite>
,
then the upper three bits remain unchanged and the lower five bits are rewritten. If you
specify values for both
<tos-precedence-rewrite>
and
<tos-rewrite>
, then the upper three bits
are rewritten to the
<tos-precedence-rewrite>
value and the lower five bits are rewritten to
the
<tos-rewrite>
value.
For example, the following command will rewrite the ToS Precedence field to 7 if the ToS
Precedence field of the incoming packet is 6:
In the above example, the
<tos>
value of 222 (binary value 1101 1110) and the
<tos-mask>
value of 224 (binary value 1110 0000) are ANDed together to specify the ToS Precedence
field value of 6 (binary value 110). Changing the value in the
<tos-mask>
parameter
determines the bit in the ToS octet field that will be examined.
The following example will rewrite the ToS Precedence and the ToS fields to 5 and 30 if the
incoming packet is from the 10.10.10.0/24 network with the ToS Precedence field set to 2
MBZ
ToS
Precedence
7
6
5
4
3
2
1
0
<
tos-precedence-rewrite
>
<
tos-rewrite
>
0-7
0-31
ssr(config)#
qos set ip tosp6to7 low any any any any 222 any any 224 7
Содержание SmartSwitch Router
Страница 1: ...SmartSwitch Router User Reference Manual 9032578 04...
Страница 12: ...Notice 12 SmartSwitch Router User Reference Manual...
Страница 28: ...Preface 28 SmartSwitch Router User Reference Manual...
Страница 68: ...Chapter 3 Bridging Configuration Guide 68 SmartSwitch Router User Reference Manual...
Страница 74: ...Chapter 4 SmartTRUNK Configuration Guide 74 SmartSwitch Router User Reference Manual...
Страница 84: ...Chapter 5 DHCP Configuration Guide 84 SmartSwitch Router User Reference Manual...
Страница 108: ...Chapter 7 VRRP Configuration Guide 108 SmartSwitch Router User Reference Manual...
Страница 207: ...SmartSwitch Router User Reference Manual 207 Chapter 12 Multicast Routing Configuration Guide...
Страница 208: ...Chapter 12 Multicast Routing Configuration Guide 208 SmartSwitch Router User Reference Manual...
Страница 222: ...Chapter 13 IP Policy Based Forwarding Configuration Guide 222 SmartSwitch Router User Reference Manual...
Страница 232: ...Chapter 14 Network Address Translation Configuration Guide 232 SmartSwitch Router User Reference Manual...
Страница 254: ...Chapter 16 IPX Routing Configuration Guide 254 SmartSwitch Router User Reference Manual...
Страница 270: ...Chapter 17 Access Control List Configuration Guide 270 SmartSwitch Router User Reference Manual...
Страница 282: ...Chapter 18 Security Configuration Guide 282 SmartSwitch Router User Reference Manual...
Страница 294: ...Chapter 19 QoS Configuration Guide 294 SmartSwitch Router User Reference Manual...
Страница 298: ...Chapter 20 Performance Monitoring Guide 298 SmartSwitch Router User Reference Manual...
Страница 338: ...Chapter 22 WAN Configuration Guide 338 SmartSwitch Router User Reference Manual...