Configuration guideContents
- Service Groups
- Finding Feature Information
- Restrictions for Service Groups
- Information About Service Groups
- Service Instances and Service Groups
- How to Configure Service Groups
- Creating a Service Group
- Adding or Deleting Service Group Members
- Deleting a Service Group
- Verifying the Service Group Configuration
- Adding or Deleting a Subinterface from a Service Group
- Verifying the Subinterface Configuration
- Configuration Examples for Service Groups
- Example Creating a Service Group
- Example Adding Service Instance Members to a Service Group
- Example Adding Subinterfaces to a Service Group
- Example Deleting Service Instance Members from a Service Group
- Example Deleting Subinterfaces from a Service Group
- Example Deleting a Service Group
- Example Verifying the Service Group Configuration
- How to Configure Service-group Support on Aggregate Port-channel
- Adding Service Instance Members to a Service Group
- Deleting Service Instance Members from a Service Group
- Configuration Examples for Service-group on Aggregate Port-channel
- Example: Adding Service Instance Members to a Service Group
- Example: Deleting Service Instance Members to a Service Group
- Service Groups
- Additional References
- Feature Information for Service Groups
Service Groups
This feature provides the ability to apply an aggregate QoS service policy across multiple VLAN subinterfaces or service instances that are on the same physical interface. The Service Group feature allows network administrators to create service groups, add members (such as service instances) to those service groups, and apply service policies to the groups. The service policies contain the aggregate features (such as traffic policing and queueing) that can be applied to the groups. These service policies are in compliance with the Service-Level Agreement (SLA) negotiated between the service provider and the subscribers.
Finding Feature Information
Your software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Restrictions for Service Groups
Only EFP service instances, routed sub-interfaces and aggregate port-channel sub-interfaces can be added as members of service groups.
Each service instance or sub-interface can belong to only one service group at time.
The service group must exist before any member can join the group.
All members of a service group must reside on the same physical interface or same aggregate port-channel interface.
Sub-interfaces or service instances that are members of a service group cannot have a QoS policy applied to the interfaces, even if the service group does not have a QoS policy applied.
MPOL is not supported on aggregate port-channel when policy is applied on aggregated port-channel main interface, port-channel sub-interface cannot be attached by any policy, or be configured as a member of a service-group.
Sub-interface belongs to service group and sub-interface applied with service-policy cannot be configured on the same aggregate port-channel simultaneously.
Each sub-interface belongs to only one service group at a time.
Interfaces that are a member of a service group cannot have a QoS policy applied.
A batch configuration including both "define service-group" and "add sub-interface to service-group" may result in membership error, and vice versa in the unconfiguration.
So it is recommended to define the service-group before adding subinterfaces or service instances to it, and removing them from the service-group before deleting the service-group or deleting the subinterfaces or service instances.
Information About Service Groups
Service Instances and Service Groups
A service instance is a configuration object (container) that holds all management and control plane attributes and parameters that apply to that service instance on a per-port basis. Different service instances that correspond to the same Ethernet Virtual Connection (EVC) must share the same name. Service instances are associated with a global EVC object through their shared name.
The Service Groups feature allows you to create service groups and apply aggregate features to those service groups. Service groups are created with input and output policies. Members join these groups by configuring the group ID in their configuration.
Make note of the following actions when enabling the service group feature:When disabling the service group feature:
A service group sub-interface or service instance must be unbound from the service group interface before the service member interface is deleted.
A service group sub-interface or service instance unbound from the service group interface before the service group interface is deleted.
A QoS policy must be removed from the service group interface before the service group interface is deleted.
How to Configure Service Groups
Creating a Service Group
Before You BeginProcedure
In this procedure, you need to specify the name of a QoS policy to be attached to the service group. The QoS policy must already exist.
Adding or Deleting Service Group Members
ProcedureDeleting a Service Group
ProcedureVerifying the Service Group Configuration
Procedure
Command or Action Purpose
Step 1 enable
Example:Device> enableEnables privileged EXEC mode.
Step 2 show running-config service-group
Example:Device# show running-config service-group(Optional) Displays the running service-group configuration.
Step 3 show service-group {service-group-identifier | all}
Example:Device# show service-group all(Optional) Displays service-group configuration information for one or all service groups.
Step 4 show service-group interface type number
Example:Device# show service-group interface gigabitethernet 3/1(Optional) Displays service-group membership information by interface.
Enter the interface type and number.
Step 5 show service-group stats
Example:Device# show service-group stats(Optional) Displays service-group statistical information.
Step 6 show service-group state
Example:Device# show service-group state(Optional) Displays state information about service groups.
Step 7 show service-group traffic-stats
Example:Device# show service-group traffic-stats(Optional) Displays traffic statistics for all the members of a service group.
The information displayed is the combined total of the traffic statistics for all members.
Step 8 show policy-map interface type number service group {service-group-identifier
Example:Device# show policy-map interface gigabitEthernet 9/5 service group(Optional) Displays policy-map information for service groups.
Enter the interface type and number.
Step 9 show policy-map target service-group {service-group-identifier}
Example:Device# show policy-map target service-group 1(Optional) Displays policy-map information for service groups that have members attached to the specified interface.
Enter the service group identifier.
Step 10 show ethernet service instance [detail]
Example:Device# show ethernet service instance detail(Optional) Displays information about the service instances.
Note To display the service group number, use the detail keyword.
Step 11 clear service-group traffic-stats
Example:Device# clear service-group traffic-stats(Optional) Clears the traffic statistics for the service group.
Note Clearing the traffic statistics for the service group does not clear the traffic statistics for the group members. To clear the traffic statistics for group members, use the clear ethernet service instance command. For more information about the clear ethernet service instance command, see the Cisco IOS Carrier Ethernet Command Reference .
Step 12 debug service-group {all | error | feature | group | interface | ipc | member | qos | stats}
Example:Device# debug service-group qos(Optional) Debugs service-group events and errors.
Adding or Deleting a Subinterface from a Service Group
Procedure
Command or Action Purpose
Step 1 enable
Example:Device> enableEnables privileged EXEC mode.
Step 2 configure terminal
Example:Device# configure terminalEnters global configuration mode.
Step 3 interface type number
Example:Device(config)# interface GigabitEthernet 1/1/0.30Device(config)# interface range GigabitEthernet 1/1/0.30 - GigabitEthernet 1/1/0.36Configures a subinterface and enters subinterface configuration mode.
or
Configures a range of subinterfaces and enters subinterface configuration mode.
Step 4 group service-group-identifier
Example:Device(config-subif)# group 20Number of the service group to which the subinterfaces will be added.
Step 5 no group service-group-identifier
Example:Device(config-subif)# no group 30(Optional) Number of the service group from which the subinterfaces will be deleted.
Enter the service group number.
Step 6 exit
Example:Device(config-subif)# exit(Optional) Returns to interface configuration mode.
Step 7 end
Example:Device(config-subif)# end(Optional) Returns to privileged EXEC mode.
Verifying the Subinterface Configuration
Procedure
Command or Action Purpose
Step 1 enable
Example:Device> enableEnables privileged EXEC mode.
Step 2 show running-config service-group
Example:Device# show running-config service-group(Optional) Displays the running service-group configuration.
Step 3 show service-group {service-group-identifier | all}
Example:Device# show service-group all(Optional) Displays service-group configuration information for one or all service groups.
Step 4 show service-group interface type number
Example:Device# show service-group interface gigabitethernet 3/1(Optional) Displays service-group membership information by interface.
Enter the interface type and number.
Step 5 show policy-map target service-group service-group-identifier
Example:Device# show policy-map target service-group 1(Optional) Displays the policy-map information for all service groups or the specified service group.
Enter the target and service group.
Step 6 show service-group stats
Example:Device# show service-group stats(Optional) Displays service-group statistical information.
Step 7 show service-group state
Example:Device# show service-group state(Optional) Displays state information about service groups.
Step 8 show service-group traffic-stats
Example:Device# show service-group traffic-stats(Optional) Displays the traffic statistics for all the members of a service group.
The information displayed is the combined total of the traffic statistics for all members.
Step 9 clear service-group traffic-stats
Example:Device# clear service-group traffic-stats(Optional) Clears the traffic statistics for the service group.
Note Clearing the traffic statistics for the service group does not clear the traffic statistics for the group members. To clear the traffic statistics for group members, use the clear ethernet service instance command. For more information about the clear ethernet service instance command, see the Cisco IOS Carrier Ethernet Command Reference.
Step 10 debug service-group {all | error | feature | group | interface | ipc | member | qos | stats}
Example:Device# debug service-group qos(Optional) Debugs service-group events and errors.
Configuration Examples for Service Groups
Example Deleting Service Instance Members from a Service Group
In the following example, service instance 300 will be deleted from service group 30 on a port channel:
Device> enable Device# configure terminal Device(config)# interface GigabitEthernet 1/0.56 or Device(config-if)# service instance 300 ethernet Device(config-if-srv)# no group 30 Device(config-if-srv)# endExample Verifying the Service Group Configuration
This section contains sample output from the show policy-map target service-groupcommand. The show policy-map target service-group command displays policy-map information for service groups.
Note
This command is one of several that you can use to verify the service-group configuration. For additional commands that can be used, see Verifying the Service Group Configuration.
In the following example, service group 1 is specified. Service group 1 contains two policy maps (service policies), policy1 and policy2. Traffic policing is enabled in the EVC policy map. Traffic queuing is enabled in the ISG policy map.
Device# show policy-map target service-group 1 GigabitEthernet9/5: Service Group 1 Service-policy input: policy1 Class-map: class-default (match-any) 0 packets, 0 bytes 5 minute offered rate 0000 bps, drop rate 0000 bps Match: any police: cir 200000 bps, bc 6250 bytes conformed 0 packets, 0 bytes; actions: transmit exceeded 0 packets, 0 bytes; actions: drop conformed 0000 bps, exceed 0000 bps Service-policy output: policy2 Counters last updated 00:00:34 ago Class-map: class-default (match-any) 0 packets, 0 bytes 5 minute offered rate 0000 bps, drop rate 0000 bps Match: any Queueing queue limit 131072 packets (queue depth/total drops/no-buffer drops) 0/0/0 (pkts output/bytes output) 0/0 bandwidth remaining ratio 2How to Configure Service-group Support on Aggregate Port-channel
Adding Service Instance Members to a Service Group
Procedure
Command or Action Purpose
Step 1 enable
Example:Device> enableEnables privileged EXEC mode.
Enter your password if prompted.
Step 2 configure terminal
Example:Device# configure terminalEnters global configuration mode.
Step 3 service-group service-group-identifier
Example:Device(config)# service-group 10Adds a service group and all members to the service group.
Step 4 service-policy {input | output} policy-map-name
Example:Device(config-service-group)# service-policy input policy1 Device(config-service-group)# service-policy output policy2(Optional) Attaches a policy map to the service group, in either the ingress (input) or egress (output) direction.
Step 5 platform qos port-channel-aggregate port-channel-number
Example:Device(config)# platform qos port-channel-aggregate 1Enables aggregate mode for a port-channel interface.
Note It must be configured before a port-channel is created. Enable aggregate mode before a port-channel interface is attached by policy, or subinterfaces of the port-channel to be added to a service-group.
Step 6 interface port-channel port-channel-number
Example:Device(config)# interface port-channel 1Enters interface configuration mode to configure a specific port channel.
Step 7 interface interface
Example:Device(config)# interface g0/0/0Configures physical interface as a member link of the port-channel.
Step 8 channel-group number
Example:Device(config)# channel-group 1Adds the physical interface to the port-channel 1 as a member link.
Step 9 interface port-channel port-channel-number.subinterface-number
Example:Device(config)# interface port-channel 1.10Enters interface configuration mode to configure a specific port channel subinterface.
Step 10 encapsulation dot1Q vlan-id second-dot1q vlan-id
Example:Device(config-subif)# encapsulation dot1Q 10 second-dot1q 11Defines the matching criteria to map Q-in-Q ingress frames on the port-channel subinterface.
Note Configuring second-dot1q is optional.
Step 11 group service-group-identifier
Example:Device(config-subif)# group 10Adds the port-channel sub interface to the specified service-group.
Step 12 end
Example:Device(config-subif)# endReturns to privileged EXEC mode.
Deleting Service Instance Members from a Service Group
Procedure
Command or Action Purpose
Step 1 enable
Example:Device> enableEnables privileged EXEC mode.
Enter your password if prompted.
Step 2 configure terminal
Example:Device# configure terminalEnters global configuration mode.
Step 3 interface port-channel port-channel-number.subinterface-number
Example:Device(config)# interface port-channel 1.10Enters interface configuration mode to configure a specific port channel subinterface.
Step 4 no group service-group-identifier
Example:Device(config-subif)# no group 10Removes the port-channel sub-interface from the service group specified by the number.
Step 5 no service-group service-group-identifier
Example:Device(config-subif)# no service-group 10Deletes a service group.
Note All members should be removed from the service group first.
Step 6 end
Example:Device(config)# endReturns to privileged EXEC mode.
Configuration Examples for Service-group on Aggregate Port-channel
Example: Adding Service Instance Members to a Service Group
Device> enable Device# configure terminal Device(config)# service-group 10 Device(config-service-group)# service-policy input policy1 Device(config-service-group)# service-policy output policy2 Device(config)# platform qos port-channel-aggregate 1 Device(config)# interface port-channel 1 Device(config)# interface g0/0/0 Device(config-if)# channel-group 1 Device(config)# interface port-channel 1.10 Device(config-subif)# encapsulation dot1Q 10 second-dot1q 11 Device(config-subif)# group 10 Device(config-subif)# endService Groups
This feature provides the ability to apply an aggregate QoS service policy across multiple VLAN subinterfaces or service instances that are on the same physical interface. The Service Group feature allows network administrators to create service groups, add members (such as service instances) to those service groups, and apply service policies to the groups. The service policies contain the aggregate features (such as traffic policing and queueing) that can be applied to the groups. These service policies are in compliance with the Service-Level Agreement (SLA) negotiated between the service provider and the subscribers.
Additional References
Related Documents
Related Topic
Document Title
QoS commands: complete command syntax, command modes, command history, defaults, usage guidelines, and examples.
Cisco IOS Quality of Service Solutions Command Reference
Debug commands: complete command syntax, command modes, command history, defaults, usage guidelines, and examples.
Cisco IOS Debug Command Reference
MQC, policy maps
"Applying QoS Features Using the MQC" module
Service instance configuration information and concepts
Cisco IOS Carrier Ethernet Configuration Guide
Service instance commands
Cisco IOS Carrier Ethernet Command Reference
MIBs
Technical Assistance
Description
Link
The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password.
Feature Information for Service Groups
The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Table 1 Feature Information for Service Groups Feature Name
Releases
Feature Information
Service Groups
Cisco IOS XE Release 3.15S
The Service Groups feature provides the ability to apply an aggregate QoS service policy across multiple VLAN subinterfaces or service instances that are on the same physical interface.
In Cisco IOS Release XE Release 3.15S, this feature was supported on Cisco ASR 1000 Series Aggregation Services Routers, Cisco ISR 4000 Series Integrated Services Routers, and Cisco CSR 1000V Cloud Services Routers.
Service-group on Aggregate Port-channel Subinterface
Cisco IOS XE Denali 16.3.1.
The Service-group on Aggregate Port-channel Subinterface feature allows network administrators to add aggregate port-channel subinterface to the service groups, In Cisco IOS XE Release 16.3, this feature was implemented on the Cisco ASR 1000 Series Aggregation Services Routers.
Copyright © 2018, Cisco Systems, Inc. All rights reserved.