[an error occurred while processing this directive][an error occurred while processing this directive]

Applying CoS Parameters to a Subscriber Interface in a Dynamic Profile

You provide CoS parameters to a subscriber by associating the CoS parameters with an interface in a dynamic profile.

Traffic and scheduling parameters can be configured in the dynamic profile and associated with a subscriber by attaching an output traffic control profile to the interface in the dynamic profile.

You configure rewrite rules and classifiers statically in the [edit class-of-service] hierarchy and reference them in the dynamic profile.

Applying Traffic Shaping and Scheduling to a Subscriber Interface in a Dynamic Profile

After you configure the traffic shaping and scheduling CoS parameters in a dynamic profile, you apply them to an interface. The output-traffic control profile enables you to provide traffic scheduling to the interface.

To apply CoS attributes to an interface in a dynamic profile:

  1. Specify that you want to apply CoS attributes to an interface in the dynamic profile.
    user@host# edit dynamic-profiles profile-name class-of-service
  2. Configure the interface name and logical interface using a variable, and apply the output-traffic control profile to the interface.

    Reference the name of the traffic-control profile that contains the scheduling properties that you want to use.

    [edit dynamic-profiles profile-name class-of-service interfaces]user@host# set interfaces $junos-interface-ifd-name unit $junos-underlying-interface-unit output-traffic-control-profile profile-name

Applying a Rewrite Rule Definition to a Subscriber Interface in a Dynamic Profile

Rewrite rules define the marking for various CoS values, including DSCP, DSCP IPv6, IP precedence, and IEEE 802.1 CoS values. Rewrite rules have an associated forwarding class and code-point alias or bit set.

For dynamic CoS, you define the rewrite rules mapping for the CoS values statically, then reference the rewrite rule configuration in the dynamic profile for the subscriber interface.

To configure a rewrite rule in a dynamic profile:

  1. Define the rewrite-rules mapping for the traffic that passes through all queues on the interface. The available rewrite-rules types for dynamic CoS are dscp, dscpv6, ieee-802.1 and inet-precedence.

    See Configuring Rewrite Rules.

  2. Apply the rewrite-rules definition to the subscriber interface in the dynamic profile.
    [edit dynamic-profiles profile-name class-of-service interfaces interface-name unit logical-unit-number]user@host# edit rewrite-rules
  3. Configure the applicable rewrite rule markers in the dynamic profile.
    • For DSCP:
      [edit dynamic-profiles profile-name class-of-service interfaces interface-name unit logical-unit-number rewrite-rules]user@host# set dscp (rewrite-name | default)
    • For DSCPv6:
      [edit dynamic-profiles profile-name class-of-service interfaces interface-name unit logical-unit-number rewrite-rules]user@host# set dscp-ipv6 (rewrite-name | default)
    • For IEEE 802.1:
      [edit dynamic-profiles profile-name class-of-service interfaces interface-name unit logical-unit-number rewrite-rules]user@host# set ieee-802.1 (rewrite-name | default) vlan-tag (outer | outer-and-inner)
    • For inet-precedence:
      [edit dynamic-profiles profile-name class-of-service interfaces interface-name unit logical-unit-number rewrite-rules]user@host# set inet-precedence (rewrite-name | default)

Applying a Classifier to a Subscriber Interface in a Dynamic Profile

You can apply the classification map to a subscriber interface in a dynamic profile.

For dynamic CoS, you define the classification map for the CoS values statically, then reference the classifier configuration in the dynamic profile for the subscriber interface.

To apply a classifier to an interface in a dynamic profile:

  1. Define the classifier.

    The available classifier types for subscriber access are dscp, dscp-ipv6, ieee-802.1, and inet-precedence.

    See Defining Classifiers.

  2. Apply the classifier definition to the subscriber interface in the dynamic profile.
    [edit dynamic-profiles profile-name class-of-service interfaces interface-name unit logical-unit-number]user@host# edit classifiers
  3. Configure the applicable classifiers in the dynamic profile.
    • For DSCP:
      [edit dynamic-profiles profile-name class-of-service interfaces interface-name unit logical-unit-number classifiers]user@host# set dscp (classifier-name | default)
    • For DSCPv6:
      [edit dynamic-profiles profile-name class-of-service interfaces interface-name unit logical-unit-number classifiers]user@host# set dscp-ipv6 (classifier-name | default)
    • For IEEE 802.1:
      [edit dynamic-profiles profile-name class-of-service interfaces interface-name unit logical-unit-number classifiers]user@host# set ieee-802.1 (classifier-name | default) vlan-tag (inner | outer)
    • For inet-precedence:
      [edit dynamic-profiles profile-name class-of-service interfaces interface-name unit logical-unit-number classifiers]user@host# set inet-precedence (classifier-name | default)

Published: 2010-04-15

[an error occurred while processing this directive]