background image

Page 31 | AlliedWare Plus™ OS: Overview of QoS

Use the following commands to configure this policing scenario:

mls qos enable

class-map cm1

 match access-group 3000

class-map cm2

 match access-group 3001

policy-map pm1

 class cm1

  police twin-rate 1000 200 5000 1000 exceed-action drop

 class cm2

  police single-rate 3000 200 4000 exceed-action drop

interface port1.3.1-1.3.3

 service-policy input pm1

The restricted traffic types are identified by ACLs (which could match, for example, by 
address or TCP/UDP port).

Summary of Contents for AlliedWare Plus

Page 1: ...bandwidth limits set for that class map The packets are marked with the colour that was applied to them and at various points in the QoS process decisions on the packets fate can be made on the basis...

Page 2: ...ing 9 Details of the component processes and how to configure them 10 QoS elements policy maps class maps policers matches 10 Diagram of the overall QoS process flow 11 Enabling QoS globally 12 Initia...

Page 3: ...the relative priorities of the egress queues In general the main aim of all the processes in the QoS system is to work out which egress queue a particular packet should be put into There are several...

Page 4: ...m z Bandwidth Class This parameter can take on the values green yellow or red Essentially it is an indicator of whether the packet is deemed to have been within the acceptable bandwidth limit set for...

Page 5: ...can be forwarded on the basis of that information The mapping of the User Priority value to an egress queue is configurable so the administrator can decide for example to send frames with a Priority v...

Page 6: ...in four ways z the VLAN tag user priority z the Differentiated Services Code Point DSCP z the bandwidth class the packet is assigned to z the egress queue the packet is assigned to A packet can have...

Page 7: ...class of green If a policer starts to exceed its limit then the packets in that policer are given a temporary bandwidth class of yellow If it starts seriously exceeding its limits then the packets tem...

Page 8: ...estion occurs with progressively more and higher priority packets dropped until congestion is eased This is useful for TCP flows because the sender will slow the rate of transmission when it detects a...

Page 9: ...red to ensure that more packets per second are sent from the higher priority queues than from the lower priority queues To allow for flexibility in scheduling it is possible to use different schedulin...

Page 10: ...the class map applies to and policers to set the bandwidth parameters for that type of traffic Class maps can also have other settings such as whether to premark traffic The following figure summarise...

Page 11: ...ess Queue Policing Marker updated Temporary Bw Class Drop red packets Routing Red Curves Egress Queuing Untagged packets set egress queue based on mls qos queue and CoS based on mls qos cos Markers up...

Page 12: ...the following command in global configuration mode awplus config mls qos map cos queue cos to queue You need to enter this command for every CoS that you want to re map To see the mapping use the foll...

Page 13: ...tailed information about ACLs and the match commands see the Note How To Configure Hardware Filters on SwitchBlade x908 x900 12XT S and x900 24 Series Switches Premarking Premarking happens after ingr...

Page 14: ...effect is that all packets that match the class map and policy map are marked with the values specified with these commands Using the mark dscp map The data structure that drives the premarking proce...

Page 15: ...pmap c trust dscp The trust dscp command indicates that this class map will use the mark dscp map for pre marking Note that you can t use the command trust dscp at the same time as the commands set c...

Page 16: ...he process of counting the number of packets that the switch processes and determining their level of conformance with their bandwidth limits The AlliedWare Plus OS enables you to police ports and dif...

Page 17: ...multiple class maps policy maps or ports You create them in global configuration mode and then attach them to the required class maps They are identified by a name The following commands give an exam...

Page 18: ...ts that have exceeded the average bandwidth has exceeded the minimum burst size but not yet reached the maximum burst size then the bandwidth class is yellow If the data rate for the policer is above...

Page 19: ...ccumulation of total bits that have exceeded the minimum bandwidth has exceeded the minimum burst size or if the data rate is above the maximum bandwidth and the accumulation of total bits that have e...

