hqos configuration - microchip...

13
July 2015 1 © 2015 Microsemi Corporation Application Note ENT-AN1118 HQoS Configuration This document provides examples on how to set up a Hierarchical Quality of Service (HQoS) using Industrial Command Line Interface (ICLI) commands. The different scheduling modes on the Serval 1 platform have been outlined to describe the possible configurations. This document is based on the ICLI configuration guide that describes the basic usage of the Microsemi ICLI and the QoS configuration guide that describes the basic usage of the QoS system. Table of Contents Configuring the Port Scheduler using HQoS With HQoS, the port scheduler can be configured in the following three different modes. Normal Basic Hierarchical The modes define the available QoS features and also influence resource usage. A frame is always enqueued only in a single scheduling queue, independent of the scheduling mode. Normal Scheduling Mode Normal is the default scheduling mode for all ports and is the only available mode for Serval configurations without HQoS support. Configuring the Port Scheduler using HQoS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 HQoS Configuration Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Upload: others

Post on 02-Mar-2021

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: HQoS Configuration - Microchip Technologyww1.microchip.com/downloads/en/Appnotes/VPPD-03993_ENT... · 2019. 10. 29. · HQoS Configuration 4 The following illustration shows the hierarchical

Application Note ENT-AN1118

HQoS Configuration

This document provides examples on how to set up a Hierarchical Quality of Service (HQoS) usingIndustrial Command Line Interface (ICLI) commands. The different scheduling modes on the Serval 1platform have been outlined to describe the possible configurations.

This document is based on the ICLI configuration guide that describes the basic usage of the MicrosemiICLI and the QoS configuration guide that describes the basic usage of the QoS system.

Table of Contents

Configuring the Port Scheduler using HQoSWith HQoS, the port scheduler can be configured in the following three different modes.

• Normal

• Basic

• Hierarchical

The modes define the available QoS features and also influence resource usage. A frame is alwaysenqueued only in a single scheduling queue, independent of the scheduling mode.

Normal Scheduling ModeNormal is the default scheduling mode for all ports and is the only available mode for Servalconfigurations without HQoS support.

Configuring the Port Scheduler using HQoS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1HQoS Configuration Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

July 2015 1

© 2015 Microsemi Corporation

Page 2: HQoS Configuration - Microchip Technologyww1.microchip.com/downloads/en/Appnotes/VPPD-03993_ENT... · 2019. 10. 29. · HQoS Configuration 4 The following illustration shows the hierarchical

HQoS Configuration HQoS Configuration

The following illustration shows the normal scheduling mode where Qn represents queue (QoS class) nand S represents a shaper.

The shapers after the queues are the queue shapers, and the rightmost shaper is the port shaper.

In normal mode, HQoS is disabled and all configurations of shapers and scheduler are handled by theregular QoS system.

Basic Scheduling ModeBasic mode supports fewer features than the normal mode but uses fewer resources. It is identical tonormal mode with the following exceptions.

• Only queues 6 and 7 have queue shapers (the circles with Sb).

• The queue shapers do not support excess bandwidth.

Figure 1 • Normal Scheduling Mode

SCHEDULER

Q7 S

Q6 S

Q5 S

Q4 S

Q3 S

Q2 S

Q1 S

Q0 S

S

2

Page 3: HQoS Configuration - Microchip Technologyww1.microchip.com/downloads/en/Appnotes/VPPD-03993_ENT... · 2019. 10. 29. · HQoS Configuration 4 The following illustration shows the hierarchical

Configuring the Port Scheduler using HQoSConfiguring the Port Scheduler using HQoS

The following illustration shows the basic scheduling mode.

In basic mode, HQoS is disabled, and all configurations of shapers and scheduler are handled by theregular QoS system.

Hierarchical Scheduling ModeHierarchical mode allows for HQoS configuration. HQoS ID 1 to HQoS ID n are the HQoS IDs that aremapped to the port. Non-Service is the traffic that is not mapped to an HQoS ID. Each isolated HQoS IDis essentially a basic mode port (with an HQoS shaper instead of a port shaper) with the same shaperand scheduler configuration options.

