Most of you already know the 2 usual methods of doing QoS classification and marking:
Use MQC:
class-map match-all HOST-CLASS
match access-group name HOST-ACL
!
class-map match-any P2P-CLASS
match protocol fasttrack
!
policy-map TEST-POLICY
class HOST-CLASS
set ip precedence 3
class P2P-CLASS
police 64000 conform-action set-prec-transmit 0 exceed-action drop
!
ip access-list extended HOST-ACL
permit tcp host 10.0.0.1 any eq telnet
!
interface serial 2/1
service-policy input TEST-POLICY
Use legacy QoS, aka CAR:
interface serial 2/1
rate-limit input access-group 100 64000 8000 8000 conform-action set-prec-transmit 3 exceed-action set-prec-transmit 0
!
access-list 100 permit tcp host 10.0.0.1 any eq telnet
If you have already used QoS policy propagation via BGP (QPPB) you might get the idea more easily about the next method :
Use PBR:
route-map QOS-MAP permit 10
match ip address HOST-ACL
set ip precedence 3
!
route-map QOS-MAP permit 20
match ip next-hop 99
set ip precedence 0
!
interface serial 2/1
ip policy route-map QOS-MAP
!
access-list 99 permit 192.168.0.1
ip access-list extended HOST-ACL
permit tcp host 10.0.0.1 any eq telnet
No sign of MQC, no sign of CAR, just simple PBR. So now you know what you can do, if you're told to configure QoS classification/marking without using neither MQC nor CAR. Just keep in mind that PBR happens only in the ingress direction.
No comments:
Post a Comment