Example: QoS Parameter Configuration for IP Multicast Bandwidth Adjustment
In this example, a QoS administrator configures a QoS parameter definition to associate with the IP multicast bandwidth adjustment application.
The QoS administrator configures the parameter definition to perform the QoS adjustment on an ATM VC subscriber. By specifying the ip-multicast keyword with the qos-parameter-define command, the IP parameter instances are created when the Internet Group Management Protocol (IGMP) joins and leaves.
When you specify a controlled-interface type for atm-vc, the system explicitly creates a parameter instance at the ATM VC with a value that is equal to the sum of the IP adjustments above this interface. This parameter value is referred by a scheduler profile and a QoS profile to create the QoS scheduler hierarchy that adjusts the shared-shaping rate when IGMP joins and leaves.
This subscriber has data, voice, and video service with total subscriber bandwidth of 10 Mbps. Voice traffic is shaped at 192 Kbps and belongs to the strict priority group. Video traffic is provided by the IP multicast bandwidth adjustment application and its rate is configured in the bandwidth map.
Figure 61 shows the scheduler hierarchy built in this configuration.
![]()
Configuring Traffic Classes and Traffic-Class Groups
The QoS administrator configures the traffic classes and traffic-class groups for best-effort data and voice services. The QoS administrator does not need to configure a traffic class for the video service because it is transmitted through the IP multicast connection.
- Configure the traffic class named best-effort.
- Configure the traffic class named voice.
host1(config)#traffic-class voicehost1(config-traffic-class)#exithost1(config)#traffic-class best-efforthost1(config-traffic-class)#exit
- Configure a traffic-class group for low-latency expedited forwarding (EF) and add the traffic class for voice service into the traffic-class group EF.
- Configure the EF traffic-class group with strict-priority scheduling.
- Add the traffic class voice 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 class, best-effort, remains in the default traffic-class group.
Configuring the QoS Parameter Definition and Global Parameter Instance
The QoS administrator configures the QoS parameter definition and specifies the IP multicast bandwidth adjustment application. The QoS administrator must configure the parameter as hierarchical.
The QoS scheduler hierarchy is constructed when the subscriber logs on. However, because the parameter instance has not yet been created, the shared-shaping rate is undefined (that is, there is no shaping rate).
Therefore, the QoS administrator creates a global parameter instance to shape the subscriber to the desired bandwidth. The initial value is determined based on the application; in this example, the QoS administrator specifies 0 as the default.
- Configure the QoS parameter definition ipm, associate it with the ip-multicast application, and assign it as a hierarchical parameter.
- Configure a controlled-interface type of atm-vc.
- Configure the global parameter instance.
host1(config)#qos-parameter-define ipm application ip-multicast hierarchicalhost1(config-qos-parameter-define)#controlled-interface-type atm-vchost1(config-qos-parameter-define)#exithost1(config)#qos-parameter ipm 0Therefore, the initial shared-shaping rate is 10 Mbps (10 Mbps - ipm value of 0).
Reference the Parameter Definition Within a Scheduler Profile
The QoS administrator configures the scheduler profile for the ATM VC subscriber and configures the shared-shaping rate. When a scheduler profile references the parameter instance, it enables the IP multicast bandwidth adjustment application to adjust the subscriber bandwidth to account for the video traffic.
The QoS administrator then configures the scheduler profile to shape voice traffic.
- Configure the scheduler profile named vc-subscriber.
- Configure the shared-shaping rate by referencing an expression to limit the subscriber bandwidth to 10 Mbps.
host1(config)#scheduler-profile vc-subscriberhost1(config-scheduler-profile)#shared-shaping-rate 10000000 - ipm burst 50 milliseconds autohost1(config-scheduler-profile)#exit
- Configure the scheduler profile named 192K.
- Configure the shaping rate at 1920000.
host1(config)#scheduler-profile 192Khost1(config-scheduler-profile)#shaping rate 192000host1(config-scheduler-profile)#exitAdding the Scheduler Profiles to a QoS Profile
The IP multicast adjustment application is initialized when IGMP joins or leaves. The QoS administrator specifies the scheduler hierarchy by using a QoS profile rule that refers to a scheduler profile with a parameter expression.
- Create the QoS profile named ipm-adjusted.
- Configure a queue for ATM VC subinterfaces with the best-effort traffic class.
- Configure a queue for ATM VC subinterfaces with the voice traffic class and reference the 192K scheduler profile.
- Configure a node for ATM VC subinterfaces and reference the scheduler profile vc-subscriber.
host1(config)#qos-profile ipm-adjustedhost1(config-qos-profile)#atm-vc queue traffic-class best-efforthost1(config-qos-profile)#atm-vc queue traffic-class voice scheduler-profile 192khost1(config-qos-profile)#atm-vc node scheduler-profile vc-subscriberhost1(config-qos-profile)#exitAttaching the Parameter Definition to an Interface
The QoS administrator creates a logical interface and attaches the parameter definition. The scheduler hierarchy is created when the QoS administrator creates the interface.
- Configure the ATM interface in slot 2, port 0 as a point-to-point ATM interface.
- Configure the ATM PVC with aal5snap encapsulation.
- Attach the QoS profile vc-subscriber to the subinterface.
- Configure the IP address for the ATM subinterface.
host1(config)#interface atm 2/0host1(config-if)#interface atm 2/0.1 point-to-pointhost1(config-subif)#atm pvc 100 0 100 aal5snaphost1(config-subif)#qos-profile ipm-adjustedhost1(config-subif)#ip address 1.1.1.1 255.255.255.0IP Multicast Bandwidth Adjustment
When an IGMP join occurs, the IP multicast bandwidth adjustment application creates the parameter instance ipm for the IP interface and the ATM VC subinterface. Because the shared-shaping rate of the ATM VC references the ipm parameter, the rate is recalculated. If the imp parameter has a value of 2 Mbps, the resulting shared-shaping rate is 8 Mbps (10 Mbps - 2 = 8 Mbps).
When another IGMP join occurs, the IP multicast bandwidth adjustment application recalculates the value for parameter ipm and configures it to another value (for example, 7 Mbps). The system readjusts the ipm at the ATM VC and readjusts the shared-shaping rate. If the voice traffic is 100 Kbps, then the best-effort traffic is 2.9 Mbps.
When an IGMP leave occurs, the IP multicast bandwidth adjustment application configures the ipm parameter instance with a new value and readjusts the shared-shaping rate.
Monitoring the Configuration
After completing the configuration, the QoS administrator can monitor it by issuing show commands.
- To display the traffic classes for best-effort and voice, issue the show traffic-class command.
host1#show traffic-classfabrictraffic fabric strictclass weight priority----------- ------ --------best-effort 8 novoice 8 no- To display the traffic-class group, issue the show traffic-class-group command.
host1#show traffic-class-grouptraffic-class-group EF auto-strict-prioritytraffic-class voice- To display the scheduler profile settings for vc-subscriber and 192K, issue the show scheduler-profile command.
host1#show scheduler-profileshaping shaping strict assuredscheduler rate burst weight priority rate------------- ------- ------- ------ -------- -------default <none> <none> 8 no <none>vc-subscriber <none> <none> 8 no <none>192k 192000 default 8 no <none>shared sharedshared shaping shaping sharedscheduler shaping rate burst constituent shaping mode------------- -------------- -------- ----------- ---------------default <none> <none> <none> <none>vc-subscriber 10000000 - ipm 50 bytes <none> simple implicit192k <none> <none> <none> <none>- To display the attachments on all QoS profiles, including ipm-adjust, 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)ipm-adjust atm-vc ATM2/0.1Port attachments: 4Interface attachments: 1Not attached: 0- To display the settings for the ipm-adjust QoS profile, issue the show qos-profile command.
host1#show qos-profile ipm-adjustqos-profile ipm-adjust:t-class interface rule traffic scheduler queue drop statisticsgroup type type class profile profile profile profile------- --------- ----- ----------- ------------- ------- ------- ----------atm-vc node vc-subscriberatm-vc queue best-effort default default default defaultEF atm-vc queue voice 192k default default default- To display the settings for the ipm QoS parameter definition, issue the show qos-parameter-define command.
host1#show qos-parameter-definecontrolled instance subscriberparameter interface interface interface valuename types types types range--------- -------------- --------- ---------- ------ipm atm-vc <none> <none> <none>parametername properties--------- -------------------------------------ipm ip-multicast-adjustment, hierarchical- To display global and interface attachments on the ipm QoS parameter instance, issue the show qos-parameter references command.
host1#show qos-parameter referencesparameterinterface name value--------- --------- -------global ipm 0Global parameter instances: 1Parameter instances reported: 1host1#show qos-parameter references interface atm 1/0.1parameter instanceinterface name value Type--------------- --------- ----- ------------atm-vc ATM1/0.1 ipm 200 hierarchicalip ATM1/0.1 ipm 200 ip-multicastExplicit parameter instances: 0Heirarchical parameter instances: 1IP multicast parameter instances: 1Parameter instances reported: 2- To display the queue forwarding rates for the ATM VC and IP interfaces on the ATM interface in slot 2, port 0, issue the show egress-queue rates command.
host1#show egress-queue rates interface atm 2/0.1traffic forwarded aggregate minimum maximuminterface class rate drop rate rate rate--------------- ----------- --------- --------- ------- --------atm-vc ATM2/0.1 voice 0 0 192000 192000ip ATM2/0.1 best-effort 0 0 0 10000000Queues reported: 2Queues filtered (under threshold): 0* Queues disabled (no rate period): 0**Queues disabled (no resources): 0Total queues: 2- To display the shared shaper settings for the ATM VC on the ATM interface in slot 2, port 0, issue the show qos shared-shaper command.
host1#show qos shared-shaper interface atm 2/0.1sharedshaping shapinginterface resource rate rate other--------------- ------------------------ -------- ------- -------------atm-vc ATM2/0.1 A atm-vc node 10000000 rate 10000000A atm-vc queue EF voice 192000Total shared shapers: 1Total constituents: 2Total shared shaper failovers: 0Compound shared shapers are supported.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, Chapter 2, Command-Line Interface.
From Global Configuration mode:
! Create the voice traffic class.traffic-class voiceexittraffic-class best-effortexittraffic-class-group EF auto-strict-prioritytraffic-class best-effortexit! Create the ipm QoS parameter definition.qos-parameter-define ipm application ip-multicast hierarchicalcontrolled-interface-type atm-vcexit! Create a global parameter instance of the ipm QoS parameter.qos-parameter ipm 0! Configure the vc-subscriber and 192K scheduler profiles.scheduler-profile vc-subscribershared-shaping-rate 10000000 - ipm burst 50 milliseconds autoexitscheduler-profile 192Kshaping-rate 192000exit! Add the scheduler profiles to the ipm-adjusted QoS profile.qos-profile ipm-adjustedatm-vc queue traffic-class best-effortatm-vc queue traffic-class voice scheduler-profile 192katm-vc node scheduler-profile vc-subscriberexit! Attach the parameter definition to an interface.interface atm 2/0.1 point-to-pointatm pvc 100 0 100 aal5snapqos-profile ipm-adjustedip address 1.1.1.1 255.255.255