Configure QoS on x900-24, x900-12, and SwitchBlade x908 Series Switches



Similar documents
AlliedWare Plus OS How To. Configure QoS to prioritize SSH, Multicast, and VoIP Traffic. Introduction

AlliedWare Plus TM OS How To. Configure QoS to Conform to Standard Marking Schemes. Introduction. Contents

Configure Policy-based Routing

Configure WAN Load Balancing

This How To Note describes one possible basic VRRP configuration.

AlliedWare TM OS How To. Use DHCP Snooping and ARP Security to Block ARP Poisoning Attacks. Introduction. Related How To Notes

Apply Firewall Policies And Rules

Chapter 5 Configuring QoS

Improving Quality of Service

What information will you find in this document?

Allow Public and Private Address Access to Servers at a Service Provider Client Site. What information will you find in this document?

Configure A Secure School Network Based On 802.1x

Configuring QoS. Understanding QoS CHAPTER

In fact, the three most common reasons for a network slow down are: congestion data corruption collisions

Configure the Firewall VoIP Support Service (SIP ALG)

Configuring Auto-QoS

Configuring QoS CHAPTER

Cisco - Catalyst 2950 Series Switches Quality of Service (QoS) FAQ

What information will you find in this document?

PC-over-IP Protocol Virtual Desktop Network Design Checklist. TER Issue 2

AlliedWare Plus OS How To Use sflow in a Network

Configuring QoS in a Wireless Environment

AutoQoS for Medianet

AlliedWare TM OS How To. Create a VPN between an Allied Telesis Router and a Microsoft Windows XP 1 Client, Without Using NAT-T.

Configuring QoS in a Wireless Environment

What information will you find in this document?

- QoS and Queuing - Queuing Overview

Configuring QoS and Per Port Per VLAN QoS

How To Create A VPN Between An Allied Telesis Router And A Microsoft Windows XP 1 Client, Without Using NAT-T

Best Practice Recommendations for VLANs and QoS with ShoreTel

The Basics. Configuring Campus Switches to Support Voice

Configure A Secure Network Solution For Schools. What information will you find in this document?

Routing. Static Routing. Fairness. Adaptive Routing. Shortest Path First. Flooding, Flow routing. Distance Vector

configure WAN load balancing

Configuring Quality of Service

Technology Overview. Class of Service Overview. Published: Copyright 2014, Juniper Networks, Inc.

How To Provide Qos Based Routing In The Internet

Configuring Quality of Service

How To Configure Some Basic OSPF Routing Scenarios. Introduction. Technical Guide. List of terms

Advanced QoS White Paper

x900 Switch Access Requestor

QoS Queuing on Cisco Nexus 1000V Class-Based Weighted Fair Queuing for Virtualized Data Centers and Cloud Environments

- QoS Classification and Marking -

Optimizing Converged Cisco Networks (ONT)

Configuration Examples p priority and QoS

Configuring QoS. Finding Feature Information. Prerequisites for QoS

Quality of Service (QoS) for Enterprise Networks. Learn How to Configure QoS on Cisco Routers. Share:

Cisco VoIP CME QoS Labs by Michael T. Durham

How To. Achieve Quality of Service over a low-speed WAN that has a non-qos capable gateway device. Introduction

Can PowerConnect Switches Be Used in VoIP Deployments?

This topic lists the key mechanisms use to implement QoS in an IP network.

How To Behind A Dynamically-Assigned Public IP Address

What s New in VMware vsphere 5.5 Networking

QoS: Color-Aware Policer

QoS (Quality of Service)

IBM. Tivoli. Netcool Performance Manager. Cisco Class-Based QoS Technology Pack. User Guide. Document Revision R2E1

Management Software. Web Browser User s Guide AT-S106. For the AT-GS950/48 Gigabit Ethernet Smart Switch. Version Rev.

Tested Solution: Network Configuration and Inventory Management using Upgrade Manager

