As an alternative to configuring individual parameters for ATM data PVCs, you can access ATM VC Class Configuration mode to configure a class of attributes for an ATM data PVC. A VC class is a set of attributes for a virtual circuit (VC) that can include the service category, encapsulation method, F5 OAM options, and Inverse ARP.
After you configure the VC class, you then apply the attributes in the class as a group by assigning the VC class to one of the following:
VC class assignments are valid only for ATM data PVCs created with the pvc command. Assigning a VC class to a PVC created with the atm pvc command, or to a control (ILMI) PVC, has no effect. For information about creating a data PVC by using the pvc command, see Creating Data PVCs.
![]() |
Note: For information about the total number of VC classes supported on the router, see JUNOSe Release Notes, Appendix A, System Maximums. |
Using VC classes to configure and assign attributes to ATM data PVCs provides the following benefits:
In a typical scenario, you might group subscribers based on their OAM and traffic requirements, and then create a VC class for each subscriber group. For example, you might create two VC classes: premium-subscriber-class and economy-subscriber-class.
In premium-subscriber-class, you might enable F5 OAM VC integrity (with the oam-pvc manage command), and configure a traffic class that has a higher scheduling priority, such as CBR (with the cbr command). Conversely, in economy-subscriber-class, you might retain the default setting that disables F5 OAM VC integrity, and configure a traffic class that has a lower scheduling priority, such as UBR with or without a PCR (with the ubr command). By assigning each VC class to the appropriate interfaces or individual circuits, you can group and manage the PVCs associated with the VC class based on the network requirements of the subscribers they serve.
If the OAM or traffic requirements change for a particular subscriber group, you can simply reconfigure the VC class associated with the PVCs for that subscriber group. This method is easier and less time-consuming than having to modify the attributes for a large number of PVCs by using individual CLI commands.
Modifications to the attributes in a VC class affect PVCs that are already associated with this VC class as well as PVCs subsequently created for this class.
Precedence levels play an important role in determining how the router assigns the attribute values for statically created and dynamically created PVCs that have associated VC classes.
For PVCs that are statically created, the router determines the PVC attribute values according to the following precedence levels, in order from highest precedence to lowest precedence:
For PVCs that are dynamically created, the router determines the PVC attribute values according to the following precedence levels, in order from highest precedence to lowest precedence:
For examples that illustrate how precedence levels affect the assignment of VC classes, see Precedence Level Examples for Assigning VC Classes.
To help you better understand these examples, we recommend that you first read the following sections to learn how to configure and assign VC classes:
The following considerations apply to using ATM VC classes when you upgrade to the current JUNOSe software release from a lower-numbered JUNOSe software release:
pvc 2 0/33
atm pvc 2 0 33 aal5snap 0 0 0
For PVCs previously created in the lower-numbered release by using the pvc command, the show configuration command displays configuration information using the pvc command format, as described previously.
For information about how to use the show configuration command, see chapter Managing the System in JUNOSe System Basics Configuration Guide.
To make the most efficient use of the VC class feature when you upgrade to the current JUNOSe software release, we recommend that you follow these steps:
To configure a VC class, you issue the vc-class atm command to create and name the VC class. The vc-class atm command accesses ATM VC Class Configuration mode, from which you configure a set of attributes to apply to an ATM data PVC.
Table 9 lists the commands that you can use in ATM VC Class Configuration mode to configure a set of attributes for a data PVC. These commands are identical to the commands in ATM VC Configuration mode described in Configuring Individual ATM PVC Parameters. For more information about the syntax of each command, see the JUNOSe Command Reference Guide.
Table 9: Commands to Configure VC Class Attributes
|
cbr |
oam-pvc |
|
encapsulation |
oam retry |
|
inarp |
ubr |
|
oam ais-rdi |
vbr-nrt |
|
oam cc |
vbr-rt |
For example, the following commands configure two VC classes: premium-subscriber-class and dsl-subscriber-class. You must issue the exit command from ATM VC Class Configuration mode for each VC class configuration to take effect.
- ! Configure VC class premium-subscriber-class.
- host1(config)#vc-class atm premium-subscriber-class
- host1(config-vc-class)#encapsulation aal5autoconfig
- host1(config-vc-class)#cbr 200
- host1(config-vc-class)#oam-pvc manage 60
- host1(config-vc-class)#oam ais-rdi 5
- host1(config-vc-class)#exit
- ! Configure VC class dsl-subscriber-class.
- host1(config)#vc-class atm dsl-subscriber-class
- host1(config-vc-class)#encapsulation aal5autoconfig
- host1(config-vc-class)#ubr
- host1(config-vc-class)#exit
- host1(config)#
In premium-subscriber-class:
In dsl-subscriber-class:
To configure an ATM VC class with systemwide default values, you can issue the vc-class atm command followed immediately by the exit command. For example, the following commands create a VC class named default-vc-class. Because no attribute values are explicitly specified in default-vc-class, the router applies the default values for the commands listed in Table 9. For information about the default value for each command, see the command descriptions in this section.
- ! Configure VC class with default values.
- host1(config)#vc-class atm default-subscriber-class
- host1(config-vc-class)#exit
- host1(config)#
To verify the VC class configuration, use the show atm vc-class command. For information about how to use this command, see show atm vc-class.
cbr
- host1(config-vc-class)#cbr 15000
- host1(config-vc-class)#exit
encapsulation
- host1(config-vc-class)#encapsulation aal5mux
ip
- host1(config-vc-class)#exit
inarp
- host1(config-vc-class)#inarp 5
- host1(config-vc-class)#exit
oam ais-rdi
- host1(config-vc-class)#oam ais-rdi 5 10
- host1(config-vc-class)#exit
oam cc
- host1(config-vc-class)#oam cc source
- host1(config-vc-class)#exit
- host1(config-vc-class)#oam cc segment sink
- host1(config-vc-class)#exit
oam-pvc
- host1(config-vc-class)#oam-pvc manage 15
- host1(config-vc-class)#exit
oam retry
- host1(config-vc-class)#oam retry 5 6 3
- host1(config-vc-class)#exit
ubr
- host1(config-vc-class)#ubr 5000
- host1(config-vc-class)#exit
vbr-nrt
- host1(config-vc-class)#vbr-nrt 50000 10000
150
- host1(config-vc-class)#exit
vbr-rt
- host1(config-vc-class)#vbr-rt 200000 30000
400
- host1(config-vc-class)#exit
vc-class atm
- host1(config)#vc-class atm dsl-subscriber-class
- host1(config-vc-class)#exit
To assign a previously configured VC class to an individual ATM data PVC, you use the class-vc command from ATM VC Configuration mode. Issuing this command applies the set of attributes configured in the specified VC class to the ATM data PVC.
![]() |
Note: The class-vc command is valid only for a data PVC created with the pvc command. It has no effect for data PVCs created with the atm pvc command, or for control (ILMI) PVCs. For information about creating a data PVC by using the pvc command, see Creating Data PVCs. |
For example, the following commands assign the VC class named premium-subscriber-class to the ATM data PVC with VCD 2, VPI 0, and VCI 200.
- ! Assign VC class premium-subscriber-class to PVC 2/0.200
- host1(config)#interface atm 2/0.200
- host1(config-subif)#pvc 200 0/200
- host1(config-subif-atm-vc)#class-vc premium-subscriber-class
- host1(config-subif-atm-vc)#exit
For those attributes that you do not explicitly specify for the ATM PVC, the router applies the values specified in the VC class. As explained in Precedence Levels, the values in a VC class assigned to an individual PVC take precedence over both of the following:
For examples that illustrate how precedence levels affect the assignment of VC classes, see Precedence Level Examples for Assigning VC Classes.
class-vc
- host1(config-subif-atm-vc)#class-vc dsl-subscriber-class
- host1(config-subif-atm-vc)#exit
To assign a previously configured VC class to an ATM major interface, you use the class-int command from Interface Configuration mode. Issuing this command applies the set of attributes in the specified VC class to the ATM data PVCs statically or dynamically created on this interface.
For example, the following commands assign the VC class named dsl-subscriber-class to an ATM major interface configured on slot 5, port 0.
- ! Assign VC class dsl-subscriber-class to ATM interface
5/0.
- host1(config)#interface atm 5/0
- host1(config-if)#class-int dsl-subscriber-class
- host1(config-if)#exit
For those attributes that you do not explicitly specify for an ATM PVC, the router applies the values specified in the VC class. As explained in Precedence Levels, the values in a VC class assigned to an ATM major interface have a lower precedence than both of the following:
This means that if a VC class is assigned to an individual PVC or ATM 1483 subinterface configured on the major interface, the attribute values configured in the VC class assigned to the PVC or subinterface override the attribute values configured in the VC class assigned to the major interface.
For examples that illustrate how precedence levels affect the assignment of VC classes, see Precedence Level Examples for Assigning VC Classes.
class-int
- host1(config-if)#class-int gold-subscriber-class
- host1(config-if)#exit
To assign a previously configured VC class to a static ATM 1483 subinterface, you use the class-int command from Subinterface Configuration mode. Issuing this command applies the set of attributes in the specified VC class to the ATM data PVCs statically or dynamically created on this subinterface.
For example, the following commands assign the VC class named premium-subscriber-class to an ATM 1483 subinterface configured on slot 5, port 0, subinterface 100.
- ! Assign VC class dsl-subscriber-class to ATM 1483
subinterface 5/0.100.
- host1(config)#interface atm 5/0.100
- host1(config-subif)#class-int premium-subscriber-class
- host1(config-subif)#exit
For those attributes that you do not explicitly specify for an ATM PVC, the router applies the values specified in the VC class. As explained in Precedence Levels, the values in a VC class assigned to an ATM 1483 subinterface take precedence over the values in a VC class assigned to an ATM major interface, but have a lower precedence than the values in a VC class assigned to an individual ATM PVC.
This means that if a VC class is assigned to a PVC configured on the subinterface, the attribute values configured in the VC class assigned to the individual PVC override the attribute values configured in the VC class assigned to the subinterface.
For examples that illustrate how precedence levels affect the assignment of VC classes, see Precedence Level Examples for Assigning VC Classes.
class-int
- host1(config-subif)#class-int silver-subscriber-class
- host1(config-subif)#exit
To assign a VC class to a base profile for a dynamic ATM 1483 subinterface, you can use the atm class-vc command from Profile Configuration mode. Issuing this command applies the set of attributes in the specified VC class to all bulk-configured VC ranges that are dynamically created from this profile.
For more information, see Configuring ATM 1483 Dynamic Subinterfaces in Configuring Dynamic Interfaces Using Bulk Configuration.
The examples in this section illustrate how the precedence level rules described in Precedence Levels affect the assignment of VC classes and PVC attribute values.
For all of these examples, assume that you have issued the following commands to configure a VC class named my-premium-class:
- host1(config)#vc-class atm my-premium-class
- host1(config-vc-class)#encapsulation aal5autoconfig
- host1(config-vc-class)#cbr 200
- host1(config-vc-class)#oam-pvc manage 60
- host1(config-vc-class)#oam ais-rdi 5
- host1(config-vc-class)#exit
Example 1 and Example 2 illustrate the effect of precedence levels when you assign the VC class my-premium-class to an individual PVC with VCD 200, VPI 0, and VCI 200. Example 3 illustrates how using the atm pvc command affects VC class assignment. Finally, Example 4 illustrates how modifications to a VC class affect PVC attributes applied through RADIUS.
Explicitly specified attribute values take precedence over attribute values specified in a VC class. As a result, the following commands cause the router to use the most recent explicitly specified value, UBR with a PCR of 200 Kbps, as the service category for this PVC instead of the service category specified in my-premium-class, CBR with a PCR of 200 Kbps. The router takes the values for the other attributes from the VC class my-premium-class.
- host1(config)#interface atm 2/0.200
- host1(config-subif)#pvc 200 0/200
- host1(config-subif-vc)#ubr 200
- host1(config-subif-vc)#class-vc my-premium-class
- host1(config-subif-vc)#exit
The following commands change the service category for the PVC to VBR-RT because this is the most recent explicitly specified value for this attribute. The router takes the values for the other attributes from the VC class my-premium-class, which is still assigned to the PVC.
- host1(config)#interface atm 2/0.200
- host1(config-subif)#pvc 200 0/200
- host1(config-subif-vc)#vbr-rt 200 150 200
- host1(config-subif-vc)#exit
The following commands cause the router to retain the VBR-RT service category for the PVC because it is still the most recent explicitly specified value for this attribute. The router takes the values for the other attributes from the VC class my-premium-class.
- host1(config)#interface atm 2/0.200
- host1(config-subif)#pvc 200 0/200
- host1(config-subif-vc)#class-vc my-premium-class
- host1(config-subif-vc)#exit
The following commands change the value for the encapsulation method in the VC class my-premium-class from aal5autoconfig to aal5snap. As a result, the router now uses aal5snap instead of aal5autoconfig as the encapsulation method for the PVCs to which this VC class is assigned.
- host1(config)#vc-class atm my-premium-class
- host1(config-vc-class)#encapsulation aal5snap
- host1(config-vc-class)#exit
The following commands, which attempt to assign the my-premium-class VC class to a PVC originally created with the atm pvc command, have no effect. The router interprets all attribute values specified with the atm pvc command as explicitly specified values, and therefore takes the values for these attributes from the atm pvc command instead of from the VC class. As a result, the router continues to use aal5mux ip as the encapsulation method for this PVC instead of the encapsulation method specified in the VC class my-premium-class.
- host1(config)#interface atm 2/0.300
- host1(config-subif)#atm pvc 300 0 300 aal5mux
ip
- host1(config-subif)#pvc 300 0/300
- host1(config-subif-vc)#class-vc my-premium-class
- host1(config-subif-vc)#exit
If RADIUS is configured to provide traffic parameters for PVCs, a more recent, explicitly specified change in the VC class associated with that PVC overrides the PVC values applied through RADIUS.
In the following example, assume that RADIUS has been configured to apply a service category of CBR with a PCR of 400 Kbps to the PVC. Initially, the PVC uses the service category configured in my-premium-class, CBR with a PCR of 200 Kbps. However, when the subscriber logs in through RADIUS, the router applies the RADIUS-configured service category, CBR with a PCR of 400 Kbps.
While the subscriber is still logged in, my-premium-class is modified to change the service category to CBR with a PCR of 600 Kbps. Because this VC class modification results in the most recent, explicitly specified value for the service category, the router now uses CBR with a PCR of 600 Kbps as the service category for the PVC instead of the service category configured through RADIUS.
- host1(config)#interface atm 2/0.200
- host1(config-subif)#pvc 200 0/200
- host1(config-subif-vc)#class-vc my-premium-class
- host1(config-subif-vc)#exit
- ! Subscriber logs in through RADIUS, which applies service
category of CBR
- ! with a PCR of 400 Kbps to PVC.
- host1(config)#vc-class atm my-premium-class
- host1(config-vc-class)#cbr 600
- host1(config-vc-class)#exit
- ! Router now applies service category of CBR with a PCR
of 600 Kbps to PVC.