Riverstone Networks WICT1-12 Network Router User Manual


 
Riverstone Networks RS Switch Router User Guide Release 8.0 31-13
Service Configuration Rate Limiting Configuration Examples
The configuration shown in Figure 31-2 is created with the following commands:
31.7 RATE LIMITING CONFIGURATION EXAMPLES
Per-Flow Rate Limiting
The following is an example of configuring per-flow rate limiting.
Figure 31-4 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:
! Create the burst-safe service for customerflow1
rs(config)# service customergroup1 create rate-limit burst-safe car-rate 1000000
car-lower-priority burst-rate 100000 burst-drop-packets
! Set the traffic priority
rs(config)# qos set ip customerflow1 high 181.171.161.15/24 100.99.98.97
! Apply the burst-safe service
rs(config)# service customergroup1 apply rate-limit mf-classifier interface
customergroup1 source-addr-mask 181.171.161.15/24
! Create the burst-safe service for customerflow2
rs(config)# service customergroup2 create rate-limit burst-safe car-rate 9000000
car-lower-priority burst-rate 1000000 burst-drop-packets
! Set the traffic priority
rs(config)# qos set ip customerflow2 medium 171.161.151.14/24 101.99.98.97
rs(config)# qos set ip customerflow2 medium 161.151.141.13/24 101.99.98.97
! Apply the burst-safe service
rs(config)# service customergroup2 apply rate-limit mf-classifier interface
customergroup2 source-addr-mask 171.161.151.14/24
rs(config)# service customergroup2 apply rate-limit mf-classifier interface
customergroup2 source-addr-mask 161.151.141.13/24
Backbone
2.2.2.2/8
et.1.8
1.1.1.1/8
et.1.1
3.3.3.3/8
et.1.2
ipclient1
ipclient2