Figure 2 • Basic Scheduling Mode

SCHEDULER

Q7 Sb

Q6 Sb

Q5

Q4

Q3

Q2

Q1

Q0

S

33

Page 4: HQoS Configuration - Microchip Technologyww1.microchip.com/downloads/en/Appnotes/VPPD-03993_ENT... · 2019. 10. 29. · HQoS Configuration 4 The following illustration shows the hierarchical

HQoS Configuration HQoS Configuration

The following illustration shows the hierarchical scheduling mode.

The regular QoS system configures the port shaper, queue shapers, and schedules for non-servicetraffic.

By default, the port scheduler is configured for fair round-robin scheduling between each HQoS ID andnon-service traffic, but it can be weighted by configuring guaranteed bandwidths for the HQoS ID. Whenguaranteed bandwidth is configured for an HQoS ID, the remaining bandwidth of the port is equallydivided between the remaining HQoS IDs and non-service traffic.

Note: It is not possible to configure a guaranteed bandwidth for non-service traffic.

HQoS Configuration ExamplesFor more information about the models for the following ICLI configuration examples, see UnderstandingHQoS.

To configure any of the following examples, first use the following command to restore system defaults.

# reload defaults#HQoS is enabled on a port when the interface is configured in hierarchical scheduling mode.

# configure terminal! Configure Port 3 in Hierarchical Scheduling Mode(config)# interface GigabitEthernet 1/3(config-if)# hqos mode hierarchical(config-if)# end

Figure 3 • Hierarchical Scheduling Mode

Non-Service

HQoS ID 1

SCHEDULER

Q7 Sb

Q6 Sb

Q5

Q4

Q3

Q2

Q1

Q0

S

SCHEDULER

Q7 Sb

Q6 Sb

Q5

Q4

Q3

Q2

Q1

Q0

S

SCHEDULER

Q7 Sb

Q6 Sb

Q5

Q4

Q3

Q2

Q1

Q0

HQoS ID n

PORT

SCHEDULER

S

4

Page 5: HQoS Configuration - Microchip Technologyww1.microchip.com/downloads/en/Appnotes/VPPD-03993_ENT... · 2019. 10. 29. · HQoS Configuration 4 The following illustration shows the hierarchical

HQoS Configuration ExamplesHQoS Configuration Examples

#Web GUI configuration path: Configuration > HQoS > Ports

This can also be done after all the HQoS IDs and HQoS parameters are configured.

The following code snippet displays all possible HQoS commands with all possible parameters.

# configure terminal! Show all HQoS related commands(config)# hqos ??hqos <hqos_id> guaranteed-bandwidth <rate>hqos <hqos_id> interface <port_type> <port>hqos <hqos_id> queue-shaper queue <queue> <rate>hqos <hqos_id> shaper <rate>hqos <hqos_id> wrr <w0> <w1> [ <w2> [ <w3> [ <w4> [ <w5> [ <w6> [ <w7> ] ] ] ] ] ](config)# end#An HQoS ID is created using the following interface command.

# configure terminal! Create HQoS ID 1 on port 3(config)# hqos 1 interface GigabitEthernet 1/3(config)# end#Web GUI configuration path: Configuration > HQoS > HQoS Entries, Add New HQoS Entry

Port ShaperThe port shaper is configured using the same commands whether or not HQoS is enabled.

The following example lists the commands to enable the port level shaper on port 3 and set the shapingrate to 4000 kbps.

# configure terminal! Enable shaper on port 3 and set the rate to 4000 kbps(config)# interface GigabitEthernet 1/3(config-if)# qos shaper 4000(config-if)# end#

Figure 4 • HQos Port Configuration

Figure 5 • HQoS Entry Configuration

55

Page 6: HQoS Configuration - Microchip Technologyww1.microchip.com/downloads/en/Appnotes/VPPD-03993_ENT... · 2019. 10. 29. · HQoS Configuration 4 The following illustration shows the hierarchical

HQoS Configuration HQoS Configuration

Web GUI configuration path: Configuration > QoS > Port Shaping, Port No

