Pete’s Packet

I don’t think I can. I know I can!

Archive for the ‘QOS’ Category

QoS Feature Support Table (netcraftsmen.net)

Posted by Peter Kurdziel on January 15, 2010

QoS Function LAN Ports OSM WAN Ports (includes GE-WAN ports, but not GigabitEthernet ports) Flex WAN/ MQC
Classification

Classify traffic based on CoS, or trusted values for IPP, DSCP or MPLS EXP, and by ACL.

Starting w/ 12.2(18)SXE, can support re-marked versions with the command “platform ip features sequential

Classify IP traffic based on IPP, DSCP or MPLS EXP and by ACL. COS is not applicable.

Starting w/ 12.2(18)SXE, can support re-marked versions with the command “platform ip features sequential

Classify traffic based on:

  • ACL
  • ATM Cell Loss Priority bit
  • BGP index
  • CoS
  • DSCP
  • Frame Relay DLCI value
  • Frame-Relay DE bit
  • IPP
  • MAC-layer address
  • MPLS EXP
  • Packet length
  • Protocols supported by NBAR
  • VLAN ID
Marking

Can set DSCP, which includes IPP. Also EXP.

CoS is set indirectly on output.

Can also mark via policing:

police zzz conform-action set-prec-transmit

police zzz conform-action set-dscp-transmit

police zzz conform-action set-mpls-exp-imposition-transmit

Can set DSCP, which includes IPP. Also EXP.

CoS is not applicable.

Can also mark via policing:

police zzz conform-action set-prec-transmit

police zzz conform-action set-dscp-transmit

police zzz conform-action set-mpls-exp-imposition-transmit

Can set DSCP, which includes IPP. Also EXP.

CoS is not applicable.

Can also mark via policing:

police zzz conform-action set-prec-transmit

police zzz conform-action set-dscp-transmit

police zzz conform-action set-mpls-exp-imposition-transmit

Matching (or “Filtering”)

Supports single match command, either:

match access-group

match ip dscp

match ip precedence

match mpls experimental

With 12.2(18)SXE and later, also supports

match any

match dscp

match precedence

match protocol ip

match protocol ipv6

Also supports multiple match commands in SXE release.

Supports:

 

match access-group

match ip dscp

match ip precedence

match mpls experimental

With 12.2(18)SXE and later, also supports

match any

match vlan

Supports:

match access-group

match bgp-index

match class-map

match cos

match dscp

match destination-address

match dscp

match fr-dlci

match ip dscp

match ip precedence

match mpls experimental

match mpls

match precedence

match protocol

match source-address

Police

Configure with the police bps command

Supported in inbound and outbound direction

Supports all LAN port match types

Configure with the police bps command

Supported in inbound and outbound direction

Supports all OSM WAN port match types

Configure with the police bps command

Supported in inbound and outbound direction

Supports all FlexWAN port match types

Trust Untrusted by default, CoS set to 0

Can define the port CoS with the mls qos cos port-cos command

Trust DSCP by default

Can configure to trust CoS, DSCP, or IPP (ingress CoS always set to 0)

Can NOT define the port CoS with the mls qos cos port-cos command

Trust DSCP by default

Can change DSCP by marking

 

Can NOT define the port CoS with the mls qos cos port-cos command

Shaping

Not supported.

Note: Can use “shape” command in an outbound policy, but this policy does not shape traffic!

Inbound and outbound shaping supported using “shape average bps” command.

Does NOT support ACL for matching in class map, but supports other OSM WAN match types

Note: Can NOT review data in “show mls qos ip” results.

Outbound shaping supported using the “shape average bps” and “shape peak bps” commands for outbound traffic.

Cannot use “shape” command inbound

Bandwidth or “CBWFQ”

Not supported

Note: can be applied to interface, no error message provided, but not shown in “show mls qos ip” listing.)

Configure with either

bandwidth kbps

or the

bandwidth percent percentage

command in the outbound direction.

Does NOT support ACL for matching in class map, but supports other OSM WAN match types.

Note: Can NOT review data in “show mls qos ip” results

Configure with either

bandwidth kbps

or the

bandwidth percent percentage

command, in either the inbound or outbound direction.

Supports all FlexWAN port match types

Supported on physical interface interface if it is in default queueing mode.

Hierarchical Shaping Not supported

Supported for output policies only

Can only have class default in parent layer

Child policy does not support marking with set command

Does NOT support ACL for matching in class map, but supports other OSM WAN match types

Use bandwidth and priority in child policy

Supported for output policies only

Child policy does not support marking with set command

Use bandwidth and priority in child policy

WRED

Supported on main interface, configure with wrr-queue random-detect min-threshold queue_id

Supported on enhanced OSMs

Supported in output direction

Configure with random-detect under policy map class

Supported in output direction

Configure with random-detect under policy map class

Verification

Can use

show policy interface

show mls qos ip

Can use

show policy interface

show mls qos ip (for PFC QoS, not for shaping and CBWFQ)

Can use

show policy interface

Source: http://www.netcraftsmen.net/resources/archived-articles/425-qos-for-the-cisco-6500-revisited.html

Posted in QOS | Leave a Comment »

QOS Shaping vs Policing

Posted by Peter Kurdziel on June 4, 2009

The following table lists the differences between shaping and policing to help you choose the best solution.

http://www.cisco.com/en/US/tech/tk543/tk545/technologies_tech_note09186a00800a3a25.shtml

Shaping Policing
Objective Buffer and queue excess packets above the committed rates. Drop (or remark) excess packets above the committed rates. Does not buffer.*
Token Refresh Rate Incremented at the start of a time interval. (Minimum number of intervals is required.) Continuous based on formula: 1 / committed information rate
Token Values Configured in bits per second. Configured in bytes.
Configuration Options
  • shape command in the modular quality of service command-line interface (MQC) to implement class-based shaping.
  • frame-relay traffic-shape command to implement Frame Relay Traffic Shaping (FRTS).
  • traffic-shape command to implement Generic Traffic Shaping (GTS).
  • police command in the MQC to implement class-based policing.
  • rate-limit command to implement committed access rate (CAR).
Applicable on Inbound No Yes
Applicable on Outbound Yes Yes
Bursts Controls bursts by smoothing the output rate over at least eight time intervals. Uses a leaky bucket to delay traffic, which achieves a smoothing effect. Propagates bursts. Does no smoothing.
Advantages Less likely to drop excess packets since excess packets are buffered. (Buffers packets up to the length of the queue. Drops may occur if excess traffic is sustained at high rates.) Typically avoids retransmissions due to dropped packets. Controls the output rate through packet drops. Avoids delays due to queuing.
Disadvantages Can introduce delay due to queuing, particularly deep queues. Drops excess packets (when configured), throttling TCP window sizes and reducing the overall output rate of affected traffic streams. Overly aggressive burst sizes may lead to excess packet drops and throttle the overall output rate, particularly with TCP-based flows.
Optional Packet Remarking No Yes (with legacy CAR feature).

Posted in QOS, Routing & Switching Lab | Leave a Comment »

QOS: How to memorize IP Precedence Values – lol

Posted by Peter Kurdziel on June 3, 2009

From: http://cciepursuit.wordpress.com/2008/05/15/lab-tip-remembering-ip-precedence-values/

You could look this up in the DOC CD, but there’s a quick and dirty way to do this on the command line.

1) Create a class-map.
2) Type ‘match ip precedence ?’ to see the context-sensitive help.  This will give you a list of the IP Precedence values along with their descriptions.
3) Get what you need and remember to delete the class-map.

Rack13R6(config)#class-map FAKE
Rack13R6(config-cmap)#match ip precedence ?
<0-7>           Enter up to 4 precedence values separated by white-spaces
critical        Match packets with critical precedence (5)
flash           Match packets with flash precedence (3)
flash-override  Match packets with flash override precedence (4)
immediate       Match packets with immediate precedence (2)
internet        Match packets with internetwork control precedence (6)
network         Match packets with network control precedence (7)
priority        Match packets with priority precedence (1)
routine         Match packets with routine precedence (0)

Rack13R6(config-cmap)#exit
Rack13R6(config)#no class-map FAKE

Posted in QOS, Routing & Switching Lab | Leave a Comment »

qosin-10-minutes

Posted by Peter Kurdziel on April 1, 2009

I found this interesting.