Page 20: ...bytes and the number of bytes of each colour It also shows the number of bytes dropped by the policer Dropped bytes will equal red bytes if the policer has an exceed action of drop otherwise it will a...

Page 21: ...r port1 0 1 Interface port1 0 1 Class map default Aggregate Bytes 0 Green Bytes 0 Yellow Bytes 0 Red Bytes 0 Dropped Bytes 0 Aggregate name examplePolicer Class map cmap1 cmap2 port1 0 1 cmap1 cmap2 p...

Page 22: ...Do this by entering one of the commands awplus config pmap c police single rate average bandwidth minimum burstsize maximum burstsize exceed action policed dscp transmit awplus config pmap c police t...

Page 23: ...ctions describe how to configure random detect and tail drop mode but first you need to consider the default settings Default settings If you do not configure queue shaping z 10 100 1000M ports use ta...

Page 24: ...the following figure z Minimum threshold defines the length that the queue must reach before the packets start being dropped z Maximum threshold defines the length that the queue must reach before the...

Page 25: ...s awplus config interface interface name awplus config if mls qos queue set 1 4 random detect If you enter this command without configuring the RED curve settings see Configuring RED curve settings on...

Page 26: ...Specifying the drop probability To specify the drop probability for each bandwidth class use the command awplus config mls qos queue set 1 4 queues list drop probability green drop prob yellow drop pr...

Page 27: ...owing actions z If the green maximum threshold is exceeded all packets will be dropped z If the yellow maximum threshold is exceeded all yellow and red packets will be dropped z If the red maximum thr...

Page 28: ...th queues queue list You can specify bandwidth in kilobits e g 2000 or 2000k megabits e g 2m or gigabits e g 2g Although this command begins with the keyword wrr queue you can use it to configure queu...

Page 29: ...understand the relationship between a queue s wrr queue egress rate limit command and a port s egress rate limit command These two commands actually control two different aspects of the egress schedul...

Page 30: ...policer separately counts packets that match each class map This scenario uses ordinary policers Use this type of scenario when you need to police according to traffic type and user For example this s...

Page 31: ...roup 3000 class map cm2 match access group 3001 policy map pm1 class cm1 police twin rate 1000 200 5000 1000 exceed action drop class cm2 police single rate 3000 200 4000 exceed action drop interface...

Page 32: ...s if groups of user ports on the switch were connected to different departments of the business and the company policy gave each department a collective limit on the amount of certain traffic types th...

Page 33: ...idth to different users connected to the switch For example you could have a VoIP phone and a PC connected to each of the user ports on the switch and the uplink port connected to an ISP that has cont...

Page 34: ...0 exceed action drop class map cm1 match ip dscp 35 class map cm2 match access group 3000 policy map pm1 class cm1 police aggregate aggr1 class cm2 police single rate 3000 200 4000 exceed action drop...

Page 35: ...limit on the level of traffic they can send to addresses that are out on the Internet and also put a limit on the amount of traffic they can send to some particular internal service such as an interna...

Page 36: ...egate pol1 class cm2 police aggregate pol1 policy map pm2 class cm1 police aggregate pol2 class cm2 police aggregate pol2 interface port1 0 1 service policy input pm1 interface port1 0 2 service polic...

Page 37: ...ively policed to the levels stipulated in the contract and then delivered to the ISP via the uplink port However there are probably multiple different types of traffic that come under the heading of r...

Page 38: ...another for example packets ingress a SwitchBlade x908 via a port in one XEM and egress via a port in another XEM then a new factor comes into play This new factor is the switching fabric that passes...

Page 39: ...egress queue of the switching instances maps to q0 is the fabric queue number for switching instance queue 0 and so on For example the following command awplus config mls qos map input queue 1 2 0 0 0...

Page 40: ...eduling the queues within the fabric The queues within the fabric can be grouped into one set of strict priority queues and one set of weighted round robin queues Like the queues in the switching inst...

Reviews: