Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All
     

    Related Documentation

     

    Example: QoS Parameter Configuration for Hierarchical Parameters

    The example in this section illustrates how to configure hierarchical parameters for VLANs and S-VLANs.

    Figure 1 shows the QoS scheduler hierarchy that the QoS client creates for the VLANs and S-VLANs in the interface stack. The QoS client creates explicit parameter instances using the parameter definition max-sub-bw to shape rates at the VLAN subinterfaces 100 and 101.

    An S-VLAN node is located below the two VLAN nodes in the interface stack. The QoS client creates an implicit parameter instance by applying a shaper to the S-VLAN subinterface 10 that equals the total rate at the VLANs (3072000).

    Figure 1: Hierarchical Parameters Scheduler Hierarchy

    Hierarchical Parameters Scheduler Hierarchy

    Procedure for QoS Administrators

    This section describes the procedures to configure the scheduler hierarchy shown in Figure 1 by using QoS parameters.

    Configuring the Parameter Definition

    The QoS administrator configures the parameter definition for the maximum subscriber bandwidth.

    To configure a parameter definition for the maximum subscriber bandwidth:

    1. Configure the parameter definition named max-sub-bw.
    2. Enable the parameter to control S-VLANs.
    3. Enable the parameter to control VLANs.
    4. Enable the parameter to have instances created on VLAN subinterfaces.
    5. Specify that the QoS client can create the parameter instance for VLANs, which represent subscribers.
      host1(config)#qos-parameter-define max-sub-bw hierarchical host1(config-qos-parameter-define)#controlled-interface-type svlan host1(config-qos-parameter-define)#controlled-interface-type vlan host1(config-qos-parameter-define)#instance-interface-type vlan host1(config-qos-parameter-define)#subscriber-interface-type vlan host1(config-qos-parameter-define)#exit

    Configuring the Scheduler Profiles

    The QoS administrator can then reference the parameter definition within a scheduler profile, which defines the shaping rates for the parameter.

    1. Configure a scheduler profile to shape the throughput the explicit QoS parameters for VLANs.
      1. Configure the scheduler profile named sp-shape-cvlan.
      2. Configure the shaping rate by referencing the parameter max-sub-bw.
        host1(config)#scheduler-profile sp-shape-cvlan host1(config-scheduler-profile)#shaping-rate max-sub-bw host1(config-scheduler-profile)#exit
    2. Configure a scheduler profile to shape the S-VLAN throughput.
      1. Configure the scheduler profile named sp-shape-svlan.
      2. Configure the shaping rate by referencing the parameter max-sub-bw.
        host1(config)#scheduler-profile sp-shape-svlan host1(config-scheduler-profile)#shaping-rate max-sub-bw host1(config-scheduler-profile)#exit

    Configuring the QoS Profiles

    By referencing the scheduler profiles within QoS profiles, the QoS administrator creates the scheduler hierarchy. In this portion of the example, the QoS administrator configures QoS profiles for the VLAN and the S-VLAN.

    1. Configure the QoS profile for the VLAN interfaces.
      1. Configure the QoS profile named qp-shape-cvlan.
      2. Configure the VLAN queue and reference the best-effort traffic class.
      3. Configure the VLAN node and reference the scheduler profile for shaping VLANs.
        host1(config)#qos-profile qp-shape-cvlan host1(config-qos-profile)#vlan queue traffic-class best-effort host1(config-qos-profile)#vlan node scheduler-profile sp-shape-cvlan host1(config-qos-profile)#exit
    2. Configure the QoS profile for the S-VLAN interface.
      1. Configure the QoS profile named qp-shape-svlan.
      2. Configure the S-VLAN node and reference the scheduler profile sp-shape-svlan.
        host1(config)#qos-profile qp-shape-svlan host1(config-qos-profile)#svlan node scheduler-profile sp-shape-svlan host1(config-qos-profile)#exit

    Procedure for QoS Clients

    This section describes procedures to create parameter instances at VLAN subinterface 100 and VLAN subinterface 101.

    1. Create an explicit parameter instance at VLAN subinterface 100.
      1. Specify the Gigabit Ethernet interface in slot 2, port 0.
      2. Configure the VLAN major interface.
      3. Configure the VLAN subinterface at slot 2, port 0, subinterface 100.
      4. Assign an S-VLAN ID of 10 and a VLAN ID of 100 to the VLAN subinterface.
      5. Attach the max-sub-bw QoS parameter to the subinterface with a value of 1024000.
      6. Attach the qp-shape-cvlan QoS profile to the subinterface.
        host1(config)#interface gigabitEthernet 2/0 host1(config-if)#encapsulation vlan host1(config)#interface gigabitEthernet 2/0.100 host1(config-if)#svlan id 10 100 host1(config-if)#qos-parameter max-sub-bw 1024000 host1(config-if)#qos-profile qp-shape-cvlan host1(config-if)#exit
    2. Create an explicit parameter instance at VLAN subinterface 101.
      1. Specify the VLAN subinterface 101 in slot 2, port 0.
      2. Assign an S-VLAN ID of 10 and a VLAN ID of 101 to the VLAN subinterface.
      3. Attach the max-sub-bw QoS parameter to the subinterface with a value of 2048000.
      4. Attach the qp-shape-cvlan QoS profile to the subinterface.
        host1(config-if)#interface gigabitEthernet 2/0.101 host1(config-if)#svlan id 10 101 host1(config-if)#qos-parameter max-sub-bw 2048000 host1(config-if)#qos-profile qp-shape-cvlan host1(config-if)#exit
    3. Create an implicit parameter instance at S-VLAN subinterface 10.
      1. Specify the Gigabit Ethernet interface at slot 2, port 0.
      2. Attach the qp-shape-svlan QoS profile to the node at S-VLAN subinterface 10.
        host1(config)#interface gigabitEthernet 2/0 host1(config-if)#svlan 10 qos-profile qp-shape-svlan

    Monitoring Hierarchical QoS Parameters

    After completing the configuration, both the QoS administrator and the QoS client can monitor it by issuing the show qos-parameter references command. To display the information about hierarchical parameter instances, you must specify the Gigabit Ethernet interface.

    host1#show qos-parameter max-sub-bw references interface gigabitEthernet 2/0
    
                                parameter            instance
             interface             name     value      Type
    --------------------------- ---------- ------- ------------
    GigabitEthernet2/0 svlan 10 max-sub-bw 3072000 hierarchical
    GigabitEthernet2/0.100      max-sub-bw 1024000 explicit
    GigabitEthernet2/0.101      max-sub-bw 2048000 explicit
      Explicit parameter instances:      2
      Hierarchical parameter instances:  1
      IP multicast parameter instances:  0
      Parameter instances reported:      3

    Complete Configuration Example

    You can use the complete configuration examples provided for each of the configurations in your own network. To customize the configuration example for your needs, copy the text into a text editor, and modify it.

    To use the example for immediate use, copy it to the local console or Telnet session from which you access the router.

    You can also save the example as a script (.scr) file that executes the commands as though they were entered at the terminal. For information about executing .scr files, see JunosE System Basics Configuration Guide.

    QoS Administrator Configuration

    From Global Configuration mode:

    ! Configure the max-sub-bw QoS parameter definition. qos-parameter-define max-sub-bw hierarchical controlled-interface-type svlan controlled-interface-type vlan instance-interface-type vlan subscriber-interface-type vlan exit ! Configure the sp-shape-cvlan and sp-shape-svlan scheduler profiles. scheduler-profile sp-shape-cvlan shaping-rate max-sub-bw exit scheduler-profile sp-shape-svlan shaping-rate max-sub-bw exit ! Configure the qp-shape-cvlan and qp-shape-svlan QoS profiles. qos-profile qp-shape-cvlan vlan queue traffic-class best-effort vlan node scheduler-profile sp-shape-cvlan exit qos-profile qp-shape-svlan svlan node scheduler-profile sp-shape-svlan exit

    QoS Client Configuration

    From Global Configuration mode:

    ! Configure the QoS parameter max-sub-bw for VLAN subinterface 100. interface gigabitEthernet 2/0 encapsulation vlan interface gigabitEthernet 2/0.100 svlan id 10 100 qos-parameter max-sub-bw 1024000 qos-profile qp-shape-cvlan exit ! Configure the QoS parameter max-sub-bw for VLAN subinterface 101. interface gigabitEthernet 2/0.101 svlan id 10 101 qos-parameter max-sub-bw 2048000 qos-profile qp-shape-cvlan ! Attach the QoS profile to the S-VLAN subinterface 10. interface gigabitEthernet 2/0 svlan 10 qos-profile qp-shape-svlan
     

    Related Documentation

     

    Published: 2014-08-11