http://pushkarbhatkoti.wordpress.com/category/qos-in-10-minutes/

 

A practical approach- QoS in 10 minutes (any scenario)

August 7, 2008 at 8:42 am | In 1, QoS in 10 minutes | 11 Comments
Tags: ,

Bullshit! how can anyone do the QoS part in 10 minutes?

YES its possible! and proved…. keep reading :)

I have seen many people struggling with QoS and till last minute they are not 100 percent sure that if what that is the right solution what was asked in the monster exam. Even you have a good understanding of  QoS and you say that oh yeah, I have no problem with QoS but just about the enormous time everyone is puts in configuring the QoS itself.

Everyone may have different approach to win the lab game but my approach was like this;

The whole lab has 100 points. To pass the lab we only need 80 points.
- Don’t touch LAN QoS – u hve to configure on 3 switches. CatOS is creepy, it may spike other things as well. AS u know 6608 blades are really old, applying QoS onto those older crabs may hung or may behave un-expected. I kept hearing from others that they had issues where they had to reset the 6608 blade or ethernet module. I was lucky, as here in Sydney lab I never had that kind of issue(s).

So the bottom line is, don’t be too greedy and you may safely leave some topics where you are not 100% confident (as i did). As we all know that the lab exam is not like the university exam where you’d be given points for partially correct answer.
The real benefit of leaving  non-confident topics is “Save time” and put that time in doing other things , may be you can utilize that in verifying the answers again and agin until u drain your 8 hours time.

Just a sideconfig)#do sh run int s0/3/0
Building configuration…

Current configuration : 152 bytes
!
interface Serial0/3/0
description — to frswitch –
no ip address
encapsulation frame-relay
ip ospf dead-interval minimal hello-multiplier 4
end

HQ(config)#do sh run int s0/3/0.1
Building configuration…

Current configuration : 178 bytes
!
interface Serial0/3/0.1 point-to-point
description ====== To SITE-B =======
ip address 10.10.33.1 255.255.255.128
ip ospf mtu-ignore
frame-relay interface-dlci 201
end

HQ(config)#

HQ(config)#
HQ(config)#do sh run int s0/3/0.2
Building configuration…

Current configuration : 178 bytes
!
interface Serial0/3/0.2 point-to-point
description ===== To SITE-C ======
ip address 10.10.33.129 255.255.255.128
ip ospf mtu-ignore
frame-relay interface-dlci 202
end

HQ(config)#

HQ(config)#
HQ(config)#int s0/3/0.1
HQ(config-subif)#bandwidth 512
HQ(config-subif)#exit
HQ(config)#
HQ(config)#int s0/3/0.1
HQ(config-subif)#
HQ(config-subif)#!first Assign the bandwidth to this interface this is a must
HQ(config-subif)#
HQ(config-subif)#bandwidth 512
HQ(config-subif)#
HQ(config-subif)#!now the magic part
HQ(config-subif)#
HQ(config-subif)#frame-re interface-dlci 201
HQ(config-fr-dlci)#
HQ(config-fr-dlci)#auto qos voip trust fr-atm

Now lets see what MAGIC has the above command has done in your router;

Common Myth: Auto-QoS breaks many things. I had the same concept until I proved that it does’t break anything and is a real time saver tool.  I know all bootcamps teaches not to use it, but they don’t explain you why not! May be they don’t want to tell you the secrets? duh! (just joking) . I never been to any bootcamp so I really don’t know what they teaches. I did everything start to finish in 9 months myself, self learning method with a few wonderful online study mates!

the other myth is wheather it is allowed in the real lab exam – yes it is, I raised this question with Ben NG on Ask Expert and his answer was “yes you can use it as long as it qualify the questions requirement” , in other word, its not just run auto-qos and thats all, you need to fine tune it.

Change#1 in existing configuration
—————————–

First lets see if anything got changed in physical interface;

HQ(config-fr-dlci)#do sh run int s0/3/0
Building configuration…

Current configuration : 196 bytes
!
interface Serial0/3/0
description — to frswitch –
no ip address
encapsulation frame-relay
ip ospf dead-interval minimal hello-multiplier 4
no fair-queue
frame-relay traffic-shaping <—- NEW NEW
end

HQ(config-fr-dlci)#

note; U don’t hve to remember to put that command if you are doing FRTS.

Change#2 in existing configuration
—————————–

Next, lets see what has changed on sub interace:

HQ(config-fr-dlci)#do sh run int s0/3/0.1
Building configuration…

Current configuration : 236 bytes
!
interface Serial0/3/0.1 point-to-point
description ====== To SITE-B =======
bandwidth 512
ip ospf mtu-ignore
frame-relay interface-dlci 201 ppp Virtual-Template200 <– WOW
class AutoQoS-FR-Se0/3/0-201 <—WOW
auto qos voip trust fr-atm
end

HQ(config-fr-dlci)#

Change#3 in existing configuration
—————————–

HQ(config-fr-dlci)#do sh run | be class
class-map match-any AutoQoS-VoIP-RTP-Trust
match ip dscp ef
class-map match-any AutoQoS-VoIP-Control-Trust
match ip dscp cs3
match ip dscp af31
!
!
policy-map AutoQoS-Policy-Trust
class AutoQoS-VoIP-RTP-Trust
priority percent 70
class AutoQoS-VoIP-Control-Trust
bandwidth percent 5
class class-default
fair-queue

wow – thats sound really time saver here! but what about virtual template and frame-relay class?