HQoS ShaperThe following example lists the commands to enable the HQoS level shaper for HQoS ID 1 on port 3 andset the shaping rate to 4000 kbps.

# configure terminal! Enable HQoS shaper for HQoS ID 1 on port 3 and set the rate to 4000 kbps(config)# hqos 1 shaper 4000(config)# end#

Figure 6 • Port Shaper

6

Page 7: HQoS Configuration - Microchip Technologyww1.microchip.com/downloads/en/Appnotes/VPPD-03993_ENT... · 2019. 10. 29. · HQoS Configuration 4 The following illustration shows the hierarchical

HQoS Configuration ExamplesHQoS Configuration Examples

Web GUI configuration path: Configuration > HQoS > HQoS Entries, Configure

Non-service Queue ShaperThe non-service queue shapers are configured using the commands that configure the queue shaperswhen HQoS is disabled. When HQoS is enabled, only queue 6 and queue 7 have queue shapers.

The following example lists the commands to enable the non-service queue level shaper on queue 6 andqueue 7 on port 3 and set the shaping rates to 4000 kbps and 8000 kbps respectively.

# configure terminal! Enable non-service queue shapers on queues 6 and 7 on port 3 and set the rate to 4000 kbps for queue 6 and 8000 kbps for queue 7(config)# interface GigabitEthernet 1/3(config-if)# qos queue-shaper queue 6 4000(config-if)# qos queue-shaper queue 7 8000(config-if)# end#

Figure 7 • HQoS Shaper

77

Page 8: HQoS Configuration - Microchip Technologyww1.microchip.com/downloads/en/Appnotes/VPPD-03993_ENT... · 2019. 10. 29. · HQoS Configuration 4 The following illustration shows the hierarchical

HQoS Configuration HQoS Configuration

Web GUI configuration path: Configuration > QoS > Port Shaping, Port No

HQoS Queue ShaperOnly queues 6 and 7 have HQoS queue shapers.

The following example lists the commands to enable the HQoS queue level shaper for HQoS ID 1 onqueue 6 and queue 7 on port 3, and set the shaping rates to 4000 kbps and 8000 kbps respectively.

# configure terminal! Enable HQoS queue shapers on queues 6 and 7 for HQoS ID 1 on port 3 and set the rate to 4000 kbps for queue 6 and 8000 kbps for queue 7(config)# hqos 1 queue-shaper queue 6 4000(config)# hqos 1 queue-shaper queue 7 8000(config)# end#

Figure 8 • Non-service Queue Shaper

8

Page 9: HQoS Configuration - Microchip Technologyww1.microchip.com/downloads/en/Appnotes/VPPD-03993_ENT... · 2019. 10. 29. · HQoS Configuration 4 The following illustration shows the hierarchical

HQoS Configuration ExamplesHQoS Configuration Examples

Web GUI configuration path: Configuration > HQoS > HQoS Entries, Configure

Non-service SchedulerThe non-service scheduler is configured using the commands that configure the port scheduler whenHQoS is disabled.

The following example lists the commands to set the non-service scheduler mode to 6 Queues Weightedon port 3 with the below weights.

Queue 0: 10Queue 1: 10Queue 2: 20Queue 3: 20Queue 4: 20Queue 5: 20

# configure terminal! Set non-service scheduler mode to Weighted on port 3(config)# interface GigabitEthernet 1/3(config-if)# qos wrr 10 10 20 20 20 20(config-if)# end#

Figure 9 • HQoS Queue Shaper

99

Page 10: HQoS Configuration - Microchip Technologyww1.microchip.com/downloads/en/Appnotes/VPPD-03993_ENT... · 2019. 10. 29. · HQoS Configuration 4 The following illustration shows the hierarchical

HQoS Configuration HQoS Configuration

Web GUI configuration path: Configuration > QoS > Port Scheduler, Port No

HQoS SchedulerThe following example lists the commands to set the HQoS scheduler to 6 Queues Weighted for HQoSID 1 on port 3 with the below weights:

Queue 0: 10Queue 1: 10Queue 2: 20Queue 3: 20Queue 4: 20Queue 5: 20

# configure terminal! Set HQoS scheduler mode to Weighted for HQoS ID 1 on port 3(config)# hqos 1 wrr 10 10 20 20 20 20(config)# end#

Figure 10 • Non-service Scheduler

10

Page 11: HQoS Configuration - Microchip Technologyww1.microchip.com/downloads/en/Appnotes/VPPD-03993_ENT... · 2019. 10. 29. · HQoS Configuration 4 The following illustration shows the hierarchical

HQoS Configuration ExamplesHQoS Configuration Examples

Web GUI configuration path: Configuration > HQoS > HQoS Entries, Configure

HQoS Guaranteed BandwidthThe following example lists the commands to enable guaranteed bandwidth for HQoS ID 1 on port 3 andset the rate to 4000 kbps.

# configure terminal! Set the guaranteed bandwidth for HQoS ID 1 on port 3 to 4000 kbps(config)# hqos 1 guaranteed-bandwidth 4000(config)# end#

Figure 11 • HQoS Scheduler

1111

Page 12: HQoS Configuration - Microchip Technologyww1.microchip.com/downloads/en/Appnotes/VPPD-03993_ENT... · 2019. 10. 29. · HQoS Configuration 4 The following illustration shows the hierarchical

HQoS Configuration HQoS Configuration

Web GUI configuration path: Configuration > HQoS > HQoS Entries, Configure

Figure 12 • HQos Guaranteed Bandwidth

12

Page 13: HQoS Configuration - Microchip Technologyww1.microchip.com/downloads/en/Appnotes/VPPD-03993_ENT... · 2019. 10. 29. · HQoS Configuration 4 The following illustration shows the hierarchical

VPPD-03993. 1.5. July 2015

Microsemi makes no warranty, representation, or guarantee regarding the information contained herein orthe suitability of its products and services for any particular purpose, nor does Microsemi assume anyliability whatsoever arising out of the application or use of any product or circuit. The products soldhereunder and any other products sold by Microsemi have been subject to limited testing and should notbe used in conjunction with mission-critical equipment or applications. Any performance specifications arebelieved to be reliable but are not verified, and Buyer must conduct and complete all performance andother testing of the products, alone and together with, or installed in, any end-products. Buyer shall not relyon any data and performance specifications or parameters provided by Microsemi. It is the Buyer'sresponsibility to independently determine suitability of any products and to test and verify the same. Theinformation provided by Microsemi hereunder is provided “as is, where is” and with all faults, and the entirerisk associated with such information is entirely with the Buyer. Microsemi does not grant, explicitly orimplicitly, to any party any patent rights, licenses, or any other IP rights, whether with regard to suchinformation itself or anything described by such information. Information provided in this document isproprietary to Microsemi, and Microsemi reserves the right to make any changes to the information in thisdocument or to any products and services at any time without notice.

Power Matters.TM

Microsemi Corporation (Nasdaq: MSCC) offers a comprehensive portfolio of semiconductorand system solutions for communications, defense & security, aerospace and industrialmarkets. Products include high-performance and radiation-hardened analog mixed-signalintegrated circuits, FPGAs, SoCs and ASICs; power management products; timing andsynchronization devices and precise time solutions, setting the world's standard for time; voiceprocessing devices; RF solutions; discrete components; security technologies and scalableanti-tamper products; Ethernet solutions; Power-over-Ethernet ICs and midspans; as well ascustom design capabilities and services. Microsemi is headquartered in Aliso Viejo, Calif., andhas approximately 3,600 employees globally. Learn more at www.microsemi.com.

Microsemi Corporate HeadquartersOne Enterprise, Aliso Viejo,CA 92656 USA

Within the USA: +1 (800) 713-4113 Outside the USA: +1 (949) 380-6100Sales: +1 (949) 380-6136Fax: +1 (949) 215-4996E-mail: [email protected]

© 2015 Microsemi Corporation. Allrights reserved. Microsemi and theMicrosemi logo are trademarks ofMicrosemi Corporation. All othertrademarks and service marks are theproperty of their respective owners.