AlliedWare TM OS How To. Create a VPN between an Allied Telesis Router and a Microsoft Windows 7 Client, with or without NAT-T.

PCoIP Protocol Network Design Checklist. TER Issue 3

L2 / L3 Switches. Quality of Service (QoS) Configuration Guide

Lab Introduction to the Modular QoS Command-Line Interface

Quality of Service (QoS) on Netgear switches

The example in this Note uses Linux for both the access controller (RADIUS server) and the supplicant (client).

Voice Over IP Performance Assurance

Cisco Quality of Service and DDOS

Configuring MPLS QoS

Here is a summary of the recommendations that have been reviewed and approved by NETS engineers:

Quality of Service Analysis of site to site for IPSec VPNs for realtime multimedia traffic.

IP videoconferencing solution with ProCurve switches and Tandberg terminals

Configuring Network QoS

How To Use An At9924 For A Long Distance Connection On A Powerline On A Ppltd Network (Powerline) On A Superfast Network (Networking) On An At 9924 (Powerplt) On The P

How To Switch In Sonicos Enhanced (Sonicwall) On A 2400Mmi 2400Mm2 (Solarwall Nametra) (Soulwall 2400Mm1) (Network) (

QoS in PAN-OS. Tech Note PAN-OS 4.1. Revision A 2011, Palo Alto Networks, Inc.

Easy Smart Configuration Utility

Three Key Design Considerations of IP Video Surveillance Systems

Application Note. Configuring WAN Quality of Service for ShoreTel. Quality of Service Overview. Quality of Service Mechanisms. WAN QoS for ShoreTel 5

AutoQoS. Prerequisites for AutoQoS CHAPTER

How to Keep Video From Blowing Up Your Network

Configuring NetFlow-lite

Solutions Guide. Ethernet-based Network Virtualization for the Enterprise

IP SAN Best Practices

"Charting the Course to Your Success!" QOS - Implementing Cisco Quality of Service 2.5 Course Summary

Implementing Cisco Quality of Service QOS v2.5; 5 days, Instructor-led

Ensuring End-to-End QoS for IP Applications. Chuck Darst HP OpenView. Solution Planning

Quality of Service. Traditional Nonconverged Network. Traditional data traffic characteristics:

Create a VPN between an Allied Telesis and a SonicWALL Router, with NAT-T

Ethernet Overhead Accounting

Chapter 7 Lab 7-1, Configuring Switches for IP Telephony Support

MS Series: VolP Deployment Guide

Chapter 4 Rate Limiting

This topic describes the basic purpose and function of AutoQoS. One command per interface to enable and configure QoS

EX SERIES ETHERNET SWITCHES: QOS-ENABLING THE ENTERPRISE

How To Lower Data Rate On A Network On A 2Ghz Network On An Ipnet 2 (Net 2) On A Pnet 2 On A Router On A Gbnet 2.5 (Net 1) On An Uniden Network On

Allied Telesis provide virtual customer networks

The network configuration for these examples is shown in the following figure. Load Balancer 1. public address

Case Study Ministry of Agriculture, France

Transcription:

AlliedWare Plus TM OS How To Configure QoS on x900-24, x900-12, and SwitchBlade x908 Series Switches Introduction This document describes some generic configuration examples for Quality of Service (QoS) on the AlliedWare Plus OS What information will you find in this document? This document provides information in the following sections: 1 Setting the egress rate on page 2 2 Setting the priority on a packet on page 7 3 Setting the egress queues on page 10 Full QoS scenario - tiered services for a single customer on page 14 Which product and software version does this information apply to? This How To Note applies to the following Allied Telesis switches, running the AlliedWare Plus OS software version 522 or later: SwitchBlade x908 x900 series C613-16112-00 REV D wwwalliedtelesiscom

1 Setting the egress rate 1 Setting the egress rate Example 1-1: Setting the egress limit of a switch port Commands: interface port1024 egress-rate-limit 25m These commands will set the egress limit of port 24 to 25Mbps The granularity is 651kbps Page 2 AlliedWare Plus OS How To Note: QoS

1 Setting the egress rate Example 1-2: setting the maximum bandwidth limit per ingress port Ingress rate limiting cannot be configured on the port per se, but is achieved by creating a QoS policy with a bandwidth limited traffic class, and applying that policy to each port Ingress ports 1-20 police single-rate 128 3000 5000 action drop-red policy-map pmap2 police single-rate 256 3000 5000 action drop-red policy-map pmap3 police single-rate 64 3000 5000 action drop-red policy-map pmap20 police single-rate 512 3000 5000 action drop-red interface port101 interface port102 service-policy input pmap2 interface port103 service-policy input pmap3 interface port1020 service-policy input pmap20 This set of commands will set the ingress rate of traffic received per port from ports 1 to 20 to various different values Note that the class-map matches EVERY packet The granularity of the rate limiting is around 1 kbps Page 3 AlliedWare Plus OS How To Note: QoS

1 Setting the egress rate Example 1-3: Setting the maximum bandwidth limit for each user In example 1-1, we configured an egress rate on ports But the granularity of that bandwidth limiting was multiples of 651kbps It is possible to achieve finer-grained limiting using the devices advanced QoS capability In this example we assume that there is one device with a known IP address, attached to each port Policers will be configured to provide bandwidth limiting Internet connection Users connected to the switch downloading files from the Internet (19216811-192168125) access-list 3011 permit ip any 19216811/32 access-list 3012 permit ip any 19216812/32 access-list 3013 permit ip any 19216813/32 match access-group 3011 class-map cmap2 match access-group 3012 class-map cmap3 match access-group 3013 police single-rate 256 3000 5000 action drop-red class cmap2 police single-rate 256 3000 5000 action drop-red class cmap3 police single-rate 256 3000 5000 action drop-red interface port1024 This set of commands will set the total egress limit (download traffic) for each user to 256kbps The granularity is around 1kbps Page 4 AlliedWare Plus OS How To Note: QoS

1 Setting the egress rate Example 1-4: Setting the maximum bandwidth limit for each IP subnet This example is very similar to example 1-3, except that it is assumed that a whole subnet is attached to each port, not just a single device on each port Internet connection Users connected to the switch downloading files from the Internet (19216810/24-192168230/24) access-list 3011 permit ip any 19216810/24 access-list 3012 permit ip any 19216820/24 access-list 3013 permit ip any 19216830/24 match access-group 3011 class-map cmap2 match access-group 3012 class-map cmap3 match access-group 3013 police single-rate 256 3000 5000 action drop-red class cmap2 police single-rate 256 3000 5000 action drop-red class cmap3 police single-rate 256 3000 5000 action drop-red interface port1024 This set of commands will set the total egress limit (download traffic) for each subnet to 256kbps The granularity is around 1kbps Page 5 AlliedWare Plus OS How To Note: QoS

1 Setting the egress rate Example 1-5: Setting the maximum bandwidth limit of VLANs Ingress ports 1-20 (these ports are carrying a mixture of VLAN2, VLAN3 and VLAN4 packets, either with or without VLAN tags) class-map cmap2 match vlan 2 class-map cmap3 match vlan 3 class-map cmap4 match vlan 4 mls qos aggregate-police agg1 single-rate 256 3000 5000 action drop-red mls qos aggregate-police agg2 single-rate 256 3000 5000 action drop-red mls qos aggregate-police agg3 single-rate 256 3000 5000 action drop-red class cmap2 police aggregate agg1 class cmap3 police aggregate agg2 class cmap4 police aggregate agg3 interface port101-1020 Page 6 AlliedWare Plus OS How To Note: QoS

2 Setting the priority on a packet 2 Setting the priority on a packet Example 2-1: Setting the Layer 2 (VLAN/8021p) priority per ingress port Here we assign different 8021p values to packets arriving on different ports These values are also known as the Layer 2 (L2) or VLAN priority Ingress ports 1-20 (these ports MAY be carrying a mixture of packets from different VLANs, either with or without VLAN tags) set cos 6 policy-map pmap2 set cos 5 policy-map pmap3 set cos 4 interface port101 interface port102 service-policy input pmap2 interface port103 service-policy input pmap3 Page 7 AlliedWare Plus OS How To Note: QoS

2 Setting the priority on a packet Example 2-2: Setting the Layer 2 (VLAN/8021p) priority per VLAN Ingress ports 1-20 (these ports MAY be carrying a mixture of VLAN2, VLAN3, and VLAN4 packets either with or without VLAN tags) class-map cmap2 match vlan 2 class-map cmap3 match vlan 3 class-map cmap4 match vlan 4 class cmap2 set cos 6 class cmap3 set cos 5 class cmap4 set cos 4 interface port101-1020 This set of commands will set the Layer 2 priority of VLAN2, VLAN3 and VLAN4 traffics packets, received on ports 1 to 20, to 6, 5 and 4 respectively Page 8 AlliedWare Plus OS How To Note: QoS

2 Setting the priority on a packet Example 2-3: Setting the Layer 3 (TOS/DCSP) priority per ingress port Use the same configuration provided in Example 2-1 on page 7, but change the following line: set cos <cos-value> to set dscp <dscp-value> Example 2-4: Setting the Layer 3 (TOS/DSCP) priority per VLAN Use the same configuration provided in Example 2-2 on page 8, but change the following line: set cos <cos-value> to set dscp <dscp-value> Page 9 AlliedWare Plus OS How To Note: QoS

3 Setting the egress queues 3 Setting the egress queues In this section we look at methods for directing certain packets into certain queues on the egress port Example 3-1: Setting the egress queue according to the L2 priority of the incoming packet The priority-to-queue map is a straightforward method for assigning packets to egress queues on the basis of the packets 8021p values Ingress ports 1-20 (these ports MAY be carrying a mixture of packets from different VLAN packets either with or without VLAN tags) mls qos map cos-queue 0 to 2 mls qos map cos-queue 1 to 3 mls qos map cos-queue 2 to 1 mls qos map cos-queue 3 to 0 mls qos map cos-queue 4 to 4 mls qos map cos-queue 5 to 5 mls qos map cos-queue 6 to 6 mls qos map cos-queue 7 to 7 interface port101-port1020 mls qos queue 2 Command settings The map cos-queue commands in the above example set the mapping between the VLAN Tag User Priorities of the packets and the egress queues Priorities 0 to 7 are mapped to queues 2, 3, 1, 0, 4, 5, 6 and 7 respectively The Interface mode command sets the incoming ports to send untagged packets to queue number 2, which means the untagged packets will use the same queue as the tagged packets with a User Priority of 1 Notes: The cos-queue map does not operate until you have entered the command this means that packets will not be mapped to queues until this occurs It is also possible for packets to be priority tagged This means that the packets contain a VLAN tag with VID=0, but with a priority value set in the 8021p field of the tag The cos-queue map treats these packets like any other tagged packets, and will map them to the queue that corresponds to their 8021p value Page 10 AlliedWare Plus OS How To Note: QoS

3 Setting the egress queues Example 3-2: Setting the egress queue according to the DSCP value of the incoming packet The premark-dscp map allows you to specify a new queue for traffic based on the DSCP value of the incoming packet The traffic you want to prioritize this way must be processed by a class that has trust dscp applied to it Ingress ports 1-20 (these ports MAY receive a mixture of packets with different DSCP values) mls qos map premark-dscp 12 to new-queue 1 mls qos map premark-dscp 24 to new-queue 2 mls qos map premark-dscp 27 to new-queue 3 mls qos map premark-dscp 35 to new-queue 4 mls qos map premark-dscp 40 to new-queue 5 mls qos map premark-dscp 49 to new-queue 6 trust dscp interface port101-1020 This will result in the queue mappings in the following table DSCP value Queue 12 1 24 2 27 3 35 4 40 5 49 6 All others Default value as set in the cos-queue map Page 11 AlliedWare Plus OS How To Note: QoS

3 Setting the egress queues Example 3-3: Setting the egress queue according to the ingress port Ingress ports 1-20 (these ports MAY be carrying a mixture of packets from different VLAN packets either with or without VLAN tags) set queue 6 policy-map pmap2 set queue 5 policy-map pmap3 set queue 4 interface port101 interface port102 service-policy input pmap2 interface port103 service-policy input pmap3 This set of commands will set the egress queue of any traffic received from port 1 to egress queue 6, from port 2 to egress queue 5 etc Page 12 AlliedWare Plus OS How To Note: QoS

3 Setting the egress queues Example 3-4: Configuring WRR for egress queues This example is used for configuring WRR on egress queues according to the ingress port of the traffic Ingress ports 1-3 (these ports MAY be carrying a mixture of packets from different VLAN packets either with or without VLAN tags) set queue 6 policy-map pmap2 set queue 5 policy-map pmap3 set queue 4 interface port101 interface port102 service-policy input pmap2 interface port103 service-policy input pmap3 interface port1024 wrr-queue group 1 weight 6 queues 4 wrr-queue group 1 weight 12 queues 5 wrr-queue group 1 weight 24 queues 6 This set of commands will set the egress queue of any traffic received from port 1 to egress queue 6, from port 2 to egress queue 5 and from port 3 to egress queue 4 And on egress, the WRR algorithm will do the following: for every 4 packets from queue 6, 2 packets will leave queue 5 and 1 packet will leave queue 4 Page 13 AlliedWare Plus OS How To Note: QoS

Full QoS scenario - tiered services for a single customer Full QoS scenario - tiered services for a single customer In this section, we will build up a relatively complex QoS configuration to support a scenario requiring quite precise control over the traffic passing through the switch The scenario is an ISP providing connectivity for a customer, and offering different levels of service for different types of traffic The customer is connected to port 1 of the switch, and the uplink to the ISP is on port 24 of the switch ISP uplink to the ISP Customer LAN Step 1 - Set the egress bandwidth limiting The service offered by the ISP puts a limit on the total bandwidth of traffic that the customer can send to the ISP This is achieved by setting a maximum bandwidth on the uplink port: interface port1024 egress-rate-limit 10m Step 2 - Give better service to some types of traffic than to others The deal offered to the customer is that their traffic will be treated as belonging to three categories, and each category of traffic will be given a different level of service: Gold traffic will be limited to, say, 2Mbps, but the ISP will guarantee delivery of the traffic across their network, with a low latency Silver traffic will have a much higher limit, but when congestion occurs, it will be throttled back in favour of Gold traffic, if necessary The ISP will guarantee to deliver up to, say 5Mbps of Silver traffic across its network 90% of the time, but will give no guarantees about latency Bronze traffic will also have a high burst limit, but when congestion occurs, will be throttled back in favour of Gold traffic, and will share the remaining bandwidth with Silver traffic in a Weighted Round Robin fashion The ISP makes no guarantees at all with regard to delivery of Bronze traffic across their network; it will be delivered on a best-effort basis Page 14 AlliedWare Plus OS How To Note: QoS

Full QoS scenario - tiered services for a single customer Identify the types of traffic The different categories of traffic will be identified by the DSCP values in the packets' headers It is up to the customer to mark the packets with the appropriate DSCP values The DSCP values belonging to the different traffic categories are: Gold 40 Silver 30 Bronze 0 The class maps to match these DSCP values are: match dscp 0 class-map cmap2 match dscp 30 class-map cmap3 match dscp 40 Put the different categories of trafffic into different queues This involves creating a policy-map, assigning the 3 class maps, and assigning the policy-map to a port set queue 1 class cmap2 set queue 2 class cmap3 set queue 6 interface port101 Set the required properties on the egress queues What is required is that: Gold traffic ALWAYS has precedence over Silver or Bronze traffic So, when a Gold packet arrives at the egress port, it is transmitted immediately, irrespective of how many Silver or Bronze packets might be queued up When there are Silver and Bronze packets queued up, they are transmitted according to a Weighted Round Robin (WRR) scheme Page 15 AlliedWare Plus OS How To Note: QoS

Full QoS scenario - tiered services for a single customer This is achieved by ensuring that the egress queue to which Gold traffic is directed to is a priority queue, and the egress queues to which the silver and bronze traffic are directed are WRR queues So, we need to specify the queue types of queues 1, 2, and 6 on port 24 The relative weights to give to Silver and Bronze traffic are set by specifying the WRR weight for their queues For example, to give a 4:1 ratio of Silver to Bronze traffic: interface port1024 priority-queue 6 wrr-queue group 1 weight 6 queues 1 wrr-queue group 1 weight 24 queues 2 Step 3 - set the bandwidth limits The Gold traffic must be strictly limited to 2Mbps This is achieved by configuring a maxbandwidth on that traffic class, and dropping bandwidthclass 3 traffic: police single-rate 2000 15000 20000 action drop-red For silver traffic, there is preferential treatment for the first 5Mbps of traffic So, when there is congestion, you want to still be getting 5Mbps of Silver traffic through, if possible This is achieved by putting bandwidth limits on both Silver and Bronze traffic, and using RED curves to shape the throughput back to those limits when congestion occurs class cmap2 police single-rate 5000 25000 30000 action policed-dscp-transmit class cmap3 police single-rate 10000 100000 125000 action policed-dscp-transmit mls qos queue-set 1 queues 1 threshold 20000 50000 5000 10000 2000 6000 mls qos queue-set 1 queues 2 threshold 40000 60000 7000 12000 5000 10000 interface port1024 mls qos queue-set 1 random-detect The action configured on the policers for each of the classes cmap2 and cmap3 is policed-dscptransmit That means that QoS passes the packets to the policed-dscp map for processing If there are no entries in the policed-dscp map configured to alter the queue, DSCP, or priority of the packets, then all packets (green, yellow, and red) are passed straight through to be candidates for admission into the egress queues In uncongested conditions, all packets are admitted into the egress queues and then transmitted In congested conditions, as the lengths of the queues build up, the RED curves will admit green packets into the egress queues, in preference to yellow and red packets Page 16 AlliedWare Plus OS How To Note: QoS

Full configuration script mls qos queue-set 1 queues 1 threshold 20000 50000 5000 10000 2000 6000 mls qos queue-set 1 queues 2 threshold 40000 60000 70000 120000 5000 10000 match dscp 0! class-map cmap2 match dscp 30! class-map cmap3 match dscp 40! class default set queue 1 police single-rate 2000 15000 20000 action drop-red class cmap2 set queue 2 police single-rate 5000 25000 30000 policed-dscp-transmit class cmap3 set queue 3 police single-rate 10000 100000 125000 policed-dscp-transmit interface port101 interface port1024 egress-rate-limit 10416 mls qos queue-set 1 random-detect wrr-queue group 1 weight 6 queues 1 wrr-queue group 1 weight 24 queues 2 USA Headquar ters 19800 Nor th Cr eek Parkwa y Suite 100 Bothell WA 98011 USA T: +1 800 424 4284 F: +1 425 481 3895 Eur opean Headquar ters Via Motta 24 6830 Chiasso Switzerland T: +41 91 6976900 F: +41 91 6976911 Asia-Pacific Headquar ters 11 T ai Seng Link Singapor e 534182 T: +65 6383 3832 F: +65 6383 3830 www alliedtelesiscom 2009 Allied Tel esis, Inc All rights reserved Information in this document is subject to change without notice Allied Telesis is a trademark or registered trademark of Allied Telesis, Inc in the United States and other countries All company names, logos, and product designs that are trademarks or registered trademarks are the property of their respective owners C613-16112-00 REV D