Поиск по этому блогу

07.02.2011

Иерархические политики на WAN-интерфейсах

Проявившуюся совсем давно проблему с вычислением полосы для классов обнаружил и на WAN-интерфейсах.


Вот, собственно, без комментариев:
router(config)#interface Serial2/3
router(config-if)#bandwidth 5000
router(config-if)#^Z
router#sh policy-map int Serial2/3
Serial2/3

Service-policy output: WAN

Class-map: Remote1 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: access-group name Remote1
Queueing
queue limit 64 packets
(queue depth/total drops/no-buffer drops) 0/0/0
(pkts output/bytes output) 0/0
shape (average) cir 4750000, bc 19000, be 19000
target shape rate 4750000

Service-policy : Remote1-WAN

Class-map: BULK (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: ip dscp af11 (10)
Queueing
queue limit 64 packets
(queue depth/total drops/no-buffer drops) 0/0/0
(pkts output/bytes output) 0/0
bandwidth 90% (2250 kbps)

Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any

queue limit 64 packets
(queue depth/total drops/no-buffer drops) 0/0/0
(pkts output/bytes output) 0/0

Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any

queue limit 64 packets
(queue depth/total drops/no-buffer drops) 0/0/0
(pkts output/bytes output) 0/0
router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#interface Serial2/3
router(config-if)#bandwidth 10000
router(config-if)#^Z
router#sh policy-map int Serial2/3
Serial2/3

Service-policy output: WAN

Class-map: Remote1 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: access-group name Remote1
Queueing
queue limit 64 packets
(queue depth/total drops/no-buffer drops) 0/0/0
(pkts output/bytes output) 0/0
shape (average) cir 4750000, bc 19000, be 19000
target shape rate 4750000

Service-policy : Remote1-WAN

Class-map: BULK (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: ip dscp af11 (10)
Queueing
queue limit 64 packets
(queue depth/total drops/no-buffer drops) 0/0/0
(pkts output/bytes output) 0/0
bandwidth 90% (4275 kbps)

Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any

queue limit 64 packets
(queue depth/total drops/no-buffer drops) 0/0/0
(pkts output/bytes output) 0/0

Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any

queue limit 64 packets
(queue depth/total drops/no-buffer drops) 0/0/0
(pkts output/bytes output) 0/0
router#sh run int Serial2/3
Building configuration...

Current configuration : 140 bytes
!
interface Serial2/3
bandwidth 10000
no ip address
serial restart-delay 0
max-reserved-bandwidth 95
service-policy output WAN
end

router#sh policy-map WAN
Policy Map WAN
Class Remote1
Average Rate Traffic Shaping
cir 4750000 (bps)
service-policy Remote1-WAN

router#sh policy-map Remote1-WAN
Policy Map Remote1-WAN
Class BULK
bandwidth 90 (%)