Ik maak gebruik van Class of service op een cisco 828 router. Ik definier de ip precedence per class-map. Daarna maak ik een policy map en map deze aan de ATM interface:
class-map match-any class-gold
match ip precedence 3
match ip precedence 4
class-map match-any class-bronze
match ip precedence 1
class-map match-all class-priority
match ip precedence 5
class-map match-any class-silver
match ip precedence 2
policy-map policy-cpe-1-rtmed
class class-priority
priority percent 26
class class-gold
bandwidth percent 17
class class-silver
bandwidth percent 8
class class-bronze
bandwidth percent 5
class class-default
fair-queue
interface ATM0
bandwidth 2046
no ip address
no atm ilmi-keepalive
dsl equipment-type CPE
dsl operating-mode GSHDSL symmetric annex B
dsl linerate AUTO
pvc 2/32
cbr 2046
tx-ring-limit 4
encapsulation aal5mux ppp dialer
dialer pool-member 1
service-policy output policy-cpe-1-rtmed
De policies/classes zijn goed aangemaakt. maar wanneer ik show policy-map interface ATM0 output doe zie ik dit:
Service-policy output: policy-cpe-1-rtmed
Class-map: class-priority (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: ip precedence 5
Queueing
Strict Priority
Output Queue: Conversation 136
Bandwidth 26 (%)
Bandwidth 531 (kbps) Burst 13275 (Bytes)
(pkts matched/bytes matched) 0/0
(total drops/bytes drops) 0/0
Class-map: class-gold (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: ip precedence 3
0 packets, 0 bytes
5 minute rate 0 bps
Match: ip precedence 4
0 packets, 0 bytes
5 minute rate 0 bps
Queueing
Output Queue: Conversation 137
Bandwidth 17 (%)
Bandwidth 347 (kbps) Max Threshold 64 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0
Class-map: class-silver (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: ip precedence 2
0 packets, 0 bytes
5 minute rate 0 bps
Queueing
Output Queue: Conversation 138
Bandwidth 8 (%)
Bandwidth 163 (kbps) Max Threshold 64 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0
Class-map: class-bronze (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: ip precedence 1
0 packets, 0 bytes
5 minute rate 0 bps
Queueing
Output Queue: Conversation 139
Bandwidth 5 (%)
Bandwidth 102 (kbps) Max Threshold 64 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0
Class-map: class-default (match-any)
81976 packets, 34424043 bytes
5 minute offered rate 36000 bps, drop rate 0 bps
Match: any
Queueing
Flow Based Fair Queueing
Maximum Number of Hashed Queues 128
(total queued/total drops/no-buffer drops) 0/0/0
Hieruit blijkt dus dat alle pakketten als "default" gemarkeerd worden, en niet onderverdeeld worden in classen.
Wat zie ik over het hoofd?
class-map match-any class-gold
match ip precedence 3
match ip precedence 4
class-map match-any class-bronze
match ip precedence 1
class-map match-all class-priority
match ip precedence 5
class-map match-any class-silver
match ip precedence 2
policy-map policy-cpe-1-rtmed
class class-priority
priority percent 26
class class-gold
bandwidth percent 17
class class-silver
bandwidth percent 8
class class-bronze
bandwidth percent 5
class class-default
fair-queue
interface ATM0
bandwidth 2046
no ip address
no atm ilmi-keepalive
dsl equipment-type CPE
dsl operating-mode GSHDSL symmetric annex B
dsl linerate AUTO
pvc 2/32
cbr 2046
tx-ring-limit 4
encapsulation aal5mux ppp dialer
dialer pool-member 1
service-policy output policy-cpe-1-rtmed
De policies/classes zijn goed aangemaakt. maar wanneer ik show policy-map interface ATM0 output doe zie ik dit:
Service-policy output: policy-cpe-1-rtmed
Class-map: class-priority (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: ip precedence 5
Queueing
Strict Priority
Output Queue: Conversation 136
Bandwidth 26 (%)
Bandwidth 531 (kbps) Burst 13275 (Bytes)
(pkts matched/bytes matched) 0/0
(total drops/bytes drops) 0/0
Class-map: class-gold (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: ip precedence 3
0 packets, 0 bytes
5 minute rate 0 bps
Match: ip precedence 4
0 packets, 0 bytes
5 minute rate 0 bps
Queueing
Output Queue: Conversation 137
Bandwidth 17 (%)
Bandwidth 347 (kbps) Max Threshold 64 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0
Class-map: class-silver (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: ip precedence 2
0 packets, 0 bytes
5 minute rate 0 bps
Queueing
Output Queue: Conversation 138
Bandwidth 8 (%)
Bandwidth 163 (kbps) Max Threshold 64 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0
Class-map: class-bronze (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: ip precedence 1
0 packets, 0 bytes
5 minute rate 0 bps
Queueing
Output Queue: Conversation 139
Bandwidth 5 (%)
Bandwidth 102 (kbps) Max Threshold 64 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0
Class-map: class-default (match-any)
81976 packets, 34424043 bytes
5 minute offered rate 36000 bps, drop rate 0 bps
Match: any
Queueing
Flow Based Fair Queueing
Maximum Number of Hashed Queues 128
(total queued/total drops/no-buffer drops) 0/0/0
Hieruit blijkt dus dat alle pakketten als "default" gemarkeerd worden, en niet onderverdeeld worden in classen.
Wat zie ik over het hoofd?