Example: QoS Parameter Configuration for Controlling Subscriber Bandwidth
The example in this section illustrates how to use parameters to control the minimum and maximum bandwidth of a subscriber. The example includes procedures for both QoS administrators and QoS clients.
Through QoS parameter definitions, the QoS administrator defines a QoS scheduler hierarchy that corresponds to the physical network topology shown in Figure 58.
![]()
The S-VLAN scheduler nodes correspond to the DSLAM in the physical network topology; the VLAN scheduler nodes correspond to the subscribers.
Figure 59 shows the QoS scheduler hierarchy that the QoS client creates when configuring a different service for each subscriber.
![]()
For Subscriber 1, the QoS client configures a basic best-effort data service, with a maximum rate of 2 Mbps, and assigns a scheduler weight value of 1.
For Subscriber 2, the QoS client configures a basic triple-play service consisting of voice, video, and best-effort data services. This service enables the subscriber to transmit up to 6 Mbps of combined voice, video, and best-effort data traffic. The service limits video traffic to 2 Mbps and enables low-latency bandwidth for one 100 Kbps voice call. The QoS client then assigns this subscriber a scheduler weight value of 3, enabling this subscriber to claim up to three times the bandwidth than the basic data service configured for Subscriber 1.
For Subscriber 3, the QoS client configures an enhanced triple-play service consisting of voice, video and best-effort data services. This enhanced triple-play service enables the subscriber to transmit up to 8 Mbps of combined voice, video, and best-effort data traffic. This service limits video traffic to 3 Mbps and enables low-latency bandwidth for up to three 100 Kbps voice calls. The QoS client then assigns this subscriber a scheduler weight value of 6, enabling this subscriber to claim up to six times the bandwidth of the basic data service subscriber configured for Subscriber 1, and up to twice the bandwidth of the basic triple-play subscriber configured for Subscriber 2.
Procedure for QoS Administrators
This section describes the procedures to configure the scheduler hierarchy shown in Figure 59 by using QoS parameters.
Configuring Traffic Classes and Traffic Class Groups
The QoS administrator configures traffic classes and traffic-class groups for best-effort data, video, and voice services.
- Configure the traffic class named best-effort.
- Configure the traffic class named video.
- Configure the traffic class named voice.
- Enable the voice traffic class to provide a strict priority treatment throughout the fabric.
host1(config)#traffic-class best-efforthost1(config-traffic-class)#exithost1(config)#traffic-class videohost1(config-traffic-class)#exithost1(config)#traffic-class voicehost1(config-traffic-class)#fabric-strict-priorityhost1(config-traffic-class)#exit
- Configure a traffic-class group for low-latency expedited forwarding (EF) and add the voice traffic class into the traffic-class group EF.
- Configure the EF traffic-class group with strict-priority scheduling.
- Add the voice traffic class to the traffic-class group.
host1(config)#traffic-class-group EF auto-strict-priorityhost1(config-traffic-class-group)#traffic-class voicehost1(config-traffic-class-group)#exitThe remaining traffic classes, best-effort and video, remain in the default traffic-class group.
Configuring the Parameter Definitions
After configuring the traffic classes and traffic-class groups, the QoS administrator configures the parameter definitions for Subscribers 1, 2, and 3.
- Configure the parameter definition named max-subscriber-bandwidth.
- Enable the parameter to control VLANs.
- Enable the parameter to have instances created on VLAN subinterfaces.
- Specify the valid range of this parameter as 512 Kbps8 Mbps.
host1(config)#qos-parameter-define max-subscriber-bandwidthhost1(config-qos-parameter-define)#controlled-interface-type vlanhost1(config-qos-parameter-define)#instance-interface-type vlanhost1(config-qos-parameter-define)#range 512000 8192000host1(config-qos-parameter-define)#exit
- Configure a parameter definition for a subscriber's weight in the hierarchical round-robin (HRR) scheduler. This parameter is used to provide different scheduler weights for each of the three service offerings.
- Configure the parameter definition named subscriber-weight.
- Enable the parameter to control VLANs.
- Enable the parameter to have instances created on VLAN subinterfaces.
- Specify the valid range of this parameter as 16.
host1(config)#qos-parameter-define subscriber-weighthost1(config-qos-parameter-define)#controlled-interface-type vlanhost1(config-qos-parameter-define)#instance-interface-type vlanhost1(config-qos-parameter-define)#range 1 6host1(config-qos-parameter-define)#exit
- Configure a parameter definition for the subscriber's maximum video bandwidth. By creating a parameter instance on S-VLANs, the QoS administrator can specify a subscriber's maximum video bandwidth for each DSLAM in the hierarchy.
- Configure the parameter definition named max-subscriber-video-bandwidth.
- Enable the parameter to control VLANs.
- Enable the parameter to have instances created on both SVLAN and VLAN subinterfaces.
- Specify the valid range of this parameter as 1 Mbps5 Mbps.
host1(config)#qos-parameter-define max-subscriber-video-bandwidthhost1(config-qos-parameter-define)#controlled-interface-type vlanhost1(config-qos-parameter-define)#instance-interface-type vlanhost1(config-qos-parameter-define)#instance-interface-type svlanhost1(config-qos-parameter-define)#range 1000000 5000000host1(config-qos-parameter-define)#exit
- Configure a parameter definition for the maximum number of 100 Kbps voice calls supported for the subscriber.
- Configure the parameter definition named max-100Kbps-voice-calls.
- Enable the parameter to control VLANs.
- Enable the parameter to have instances created on VLAN subinterfaces.
- Specify the valid range of this parameter as 13.
host1(config)#qos-parameter-define max-100Kbps-voice-callshost1(config-qos-parameter-define)#controlled-interface-type vlanhost1(config-qos-parameter-define)#instance-interface-type vlanhost1(config-qos-parameter-define)#range 1 3host1(config-qos-parameter-define)#exitConfiguring the Scheduler Profiles
The QoS administrator can then reference the parameter definitions within a scheduler profile, which defines the shaping rates for the parameter.
- Configure a scheduler profile to specify the maximum bandwidth of the subscriber's best-effort data.
- Configure the scheduler profile named subscriber-best-effort.
- Configure the shared-shaping rate by referencing the max-subscriber-bandwidth parameter and choosing automatic shared shaping.
host1(config)#scheduler-profile subscriber-best-efforthost1(config-scheduler-profile)#shared-shaping-rate max-subscriber-bandwidth autohost1(config-scheduler-profile)#exit
- Configure the scheduler profile named subscriber-video.
- Configure the shaping rate by referencing the max-subscriber-video-bandwidth parameter.
host1(config)#scheduler-profile subscriber-videohost1(config-scheduler-profile)#shaping-rate max-subscriber-video-bandwidthhost1(config-scheduler-profile)#exit
- Configure the scheduler profile named subscriber-weight.
- Configure the weight using the default for the subscriber-weight parameter.
host1(config)#scheduler-profile subscriber-weighthost1(config-scheduler-profile)#weight subscriber-weighthost1(config-scheduler-profile)#exit
- Configure the scheduler profile named subscriber-voice.
- Configure the shaping rate by referencing the max-100Kbps-voice-calls parameter and multiplying it by 100 Kbps of voice calls.
host1(config)#scheduler-profile subscriber-voicehost1(config-scheduler-profile)#shaping-rate max-100Kbps-voice-calls * 100000host1(config-scheduler-profile)#exitConfiguring 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 best-effort data and triple-play service offerings.
- Create the QoS profile named subscriber-data-service.
- Create a node for S-VLAN subinterfaces.
- Specify a node for VLAN subinterfaces and reference the subscriber-weight scheduler profile.
- Specify a queue for VLAN subinterfaces, referencing the best-effort traffic class and the subscriber-best-effort scheduler-profile.
host1(config)#qos-profile subscriber-data-servicehost1(config-qos-profile)#svlan nodehost1(config-qos-profile)#vlan node scheduler-profile subscriber-weighthost1(config-qos-profile)#vlan queue traffic-class best-effort scheduler-profile subscriber-best-efforthost1(config-qos-profile)#exitThe best-effort queue rule for VLAN subinterfaces refers to the subscriber-best-effort scheduler profile. The scheduler profile refers to the max-subscriber-bandwidth parameter that controls the maximum rate of this subscriber's best-effort queue.
- Create a QoS profile named subscriber-triple-play.
- Specify a node for S-VLAN subinterfaces.
- Specify a node for VLAN subinterfaces and reference the subscriber-weight scheduler profile.
- Specify a node for S-VLAN subinterfaces and reference the EF traffic-class group.
- Specify a queue for VLAN subinterfaces, referencing the best-effort traffic class and the subscriber-best-effort scheduler profile.
- Specify a queue for VLAN subinterfaces, referencing the video traffic class and the subscriber-video scheduler profile.
- Specify a queue for VLAN subinterfaces, referencing the voice traffic-class and the subscriber-voice scheduler profile.
host1(config)#qos-profile subscriber-triple-playhost1(config-qos-profile)#svlan nodehost1(config-qos-profile)#vlan node scheduler-profile subscriber-weighthost1(config-qos-profile)#svlan node group EFhost1(config-qos-profile)#vlan queue traffic-class best-effort scheduler-profile subscriber-best-efforthost1(config-qos-profile)#vlan queue traffic-class video scheduler-profile subscriber-videohost1(config-qos-profile)#vlan queue traffic-class voice scheduler-profile subscriber-voicehost1(config-qos-profile)#exitVLAN queues are used for each service. The VLAN queue rules reference scheduler profiles that define the scheduler rates for the service.
- Configure a QoS profile and attach to all Fast Ethernet, Gigabit Ethernet, and 10-Gigabit Ethernet interfaces in the chassis.
- Create a QoS profile named ethernet-default.
- Remove the QoS profile rule for creating IP nodes.
- Remove the IP queue for the best-effort traffic-class.
host1(config)#qos-profile ethernet-defaulthost1(config-qos-profile)#no ip nodehost1(config-qos-profile)#no ip queue traffic-class best-efforthost1(config-qos-profile)#exit
- Configure the Fast Ethernet interface in slot 9, port 0.
- Configure the VLAN major interface.
- Configure the VLAN subinterface at slot 9, port 0, subinterface 1.
- Assign an S-VLAN ID of 2 and a VLAN ID of 1 to the VLAN subinterface.
- Assign an IP address to the VLAN subinterface.
- Repeat steps ae to configure VLAN subinterfaces in slot 9, port 0, subinterface 2 and in slot 9, port 0, subinterface 3.
host1(config)# interface fastEthernet 9/0host1(config-if)#encapsulation vlanhost1(config-if)#exithost1(config)#interface fastEthernet 9/0.1host1(config-subif)#svlan id 2 1host1(config-subif)#ip address 192.1.1.1 255.255.255.0host1(config)#interface fastEthernet 9/0.2host1(config-subif)#svlan id 2 2host1(config-subif)#ip address 192.2.1.1 255.255.255.0host1(config-subif)#exithost1(config)#interface fastEthernet 9/0.3host1(config-subif)#svlan id 2 3host1(config-subif)#ip address 192.3.1.1 255.255.255.0host1(config-subif)#exitProcedure for QoS Clients
This section describes procedures to create parameter instances for Subscribers 1, 2, and 3.
Creating a Global Parameter Instance
The QoS client creates global parameter instances to provide a minimal level of default service for the router. In this portion of the example, the QoS client configures 2 Mbps of data traffic and configures a scheduler weight of 1 for Subscriber 1. For Subscribers 2 and 3, the QoS client then configures a maximum of 2 Mbps of video bandwidth and 1 voice call.
To create a global parameter instance:
- Create a global parameter instance for max-subscriber-bandwidth with a value of 2000000.
- Create a global parameter instance for subscriber-weight with a value of 1.
- Create a global parameter instance for subscriber-video-bandwidth with a value of 2000000.
- Create a global parameter instance for max-100Kbps-voice-calls with a value of 1.
host1(config)#qos-parameter max-subscriber-bandwidth 2000000host1(config)#qos-parameter subscriber-weight 1host1(config)#qos-parameter max-subscriber-video-bandwidth 2000000host1(config)#qos-parameter max-100Kbps-voice-calls 1Creating a Global Parameter Instance for Individual DSLAMs
Instead of creating global parameter instances, the QoS client can create different parameter instances for the DSLAMs that correspond to the S-VLAN nodes shown in Figure 59. In this portion of the example, the QoS client creates 1 Mbps video streams by default on DSLAM 1, rather than the 2Mbps global parameter instance.
- Specify the Fast Ethernet interface in slot 9, port 0.
- Attach the QoS parameter max-subscriber-video-bandwidth to S-VLAN 1.
host1(config)#interface fastEthernet 9/0host1(config-if)#svlan 1 qos-parameter max-subscriber-video-bandwidth 1000000host1(config-if)#exitCreating Parameter Instances for Subscribers
The QoS client creates a parameter instance for Subscribers 1, 2, and 3.
- Specify the Fast Ethernet interface in slot 9, port 0.
- Attach the QoS profile subscriber-data-service to the subscriber's Fast Ethernet interface.
host1(config)#interface fastEthernet 9/0.1host1(config-subif)#qos-profile subscriber-data-servicehost1(config-subif)#exitThis QoS profile references the scheduler profiles, which then reference the parameter instances max-subscriber-bandwidth and subscriber-weight. These global parameter instances are created with values 2 Mbps and 1.
- Configure a basic triple-play service consisting of voice, video, and data services for Subscriber 2.
- Specify the Fast Ethernet interface in slot 9, port 0.
- Create a parameter instance for max-subscriber-bandwidth, enabling the subscriber to transmit up to 6 Mbps of combined voice, video, and data traffic.
- Create a parameter instance for subscriber-weight with a value of 3. This value enables the subscriber to claim up to three times the bandwidth of Subscriber 1, with basic data service.
- Create a parameter instance for max-subscriber-video-bandwidth, limiting video traffic to 2 Mbps.
- Create a parameter instance for max-100Kbps-voice-calls, enabling bandwidth for one 100 Kbps voice call.
- Attach the QoS profile subscriber-triple-play to the subscriber's interface.
host1(config)#interface fastEthernet 9/0.2host1(config-if)#qos-parameter max-subscriber-bandwidth 6000000host1(config-if)#qos-parameter subscriber-weight 3host1(config-if)#qos-parameter max-subscriber-video-bandwidth 2000000host1(config-if)#qos-parameter max-100Kbps-voice-calls 1host1(config-if)#qos-profile subscriber-triple-playhost1(config-if)#exit
- Configure a enhanced triple-play service consisting of voice, video, and data services for Subscriber 3. Enable the subscriber to have twice as much bandwidth as Subscriber 2, with basic triple-play service.
- Create a parameter instance for max-subscriber-bandwidth, enabling the subscriber to transmit up to 8 Mbps of combined voice, video, and data traffic.
- Create a parameter instance for subscriber-weight with a value of 6, enabling the subscriber to claim up to six times the bandwidth of Subscriber 1, with basic data service.
- Create a parameter instance for max-subscriber-video-bandwidth, limiting video traffic to 3 Mbps.
- Create a parameter instance for max-100Kbps-voice-calls, enabling up to three 100 Kbps voice calls.
- Attach the QoS profile subscriber-triple-play to the subscriber's interface.
host1(config)#interface fastEthernet 9/0.3host1(config-if)#qos-parameter max-subscriber-bandwidth 8000000host1(config-if)#qos-parameter subscriber-weight 6host1(config-if)#qos-parameter max-subscriber-video-bandwidth 3000000host1(config-if)#qos-parameter max-100Kbps-voice-calls 3host1(config-if)#qos-profile subscriber-triple-playhost1(config-if)#exitMonitoring the Subscriber Configuration
After completing the configuration, both the QoS administrator and the QoS client can monitor it by issuing show commands.
- To display the traffic classes for best-effort, video, and voice, issue the show traffic-class command.
host1#show traffic-classfabrictraffic fabric strictclass weight priority----------- ------ --------best-effort 8 novideo 8 novoice 8 yes- To display the traffic-class group EF, issue the show traffic-class-group command.
host1#show traffic-class-grouptraffic-class-group EF auto-strict-prioritytraffic-class voice- To display the settings for all four QoS parameter definitions (max-subscriber-bandwidth, subscriber-weight, max-subscriber-video-bandwidth, and max-100Kbps-voice-calls), issue the show qos-parameter-define command.
host1#show qos-parameter-definecontrolled instance subscriberinterface interface interfaceparameter name types types types------------------------------ ---------- ----------- ----------max-subscriber-bandwidth vlan vlan <none>subscriber-weight vlan vlan <none>max-subscriber-video-bandwidth vlan vlan, svlan <none>max-100Kbps-voice-calls vlan vlan <none>parameter name value range properties------------------------------ ----------------- ----------max-subscriber-bandwidth 512000 - 8192000 <none>subscriber-weight 1 - 10 <none>max-subscriber-video-bandwidth 1000000 - 5000000 <none>max-100Kbps-voice-calls 1 - 3 <none>- To display the shaping rates and burst for the four scheduler profiles (subscriber-best-effort, subscriber-video, subscriber-weight, and subscriber-voice, issue the show scheduler-profile command.
host1#show scheduler-profileshapingscheduler shaping rate burst---------------------- -------------------------------- -------default <none> <none>subscriber-best-effort <none> <none>subscriber-video max-subscriber-video-bandwidth defaultsubscriber-weight <none> <none>subscriber-voice max-100Kbps-voice-calls * 100000 defaultstrict assuredscheduler weight priority rate---------------------- ----------------- -------- -------default 8 no <none>subscriber-best-effort 8 no <none>subscriber-video 8 no <none>subscriber-weight subscriber-weight no <none>subscriber-voice 8 no <none>shared sharedshaping shapingscheduler shared shaping rate burst constituent---------------------- ------------------------ ------- -----------default <none> <none> <none>subscriber-best-effort max-subscriber-bandwidth default <none>subscriber-video <none> <none> <none>subscriber-weight <none> <none> <none>subscriber-voice <none> <none> <none>sharedscheduler shaping mode---------------------- -------------default <none>subscriber-best-effort auto implicitsubscriber-video <none>subscriber-weight <none>subscriber-voice <none>- To display the settings for the QoS profile subscriber-triple-play, issue the show qos-profile command.
host1#show qos-profile subscriber-triple-playqos-profile subscriber-triple-play:t-class interface rule traffic queue dropgroup type type class scheduler profile profile profile------- --------- ----- ----------- ---------------------- ------- -------vlan node subscriber-weightsvlan node defaultvlan queue best-effort subscriber-best-effort default defaultvlan queue video subscriber-video default defaultEF svlan node defaultEF vlan queue voice subscriber-voice default defaultstatisticsprofile----------defaultdefaultdefault- To display the attachments on all QoS profiles, issue the show qos-profile references command.
host1#show qos-profile referencesqos profile attachment-------------------------------- --------------------------------------------atm-default (qos-port-type-profile)serial-default (qos-port-type-profile)ethernet-default (qos-port-type-profile)server-default (qos-port-type-profile)subscriber-data-service vlan FastEthernet9/0.1subscriber-triple-play vlan FastEthernet9/0.2subscriber-triple-play vlan FastEthernet9/0.3Port attachments: 4Interface attachments: 3Not attached: 0- To display global and interface attachments on all of the QoS parameter instances, issue the show qos-parameter references command.
host1#show qos-parameter referencesinterface parameter name value----------------------- ------------------------------ -------global max-subscriber-bandwidth 2000000global subscriber-weight 1global max-subscriber-video-bandwidth 2000000global max-100Kbps-voice-calls 1FastEthernet9/0.2 max-subscriber-bandwidth 6000000FastEthernet9/0.2 subscriber-weight 3FastEthernet9/0.2 max-subscriber-video-bandwidth 2000000FastEthernet9/0.2 max-100Kbps-voice-calls 1FastEthernet9/0.3 max-subscriber-bandwidth 8000000FastEthernet9/0.3 subscriber-weight 6FastEthernet9/0.3 max-subscriber-video-bandwidth 3000000FastEthernet9/0.3 max-100Kbps-voice-calls 3FastEthernet9/0 svlan 1 max-subscriber-video-bandwidth 1000000Global parameter instances: 4Parameter instances reported: 13- To display the queue forwarding rates for the VLANs on the Fast Ethernet interface in slot 9, port 0, issue the show egress-queue rates command.
host1#show egress-queue rates full interface fastEthernet 9/0traffic forwarded aggregate minimum maximuminterface class rate drop rate rate rate------------------------ ----------- --------- --------- ------- ---------ethernet FastEthernet9/0 best-effort * * 0 100000000vlan FastEthernet9/0.1 best-effort * * 0 2000000vlan FastEthernet9/0.2 best-effort * * 0 6000000video * * 0 2000000voice * * 100000 100000vlan FastEthernet9/0.3 best-effort * * 0 8000000video * * 0 3000000voice * * 300000 300000Queues reported: 0Queues filtered (under threshold): 0* Queues disabled (no rate period): 8**Queues disabled (no resources): 0Total queues: 8- To display the shared-shaper settings for the VLANs on the Fast Ethernet interface in slot 9, port 0, issue the show qos shared-shaper command.
host1#show qos shared-shaper interface fastEthernet 9/0sharedshaping shapinginterface resource rate rate other------------- ------------------------- ------- ------- ------------vlan Eth9/0.1 vlan nodeA vlan queue best-effort 2000000 rate 2000000vlan Eth9/0.2 vlan nodeA vlan queue best-effort 6000000 rate 6000000A vlan queue video 2000000A vlan queue EF voice 100000vlan Eth9/0.3 vlan nodeA vlan queue best-effort 8000000 rate 8000000A vlan queue video 3000000A vlan queue EF voice 300000Total shared shapers: 3Total constituents: 10Total shared shaper failovers: 0Compound shared shapers are not supported.- To display the scheduler hierarchy for the Fast Ethernet interface in slot 9, port 0, issue the show qos scheduler-hierarchy command.
host1#show qos scheduler-hierarchy interface fastEthernet 9/0Scheduler hierarchy for the default traffic-class groupassuredshared rateshaping shaping orinterface resource rate rate weight-------------------- ---------------------------- ------- ------- -------ethernet Eth9/0 ethernet port wgt 8ethernet Eth9/0 ethernet queue wgt 8svlan Eth9/0 svlan 2 svlan node wgt 8vlan Eth9/0.1 vlan node wgt 1vlan Eth9/0.1 vlan queue best-effort 2000000 wgt 8vlan Eth9/0.2 vlan node wgt 3vlan Eth9/0.2 vlan queue video 2000000 wgt 8vlan Eth9/0.2 vlan queue best-effort 6000000 wgt 8vlan Eth9/0.3 vlan node wgt 6vlan Eth9/0.3 vlan queue video 3000000 wgt 8vlan Eth9/0.3 vlan queue best-effort 8000000 wgt 8Scheduler hierarchy for traffic-class group EFassuredshared rateshaping shaping orinterface resource rate rate weight-------------------- ------------------------- ------- ------- -------ethernet Eth9/0 ethernet group node EF wgt 8svlan Eth9/0 svlan 2 svlan node EF wgt 8vlan Eth9/0.2 vlan queue EF voice 100000 wgt 8vlan Eth9/0.3 vlan queue EF voice 300000 wgt 8Complete 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, Chapter 2, Command-Line Interface.
QoS Administrator Configuration
From Global Configuration mode:
! Configure traffic classes and traffic-class groups.traffic-class best-effortexittraffic-class videoexittraffic-class voicefabric-strict-priorityexittraffic-class-group EF auto-strict-prioritytraffic-class voiceexit!Configure the max-subscriber-bandwidth parameter definition.qos-parameter-define max-subscriber-bandwidthcontrolled-interface-type vlaninstance-interface-type vlanrange 512000 8192000exit!Configure the subscriber-weight parameter definition.qos-parameter-define subscriber-weightcontrolled-interface-type vlaninstance-interface-type vlanrange 1 6exit!Configure the max-subscriber-video parameter definition.qos-parameter-define max-subscriber-video-bandwidthcontrolled-interface-type vlaninstance-interface-type vlaninstance-interface-type svlanrange 1000000 5000000exit!Configure the max-100Kbps-voice-calls parameter definition.qos-parameter-define max-100Kbps-voice-callscontrolled-interface-type vlaninstance-interface-type vlanrange 1 3exit! Configure the subscriber-best-effort scheduler profile.scheduler-profile subscriber-best-effortshared-shaping-rate max-subscriber-bandwidth autoexit! Configure the subscriber-video scheduler profile.scheduler-profile subscriber-videoshaping-rate max-subscriber-video-bandwidthexit! Configure the subscriber-weight scheduler profile.scheduler-profile subscriber-weightweight subscriber-weightexit! Configure the subscriber-voice scheduler profile.scheduler-profile subscriber-voiceshaping-rate max-100Kbps-voice-calls * 100000exit! Configure the subscriber-data-service QoS profile.qos-profile subscriber-data-servicesvlan nodevlan node scheduler-profile subscriber-weightvlan queue traffic-class best-effort scheduler-profile subscriber-best-effortexit! Configure the subscriber-triple-play QoS profile.qos-profile subscriber-triple-playsvlan nodevlan node scheduler-profile subscriber-weightsvlan node group EFvlan queue traffic-class best-effort scheduler-profile subscriber-best-effortvlan queue traffic-class video scheduler-profile subscriber-videovlan queue traffic-class voice scheduler-profile subscriber-voiceexit! Configure the ethernet-default QoS profile.qos-profile ethernet-defaultno ip nodeno ip queue traffic-class best-effortexit! Attach the QoS profile to the VLAN and S-VLAN subinterfaces.interface fastEthernet 9/0encapsulation vlanexitinterface fastEthernet 9/0.1svlan id 2 1ip address 192.1.1.1 255.255.255.0interface fastEthernet 9/0.2svlan id 2 2ip address 192.2.1.1 255.255.255.0exitinterface fastEthernet 9/0.3svlan id 2 3ip address 192.3.1.1 255.255.255.0exitQoS Client Configuration
From Global Configuration mode:
! Configure the max-subscriber-bandwidth, subscriber-weight, max-subscriber-video-bandwidth, and max-100Kbps-voice-calls global parameter instances.qos-parameter max-subscriber-bandwidth 2000000qos-parameter subscriber-weight 1qos-parameter max-subscriber-video-bandwidth 2000000qos-parameter max-100Kbps-voice-calls 1! Configure a global parameter instance for individual DSLAMs.interface fastEthernet 9/0svlan 1 qos-parameter max-subscriber-video-bandwidth 1000000exit! Configure the basic-data service for Subscriber 1.interface fastEthernet 9/0.1qos-profile subscriber-data-serviceexit! Configure the basic triple-play service for Subscriber 2.interface fastEthernet 9/0.2qos-parameter max-subscriber-bandwidth 6000000qos-parameter subscriber-weight 3qos-parameter max-subscriber-video-bandwidth 2000000qos-parameter max-100Kbps-voice-calls 1qos-profile subscriber-triple-playexit! Configure the enhanced triple-play service for Subscriber 3.interface fastEthernet 9/0.3qos-parameter max-subscriber-bandwidth 8000000qos-parameter subscriber-weight 6qos-parameter max-subscriber-video-bandwidth 3000000qos-parameter max-100Kbps-voice-calls 3qos-profile subscriber-triple-playexit