well u won’t get everything spoon-feed :(
but wait! shut up!

this baby feeds you everything…. ‘auto qos voiptrust fr-atm’is the man here!

Change#4 in existing configuration
—————————–

HQ(config-fr-dlci)#do sh run | be Virtual-Tem

frame-relay interface-dlci 201 ppp Virtual-Template200
class AutoQoS-FR-Se0/3/0-201
auto qos voip trust fr-atm
!
interface Serial0/3/0.2 point-to-point
description ===== To SITE-C ======
ip address 10.10.33.129 255.255.255.128
ip ospf mtu-ignore
frame-relay interface-dlci 202
!
interface Virtual-Template200 <————–WoW
bandwidth 512
ip address 10.10.33.1 255.255.255.128
ppp multilink
ppp multilink interleave
ppp multilink fragment delay 10
service-policy output AutoQoS-Policy-Trust

!Change#5 in existing configuration
—————————–

HQ(config-fr-dlci)#
HQ(config-fr-dlci)#do sh run | be map-class
map-class frame-relay AutoQoS-FR-Se0/3/0-201
frame-relay cir 512000
frame-relay bc 5120
frame-relay be 0
frame-relay mincir 512000
!
!

I think thats pretty much all you need for MLPPP scenario, for FRTS only
you need use this command:

HQ(config-subif)#interface 3/0.2 <— going to CME site for example
HQ(config-subif)#bandwidth 2048
HQ(config-subif)#
HQ(config-subif)#!now the magic part
HQ(config-subif)#
HQ(config-subif)#frame-re interface-dlci 202
HQ(config-fr-dlci)#
HQ(config-fr-dlci)#auto qos voip trust <— just that yes, noticed there is no “fr-atm”

Summary of commands;

auto qos voip trust          <—- for FRTS only , no mlppp
auto qos voip trust fr-atm   <—- for MLPPP only

How can you save time?
——————-
1. you don’t have to look in the docCD for any command.
2. Just quickly put the above template on all sites and then copy and paste them into notepad and modify according to the questions need.

Some one who’s reading this blog must be saying that “Enough of the bullsh**t and about to close firefox/IE windows and probably mumaling about ‘oh dude come on now and get to the real life, show me how to do any QoS scenario in 10 minutes”

Hue…. you are 20 yrs+ old now [no morebaby] and still expecting someone will spoon feed you the QoS tricks?
ok ok… showing you in a sec….

Lets take an example;

a. mark sip and h323 traffic to cs3 [ since I hate switches, I will do it on router itself].
b. hq to siteb = MLPPP,                  PVC = 512kbps
c. hq to sitec = frf.12/shapping    PVC = 2048 kbps
d.misc…. whatever…

Step#1: do the marking first
config t
class-map match-any NBAR
match protocol Sip
match protocol h323

Policy-map remark
class NBAR
set dscp CS3

interface fas0/0
service-policy input remark

now thats done HQ router, do show run and copy and paste it to other routers. Note when you copy and paste to other router it may take a bit of time to see the all commands pasted on the router, just paste on siteb router and move on to site c and paste there as well. Then come back to siteb router apply service-policy input on the lan facing interface and then move on to siteC router to apply the service-policy input command.

tips1# my fas0/0 had 3 sub-interface – fas0/0.10 for server ,  fas0/0.100 – hqvoice-vlan, fas0/0.1000 for datavlan. So instead of applying service policy on all 3 interface, just apply on the main one ie..e fas0/0.
wow!

tips2# I have seen most of my friends tends to be leaving data vlan at siteB for marking. So put on both data and voice vlan at siteB.

tips3# Also noticed, at siteC CME router, be careful when marking. at my home lab i had 2801 router and 2 sub-interface on fast0/0 interface e.g. fas0/0.100 = voice, fas0/0.1000 =data. So i just put my QoS service policy on fas0/0 like i did on my Hq router.

Now you all propably think that marking on router is done and wow easy 10 points. but when you read your score report u will see “ZERO”!! Damn blame the innocent  guy at http://www.ccievoice-assessor.com/ coz he graded your lab wrong! May be he was in a pub just before he got back and went straight into your pod to start grading it!!

Think about SITEC where you’ve h323 RAS traffic also needs to be marked to CS3. You probably applied the QoS service-policy on fas0/0 [in my scenario above] and when dialpeer tries eastiblishing a call to hq, h323 signaling straight hits to WAN interface.
Think about it! , you’ve applied marking on fas0/0 , when you confirm the QoS marking u won’t see that h323 protocol counters in the show policy-map interface command.
bummer!

So above practice is just to mark signaling stuffs on each routers – max time 2-3 minutes. [not for the guys who don't know where "q" key is in the keyboard]. BTW people call me sometime a stenographer coz my typing speed is like those people who type really fast without looking at the keyboard [touch typeing]

Now remaining 7 minutes and I have the whole QoS job to bind up. . damn it doen’st look right.

STEP#2 Everything else, apart from marking;   s0/3/0.1 = hq to siteb , s0/3/0.2 hq to sitec

config t
HQ(config)#int s0/3/0.1
HQ(config-subif)#
HQ(config-subif)#!first Assign the bandwidth to this interface this is a must
HQ(config-subif)#
HQ(config-subif)#bandwidth 512
HQ(config-subif)#!now the magic part
HQ(config-subif)#frame-re interface-dlci 201
HQ(config-fr-dlci)#auto qos voip trust fr-atm
exit

apply that command to siteb as well. at siteC router just use ‘auto qos voip trust’ for frf.12 or frts
STEP#3 copying/pasting and modifying parameters in notepad to/from router. MAX time = 4 minutes

Do ’show run’ pipe out the class-map+map-class+virtual-template and paste them into the notepad.
HQ(config-fr-dlci)#do sh run | be class

class-map match-any AutoQoS-VoIP-RTP-Trust
match ip dscp ef
class-map match-any AutoQoS-VoIP-Control-Trust
match ip dscp cs3
match ip dscp af31
!
!
policy-map AutoQoS-Policy-Trust <—– use this default for HQ-2-siteB
class AutoQoS-VoIP-RTP-Trust
priority percent 70
class AutoQoS-VoIP-Control-Trust
bandwidth percent 5
class class-default
fair-queue

interface Virtual-Template200 <————–WoW
bandwidth 512
ip address 10.10.33.1 255.255.255.128
ppp multilink
ppp multilink interleave
ppp multilink fragment delay 10
service-policy output AutoQoS-Policy-Trust
!

HQ(config-fr-dlci)#
HQ(config-fr-dlci)#do sh run | be map-class
map-class frame-relay AutoQoS-FR-Se0/3/0-201
frame-relay cir 512000
frame-relay bc 5120
frame-relay be 0
frame-relay mincir 512000
!

Within your notepad, copy and paste the policy-map (above) commands, we need to prepare that for hq to siteC.
policy-map AutoQoS-Policy-Trust-SITEC <—– copy and paste within notepad rename end of itSITEC
class AutoQoS-VoIP-RTP-Trust
priority percent 70 <————change them if required
class AutoQoS-VoIP-Control-Trust
bandwidth percent 5 <———-change them whatever u want
class class-default
fair-queue

another copy and paste business withing notepad;

frame-relay cir 512000 <— that shud be 95% of pvc according to the QoS SRND
frame-relay bc 5120 <——-ditto—-
frame-relay be 0
frame-relay mincir 512000 —-ditto—-

tips#?# press ctrl + h in notepad put infront of find – 5120 , replace-with 4864 (95% of pvc), and hit replace all.. bingo… ur all 3 parameters are replaced now. do the same for hq to siteC frame-relay pvc parameters.

Once everything is ready in notepad, paste above parameters back to routers. Make a note that hq and siteC frame-relay class-map name could be different and also under map-class service-policy statement u need to remove the existing one first then type the new one ’service-policy output autoqos-blah–sitec’
paste pvc parameters at the same time.

Last step4# verification

show policy-map interface and check the counters.

break-down of time is;

3 minutes = marking
3 minutes = applying autoqos
4 minutes = modifying parameter and pasting them back to router and verification.

First time when I did this practice, it used to take my 30-40 minutes. Gradually when I knew inside out where to modify and how to use notepad I really reduced it down to 10 minutes. Believe me, its doeable, just matter of the practice.

do this practice 10 times and when u reach to 11th then u will see oh, QoS is only 10 minute job.

Note, I haven’t included the time in reading the QoS question in above 10 minute business.

The other important tip is, read the question 3 times and verify that if the solution u are working on is going in the right direction.

Pushkar Bhatkoti
CCIE voice #21569

PS: if anyone who found this article useful, don’t forget to send me a post card. LOL :=)

Posted in QOS, Real World, Routing & Switching Lab | Leave a Comment »

QOS notes

Posted by Peter Kurdziel on January 25, 2009

telnet = ip prec 1
tftp – ip prec 2

ip cef

class-map match-all TASK1-1
match protocol tftp
class-map match-all TASK1
match protocol telnet
!
!
policy-map TEST
class TASK1
set ip precedence 1
class TASK1-1
set ip precedence 2

interface Serial1/0.23 point-to-point
service-policy output TEST

R2(config)#do sho policy-map int s1/0.23

Serial1/0.23

Service-policy output: TEST

Class-map: TASK1 (match-all)
12 packets, 560 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol telnet
QoS Set
precedence 1
Packets marked 12

Class-map: TASK1-1 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol tftp
QoS Set
precedence 2
Packets marked 0

Class-map: class-default (match-any)
10 packets, 1596 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
———————————————————

block prec 1

class-map match-all BLOCKPREC1
match ip precedence 1
!
!
policy-map BLKPREC1PM
class BLOCKPREC1
drop

interface Serial1/0.32 point-to-point
service-policy input BLKPREC1PM
———————————————

IP CEF

int e0/0
ip nbar protocol-discovery

ip nbar port-map http tcp 80 1180
ip nbar port-map telnet tcp 23 1123

R3#sh ip nbar port-map http
port-map http                     tcp 80 1180
R3#sh ip nbar port-map teln
port-map telnet                   tcp 23 1123

—————————————————–

config all well-known port #’s as ip prec 4 and everything else ip prec 0

ip cef

class-map match-all QOS
match access-group 100
class-map match-all OTHERS
match not class-map QOS
!
!
policy-map QOSPM
class QOS
set ip precedence 4
class OTHERS
set ip precedence 0

interface Ethernet0/0
service-policy output QOSPM

access-list 100 permit tcp any any lt 1024
access-list 100 permit tcp any lt 1024 any
————————————————–

PRIORITY QUEUING

access-list 131 permit ip host 131.1.1.1 host 131.1.2.2
priority-list 1 protocol ip low list 131
priority-list 1 interface Loopback0 high
priority-list 1 protocol ip medium tcp www
priority-list 1 protocol ip normal udp tftp
priority-list 1 default low

int e0/0
priority-group 1

R1(config-if)#do sho queuein priority
Current DLCI priority queue configuration:
Current priority queue configuration:

List   Queue  Args
1      low    default
1      low    protocol ip          list 131
1      high   interface Loopback0
1      medium protocol ip          tcp port www
1      normal protocol ip          udp port tftp

testing
no cdp run
int e0/0
no keep
debug priority

testing

R1(config-if)#do ping
Protocol [ip]:
Target IP address: 131.1.2.2
Repeat count [5]:
*Mar  1 00:53:10.271: PQ: Ethernet0/0: ip (defaulting) -> low
*Mar  1 00:53:10.271: PQ: Ethernet0/0 output (Pk size/Q 66/3)

Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 131.1.1.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 131.1.2.2, timeout is 2 seconds:
Packet sent with a source address of 131.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/30/44 ms
R1(config-if)#
*Mar  1 00:53:23.711: PQ: Ethernet0/0: ip (s=131.1.1.1, d=131.1.2.2) -> low
*Mar  1 00:53:23.715: PQ: Ethernet0/0 output (Pk size/Q 114/3)
*Mar  1 00:53:23.759: PQ: Ethernet0/0: ip (s=131.1.1.1, d=131.1.2.2) -> low
*Mar  1 00:53:23.759: PQ: Ethernet0/0 output (Pk size/Q 114/3)
*Mar  1 00:53:23.795: PQ: Ethernet0/0: ip (s=131.1.1.1, d=131.1.2.2) -> low
*Mar  1 00:53:23.795: PQ: Ethernet0/0 output (Pk size/Q 114/3)
*Mar  1 00:53:23.811: PQ: Ethernet0/0: ip (s=131.1.1.1, d=131.1.2.2) -> low
*Mar  1 00:53:23.811: PQ: Ethernet0/0 output (Pk size/Q 114/3)
*Mar  1 00:53:23.827: PQ: Ethernet0/0: ip (s=131.1.1.1, d=131.1.2.2) -> low
R1(config-if)#
R1(config-if)#
*Mar  1 00:53:23.827: PQ: Ethernet0/0 output (Pk size/Q 114/3)
R1(config-if)#
*Mar  1 00:53:36.039: PQ: Ethernet0/0: ip (defaulting) -> low
*Mar  1 00:53:36.039: PQ: Ethernet0/0 output (Pk size/Q 66/3)
R1(config-if)#
*Mar  1 00:53:48.419: PQ: Ethernet0/0: mop-console (defaulting) -> low
*Mar  1 00:53:48.419: PQ: Ethernet0/0 output (Pk size/Q 77/3)
R1(config-if)#

testing http

R1(config-if)#do telnet 131.1.12.2 80
Trying 131.1.12.2, 80 … Open

*Mar  1 00:54:59.027: PQ: Ethernet0/0: ip (defaulting) -> low
*Mar  1 00:54:59.027: PQ: Ethernet0/0 output (Pk size/Q 66/3)
*Mar  1 00:54:59.967: PQ: Ethernet0/0: ip (tcp 80) -> medium
*Mar  1 00:54:59.967: PQ: Ethernet0/0 output (Pk size/Q 60/1)
*Mar  1 00:55:00.011: PQ: Ethernet0/0: ip (tcp 80) -> medium
*Mar  1 00:55:00.015: PQ: Ethernet0/0 output (Pk size/Q 60/1)
*Mar  1 00:55:00.023: PQ: Ethernet0/0: ip (tcp 80) -> medium
*Mar  1 00:55:00.027: PQ: Ethernet0/0 output (Pk size/Q 60/1)
———————————————————–

change the priority queue sizes high 80 medium 60 normal 40 low 20

priority-list 1 queue-limit 80 60 40 20

R1(config)#do sho queuei pr
Current DLCI priority queue configuration:
Current priority queue configuration:

List   Queue  Args
1      low    default
1      low    protocol ip          list 131
1      high   interface Loopback0
1      medium protocol ip          tcp port www
1      normal protocol ip          udp port tftp
1      high   limit 80
1      medium limit 60
1      normal limit 40
1      low    limit 20
———————————————

custom queuing

access-list 100 permit ip host 131.1.1.1 host 131.1.2.2

queue-list 1 protocol ip 2 list 100
queue-list 1 interface Loopback0 1
queue-list 1 protocol ip 3 tcp telnet
queue-list 1 protocol ip 4 tcp www
queue-list 1 protocol ip 6 tcp 69
queue-list 1 default 5

int e0/0
custom-queue-list 1

do sho queuein cus
Current custom queue configuration:

List   Queue  Args
1      5      default
1      2      protocol ip          list 100
1      1      interface Loopback0
1      3      protocol ip          tcp port telnet
1      4      protocol ip          tcp port www
1      6      protocol ip          tcp port 69
——————————————————

R1(config)#int s1/0
R1(config-if)#fair-queue 128 512

R1(config-if)#do sho queuei f
Current fair queue configuration:

Interface           Discard    Dynamic  Reserved  Link    Priority
threshold  queues   queues    queues  queues
Serial1/0           128        512      0         8       1

Serial1/0 is up, line protocol is up

Queueing strategy: weighted fair
Output queue: 0/1000/128/0 (size/max total/threshold/drops)
Conversations  0/1/512 (active/max active/max total)
———————————————————-

class-map match-all TFTP
match protocol tftp
class-map match-all HTTP
match protocol http
class-map match-all FTP
match protocol ftp
class-map match-all URL
match protocol http host “www.net-workbooks.com”
!
!
policy-map TEST
class TFTP
bandwidth 2000
class URL
bandwidth 6000
class HTTP
bandwidth 5000
class FTP
bandwidth 3000

R1(config-if)#do sho policy-map int f0/0
FastEthernet0/0

Service-policy output: TEST

Class-map: TFTP (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol tftp
Queueing
Output Queue: Conversation 265
Bandwidth 2000 (kbps)Max Threshold 64 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0

Class-map: URL (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol http host “www.net-workbooks.com”
Queueing
Output Queue: Conversation 266
Bandwidth 6000 (kbps)Max Threshold 64 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0

Class-map: HTTP (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol http
Queueing
Output Queue: Conversation 267
Bandwidth 5000 (kbps)Max Threshold 64 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0

Class-map: FTP (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol ftp
Queueing
Output Queue: Conversation 268
Bandwidth 3000 (kbps)Max Threshold 64 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0

Class-map: class-default (match-any)
2 packets, 126 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any

==========================================================================

class-map match-all TFTP
match protocol tftp
class-map match-all HTTP
match protocol http
class-map match-all FTP
match protocol ftp
!
!
policy-map TEST
class TFTP
bandwidth percent 25
class HTTP
bandwidth percent 35
class FTP
bandwidth percent 20

interface FastEthernet0/0
ip address 131.1.12.1 255.255.255.0
duplex auto
speed auto
max-reserved-bandwidth 85
service-policy output TEST

sh policy-map  int f0/0
FastEthernet0/0

Service-policy output: TEST

Class-map: TFTP (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol tftp
Queueing
Output Queue: Conversation 265
Bandwidth 25 (%)
Bandwidth 25000 (kbps)Max Threshold 64 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0

Class-map: HTTP (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol http
Queueing
Output Queue: Conversation 266
Bandwidth 35 (%)
Bandwidth 35000 (kbps)Max Threshold 64 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0

Class-map: FTP (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol ftp
Queueing
Output Queue: Conversation 267
Bandwidth 20 (%)
Bandwidth 20000 (kbps)Max Threshold 64 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0

Class-map: class-default (match-any)
12 packets, 1029 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
============================================================

class-map match-all TFTP
match protocol tftp
class-map match-all HTTP
match protocol http
class-map match-all PREC-5
match ip precedence 5
class-map match-all FTP
match protocol ftp
!
!
policy-map TEST
class TFTP
bandwidth percent 15
class HTTP
bandwidth percent 25
class FTP
bandwidth percent 20
class PREC-5
priority percent 25

interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
max-reserved-bandwidth 85     <—–<<<<<< default is 75 so we need this cmd.
service-policy output TEST
=========================================

CAR – commited access rate

interface FastEthernet0/0
rate-limit output access-group 100 240000 3750 3750 conform-action set-prec-transmit 3 exceed-action drop

int f0/0 rate
FastEthernet0/0
Output
matches: access-group 100
params:  240000 bps, 3750 limit, 3750 extended limit
conformed 0 packets, 0 bytes; action: set-prec-transmit 3
exceeded 0 packets, 0 bytes; action: drop
last packet: 16345872ms ago, current burst: 0 bytes
last cleared 00:01:06 ago, conformed 0 bps, exceeded 0 bps

=========================================================================

interface FastEthernet0/1

rate-limit output access-group rate-limit 10 128000 2000 2000 conform-action transmit exceed-action drop

sho int f0/1 rate-limit
FastEthernet0/1
Output
matches: access-group rate-limit 10
params:  128000 bps, 2000 limit, 2000 extended limit
conformed 0 packets, 0 bytes; action: transmit
exceeded 0 packets, 0 bytes; action: drop
last packet: 16785252ms ago, current burst: 0 bytes
last cleared 00:00:46 ago, conformed 0 bps, exceeded 0 bps
=======================================================================
class based policing

interface FastEthernet0/0

service-policy output TEST

class-map match-any QOS-1
match protocol http
match protocol ftp
match protocol icmp
class-map match-any QOS-2
match protocol telnet
match protocol smtp
!
!
policy-map TEST
class QOS-1
police 10000000 conform-action transmit  exceed-action drop
class QOS-2
police 8000000 conform-action transmit  exceed-action drop
!

sho policy-map int f0/0
FastEthernet0/0

Service-policy output: TEST

Class-map: QOS-1 (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol http
0 packets, 0 bytes
5 minute rate 0 bps
Match: protocol ftp
0 packets, 0 bytes
5 minute rate 0 bps
Match: protocol icmp
0 packets, 0 bytes
5 minute rate 0 bps
police:
cir 10000000 bps, bc 312500 bytes
conformed 0 packets, 0 bytes; actions:
transmit
exceeded 0 packets, 0 bytes; actions:
drop
conformed 0 bps, exceed 0 bps

Class-map: QOS-2 (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol telnet
0 packets, 0 bytes
5 minute rate 0 bps
Match: protocol smtp
0 packets, 0 bytes
5 minute rate 0 bps
police:
cir 8000000 bps, bc 250000 bytes
conformed 0 packets, 0 bytes; actions:
transmit
exceeded 0 packets, 0 bytes; actions:
drop
conformed 0 bps, exceed 0 bps

Class-map: class-default (match-any)
3 packets, 471 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
R1(config-if)#do sho policy
% Ambiguous command:  “do sho policy”
R1(config-if)#do sho policy-map TEST
Policy Map TEST
Class QOS-1
police cir 10000000 bc 312500
conform-action transmit
exceed-action drop
Class QOS-2
police cir 8000000 bc 250000
conform-action transmit
exceed-action drop

==============================================================

class-map match-all TELNET
match protocol telnet
class-map match-all TFTP
match protocol tftp
!
!
policy-map TEST
class TELNET
police 10000000 5000 conform-action transmit  exceed-action drop
class TFTP
police 8000000 4000 conform-action transmit  exceed-action drop

interface FastEthernet0/0
ip address 10.1.123.2 255.255.255.0
duplex auto
speed auto
service-policy output TEST

sho policy-map TEST
Policy Map TEST
Class TELNET
police cir 10000000 bc 5000
conform-action transmit
exceed-action drop
Class TFTP
police cir 8000000 bc 4000
conform-action transmit
exceed-action drop

========================

class-map match-all SERVER1
match access-group 700
class-map match-all SERVER2
match access-group 701

policy-map TST
class SERVER1
police 1000000 conform-action transmit  exceed-action drop
class SERVER2
police 800000 conform-action transmit  exceed-action drop

access-list 700 permit 0000.1111.1111   0000.0000.0000
access-list 701 permit 0000.2222.2222   0000.0000.0000

sho policy-map f0/1

R1(config-if)#do sho policy-map int f0/1
FastEthernet0/1

Service-policy input: TST

Class-map: SERVER1 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: access-group 700
police:
cir 1000000 bps, bc 31250 bytes
conformed 0 packets, 0 bytes; actions:
transmit
exceeded 0 packets, 0 bytes; actions:
drop
conformed 0 bps, exceed 0 bps

Class-map: SERVER2 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: access-group 701
police:
cir 800000 bps, bc 25000 bytes
conformed 0 packets, 0 bytes; actions:
transmit
exceeded 0 packets, 0 bytes; actions:
drop
conformed 0 bps, exceed 0 bps

Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any

sho policy-map TST
Policy Map TST
Class SERVER1
police cir 1000000 bc 31250
conform-action transmit
exceed-action drop
Class SERVER2
police cir 800000 bc 25000
conform-action transmit
exceed-action drop

==================================
access-list 100 permit tcp any any eq www time-range Weekdays
access-list 100 permit icmp any any time-range Weekdays
access-list 100 permit tcp any any eq ftp-data time-range Weekdays
access-list 100 permit tcp any any eq ftp time-range Weekdays

class-map match-all QOS
match access-group 100
!
!
policy-map TEST
class QOS
police 10000000 conform-action transmit  exceed-action drop

interface FastEthernet0/0

service-policy output TEST

sho policy-map inter f0/0
FastEthernet0/0

Service-policy output: TEST

Class-map: QOS (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: access-group 100
police:
cir 10000000 bps, bc 312500 bytes
conformed 0 packets, 0 bytes; actions:
transmit
exceeded 0 packets, 0 bytes; actions:
drop
conformed 0 bps, exceed 0 bps

Class-map: class-default (match-any)
2 packets, 120 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any

====================================

police and mark

class-map match-all HTTP
match protocol http
!
!
policy-map TST
class HTTP
police cir 10000000 pir 20000000
conform-action transmit
exceed-action set-prec-transmit 4
violate-action drop

interface FastEthernet0/0
service-policy output TST

sho  policy-map int f0/0
FastEthernet0/0

Service-policy output: TST

Class-map: HTTP (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol http
police:
cir 10000000 bps, bc 312500 bytes
pir 20000000 bps, be 625000 bytes
conformed 0 packets, 0 bytes; actions:
transmit
exceeded 0 packets, 0 bytes; actions:
set-prec-transmit 4
violated 0 packets, 0 bytes; actions:
drop
conformed 0 bps, exceed 0 bps, violate 0 bps

Class-map: class-default (match-any)
10 packets, 1182 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any

sho policy-map TST
Policy Map TST
Class HTTP
police cir 10000000 bc 312500 pir 20000000 be 625000
conform-action transmit
exceed-action set-prec-transmit 4
violate-action drop

=====================================

class-map match-all TST-WWW
match access-group 100

policy-map TST
class TST-WWW
police cir percent 30

access-list 100 permit tcp 10.1.12.0 0.0.0.255 host 10.1.12.100 eq www

interface FastEthernet0/1
service-policy output TST

sho policy-map int f0/1
FastEthernet0/1

Service-policy output: TST

Class-map: TST-WWW (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: access-group 100
police:
cir 30 %
cir 30000000 bps, bc 937500 bytes
conformed 0 packets, 0 bytes; actions:
transmit
exceeded 0 packets, 0 bytes; actions:
drop
conformed 0 bps, exceed 0 bps

Class-map: class-default (match-any)
1 packets, 60 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any

sho policy-map TST
Policy Map TST
Class TST-WWW
police cir percent 30
conform-action transmit
exceed-action drop
==========================================

r1

ip rsvp sender-h 131.1.12.2 131.1.12.1 tcp 0 0 10 5

r2
sh ip rsvp send
To              From            Pro DPort Sport Prev Hop        I/F      BPS
131.1.12.2      131.1.12.1      TCP 0     0     131.1.12.1      Fa0/0    10K
ip rsvp reservation-h 131.1.12.2 131.1.12.1 tcp 0 0 FF rate 10 5

r1
sho ip rsvp res
To            From          Pro DPort Sport Next Hop      I/F      Fi Serv BPS
131.1.12.2    131.1.12.1    TCP 0     0     131.1.12.2    Fa0/0    FF RATE 10K

==================================
interface Serial0/0/0
bandwidth 192
frame-relay traffic-shaping

!
interface Serial0/0/0.12 point-to-point
frame-relay class TEST

map-class frame-relay TEST
frame-relay cir 64000
frame-relay bc 8000
frame-relay be 16000
frame-relay mincir 32000
frame-relay adaptive-shaping becn

sho traffic-shap s0/0/0.12

Interface   Se0/0/0.12
Access Target    Byte   Sustain   Excess    Interval  Increment Adapt
VC     List   Rate      Limit  bits/int  bits/int  (ms)      (bytes)   Active
102           64000     3000   8000      16000     125       1000      BECN

=========================================================

map-class frame-relay TEST
frame-relay cir 64000
frame-relay bc 8000
frame-relay be 16000
frame-relay mincir 32000
frame-relay adaptive-shaping interface-congestion 1
!

interface Serial0/0/0
bandwidth 192
frame-relay traffic-shaping

!
interface Serial0/0/0.12 point-to-point
frame-relay class TEST

sho traffic-shap s0/0/0.12

Interface   Se0/0/0.12
Access Target    Byte   Sustain   Excess    Interval  Increment Adapt
VC     List   Rate      Limit  bits/int  bits/int  (ms)      (bytes)   Active
102           64000     3000   8000      16000     125       1000      -

sho frame pvc 102

PVC Statistics for interface Serial0/0/0 (Frame Relay DTE)

DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0/0.12

input pkts 223           output pkts 229          in bytes 62906
out bytes 64321          dropped pkts 0           in pkts dropped 0
out pkts dropped 0                out bytes dropped 0
in FECN pkts 0           in BECN pkts 0           out FECN pkts 0
out BECN pkts 0          in DE pkts 0             out DE pkts 0
out bcast pkts 229       out bcast bytes 64321
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
pvc create time 07:23:28, last time pvc status changed 00:18:06

cir 64000     bc 8000      be 16000     byte limit 3000   interval 125
mincir 32000     byte increment 1000  Adaptive Shaping IF_CONG

pkts 49        bytes 7080      pkts delayed 0         bytes delayed 0
shaping inactive
traffic shaping drops 0
Queueing strategy: fifo
Output queue 0/40, 0 drop, 0 dequeued

==================
map-class frame-relay TEST
frame-relay cir 64000
frame-relay bc 8000
frame-relay be 16000
frame-relay mincir 32000
frame-relay adaptive-shaping interface-congestion 1

R1(config-fr-dlci)#map-class frame-relay TEST

R1(config-map-class)#service-policy out TST
Remove frame-relay traffic shaping first beforeusing GTS in Modular QoS CLI

R1(config-map-class)#int s0/0/0
R1(config-if)#no fram traffic-shaping

R1(config-if)#map-class frame-relay TEST
R1(config-map-class)#service-policy out TST

R1(config-map-class)#do sho policy-map int s0/0/0.12
Serial0/0/0.12: DLCI 102 -

Service-policy output: TST

Class-map: class-default (match-any)
1 packets, 56 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
Traffic Shaping
Target/Average   Byte   Sustain   Excess    Interval  Increment
Rate           Limit  bits/int  bits/int  (ms)      (bytes)
64000/64000     3000   8000      16000     125       1000

Adapt  Queue     Packets   Bytes     Packets   Bytes     Shaping
Active Depth                         Delayed   Delayed   Active
BECN   0         1         56        0         0         no
=========================================

map-class frame-relay R2
frame-relay cir 64000
frame-relay bc 8000
frame-relay mincir 32000
frame-relay adaptive-shaping becn
!
map-class frame-relay R3
frame-relay cir 128000
frame-relay bc 16000
frame-relay mincir 64000
frame-relay adaptive-shaping becn
!
map-class frame-relay R4
frame-relay cir 192000
frame-relay bc 24000
frame-relay mincir 96000
frame-relay adaptive-shaping becn

interface Serial0/0/0
bandwidth 192
ip address 10.1.1.1 255.255.255.0
encapsulation frame-relay
no fair-queue
frame-relay traffic-shaping
frame-relay interface-dlci 102
class R2
frame-relay interface-dlci 103
class R3
frame-relay interface-dlci 104
class R4

sho traffic-shape

Interface   Se0/0/0
Access Target    Byte   Sustain   Excess    Interval  Increment Adapt
VC     List   Rate      Limit  bits/int  bits/int  (ms)      (bytes)   Active
103           128000    2000   16000     0         125       2000      BECN
104           192000    3000   24000     0         125       3000      BECN
102           64000     1000   8000      0         125       1000      BECN
=================================================================================

policy-map TST-r2
class class-default
shape average 64000 8000 0
shape adaptive 64000

map-class frame-relay R2
frame-relay cir 64000
frame-relay bc 8000
frame-relay mincir 32000
frame-relay adaptive-shaping becn
service-policy output TST-r2

interface Serial0/0/0
frame-relay interface-dlci 102
class R2

sho policy-map int s0/0/0
Serial0/0/0: DLCI 102 -

Service-policy output: TST-r2

Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
Traffic Shaping
Target/Average   Byte   Sustain   Excess    Interval  Increment
Rate           Limit  bits/int  bits/int  (ms)      (bytes)
64000/64000     1000   8000      0         125       1000

Adapt  Queue     Packets   Bytes     Packets   Bytes     Shaping
Active Depth                         Delayed   Delayed   Active
BECN   0         0         0         0         0         no

======================================================================
map-class frame-relay R2
frame-relay interface-queue fair queue-limit 32
frame-relay interface-queue priority high
!
map-class frame-relay R3
frame-relay interface-queue fair queue-limit 32
frame-relay interface-queue priority medium
!
map-class frame-relay R4
frame-relay interface-queue fair queue-limit 32
!
map-class frame-relay R5
frame-relay interface-queue fair queue-limit 32
frame-relay interface-queue priority low

interface Serial0/0/0
bandwidth 192
ip address 10.1.1.1 255.255.255.0
encapsulation frame-relay
frame-relay interface-dlci 102
class R2
frame-relay interface-dlci 103
class R3
frame-relay interface-dlci 104
class R4
frame-relay interface-dlci 105
class R5

sho fram pvc 102

PVC Statistics for interface Serial0/0/0 (Frame Relay DTE)

DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0/0

input pkts 0             output pkts 0            in bytes 0
out bytes 0              dropped pkts 0           in pkts dropped 0
out pkts dropped 0                out bytes dropped 0
in FECN pkts 0           in BECN pkts 0           out FECN pkts 0
out BECN pkts 0          in DE pkts 0             out DE pkts 0
out bcast pkts 0         out bcast bytes 0
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
pvc create time 00:43:07, last time pvc status changed 00:43:07
priority high

========================================

frame-relay de-list 1 protocol ip gt 1500
frame-relay de-list 1 protocol ip tcp www
!
interface Serial0/0/0.12 point-to-point
ip address 131.1.12.1 255.255.255.0
frame-relay de-group 1 102
frame-relay interface-dlci 102

sho fram pvc 102

PVC Statistics for interface Serial0/0/0 (Frame Relay DTE)

DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0/0.12

input pkts 17            output pkts 19           in bytes 2005
out bytes 2930           dropped pkts 0           in pkts dropped 0
out pkts dropped 0                out bytes dropped 0
in FECN pkts 0           in BECN pkts 0           out FECN pkts 0
out BECN pkts 0          in DE pkts 0             out DE pkts 12
out bcast pkts 14        out bcast bytes 2410
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
pvc create time 00:04:17, last time pvc status changed 00:03:29
—————————————–
class-map match-any DE
match protocol http
match protocol ftp
!
!
policy-map TEST
class DE
set fr-de

interface Serial0/0/0.12 point-to-point
ip address 131.1.12.1 255.255.255.0
frame-relay interface-dlci 102
service-policy output TEST

sho policy-map int s0/0/0.12

Serial0/0/0.12

Service-policy output: TEST

Class-map: DE (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol http
0 packets, 0 bytes
5 minute rate 0 bps
Match: protocol ftp
0 packets, 0 bytes
5 minute rate 0 bps
QoS Set
fr-de
Packets marked 0

Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any

========================
r1
interface Serial0/0/0.12 point-to-point
ip address 131.1.12.1 255.255.255.0
frame-relay interface-dlci 102
frame-relay payload-compression packet-by-packet
!
interface Serial0/0/0.13 point-to-point
ip address 131.1.13.1 255.255.255.0
frame-relay interface-dlci 103
frame-relay payload-compression packet-by-packet

r3

r3(config-if)#frame-r map ip 131.1.13.1 301 broadcast payload-compression packet-by-packet

========

R1(config-subif)#frame-relay payload-compression frF9 stac

===========

class-map match-all bulk
match ip precedence 2  3
class-map match-all priority
match ip precedence 4
class-map match-all best-effort
match ip precedence 0  1
!
!
policy-map TEST
class best-effort
bandwidth percent 20
random-detect
random-detect precedence 0   20    40    10
random-detect precedence 1   22    40    10
class bulk
bandwidth percent 25
random-detect
random-detect precedence 2   24    40    10
random-detect precedence 3   26    40    10
class priority
bandwidth percent 35
random-detect
random-detect precedence 4   28    40    10
policy-map TST-r2
class class-default
shape average 64000 8000 0
shape adaptive 64000
!
interface FastEthernet0/0
ip address 10.1.12.1 255.255.255.0
duplex auto
speed auto
max-reserved-bandwidth 80
service-policy output TEST

sho policy-map int f0/0
FastEthernet0/0

Service-policy output: TEST

Class-map: best-effort (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: ip precedence 0  1
Queueing
Output Queue: Conversation 265
Bandwidth 20 (%)
Bandwidth 20000 (kbps)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0
exponential weight: 9
mean queue depth: 0

class    Transmitted      Random drop      Tail drop    Minimum Maximum  Mark
pkts/bytes       pkts/bytes       pkts/bytes    thresh  thresh  prob
0       0/0               0/0              0/0           20      40  1/10
1       0/0               0/0              0/0           22      40  1/10
2       0/0               0/0              0/0           24      40  1/10
3       0/0               0/0              0/0           26      40  1/10
4       0/0               0/0              0/0           28      40  1/10
5       0/0               0/0              0/0           30      40  1/10
6       0/0               0/0              0/0           32      40  1/10
7       0/0               0/0              0/0           34      40  1/10
rsvp       0/0               0/0              0/0           36      40  1/10

Class-map: bulk (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: ip precedence 2  3
Queueing
Output Queue: Conversation 266
Bandwidth 25 (%)
Bandwidth 25000 (kbps)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0
exponential weight: 9
mean queue depth: 0

class    Transmitted      Random drop      Tail drop    Minimum Maximum  Mark
pkts/bytes       pkts/bytes       pkts/bytes    thresh  thresh  prob
0       0/0               0/0              0/0           20      40  1/10
1       0/0               0/0              0/0           22      40  1/10
2       0/0               0/0              0/0           24      40  1/10
3       0/0               0/0              0/0           26      40  1/10
4       0/0               0/0              0/0           28      40  1/10
5       0/0               0/0              0/0           30      40  1/10
6       0/0               0/0              0/0           32      40  1/10
7       0/0               0/0              0/0           34      40  1/10
rsvp       0/0               0/0              0/0           36      40  1/10

Class-map: priority (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: ip precedence 4
Queueing
Output Queue: Conversation 267
Bandwidth 35 (%)
Bandwidth 35000 (kbps)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0
exponential weight: 9
mean queue depth: 0

class    Transmitted      Random drop      Tail drop    Minimum Maximum  Mark
pkts/bytes       pkts/bytes       pkts/bytes    thresh  thresh  prob
0       0/0               0/0              0/0           20      40  1/10
1       0/0               0/0              0/0           22      40  1/10
2       0/0               0/0              0/0           24      40  1/10
3       0/0               0/0              0/0           26      40  1/10
4       0/0               0/0              0/0           28      40  1/10
5       0/0               0/0              0/0           30      40  1/10
6       0/0               0/0              0/0           32      40  1/10
7       0/0               0/0              0/0           34      40  1/10
rsvp       0/0               0/0              0/0           36      40  1/10

Class-map: class-default (match-any)
5 packets, 300 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any

=======================

class-map match-all BESTEFFORT
match ip dscp af23

policy-map WRED
class BESTEFFORT
bandwidth percent 20
random-detect dscp-based
random-detect dscp 22   26    40    10

R1(config-pmap-c)#int f0/0
R1(config-if)#serv
R1(config-if)#service-policy ou WRED
R1(config-if)#do sho service-po
% Ambiguous command:  “do sho service-po”
R1(config-if)#do sho policy-map WRED
Policy Map WRED
Class BESTEFFORT
Bandwidth 20 (%)
exponential weight 9
dscp     min-threshold    max-threshold    mark-probablity
———————————————————-

af11      -                -                1/10
af12      -                -                1/10
af13      -                -                1/10
af21      -                -                1/10
af22      -                -                1/10
af23      26               40               1/10

af31      -                -                1/10
af32      -                -                1/10
af33      -                -                1/10
af41      -                -                1/10
af42      -                -                1/10
af43      -                -                1/10
cs1       -                -                1/10
cs2       -                -                1/10
cs3       -                -                1/10
cs4       -                -                1/10
cs5       -                -                1/10
cs6       -                -                1/10
cs7       -                -                1/10
ef        -                -                1/10
rsvp      -                -                1/10
default   -                -                1/10

Posted in QOS, Routing & Switching Lab | Leave a Comment »

QOS – switching

Posted by Peter Kurdziel on January 24, 2009

sw1#sh mls qos maps dscp-input-q
Dscp-inputq-threshold map:
d1 :d2    0     1     2     3     4     5     6     7     8     9
————————————————————
0 :    01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01
1 :    01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01
2 :    01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01
3 :    01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01
4 :    02-01 02-01 02-01 02-01 02-01 02-01 02-01 02-01 01-01 01-01
5 :    01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01
6 :    01-01 01-01 01-01 01-01

sw1(config)#$-queue input dscp-map queue 1 threshold 2 0 1 2 3 4 5 6 7
sw1(config)#$-queue input dscp-map queue 1 threshold ?
<1-3>  enter dscp-map threshold id

sw1(config)#mls qos srr-queue input dscp-map queue 1 threshold 2 ?
<0-63>  dscp values separated by spaces (up to 8 values total)

sw1(config)#$ut dscp-map queue 1 threshold 2  8 9 10 11 12 13 14 15
sw1(config)#$ut dscp-map queue 1 threshold 2  16 17 18 19 20
sw1(config)#$ut dscp-map queue 1 threshold 1 21 22 23 24 25 26 27 28
sw1(config)#$ut dscp-map queue 1 threshold 1 29 30 31 32 33 34 35 36
sw1(config)#$ut dscp-map queue 1 threshold 1 37 38 39 40 41 42 43 44
sw1(config)#$ut dscp-map queue 1 threshold 1 45 46 47 48 49 50

sw1(config)#$ut dscp-map queue 1 threshold 1 51 52 53 54 55 56 57 58
sw1(config)#$ut dscp-map queue 1 threshold 1 59
sw1(config)#mls qos srr-queue input dscp-map queue 1 threshold 2 60 61 62 63
sw1(config)#do sho mls qos maps dscp-i
sw1(config)#do sho mls qos maps dscp-input-q
Dscp-inputq-threshold map:
d1 :d2    0     1     2     3     4     5     6     7     8     9
————————————————————
0 :    01-02 01-02 01-02 01-02 01-02 01-02 01-02 01-02 01-02 01-02
1 :    01-02 01-02 01-02 01-02 01-02 01-02 01-02 01-02 01-02 01-02
2 :    01-02 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01
3 :    01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01
4 :    01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01
5 :    01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01
6 :    01-02 01-02 01-02 01-02

sw1(config)#do sho mls qos input-q
Queue     :       1       2
———————————————-
buffers   :      90      10
bandwidth :       4       4
priority  :       0      10
threshold1:     100     100
threshold2:     100     100
sw1(config)#

sw1(config)#do sho mls qos in
sw1(config)#do sho mls qos inpu
sw1(config)#do sho mls qos input-q
Queue     :       1       2
———————————————-
buffers   :      90      10
bandwidth :       4       4
priority  :       0      10
threshold1:     100     100
threshold2:     100     100
sw1(config)#mls qos srr
sw1(config)#mls qos srr-queue in
sw1(config)#mls qos srr-queue input thre
sw1(config)#mls qos srr-queue input threshold 1 50 75
sw1(config)#mls qos srr-queue input threshold 2 30 75
sw1(config)#do sho mls qos input-q
Queue     :       1       2
———————————————-
buffers   :      90      10
bandwidth :       4       4
priority  :       0      10
threshold1:      50      30
threshold2:      75      75
sw1(config)#

sw1(config)#mls qos srr-queue input bandwidth 35 45

sw1(config)#mls qos srr-queue input priority-queue 1 band 20

sw1#sh mls qos inp
Queue     :       1       2
———————————————-
buffers   :      60      40
bandwidth :      35      45
priority  :      20       0
threshold1:      50      30
threshold2:      75      75

=======================================================================

sw2(config)#mls qos srr-q out dscp-map queue 1 threshold 1 0 1 2 3 4 5 6 7
sw2(config)#$-q out dscp-map queue 1 threshold 2 8 9 10 11 12 13 14 15
sw2(config)#$-q out dscp-map queue 2 thre 1 16 17 18 19 20 21 22 23
sw2(config)#mls qos srr-q out dscp-map queue 2 thre 2 24 25 26 27 28 29 30 31
sw2(config)#mls qos srr-q out dscp-map queue 3 thres
sw2(config)#$-q out dscp-map queue 3 threshold 1 32 33 34 35 36 37 38 39
sw2(config)#$-q out dscp-map queue 3 threshold 2 40 41 42 43 44 45 46 47
sw2(config)#$-q out dscp-map queue 4 thre
sw2(config)#$-q out dscp-map queue 4 threshold 1 48 49 50 51 52 53 54 55
sw2(config)#$-q out dscp-map queue 4 threshold 2 56 57 58 59 60 61 62 63
sw2(config)#
sw2(config)#
sw2(config)#do sho mls qos maps dscp-output-q
Dscp-outputq-threshold map:
d1 :d2    0     1     2     3     4     5     6     7     8     9
————————————————————
0 :    01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-02 01-02
1 :    01-02 01-02 01-02 01-02 01-02 01-02 02-01 02-01 02-01 02-01
2 :    02-01 02-01 02-01 02-01 02-02 02-02 02-02 02-02 02-02 02-02
3 :    02-02 02-02 03-01 03-01 03-01 03-01 03-01 03-01 03-01 03-01
4 :    03-02 03-02 03-02 03-02 03-02 03-02 03-02 03-02 04-01 04-01
5 :    04-01 04-01 04-01 04-01 04-01 04-01 04-02 04-02 04-02 04-02
6 :    04-02 04-02 04-02 04-02

==============================================================================

sw2(config)#do show mls qos int f0/14 buff
FastEthernet0/14
QoS is disabled. When QoS is enabled, following settings will be applied
The port is mapped to qset : 1
The allocations between the queues are : 25 25 25 25

sw2(config)#mls qos
sw2(config)#
sw2(config)#
sw2(config)#do show mls qos int f0/14 buff
FastEthernet0/14
The port is mapped to qset : 1
The allocations between the queues are : 25 25 25 25

port specific

sw2(config)#mls qos queue-set output 2 buffers 40 20 20 20
sw2(config)#int f0/14
sw2(config-if)#queue-set 2
sw2(config-if)#do show mls qos int f0/14 buff
FastEthernet0/14
The port is mapped to qset : 2
The allocations between the queues are : 40 20 20 20

all ports – no int f0/x queue-set 1 is needed

sw2(config-if)#mls qos queue-set output 1 buffers 40 20 20 20
sw2(config)#do show mls qos int f0/1 buff
FastEthernet0/1
The port is mapped to qset : 1
The allocations between the queues are : 40 20 20 20

sw2(config)#do show mls qos int f0/24 buff
FastEthernet0/24
The port is mapped to qset : 1
The allocations between the queues are : 40 20 20 20
=========================================================

sw2(config)#mls qos queue-set out 2 thres 1 40 60 100 200
sw2(config)#mls qos queue-set out 2 thres 2 30 70 100 300

sw2(config)#do sho mls qos queue-set 2
Queueset: 2
Queue     :       1       2       3       4
———————————————-
buffers   :      40      20      20      20
threshold1:      40      30     100     100
threshold2:      60      70     100     100
reserved  :     100     100      50      50
maximum   :     200     300     400     400
=================================================

sw2(config)#do sho mls qos inter f0/16 queueing
FastEthernet0/16
Egress Priority Queue : disabled
Shaped queue weights (absolute) :  25 0 0 0
Shared queue weights  :  25 25 25 25
The port bandwidth limit : 100  (Operational Bandwidth:100.0)
The port is mapped to qset : 1

sw2(config)#int f0/16
sw2(config-if)#srr-queue band limit 80

sw2(config-if)#do sho mls qos inter f0/16 queueing
FastEthernet0/16
Egress Priority Queue : disabled
Shaped queue weights (absolute) :  25 0 0 0
Shared queue weights  :  25 25 25 25
The port bandwidth limit : 80  (Operational Bandwidth:80.0)
The port is mapped to qset : 1

=================================================

sw2(config-if)#do sho mls qos inter f0/16 queueing
FastEthernet0/16
Egress Priority Queue : disabled
Shaped queue weights (absolute) :  25 0 0 0
Shared queue weights  :  25 25 25 25
The port bandwidth limit : 80  (Operational Bandwidth:80.0)
The port is mapped to qset : 1

sw2(config-if)#
sw2(config-if)#
sw2(config-if)#int f0/16
sw2(config-if)#pri
sw2(config-if)#priority-queue out
sw2(config-if)#do sho mls qos inter f0/16 queueing
FastEthernet0/16
Egress Priority Queue : enabled
Shaped queue weights (absolute) :  25 0 0 0
Shared queue weights  :  25 25 25 25
The port bandwidth limit : 80  (Operational Bandwidth:80.0)
The port is mapped to qset : 1

====================================================

sw2(config-if)#  storm-control broadcast  level 50.00
sw2(config-if)#do sho storm f0/14 broa
Interface  Filter State   Upper        Lower        Current
———  ————-  ———–  ———–  ———-
Fa0/14     Forwarding      50.00%       50.00%        0.00%

===========================================================

sw3(config)#ml qos map cos-dscp 10 10 10 10 20 20 30 30
sw3(config)#do sho mls qos map cos-ds
Cos-dscp map:
cos:   0  1  2  3  4  5  6  7
——————————–
dscp:  10 10 10 10 20 20 30 30

===================================================

sw4(config)#mls qos map dscp-mutation TST 0 1 2 3 4 5 6 7 to 10
sw4(config)#mls qos map dscp-mutation TST 8 9 10 11 12 13 14 15 to 10
sw4(config)#mls qos map dscp-mutation TST 16 17 18 19 20 to 10

sw4(config)#mls qos map dscp-mutation TST 21 22 23 24 25 26 27 28 to 20
sw4(config)#mls qos map dscp-mutation TST 29 30 to 20

sw4(config)#mls qos map dscp-mutat TST 31 32 33 34 35 36 37 38 to 30
sw4(config)#mls qos map dscp-mutat TST 39 40 to 30

sw4(config)#mls qos map dscp-mutat TST  41 42 43 44 45 46 47 48 to 40
sw4(config)#mls qos map dscp-mutat TST  49 50 to 40
sw4(config)#
sw4(config)#mls qos map dscp-mutat TST 51 52 53 54 55 56 57 58 to 50
sw4(config)#mls qos map dscp-mutat TST 59 60 t 50
sw4(config)#mls qos map dscp-mutat TST 61 62 63 to 60

sw4(config)#int f0/23
sw4(config-if)#mls qos dsc
sw4(config-if)#mls qos dscp-mutation TST
sw4(config-if)#do sho mls qos map dscp-m

Dscp-dscp mutation map:
TST:
d1 :  d2 0  1  2  3  4  5  6  7  8  9
—————————————
0 :    10 10 10 10 10 10 10 10 10 10
1 :    10 10 10 10 10 10 10 10 10 10
2 :    10 20 20 20 20 20 20 20 20 20
3 :    20 30 30 30 30 30 30 30 30 30
4 :    30 40 40 40 40 40 40 40 40 40
5 :    40 50 50 50 50 50 50 50 50 50
6 :    50 60 60 60

Dscp-dscp mutation map:
Default DSCP Mutation Map:
d1 :  d2 0  1  2  3  4  5  6  7  8  9
—————————————
0 :    00 01 02 03 04 05 06 07 08 09
1 :    10 11 12 13 14 15 16 17 18 19
2 :    20 21 22 23 24 25 26 27 28 29
3 :    30 31 32 33 34 35 36 37 38 39
4 :    40 41 42 43 44 45 46 47 48 49
5 :    50 51 52 53 54 55 56 57 58 59
6 :    60 61 62 63

Posted in CATALYST, QOS, Routing & Switching Lab | Leave a Comment »