Example: Providing Tiered Internet Services with Policing
In this scenario, the service provider offers three tiered Internet services to its subscribers:
- Gold, which provides a bandwidth of up to 5 Mbps.
- Silver, which provides a bandwidth of up to 1Mbps.
- Bronze, which provides a bandwidth of up to 64 Kbps.
One of the tiered Internet services controls the traffic at a given time. Accounting data is collected for the tiered services.
A default policy is needed to establish the context of the tiered service. The subscriber has an IP interface in the network; the access point has a default policy that prevents the subscriber from using a tiered Internet service until the service is activated.
Types of Policies
JUNOSe policies use the rate-limit action to control bandwidth, and JUNOS policies use the policer action to control bandwidth. You could also use QoS conditions and scheduler actions to provide tiered Internet services.
Sample JUNOSe Rate-Limiting Policy
The sample JUNOSe policy has a local parameter bw, which is used in the rate-limit action both on input and output directions.
In this example, the committed action is forward, whereas the conformed and exceeded actions are set to filter.
![]()
The following information shows the configuration details of the Internet tiered policy group for JUNOSe routers.
policyGroupName=internet-tiered, ou=common, ou=sample, o=Policies, o=umcLocal Parameter
name=bw, defaultValue=5000000, parameterType=ratePolicyList je-out
name=je-outpolicyRoles=JUNOSEapplicability=outputPolicyRule: name=the-limitpriority=600type=JUNOSEaccountingRule=trueClassifyTrafficConditionRateLimit ActionrateLimitType=two_ratecommittedRate=bwcommittedBurst=500000peakRate=bwpeakBurst=500000committed=Forwardconformed=Filterexceeded=FilterPolicyList je-in
name=je-inpolicyRoles=JUNOSEapplicability=inputPolicyRule: name=the-limitPriority=600type=JUNOSEaccountingRule=trueClassifyTrafficConditionRateLimit ActionrateLimitType=two_ratecommittedRate=bwcommittedBurst=500000peakRate=bwpeakBurst=500000committed=Forwardconformed=Filterexceeded=FilterSample JUNOS Policer Policy
The sample JUNOS policy has a local parameter bw, which is used in the policer action both on input and output directions.
In this example, packets that exceed the bandwidth limit are filtered.
![]()
The following information shows the configuration details of the Internet tiered policy group for JUNOS routing platforms.
policyGroupName=internet-tiered,ou=common,ou=sample,o=Policies,o=umcLocal Parameter
name=bw, defaultValue=5000000, parameterType=ratePolicyList j-out
name=j-outpolicyRoles=JUNOSapplicability=outputPolicyRule: name=the-limitpriority=600type=JUNOSaccountingRule=truePolicer ActionbandwidthLimit=bwBurst=500000packetAction=filterPolicyList j-in
name=j-inpolicyRoles=JUNOSapplicability=inputPolicer ActionbandwidthLimit=bwburst=500000packetAction=filterDefining the Tiered Internet Services
You need to create three value-added (SSP) services—Gold, Silver, and Bronze.
As shown in Figure 36, assign to the new service one of the Internet-tiered policy groups that we created in the last section.
![]()
For each service, define a substitution value for the bw parameter. For the Gold service, the bw value is 5 Mbps; for the Silver service, the bw value is 1Mbps; and for the Bronze service, the bw value is 64 Kbps. Figure 37 shows how the substitution value is configured for the Gold service.
![]()
Internet-Gold Service
serviceName=Internet-Gold,o=Services,o=umcpolicyGroupName:internet-tiered,ou=common,ou=sample,o=Policies,o=umcsubstitution:bw=5000000Internet-Silver Service
serviceName=Internet-Silver,o=Services,o=umcpolicyGroupName:internet-tiered,ou=common,ou=sample,o=Policies,o=umcsubstitution:bw=1000000Internet-Bronze Service
serviceName=Internet-Bronze,o=Services,o=umcpolicyGroupName:internet-tiered,ou=common,ou=sample,o=Policies,o=umcsubstitution:bw=64000