Creating Rate-Limit Profiles
Create rate-limit profiles with a rate based on percentage and a burst in milliseconds. The system creates a policy using these rate-limit profiles and then attaches them to different interfaces using different parameter values.
- Create policy parameter refRlpRate.
host1(config)#policy-parameter refRlpRate reference-ratehost1(config-policy-param-reference-rate)#reference-rate 100000host1(config-policy-param-reference-rate)#exit- Create rate-limit profile rlpData.
host1(config)#ip rate-limit-profile rlpDatahost1(config-rate-limit-profile)#committed-rate refRlpRate percentage 10host1(config-rate-limit-profile)#committed-burst millisecond 100host1(config-rate-limit-profile)#peak-rate refRlpRate percentage 100host1(config-rate-limit-profile)#peak-burst millisecond 150host1(config-rate-limit-profile)#exit- Create rate-limit profile rlpVoice.
host1(config)#ip rate-limit-profile rlpVoicehost1(config-rate-limit-profile)#committed-rate 64000host1(config-rate-limit-profile)#committed-burst 100000host1(config-rate-limit-profile)#peak-rate refRlpRate percentage 100host1(config-rate-limit-profile)#peak-burst millisecond 150host1(config-rate-limit-profile)#exit- Create rate-limit profile rlpVideo.
host1(config)#ip rate-limit-profile rlpVideohost1(config-rate-limit-profile)#committed-rate refRlpRate percentage 70host1(config-rate-limit-profile)#committed-burst millisecond 100host1(config-rate-limit-profile)#peak-rate refRlpRate percentage 100host1(config-rate-limit-profile)#peak-burst millisecond 150host1(config-rate-limit-profile)#exit- Create the policy.
host1(config)#ip policy-list Phost1(config-policy)#classifier-group datahost1(config-policy-classifier-group)#rate-limit-profile rlpDatahost1(config-policy-classifier-group)#exithost1(config-policy)#classifier-group voicehost1(config-policy-classifier-group)#rate-limit-profile rlpVoicehost1(config-policy-classifier-group)#exithost1(config-policy)#classifier-group videohost1(config-policy-classifier-group)#rate-limit-profile rlpVideohost1(config-policy-classifier-group)#exithost1(config-policy)#exit- Attach IP Policy P at interface atm5/0.1.
host1(config)#interface atm 5/0.1host1(config-if)#ip policy-parameter reference-rate refRlpRate 1000000host1(config-if)#ip policy input P- Attach IP Policy P at interface atm5/0.2 with merge.
host1(config)#interface atm 5/0.2host1(config-if)#ip policy input P stats enabled merge- Display the policy list.
host1#show policy-listPolicy Table------ -----IP Policy PAdministrative state: enableReference count: 1Classifier control list: data, precedence 100rate-limit-profile rlpDataClassifier control list: voice, precedence 100rate-limit-profile rlpVoiceClassifier control list: video, precedence 100rate-limit-profile rlpVideoReferenced by interfaces:ATM5/0.1 input policy, statistics disabled, virtual-router defaultATM5/0.2 input policy, statistics enabled, virtual-router defaultReferenced by profiles:NoneReferenced by merge policies:None- Display the rate-limit profiles.
host1#show rate-limit-profileRate Limit Profile Table---- ----- ------- -----IP Rate-Limit-Profile: rlpDataProfile Type: two-rateReference count: 1Committed rate: refRlpRate % 10Committed burst: 100 millisecondsPeak rate: refRlpRate % 100Peak burst: 150 millisecondsMask: 255Committed rate action: transmitConformed rate action: transmitExceeded rate action: dropIP Rate-Limit-Profile: rlpVoiceProfile Type: two-rateReference count: 1Committed rate: 64000Committed burst: 100000Peak rate: refRlpRate % 100Peak burst: 150 millisecondsMask: 255Committed rate action: transmitConformed rate action: transmitExceeded rate action: dropIP Rate-Limit-Profile: rlpVideoProfile Type: two-rateReference count: 1Committed rate: refRlpRate % 70Committed burst: 100 millisecondsPeak rate: refRlpRate % 100Peak burst: 150 millisecondsMask: 255Committed rate action: transmitConformed rate action: transmitExceeded rate action: drop- Display policy parameters. If a rate-limit profile uses this parameter twice then it increases the reference count by 2.
host1#show policy-parameter briefReference-rate refRlpRate: 100000, 6 referencesDisplay policy parametershost1#show policy-parameterPolicy Parameter refRlpRateType: reference-rateRate: 100000Reference count: 6Referenced by interfaces: 1 referencesIP interface ATM5/0.1: 1000000Referenced by rate-limit profiles: 5 referencesrlpDatarlpVoicerlpVideo- Display interface atm5/0.1.
host1#show ip interface atm 5/0.1ATM5/0.1 line protocol Atm1483 is down, ip is down (ready)Network Protocols: IPInternet address is 1.1.1.1/255.255.255.255Broadcast address is 255.255.255.255Operational MTU = 0 Administrative MTU = 0Operational speed = 100000000 Administrative speed = 0Discontinuity Time = 0Router advertisement = disabledProxy Arp = disabledNetwork Address Translation is disabledTCP MSS Adjustment = disabledAdministrative debounce-time = disabledOperational debounce-time = disabledAccess routing = disabledMultipath mode = hashedAuto Configure = disabledAuto Detect = disabledInactivity Timer = disabledIn Received Packets 0, Bytes 0Unicast Packets 0, Bytes 0Multicast Packets 0, Bytes 0In Policed Packets 0, Bytes 0In Error Packets 0In Invalid Source Address Packets 0In Discarded Packets 0Out Forwarded Packets 0, Bytes 0Unicast Packets 0, Bytes 0Multicast Routed Packets 0, Bytes 0Out Scheduler Dropped Packets 0, Bytes 0Out Policed Packets 0, Bytes 0Out Discarded Packets 0IP policy input PStatistics are disabled- Display interface atm5/0.2.
host1#show ip interface atm 5/0.2ATM5/0.2 line protocol Atm1483 is down, ip is down (ready)Network Protocols: IPInternet address is 2.2.2.2/255.255.255.255Broadcast address is 255.255.255.255Operational MTU = 0 Administrative MTU = 0Operational speed = 100000000 Administrative speed = 0Discontinuity Time = 0Router advertisement = disabledProxy Arp = disabledNetwork Address Translation is disabledTCP MSS Adjustment = disabledAdministrative debounce-time = disabledOperational debounce-time = disabledAccess routing = disabledMultipath mode = hashedAuto Configure = disabledAuto Detect = disabledInactivity Timer = disabledIn Received Packets 0, Bytes 0Unicast Packets 0, Bytes 0Multicast Packets 0, Bytes 0In Policed Packets 0, Bytes 0In Error Packets 0In Invalid Source Address Packets 0In Discarded Packets 0Out Forwarded Packets 0, Bytes 0Unicast Packets 0, Bytes 0Multicast Routed Packets 0, Bytes 0Out Scheduler Dropped Packets 0, Bytes 0Out Policed Packets 0, Bytes 0Out Discarded Packets 0IP policy input Pclassifier-group data entry 10 packets, 0 bytesrate-limit-profile rlpDatacommitted rate: 10000 bps, committed burst: 125 bytespeak Rate: 100000 bps, peak burst: 1875 bytescommitted: 0 packets, 0 bytes, action: transmitconformed: 0 packets, 0 bytes, action: transmitexceeded: 0 packets, 0 bytes, action: dropclassifier-group voice entry 10 packets, 0 bytesrate-limit-profile rlpVoicecommitted rate: 64000 bps, committed burst: 100000 bytespeak Rate: 100000 bps, peak burst: 1875 bytescommitted: 0 packets, 0 bytes, action: transmitconformed: 0 packets, 0 bytes, action: transmitexceeded: 0 packets, 0 bytes, action: dropclassifier-group video entry 10 packets, 0 bytesrate-limit-profile rlpVideocommitted rate: 70000 bps, committed burst: 875 bytespeak Rate: 100000 bps, peak burst: 1875 bytescommitted: 0 packets, 0 bytes, action: transmitconformed: 0 packets, 0 bytes, action: transmitexceeded: 0 packets, 0 bytes, action: dropTo configure a policy-parameter at an interface with the increase keyword:
- Create policy list P2.
host1(config)#ip policy-list P2host1(config-policy)#classifier-group data2host1(config-policy-classifier-group)#rate-limit-profile rlpDatahost1(config-policy-classifier-group)#exithost1(config-policy)#exit- Attach IP Policy P2 at interface atm5/0.2 with the merge keyword.
host1(config)#interface atm 5/0.2host1(config-If)#ip policy-parameter reference-rate refRlpRate 100000host1(config)#ip policy-parameter reference-rate refRlpRate increase 100000This increases from the existing 100000.
host1(config)#ip policy input P2 merge
- Verify the configuration.
host1#show policy-parameterPolicy Parameter refRlpRateType: reference-rateRate: 100000Reference count: 7Referenced by interfaces: 2 referencesIP interface ATM5/0.1: 1000000IP interface ATM5/0.2: 200000Referenced by rate-limit profiles: 5 referencesrlpDatarlpVoicerlpVideo