Riverstone Networks WICT1-12 Network Router User Manual


 
26-18 Riverstone Networks RS Switch Router User Guide Release 8.0
Limiting Traffic Rate QoS Configuration
26.10.6 Example Configurations
This section includes examples of rate limiting policy configurations.
Per-Flow Rate Limiting
The following is an example of configuring per-flow rate limiting on the RS.
Figure 26-5 Per-flow rate limiting
Traffic from two interfaces, ipclient1 with IP address 1.2.2.2 and ipclient2 with IP address 3.1.1.1, is restricted to 10
Mbps for each flow with the following configuration:
Flow-Aggregate Rate Limiting
In the following example, traffic from the subnetwork 122.132.0.0/16 to the Internet will be rate limited to 256 Kbps
while traffic to the subnetwork will be rate limited to 64 Kbps.
vlan create client1 ip
vlan create backbone ip
vlan create client2 ip
vlan add ports et.1.1 to client1
vlan add ports et.1.2 to client2
vlan add ports et.1.8 to backbone
interface create ip ipclient1 vlan client1 address-netmask 1.1.1.1/8
interface create ip ipclient2 vlan client2 address-netmask 3.3.3.3/8
interface create ip backbone vlan backbone address-netmask 2.2.2.2/8
acl 100 permit ip 1.2.2.2
acl 200 permit ip 3.1.1.1
rate-limit client1 input acl 100 rate 10000000 exceed-action drop-packets
rate-limit client2 input acl 200 rate 10000000 exceed-action drop-packets
rate-limit client1 apply interface ipclient1
rate-limit client2 apply interface ipclient2
acl cust1 permit ip any 122.132.0.0/16
acl cust1 permit ip 122.132.0.0/16 any
rate-limit cust1 flow-aggregate acl cust1 rate 256000 exceed-action drop-packets
min-bandwidth 4000
rate-limit apply cust1 interface tonet
rate-limit cust1 flow-aggregate acl cust1 rate 64000 exceed-action drop-packets
min-bandwidth 2000
rate-limit apply cust1 interface in1
ipclient1
ipclient2
Backbone
et.1.1
et.1.2
3.3.3.3/8
1.1.1.1/8
et.1.8
2.2.2.2/8
Router