輻輳制御 | 4~2 bit | 輻輳回避 (廃棄率) | DSCP | IP 優先度 | |||
7~5 bit | 輻輳制御 | 4~2 bit | 輻輳回避 (廃棄率) | ||||
111 | CS7 [Class Selector 7] | 00 0 | CS7 | 56 | 7 (Network Control) | ||
110 | CS6 [Class Selector 6] | 00 0 | CS6 | 48 | 6 (Internetwork Control) | Routing Protocol | |
101 | EF [Expedited Forwarding] | 11 0 | EF | - | 46 | 5 (Critical) | LLQ |
101 | CS5 [Class Selector 5] | 00 0 | CS5 | 40 | |||
100 | AF4 [Assured Forwarding 4] | 11 0 | AF43 | 高 | 38 | 4 (Flash Override) | CBWFQ |
10 0 | AF42 | 中 | 36 | ||||
01 0 | AF41 | 低 | 34 | ||||
CS4 [Class Selector 4] | 00 0 | CS4 | 32 | ||||
011 | AF3 [Assured Forwarding 3] | 11 0 | AF33 | 高 | 30 | 3 (Flash) | |
10 0 | AF32 | 中 | 28 | ||||
01 0 | AF31 | 低 | 26 | ||||
CS3 [Class Selector 3] | 00 0 | CS3 | 24 | ||||
010 | AF2 [Assured Forwarding 2] | 11 0 | AF23 | 高 | 22 | 2 (Immediate) | |
10 0 | AF22 | 中 | 20 | ||||
01 0 | AF21 | 低 | 18 | ||||
CS2 [Class Selector 2] | 00 0 | CS2 | 16 | ||||
001 | AF1 [Assured Forwarding 1] | 11 0 | AF13 | 高 | 14 | 1 (Priority) | |
10 0 | AF12 | 中 | 12 | ||||
01 0 | AF11 | 低 | 10 | ||||
CS1 [Class Selector 1] | 00 0 | CS1 | 8 | ||||
000 | DF [Default Fowerding] | 00 0 | DF | 0 | 0 (Routine) | ベスト エフォート |
rt(config-pmap-c)# set [ip] dscp dscp
rt(config-pmap-c)# set cos cos
rt(config-pmap-c)# set fr-de
rt(config-pmap-c)# set mpls experimental foo
rt(config-pmap-c)# set [ip] precedence [0-7]
rt(config)# class-map [match-all|match-any] class-name
rt(config-cmap)# description description
rt(config-cmap)# match [not] pattarn
rt(config)# policy-map policy-name
rt(config-pmap)# description description
rt(config-pmap)# class class-name
rt(config-pmap-c)# foo bar
rt(config-if)# service-policy input|output policy-name
rt# show class-map Class Map match-all Traffic1 (id 1) Description: /// traffic type 1 /// Match access-group 100 Class Map match-any class-default (id 0) Match any Class Map match-all Traffic2 (id 2) Description: /// traffic type 2 /// Match access-group 110
rt# show policy-map Policy Map Mark1 Description: /// Mark 1 /// Class Traffic1 set dscp ef Class Traffic2 set dscp af21
rt# sh policy-map interface fa0/1 FastEthernet0/1 Service-policy input: Mark1 Class-map: Traffic1 (match-all) 6002 packets, 1281188 bytes 5 minute offered rate 38000 bps, drop rate 0 bps Match: access-group 100 QoS Set dscp ef Packets marked 6002 Class-map: Traffic2 (match-all) 1369 packets, 147644 bytes 5 minute offered rate 12000 bps, drop rate 0 bps Match: access-group 110 QoS Set dscp af21 Packets marked 1369 Class-map: class-default (match-any) 28167 packets, 4705161 bytes 5 minute offered rate 121000 bps, drop rate 0 bps Match: any QoS Set dscp default Packets marked 28167
IP 優先順位 | ウェイト |
5 | 5461.33 |
4 | 6553.6 |
3 | 8,192 |
2 | 10,922.66 |
1 | 16,384 |
0 | 32,768 |
rt(config)# interface type mod/num rt(config-if)# fair-queue [cdt [max-queue [res-queue]]]
rt(config-if)# hold-queue max-limit out
rt# show queue s0/0 Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 9315839 Queueing strategy: weighted fair WFQ Output queue: 226/1000/64/9315837 (size/max total/threshold/drops) /MaxLimit/CDT/ Conversations 25/32/128 (active/max active/max total) /ActiveQueue/MaxQueue Reserved Conversations 0/0 (allocated/max allocated) 予約済みキュー Available Bandwidth 288 kilobits/sec (depth/weight/total drops/no-buffer drops/interleaves) 9/32384/458/0/0 キュー内のパケット数/ウェイト/CDT超え廃棄数/MaxLimit超え廃棄数/ Conversation 95, linktype: ip, length: 44 source: 10.1.2.10, destination: 10.3.2.10, id: 0xF001, ttl: 127, TOS: 0 prot: 6, source port 1150, destination port 1059
rt(config-pmap-c)# bandwidth bandwidth
rt(config-pmap-c)# bandwidth percent percent
rt(config-pmap-c)# bandwidth remaining percent
rt(config)# interface type mod/num rt(config-if)# max-reserved-bandwidth percent
rt(config-pmap-c)# queue-limit max-limit
rt(config-pmap)# class class-default rt(config-pmap-c)# bandwidth bandwidth
rt(config-pmap)# class class-default rt(config-pmap-c)# fair-queue [cdt [max-queue [res-queue]]]
rt(config-pmap-c)# priority bandwidth [burst]
rt(config-pmap-c)# priority percent percent [burst]
rt# show queue s0/0
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 10412630
Queueing strategy: Class-based queueing CBWFQ or LLQ
Output queue: 52/1000/64/10412628 (size/max total/threshold/drops)
Conversations 1/5/128 (active/max active/max total)
Reserved Conversations 3/3 (allocated/max allocated)
Available Bandwidth 216 kilobits/sec
(depth/weight/total drops/no-buffer drops/interleaves) 52/121/212678/0/0
Conversation 139, linktype: ip, length: 44
source: 10.1.2.10, destination: 10.3.2.10, id: 0xB2B6, ttl: 254,
TOS: 0 prot: 6, source port 8888, destination port 1201
rt# show policy-map interface s0/0 Serial0/0 Service-policy output: llq-policy Class-map: ef-traffic (match-any) 117087 packets, 23803568 bytes 5 minute offered rate 105000 bps, drop rate 0 bps Match: dscp ef (46) 116117 packets, 23687868 bytes 5 minute rate 105000 bps Match: protocol icmp 970 packets, 115700 bytes 5 minute rate 0 bps Queueing Strict Priority PQ Output Queue: Conversation 136 Bandwidth 168 (kbps) Burst 4200 (Bytes) (pkts matched/bytes matched) 59808/12146300 (total drops/bytes drops) 38/7652 Class-map: af31-traffic (match-all) 14039 packets, 1332163 bytes 5 minute offered rate 6000 bps, drop rate 0 bps Match: dscp af31 (26) Queueing Output Queue: Conversation 137 Bandwidth remaining 40 (%)Max Threshold 64 (packets) CBWFQ (pkts matched/bytes matched) 10859/1135100 (depth/total drops/no-buffer drops) 0/0/0 Class-map: af21-traffic (match-all) 15676 packets, 2513880 bytes 5 minute offered rate 15000 bps, drop rate 0 bps Match: dscp af21 (18) Queueing Output Queue: Conversation 138 Bandwidth remaining 20 (%)Max Threshold 64 (packets) CBWFQ (pkts matched/bytes matched) 15349/2494468 (depth/total drops/no-buffer drops) 0/0/0 Class-map: class-default (match-any) 883140 packets, 89972886 bytes 5 minute offered rate 462000 bps, drop rate 304000 bps Match: any Queueing Output Queue: Conversation 139 Bandwidth remaining 25 (%)Max Threshold 64 (packets) CBWFQ (pkts matched/bytes matched) 625162/77826568 (depth/total drops/no-buffer drops) 61/361722/0
rt(config-pmap-c)# random-detect
rt(config-pmap-c)# random-detect precedence precedence min-threshold max-threshold mark-prob-denominator
rt(config-pmap-c)# random-detect dscp-based
rt(config-pmap-c)# random-detect dscp-based dscp dscp min-threshold max-threshold mark-prob-denominator
rt(config-pmap-c)# police cir [bc [be]] [conform-action act] [exceed-action act] [violate-action act]
rt# show policy interface type mod/num
rt(config)# interface type mod/num rt(config-if)# rate-limit input|output cir [bc [be]] [conform-action act] [exceed-action act]
rt(config-if)# rate-limit input|output access-group acl-num cir [bc [be]] [conform-action act] [exceed-action act]
rt(config)#
rt(config-pmap-c)# shape average|peak cir [bc] [be]
rt(config-pmap-c)# shape average|peak percent [bc] [be]
rt(config)# interface type mod/num rt(config-if)# traffic-shape rate cir [bc [be]]
rt(config)# interface type mod/num rt(config-if)# traffic-shape group acl-num cir [bc [be]]
rt# show traffic-shape Interface Fa0/1 Access Target Byte Sustain Excess Interval Increment Adapt VC List Rate Limit bits/int bits/int (ms) (bytes) Active - 3000000 3000 12000 12000 4 1500 -
rt(config-if)# auto discovery qos [trust]
rt(config-if)# auto qos [voip [trust] [fr-atm]]
rt# show auto qos rt# show auto qos interface type mod/num
rt# show auto discovery qos Serial0/0/0 AutoQoS Discovery enabled for applications Discovery up time: 34 minutes, 27 seconds AutoQoS Class information: Class Voice: No data found. Class Interactive Video: No data found. Class Signaling: Recommended Minimum Bandwidth: 0 Kbps/0% (AverageRate) Detected applications and data: Application/ AverageRate PeakRate Total Protocol (kbps/%) (kbps/%) (bytes) ----------- ----------- -------- ------------ h323 0/0 7/1 58579 Class Streaming Video: No data found. Class Transactional: Recommended Minimum Bandwidth: 1 Kbps/<1% (AverageRate) Detected applications and data: Application/ AverageRate PeakRate Total Protocol (kbps/%) (kbps/%) (bytes) ----------- ----------- -------- ------------ sqlnet 1/<1 47/12 373582 citrix 0/0 18/4 144530 Class Bulk: Recommended Minimum Bandwidth: 0 Kbps/0% (AverageRate) Detected applications and data: Application/ AverageRate PeakRate Total Protocol (kbps/%) (kbps/%) (bytes) ----------- ----------- -------- ------------ exchange 0/0 16/4 133944 ftp 0/0 14/3 123681 Class Scavenger: Recommended Minimum Bandwidth: 0 Kbps (AverageRate)/0% (fixed) Detected applications and data: Application/ AverageRate PeakRate Total Protocol (kbps/%) (kbps/%) (bytes) ----------- ----------- -------- ------------ kazaa2 0/0 34/8 244080
class-map match-any AutoQoS-Transactional-Se0/0/0 match protocol sqlnet match protocol citrix class-map match-any AutoQoS-Scavenger-Se0/0/0 match protocol kazaa2 class-map match-any AutoQoS-Bulk-Se0/0/0 match protocol exchange match protocol ftp ! ! policy-map AutoQoS-Policy-Se0/0/0 class AutoQoS-Transactional-Se0/0/0 bandwidth remaining percent 1 random-detect dscp-based set dscp af21 class AutoQoS-Bulk-Se0/0/0 bandwidth remaining percent 1 random-detect dscp-based set dscp af11 class AutoQoS-Scavenger-Se0/0/0 bandwidth remaining percent 1 set dscp cs1 class class-default fair-queue ! interface Serial0/0 auto qos service-policy output AutoQoS-Policy-Se0/0/0
=============== ------------------------------- [カプセル化]→ ------------------------------- Tunnnel =============== 物理I/F
rt(config)# interface tunnel num rt(config-if)# qos pre-classify
rt(config)# interface multilink grp-num rt(config-if)# ip address ip-addr netmask rt(config-if)# bandwidth bandwidth rt(config-if)# ppp multilink fragment delay msec [usec] rt(config-if)# ppp multhlink interleave rt(config-if)# service-policy input|output policy-name
rt(config)# interface type mon/num rt(config-if)# ppp multilink group grp-num