[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]


Example: Providing Tiered Internet Services with Policing

In this scenario, the service provider offers three tiered Internet services to its subscribers:

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.


Figure 34: Rate-Limit Action for Tiered Internet Service

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=umc

Local Parameter

name=bw, defaultValue=5000000, parameterType=rate

PolicyList je-out

        name=je-out
        policyRoles=JUNOSE
        applicability=output

PolicyRule: name=the-limit
        priority=600
        type=JUNOSE
        accountingRule=true
     ClassifyTrafficCondition
     RateLimit Action
        rateLimitType=two_rate
        committedRate=bw
        committedBurst=500000
        peakRate=bw
        peakBurst=500000
        committed=Forward
        conformed=Filter
        exceeded=Filter

PolicyList je-in

        name=je-in
        policyRoles=JUNOSE
        applicability=input

   PolicyRule: name=the-limit
        Priority=600
        type=JUNOSE
        accountingRule=true
     ClassifyTrafficCondition
     RateLimit Action
        rateLimitType=two_rate
        committedRate=bw
        committedBurst=500000
        peakRate=bw
        peakBurst=500000
        committed=Forward
        conformed=Filter
        exceeded=Filter

Sample 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.


Figure 35: Policer Action for Tiered Internet Service

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=umc

Local Parameter

name=bw, defaultValue=5000000, parameterType=rate

PolicyList j-out

        name=j-out
        policyRoles=JUNOS
        applicability=output

PolicyRule: name=the-limit
        priority=600
        type=JUNOS
        accountingRule=true
     Policer Action
        bandwidthLimit=bw
        Burst=500000
        packetAction=filter

PolicyList j-in

        name=j-in
        policyRoles=JUNOS
        applicability=input

     Policer Action
        bandwidthLimit=bw
        burst=500000
        packetAction=filter

Defining 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.


Figure 36: Sample Value-Added Service for Internet Gold Service

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.


Figure 37: Parameter Pane of Internet Gold Service

Internet-Gold Service

serviceName=Internet-Gold,o=Services,o=umc
policyGroupName:internet-tiered,ou=common,ou=sample,o=Policies,o=umc
substitution:
  bw=5000000

Internet-Silver Service

serviceName=Internet-Silver,o=Services,o=umc
policyGroupName:internet-tiered,ou=common,ou=sample,o=Policies,o=umc
substitution:
  bw=1000000

Internet-Bronze Service

serviceName=Internet-Bronze,o=Services,o=umc
policyGroupName:internet-tiered,ou=common,ou=sample,o=Policies,o=umc
substitution:
  bw=64000

[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]