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