PG1X WIKI

My Knowledge Base

User Tools

Site Tools


tech:network:cisco:qos:qos

Cisco: QoS Basics

Quality of service

  1. IntServ
  2. DiffServ
  3. Best Effort(FIFO)

Topology:

Preparation

Project name: ccna-qos-0001-qos

FIFO

Queueing strategy: fifo

SW1#show interfaces GigabitEthernet 0/1
GigabitEthernet0/1 is up, line protocol is up (connected) 
  Hardware is iGbE, address is 0c7c.ce3a.fd01 (bia 0c7c.ce3a.fd01)
  MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Unknown, Unknown, link type is auto, media type is unknown media type
  output flow-control is unsupported, input flow-control is unsupported
  Auto-duplex, Auto-speed, link type is auto, media type is unknown
  input flow-control is off, output flow-control is unsupported 
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input never, output 00:00:01, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/0 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts (0 multicasts)
     0 runts, 0 giants, 0 throttles 
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 0 multicast, 0 pause input
     654 packets output, 50442 bytes, 0 underruns
     0 output errors, 0 collisions, 2 interface resets
     0 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 pause output
     0 output buffer failures, 0 output buffers swapped out

PQ(Priority Queueing)

  1. IOSv not supported 15
  2. ISR 1841 not supported 15
  3. Catalyst 3750 v2 supported 15
  4. IOSvL2 supported 15.2
priority-list

Cisco Equipment Convenient startup-config

en
conf t
no service config
no setup express
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
exit
hostname SW1
line vty 0 15
exec-timeout 0 0
exit
end
write
SW1>en
SW1#
*May  2 00:03:35.697: %PLATFORM-5-SIGNATURE_VERIFIED: Image 'flash0:/vios_l2-adventerprisek9-m' passed code signing verification
SW1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
SW1(config)#acc
SW1(config)#access-li
SW1(config)#access-list 101 per
SW1(config)#ip routeing            
                    ^
% Invalid input detected at '^' marker.

SW1(config)#ip rou
SW1(config)#ip routi
SW1(config)#ip routing >?
% Unrecognized command
SW1(config)#ip routing ?
  protocol  IP routing protocol
  <cr>

SW1(config)#ip routing 
SW1(config)#acc
SW1(config)#access-li
SW1(config)#access-list 101 per
SW1(config)#access-list 101 permit 192.168.1.0. 0.0.0.255 10.1.1.0 0.0.0.255
                                      ^
% Invalid input detected at '^' marker.

SW1(config)#access-list 101 permit ip 192.168.1.0. 0.0.0.255 10.1.1.0 0.0.0.255
                                                 ^
% Invalid input detected at '^' marker.

SW1(config)#access-list 101 permit 192.168.1.0 0.0.0.255 10.1.1.0 0.0.0.255    
                                      ^
% Invalid input detected at '^' marker.

SW1(config)#access-list 101 permit ip 192.168.1.0 0.0.0.255 10.1.1.0 0.0.0.255
SW1(config)#pri
SW1(config)#prio
SW1(config)#priority-list 1 pro
SW1(config)#priority-list 1 protocol ip hi
SW1(config)#priority-list 1 protocol ip high li
SW1(config)#priority-list 1 protocol ip high list 101
SW1(config)#prio
SW1(config)#priority-list 1 pro
SW1(config)#priority-list 1 protocol ip
SW1(config)#priority-list 1 protocol ip medi
SW1(config)#priority-list 1 protocol ip medium tc
SW1(config)#priority-list 1 protocol ip medium tcp ?  
  <0-65535>    Port number
  bgp          Border Gateway Protocol (179)
  chargen      Character generator (19)
  cmd          Remote commands (rcmd, 514)
  daytime      Daytime (13)
  discard      Discard (9)
  domain       Domain Name Service (53)
  echo         Echo (7)
  exec         Exec (rsh, 512)
  finger       Finger (79)
  ftp          File Transfer Protocol (21)
  ftp-data     FTP data connections (20)
  gopher       Gopher (70)
  hostname     NIC hostname server (101)
  ident        Ident Protocol (113)
  irc          Internet Relay Chat (194)
  klogin       Kerberos login (543)
  kshell       Kerberos shell (544)
  login        Login (rlogin, 513)
  lpd          Printer service (515)
  nntp         Network News Transport Protocol (119)
  pim-auto-rp  PIM Auto-RP (496)
          
SW1(config)#priority-list 1 protocol ip medium tcp 23
SW1(config)#prio
SW1(config)#priority-list 1 pro
SW1(config)#priority-list 1 protocol ip medi
SW1(config)#priority-list 1 protocol ip medium tc
SW1(config)#priority-list 1 protocol ip medium tcp 22
SW1(config)#pri
SW1(config)#prio
SW1(config)#priority-list 1 pro
SW1(config)#priority-list 1 protocol ip medi
SW1(config)#priority-list 1 protocol ip medium ud
SW1(config)#priority-list 1 protocol ip medium udp 53
SW1(config)#inter
SW1(config)#interface se
SW1(config)#interface gig0/1
SW1(config-if)#prio
SW1(config-if)#priority-group 1
SW1(config-if)#^Z
SW1#show 
*May  2 00:06:29.018: %SYS-5-CONFIG_I: Configured from console by console
SW1#show pri
SW1#shoq queu      
SW1#shoq queue
SW1#show queu 
SW1#show queue inter
SW1#show queu       
SW1#show queue?
queue  queueing  

SW1#show queue ?
  Async              Async interface
  Auto-Template      Auto-Template interface
  BVI                Bridge-Group Virtual Interface
  CTunnel            CTunnel interface
  Dialer             Dialer interface
  EsconPhy           ESCON interface
  Filter             Filter interface
  Filtergroup        Filter Group interface
  GMPLS              MPLS interface
  GigabitEthernet    GigabitEthernet IEEE 802.3z
  Group-Async        Async Group interface
  GroupVI            Group Virtual interface
  LISP               Locator/ID Separation Protocol Virtual Interface
  Lex                Lex interface
  Loopback           Loopback interface
  Lspvif             LSP virtual interface
  MFR                Multilink Frame Relay bundle interface
  Multilink          Multilink-group interface
  Null               Null interface
  Port-channel       Ethernet Channel of interfaces
  Portgroup          Portgroup interface
  Pos-channel        POS Channel of interfaces
          
SW1#show queue Gig
SW1#show queue GigabitEthernet 0/1
SW1#show queuei
SW1#show queueing pri
SW1#show queueing priority 
Current DLCI priority queue configuration:
Current priority queue configuration:

List   Queue  Args
1      high   protocol ip          list 101
1      medium protocol ip          tcp port telnet
1      medium protocol ip          tcp port 22
1      medium protocol ip          udp port domain
SW1#

CS(Custom Queueing)

SW1>en
SW1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
SW1(config)#que
SW1(config)#           
SW1(config)#
SW1(config)#
SW1(config)#acce
SW1(config)#access-li
SW1(config)#access-list 101 per
SW1(config)#$ 101 permit ip 192.168.1.0 0.0.0.255 10.1.1.0 0.0.0.255         
SW1(config)#que
SW1(config)#queue-list 1 pro
SW1(config)#queue-list 1 protocol ip
SW1(config)#queue-list 1 protocol ip 1 lis
SW1(config)#queue-list 1 protocol ip 1 list 101
SW1(config)#que
SW1(config)#queue-list 1 pro
SW1(config)#queue-list 1 protocol ip 2 tc
SW1(config)#queue-list 1 protocol ip 2 tcp 23
SW1(config)#que
SW1(config)#queue-list 1 pro
SW1(config)#queue-list 1 protocol ip 3 tc
SW1(config)#queue-list 1 protocol ip 3 tcp 22
SW1(config)#qu
SW1(config)#queue-list 1 de 
SW1(config)#queue-list 1 default ?
  <0-16>  queue number

SW1(config)#queue-list 1 default 4
SW1(config)#que
SW1(config)#queue-list pro
SW1(config)#queue-list proto 
SW1(config)#queue-list 1 pro
SW1(config)#queue-list 1 protocol ip 5 tc
SW1(config)#queue-list 1 protocol ip 5 tcp 80
SW1(config)#queue-list 1 protocol ip 5 tcp 443
SW1(config)#que
SW1(config)#queue-list 1 que
SW1(config)#queue-list 1 queue 1 by
SW1(config)#queue-list 1 queue 1 byte-count 1400
SW1(config)#que
SW1(config)#queue-list 1 que
SW1(config)#queue-list 1 queue 2 by
SW1(config)#queue-list 1 queue 2 byte-count 640
SW1(config)#que
SW1(config)#queue-list 1 qu
SW1(config)#queue-list 1 queue 3 by
SW1(config)#queue-list 1 queue 3 byte-count 640 
SW1(config)#que
SW1(config)#queue-list 1 qu
SW1(config)#queue-list 1 queue 4 by
SW1(config)#queue-list 1 queue 4 byte-count 1200
SW1(config)#que
SW1(config)#queue-list 1 qu
SW1(config)#queue-list 1 queue 4 by
SW1(config)#queue-list 1 queue 5 byte-count 1500
SW1(config)#int 
SW1(config)#interface gig0/1
SW1(config-if)#cus
SW1(config-if)#custom-queue-list 1
SW1(config-if)#^Z
SW1#
*May  2 01:36:52.869: %SYS-5-CONFIG_I: Configured from console by console
SW1#show que
SW1#show queuei
SW1#show queue i  
SW1#show queue gig0/1
SW1#show inter
SW1#show interfaces gig0/1
GigabitEthernet0/1 is up, line protocol is up (connected) 
  Hardware is iGbE, address is 0c7c.ce3a.fd01 (bia 0c7c.ce3a.fd01)
  MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Unknown, Unknown, link type is auto, media type is unknown media type
  output flow-control is unsupported, input flow-control is unsupported
  Auto-duplex, Auto-speed, link type is auto, media type is unknown
  input flow-control is off, output flow-control is unsupported 
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input never, output 00:00:01, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: custom-list 1
  Output queues: (queue #: size/max/drops)
     0: 0/20/0 1: 0/20/0 2: 0/20/0 3: 0/20/0 4: 0/20/0 
     5: 0/20/0 6: 0/20/0 7: 0/20/0 8: 0/20/0 9: 0/20/0 
     10: 0/20/0 11: 0/20/0 12: 0/20/0 13: 0/20/0 14: 0/20/0 
     15: 0/20/0 16: 0/20/0 
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts (0 multicasts)
     0 runts, 0 giants, 0 throttles 
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 0 multicast, 0 pause input
     762 packets output, 58146 bytes, 0 underruns
     0 output errors, 0 collisions, 2 interface resets
     0 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 pause output
     0 output buffer failures, 0 output buffers swapped out
SW1#show que
SW1#show queuei
SW1#show queueing cus
SW1#show queueing custom 
Current custom queue configuration:

List   Queue  Args
1      4      default
1      1      protocol ip          list 101
1      2      protocol ip          tcp port telnet
1      3      protocol ip          tcp port 22
1      5      protocol ip          tcp port www
1      5      protocol ip          tcp port 443
1      1      byte-count 1400 
1      2      byte-count 640 
1      3      byte-count 640 
1      4      byte-count 1200 
SW1#

WFQ(Weighted Fair Queueing)

  1. WFQ(Flow-Based WFQ)
  2. DWFQ(Distributed WFQ)
  3. (Major)CBWFQ(Class-Based WFQ)
  4. DCBWFQ(Distributed Class-Based WFQ)
SW1#show interfaces GigabitEthernet 0/1
GigabitEthernet0/1 is up, line protocol is up (connected) 
  Hardware is iGbE, address is 0c7c.ce3a.fd01 (bia 0c7c.ce3a.fd01)
  MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Unknown, Unknown, link type is auto, media type is unknown media type
  output flow-control is unsupported, input flow-control is unsupported
  Auto-duplex, Auto-speed, link type is auto, media type is unknown
  input flow-control is off, output flow-control is unsupported 
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input never, output 00:00:01, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/0 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts (0 multicasts)
     0 runts, 0 giants, 0 throttles 
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 0 multicast, 0 pause input
     654 packets output, 50442 bytes, 0 underruns
     0 output errors, 0 collisions, 2 interface resets
     0 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 pause output
     0 output buffer failures, 0 output buffers swapped out
SW1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
SW1(config)#int gig0/1
SW1(config-if)#fai
SW1(config-if)#fair-queue ?
  <1-4096>  Congestive Discard Threshold
  <cr>

SW1(config-if)#fair-queue 64 ?
  <16-4096>  Number Dynamic Conversation Queues
  <cr>

SW1(config-if)#fair-queue 64 32 ?
  <0-1000>  Number Reservable Conversation Queues
  <cr>

SW1(config-if)#fair-queue 64 32 10
SW1(config-if)#do sh int gig0/1
GigabitEthernet0/1 is up, line protocol is up (connected) 
  Hardware is iGbE, address is 0c7c.ce3a.fd01 (bia 0c7c.ce3a.fd01)
  MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Unknown, Unknown, link type is auto, media type is unknown media type
  output flow-control is unsupported, input flow-control is unsupported
  Auto-duplex, Auto-speed, link type is auto, media type is unknown
  input flow-control is off, output flow-control is unsupported 
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input never, output 00:00:01, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: weighted fair
  Output queue: 0/1000/64/0 (size/max total/threshold/drops) 
     Conversations  0/1/32 (active/max active/max total)
     Reserved Conversations 0/0 (allocated/max allocated)
     Available Bandwidth 750000 kilobits/sec
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts (0 multicasts)
     0 runts, 0 giants, 0 throttles 
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 0 multicast, 0 pause input
     849 packets output, 64560 bytes, 0 underruns
     0 output errors, 0 collisions, 2 interface resets
     0 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 pause output
     0 output buffer failures, 0 output buffers swapped out
SW1(config-if)#^Z
SW1#show 
*May  2 02:10:09.361: %SYS-5-CONFIG_I: Configured from console by console
SW1#show que
SW1#show queue gig0/1
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: weighted fair
  Output queue: 0/1000/64/0 (size/max total/threshold/drops) 
     Conversations  0/1/32 (active/max active/max total)
     Reserved Conversations 0/0 (allocated/max allocated)
     Available Bandwidth 750000 kilobits/sec


SW1#

CBWFQ(Class-Based WFQ)

  1. MQC(Modular QoS CLI)
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#que
R1(config)#queu
R1(config)#queu
R1(config)#queu
R1(config)#queu
R1(config)#que 
R1(config)#qu 
R1(config)#q 
R1(config)#cla 
R1(config)#poli      
R1(config)#cla        
R1(config)#class-map ma
R1(config)#class-map match-aa
R1(config)#class-map match-al
R1(config)#class-map match-all na
R1(config)#class-map match-all TCM
R1(config-cmap)#mat
R1(config-cmap)#match ip dsc
R1(config-cmap)#match ip dscp va
R1(config-cmap)#match ip dscp 46
R1(config-cmap)#exit
R1(config)#policy
R1(config)#policy-map PM
R1(config-pmap)#cla
R1(config-pmap)#class m
R1(config-pmap)#class ma
R1(config-pmap)#class ? 
  WORD            class-map name
  class-default   System default class matching otherwise unclassified packets

R1(config-pmap)#class TCM
R1(config-pmap-c)#band
R1(config-pmap-c)#bandwidth ?
  <1-2000000>  Kilo Bits per second
  percent      % of total Bandwidth
  remaining    percent/ratio of the remaining bandwidth

R1(config-pmap-c)#bandwidth 123
R1(config-pmap-c)#que
R1(config-pmap-c)#queue-limit ?
  <1-8192000>  in bytes, <1-3400> in ms, <1-512000> in us, <1-32768> in packets
               by default
  dscp         parameters for each dscp value
  qos-group    parameters for each qos-group value

R1(config-pmap-c)#queue-limit 1000
R1(config-pmap-c)#exit
R1(config-pmap)#cla
R1(config-pmap)#class cla
R1(config-pmap)#class clas
R1(config-pmap)#class def 
R1(config-pmap)#class defau
R1(config-pmap)#class ?    
  WORD            class-map name
  class-default   System default class matching otherwise unclassified packets

R1(config-pmap)#class cla
R1(config-pmap)#class claa
R1(config-pmap)#class clas
R1(config-pmap)#class class-de
R1(config-pmap)#class         
R1(config-pmap)#class 
R1(config-pmap)#class ?
  WORD            class-map name
  class-default   System default class matching otherwise unclassified packets

R1(config-pmap)#class cla
R1(config-pmap)#class class
R1(config-pmap)#class class?
WORD  

R1(config-pmap)#class class-defaul
R1(config-pmap)#class class-default
R1(config-pmap)#class class-default ?
  <cr>

R1(config-pmap)#class class-default 
R1(config-pmap-c)#fai
R1(config-pmap-c)#fair-queue ?
  <16-4096>  Number Dynamic Conversation Queues
  <cr>

R1(config-pmap-c)#fair-queue 1024 
R1(config-pmap-c)#exit
R1(config-pmap)#exit
R1(config)#int gig0/1
R1(config-if)#servi
R1(config-if)#service-po
R1(config-if)#service-policy ou
R1(config-if)#service-policy output PM
R1(config-if)#
*May  2 03:46:28.969: %QOS-4-QLIMIT_HQUEUE_VALUE_SYNC_ISSUE: The sum of all queue-limit value is greater than the hold-queue value. 

R1(config-if)#^Z    
R1#
*May  2 03:46:57.821: %SYS-5-CONFIG_I: Configured from console by console
R1#sh run | sec policy
R1#sh run | sec policy-map PM
policy-map PM
 class TCM
  bandwidth 123
  queue-limit 1000 packets
 class class-default
  fair-queue 1024
R1#show interface gig0/1 | i BW
  MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, 
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#int gig0/1
R1(config-if)#max-reser
R1(config-if)#max      
R1(config-if)#max?
% Unrecognized command
R1(config-if)#m? 
mac-address  media-proxy  media-type  metadata
mop          mpls         mtu         

R1(config-if)#mmax-reserved-bandwidth 99
               ^
% Invalid input detected at '^' marker.

R1(config-if)#max-reserved-bandwidth 99
                ^
% Invalid input detected at '^' marker.

R1(config-if)#exit
R1(config)#max-reserved-bandwidth 99
             ^
% Invalid input detected at '^' marker.

R1(config)#

Cisco IOS Quality of Service Solutions Command Reference - match access-group through mls ip pbr [Support & Downloads] - Cisco

max-reserved-bandwidth
Effective with Cisco IOS XE Release 2.6, Cisco IOS Release 15.0(1)S, and Cisco IOS Release 15.1(3)T, the max-reserved bandwidth command is hidden. Although this command is still available in Cisco IOS software, the CLI interactive Help does not display it if you attempt to view it by entering a question mark at the command line. This command will be completely removed in a future release

not available, replaced by MQC

C1812J 12 available.

R4#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R4(config)#int f0
R4(config-if)#max
R4(config-if)#max-reserved-bandwidth 99

LLQ(Low-Latency Queueing)

R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#acce
R1(config)#$ 101 permit ip 192.168.1.0 0.0.0.255 10.1.0.0 0.0.255.255        
R1(config)#acce
R1(config)#access-list 102 per
R1(config)#$ 102 permit ip 192.168.2.0 0.0.0.255 10.2.0.0 0.0.255.255        
R1(config)#acc
R1(config)#access-list 103 permit ip 192.168.3.0 0.0.0.255 10.3.0 0.0.255.255
                                                                 ^
% Invalid input detected at '^' marker.

R1(config)#access-list 103 permit ip 192.168.3.0 0.0.0.255 10.3.0.0 0.0.255.255
R1(config)#class
R1(config)#class-map mat
R1(config)#class-map match-an
R1(config)#class-map match-any C-VOICE
R1(config-cmap)#mat
R1(config-cmap)#match acce 
R1(config-cmap)#match access-group 101
R1(config-cmap)#exit
R1(config)#class-map mat
R1(config)#class-map match-an
R1(config)#class-map C-DATA2   
R1(config-cmap)#mat
R1(config-cmap)#match acce
R1(config-cmap)#match access-group 102
R1(config-cmap)#class-map C-Data3
R1(config-cmap)#match acc
R1(config-cmap)#match access-group 103
R1(config-cmap)#exit
R1(config)#policy
R1(config)#policy-map P-RULE1
R1(config-pmap)#cla
R1(config-pmap)#class C-VOICE
R1(config-pmap-c)#pri
R1(config-pmap-c)#priority per
R1(config-pmap-c)#priority percent 10
R1(config-pmap-c)#clas
R1(config-pmap-c)#class C-DATA2
R1(config-pmap-c)#band
R1(config-pmap-c)#bandwidth per
R1(config-pmap-c)#bandwidth percent 25
R1(config-pmap-c)#class C-DATA3
class map C-DATA3 not configured
R1(config-pmap)#class C-Data3
R1(config-pmap-c)#bandwi
R1(config-pmap-c)#bandwidth per
R1(config-pmap-c)#bandwidth percent 25
R1(config-pmap-c)#cla
R1(config-pmap-c)#exit 
R1(config-pmap)#class cla
R1(config-pmap)#class class
R1(config-pmap)#class class-defa
R1(config-pmap)#class class-default
R1(config-pmap-c)#fair-qu
R1(config-pmap-c)#fair-queue 
R1(config-pmap-c)#exit
R1(config-pmap)#inter 
R1(config-pmap)#exit 
R1(config)#inter
R1(config)#interface gig0/1
R1(config-if)#servi
R1(config-if)#service-po
R1(config-if)#service-policy ou
R1(config-if)#service-policy output P-RULE1
R1(config-if)#^Z
R1#
*May  2 04:44:31.169: %SYS-5-CONFIG_I: Configured from console by console
R1#show policy
R1#show policy-m
R1#show policy-map
R1#show policy-map in
R1#show policy-map interface Gig
R1#show policy-map interface GigabitEthernet 0/1
 GigabitEthernet0/1 

  Service-policy output: P-RULE1

    queue stats for all priority classes:
      Queueing
      queue limit 64 packets
      (queue depth/total drops/no-buffer drops) 0/0/0
      (pkts output/bytes output) 0/0

    Class-map: C-VOICE (match-any)  
      0 packets, 0 bytes
      5 minute offered rate 0000 bps, drop rate 0000 bps
      Match: access-group 101
        0 packets, 0 bytes
        5 minute rate 0 bps
      Priority: 10% (100000 kbps), burst bytes 2500000, b/w exceed drops: 0
      

    Class-map: C-DATA2 (match-all)  
      0 packets, 0 bytes
      5 minute offered rate 0000 bps, drop rate 0000 bps
      Match: access-group 102
      Queueing
      queue limit 64 packets
      (queue depth/total drops/no-buffer drops) 0/0/0
      (pkts output/bytes output) 0/0
      bandwidth 25% (250000 kbps)

    Class-map: C-Data3 (match-all)  
      0 packets, 0 bytes
      5 minute offered rate 0000 bps, drop rate 0000 bps
      Match: access-group 103
      Queueing
      queue limit 64 packets
      (queue depth/total drops/no-buffer drops) 0/0/0
      (pkts output/bytes output) 0/0
      bandwidth 25% (250000 kbps)

    Class-map: class-default (match-any)  
      0 packets, 0 bytes
      5 minute offered rate 0000 bps, drop rate 0000 bps
      Match: any 
      Queueing
      queue limit 64 packets
      (queue depth/total drops/no-buffer drops/flowdrops) 0/0/0/0
      (pkts output/bytes output) 0/0
      Fair-queue: per-flow queue limit 16 packets
R1#
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#access-list 101 permit udp any any range 16384 32767
R1(config)#acce
R1(config)#access-list 102 per
R1(config)#access-list 102 permit tcp an
R1(config)#access-list 102 permit tcp any eq 1720 an
R1(config)#access-list 102 permit tcp any eq 1720 any 
R1(config)#acce
R1(config)#access-list 102 permit tcp any any eq 1720
R1(config)#class-map C-VOICE
R1(config-cmap)#match acce
R1(config-cmap)#match access-group 101
R1(config-cmap)#exit
R1(config)#class
R1(config)#class-map C-SIGNAL
R1(config-cmap)#mat
R1(config-cmap)#match add
R1(config-cmap)#match acce
R1(config-cmap)#match access-group 102
R1(config-cmap)#exit
R1(config)#policy
R1(config)#policy-map P-RULE1
R1(config-pmap)#class C-VOICE
R1(config-pmap-c)#pri
R1(config-pmap-c)#priority 45
R1(config-pmap-c)#exit
R1(config-pmap)#cla
R1(config-pmap)#class C-SIGNAL
R1(config-pmap-c)#band
R1(config-pmap-c)#bandwidth 8
R1(config-pmap-c)#exit
R1(config-pmap)#class class-default
R1(config-pmap-c)#fair
R1(config-pmap-c)#fair-queue 
R1(config-pmap-c)#exit
R1(config-pmap)#exit
R1(config)#int gig0/1
R1(config-if)#service-po
R1(config-if)#service-policy out
R1(config-if)#service-policy output P-RULE1
R1(config-if)#exit
R1(config)#class-map mat    
R1(config)#class-map match-an
R1(config)#class-map match-any C-VOICE
R1(config-cmap)#matc
R1(config-cmap)#match ip
R1(config-cmap)#match ip rt
R1(config-cmap)#match ip rtp ?   
  <2000-65535>  Lower bound of UDP destination port c3pl-dev

R1(config-cmap)#match ip rtp 16384 ? 
  <0-16383>  Range of UDP ports

R1(config-cmap)#match ip rtp 16384 16383
R1(config-cmap)#mat
R1(config-cmap)#match ip prece
R1(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)

R1(config-cmap)#match ip precedence 5
R1(config-cmap)#mat
R1(config-cmap)#match ip ds
R1(config-cmap)#match ip dscp ?
  <0-63>   Differentiated services codepoint value
  af11     Match packets with AF11 dscp (001010)
  af12     Match packets with AF12 dscp (001100)
  af13     Match packets with AF13 dscp (001110)
  af21     Match packets with AF21 dscp (010010)
  af22     Match packets with AF22 dscp (010100)
  af23     Match packets with AF23 dscp (010110)
  af31     Match packets with AF31 dscp (011010)
  af32     Match packets with AF32 dscp (011100)
  af33     Match packets with AF33 dscp (011110)
  af41     Match packets with AF41 dscp (100010)
  af42     Match packets with AF42 dscp (100100)
  af43     Match packets with AF43 dscp (100110)
  cs1      Match packets with CS1(precedence 1) dscp (001000)
  cs2      Match packets with CS2(precedence 2) dscp (010000)
  cs3      Match packets with CS3(precedence 3) dscp (011000)
  cs4      Match packets with CS4(precedence 4) dscp (100000)
  cs5      Match packets with CS5(precedence 5) dscp (101000)
  cs6      Match packets with CS6(precedence 6) dscp (110000)
  cs7      Match packets with CS7(precedence 7) dscp (111000)
  default  Match packets with default dscp (000000)
  ef       Match packets with EF dscp (101110)
          
R1(config-cmap)#match ip dscp ef
R1(config-cmap)#^Z
R1#
*May  2 04:59:15.179: %SYS-5-CONFIG_I: Configured from console by console
R1#sh cla
R1#sh class-map 
 Class Map match-any class-default (id 0)
   Match any 

 Class Map match-any C-VOICE (id 1)
   Match access-group  101 
   Match ip  rtp 16384 16383
   Match ip  precedence 5 
   Match ip  dscp ef (46)

 Class Map match-all C-SIGNAL (id 2)
   Match access-group  102 

R1#sh policy
R1#sh policy-ma
R1#sh policy-map
R1#sh policy-map 
  Policy Map P-RULE1
    Class C-VOICE
      priority 45 (kbps)
    Class C-SIGNAL
      bandwidth 8 (kbps)
    Class class-default
      fair-queue

R1#sh acce
R1#sh access-li
R1#sh access-lists 
Extended IP access list 101
    10 permit udp any any range 16384 32767
Extended IP access list 102
    10 permit tcp any eq 1720 any
    20 permit tcp any any eq 1720
R1#

IP RTP Priority

  1. RTP(Real-time Transport Protocol)
  2. RTCP(RTP Control Protocol)

IOSv, IOSvL2 not available

R1(config)#ip rtp ?
% Unrecognized command
R1(config)#ip rtp priority 16384 16383 45
                  ^
% Invalid input detected at '^' marker.

R1(config)#ip rtp ?
% Unrecognized command
R1(config)#ip rtp ]
                  ^
% Invalid input detected at '^' marker.

R1(config)#ip rtp  
% Incomplete command.

R1(config)#ip rtp ?
% Unrecognized command
R1(config)#ip rtp?
% Unrecognized command
R1(config)#ip rtp 

Cisco IOS Quality of Service Solutions Command Reference - ip rsvp precedence through load protocol [Support & Downloads] - Cisco

very difficult to find applicable platform.

IP Precedence

in ToS(Type of Service)

Legacy: Marking w/ PBR

R1(config)#access-list 101 permi
R1(config)#access-list 101 permit ip any host 172.16.1.1
R1(config)#route-map R-MARK permit 10
R1(config-route-map)#mat
R1(config-route-map)#match ip add
R1(config-route-map)#match ip address 101
R1(config-route-map)#set ip prece
R1(config-route-map)#set ip precedence cri
R1(config-route-map)#set ip precedence critical 
R1(config-route-map)#exit
R1(config)#int gig0/1
R1(config-if)#ip poli
R1(config-if)#ip policy route-ma
R1(config-if)#ip policy route-map R-MARK
R1(config-if)#^Z
R1#
*May  2 06:44:59.658: %SYS-5-CONFIG_I: Configured from console by console
R1#sh ip route-map
              ^
% Invalid input detected at '^' marker.

R1#sh route-map
route-map R-MARK, permit, sequence 10
  Match clauses:
    ip address (access-lists): 101 
  Set clauses:
    ip precedence critical
  Policy routing matches: 0 packets, 0 bytes

Class-Based Marking

R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#ip cef 
R1(config)#acces
R1(config)#access-list 101 permit ip any host 172.16.1.1
R1(config)#class-ma
R1(config)#class-map mat
R1(config)#class-map match-all
R1(config)#class-map match-all C-MARK
R1(config-cmap)#mat
R1(config-cmap)#match acce
R1(config-cmap)#match access-group 101
R1(config-cmap)#exit
R1(config)#policy
R1(config)#policy-map P-MARK permi
R1(config)#policy-map P-MARK per  
R1(config)#policy-map P-MARK ?  
  <cr>

R1(config)#policy-map P-MARK 
R1(config-pmap)#cla
R1(config-pmap)#class C-MARK
R1(config-pmap-c)#set ip prece
R1(config-pmap-c)#set ip precedence 
% Incomplete command.

R1(config-pmap-c)#set ip precedence 5
R1(config-pmap-c)#exit
R1(config-pmap)#exit
R1(config)#int gig0/1
R1(config-if)#service-poli
R1(config-if)#service-policy in
R1(config-if)#service-policy input P-MARK
R1(config-if)#
R1(config-if)#^Z
R1#
*May  2 06:48:58.755: %SYS-5-CONFIG_I: Configured from console by console
R1#sh policy
R1#sh policy-ma
R1#sh policy-map
  Policy Map P-RULE1
    Class C-VOICE
      priority 45 (kbps)
    Class C-SIGNAL
      bandwidth 8 (kbps)
    Class class-default
      fair-queue

  Policy Map P-MARK
    Class C-MARK
      set ip precedence 5

R1#sh policy-map P-MARK
  Policy Map P-MARK
    Class C-MARK
      set ip precedence 5
R1#

DSCP(Differentiated Services Code Point)

  1. PHB(Per Hop Behavior)
  2. CS(Class Selector)
  3. AF(Assured Forwarding)
  4. EF(Expedited Forwarding)
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#class-ma
R1(config)#class-map C-VOICE
R1(config-cmap)#mat
R1(config-cmap)#match acce
R1(config-cmap)#match access-group 101
R1(config-cmap)#exit
R1(config)#policy
R1(config)#policy-map P-MAP  
R1(config-pmap)#cla
R1(config-pmap)#class C-VOICE
R1(config-pmap-c)#set ip prece
R1(config-pmap-c)#set ip precedence ?
  <0-7>           Precedence value
  cos             Set packet precedence from L2 cos.
  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)
  qos-group       Set packet precedence from QoS Group.
  routine         Match packets with routine precedence (0)
  tunnel          Set tunnel packet precedence

R1(config-pmap-c)#set ip dscp ?     
  <0-63>     Differentiated services codepoint value
  af11       Match packets with AF11 dscp (001010)
  af12       Match packets with AF12 dscp (001100)
  af13       Match packets with AF13 dscp (001110)
  af21       Match packets with AF21 dscp (010010)
  af22       Match packets with AF22 dscp (010100)
  af23       Match packets with AF23 dscp (010110)
  af31       Match packets with AF31 dscp (011010)
  af32       Match packets with AF32 dscp (011100)
  af33       Match packets with AF33 dscp (011110)
  af41       Match packets with AF41 dscp (100010)
  af42       Match packets with AF42 dscp (100100)
  af43       Match packets with AF43 dscp (100110)
  cos        Set packet DSCP from L2 COS
  cs1        Match packets with CS1(precedence 1) dscp (001000)
  cs2        Match packets with CS2(precedence 2) dscp (010000)
  cs3        Match packets with CS3(precedence 3) dscp (011000)
  cs4        Match packets with CS4(precedence 4) dscp (100000)
  cs5        Match packets with CS5(precedence 5) dscp (101000)
  cs6        Match packets with CS6(precedence 6) dscp (110000)
  cs7        Match packets with CS7(precedence 7) dscp (111000)
  default    Match packets with default dscp (000000)
  ef         Match packets with EF dscp (101110)
  qos-group  Set packet dscp from QoS Group.
  tunnel     set tunnel packet dscp

R1(config-pmap-c)#set ip dscp 

CoS(Class of Service)

Ethernet frame marking.

Cisco IOS Quality of Service Solutions Command Reference - mls qos global configuration mode through mpls experimental [Support & Downloads] - Cisco

  1. IOSv 15 not available
  2. IOSvL2 15 not available
  3. Catalyst 3750 v2 15.0(2)SE4 IP Services available
SW1>en
SW1#mls
SW1#mls ?
% Unrecognized command
SW1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
SW1(config)#mls
SW1(config)#mls qo
SW1(config)#mls     
SW1(config)#mls qos
SW1(config)#mls qos ?
  aggregate-policer  Named aggregate policer
  map                qos map keyword
  queue-set          Choose a queue set for this queue
  rewrite            Rewrite Packet/Frame
  srr-queue          Configure SRR receive queues
  <cr>

SW1(config)#mls qos 
SW1(config)#vlan 10 na
SW1(config)#vlan 10 name
SW1(config)#vlan 10 ?   
  <cr>

SW1(config)#vtp mo  
SW1(config)#vtp mode tra
SW1(config)#vtp mode transparent 
Setting device to VTP Transparent mode for VLANS.
SW1(config)#vlan 10 ?
  <cr>

SW1(config)#vlan 10 
SW1(config-vlan)#na
SW1(config-vlan)#name Voice
SW1(config-vlan)#vlan 20
SW1(config-vlan)#name Data
SW1(config-vlan)#exit
SW1(config)#mls qos
SW1(config)#int f0/0/0
                 ^
% Invalid input detected at '^' marker.

SW1(config)#int f1/0/0
SW1(config)#int f1/0/0
                     ^
% Invalid input detected at '^' marker.

SW1(config)#do sh int status

Port      Name               Status       Vlan       Duplex  Speed Type
Fa1/0/1                      notconnect   1            auto   auto 10/100BaseTX
Fa1/0/2                      notconnect   1            auto   auto 10/100BaseTX
Fa1/0/3                      notconnect   1            auto   auto 10/100BaseTX
Fa1/0/4                      notconnect   1            auto   auto 10/100BaseTX
Fa1/0/5                      notconnect   1            auto   auto 10/100BaseTX
Fa1/0/6                      notconnect   1            auto   auto 10/100BaseTX
Fa1/0/7                      notconnect   1            auto   auto 10/100BaseTX
Fa1/0/8                      notconnect   1            auto   auto 10/100BaseTX
Fa1/0/9                      notconnect   1            auto   auto 10/100BaseTX
Fa1/0/10                     notconnect   1            auto   auto 10/100BaseTX
Fa1/0/11                     notconnect   1            auto   auto 10/100BaseTX
Fa1/0/12                     notconnect   1            auto   auto 10/100BaseTX
Fa1/0/13                     notconnect   1            auto   auto 10/100BaseTX
Fa1/0/14                     notconnect   1            auto   auto 10/100BaseTX
Fa1/0/15                     notconnect   1            auto   auto 10/100BaseTX
Fa1/0/16                     notconnect   1            auto   auto 10/100BaseTX
Fa1/0/17                     notconnect   1            auto   auto 10/100BaseTX
Fa1/0/18                     notconnect   1            auto   auto 10/100BaseTX
Fa1/0/19                     notconnect   1            auto   auto 10/100BaseTX
Fa1/0/20                     notconnect   1            auto   auto 10/100BaseTX
Fa1/0/21                     notconnect   1            auto   auto 10/100BaseTX
          
SW1(config)#int f1/0/1
SW1(config-if)#swi
SW1(config-if)#switchport mo
SW1(config-if)#switchport mode acc
SW1(config-if)#switchport mode access 
SW1(config-if)#swi
SW1(config-if)#switchport voi
SW1(config-if)#switchport voice vl
SW1(config-if)#switchport voice vlan 10
SW1(config-if)#swi
SW1(config-if)#switchport acc
SW1(config-if)#switchport access vl
SW1(config-if)#switchport access vlan 20
SW1(config-if)#mls qos
SW1(config-if)#mls qos tru
SW1(config-if)#mls qos trust ?
  cos            cos keyword
  device         trusted device class
  dscp           dscp keyword
  ip-precedence  ip-precedence keyword
  <cr>

SW1(config-if)#mls qos trust cos
SW1(config-if)#mls qos tru
SW1(config-if)#mls qos trust cisco
SW1(config-if)#mls qos trust dev  
SW1(config-if)#mls qos trust device cis
SW1(config-if)#mls qos trust device cisco-phone 
SW1(config-if)#mls qos trust device ?           
  cisco-phone   Cisco IP Phone
  cts           Cisco-telepresence
  ip-camera     Cisco video surveillance camera
  media-player  Cisco Digital Media Player

SW1(config-if)#pri                  
SW1(config-if)#priority-queue ?
  out  egress priority queue

SW1(config-if)#priority-queue ou
SW1(config-if)#priority-queue out 
SW1(config-if)#^Z
SW1#sh vla
*Mar  1 00:25:52.622: %SYS-5-CONFIG_I: Configured from console by console
SW1#sh vlan brief

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa1/0/2, Fa1/0/3, Fa1/0/4
                                                Fa1/0/5, Fa1/0/6, Fa1/0/7
                                                Fa1/0/8, Fa1/0/9, Fa1/0/10
                                                Fa1/0/11, Fa1/0/12, Fa1/0/13
                                                Fa1/0/14, Fa1/0/15, Fa1/0/16
                                                Fa1/0/17, Fa1/0/18, Fa1/0/19
                                                Fa1/0/20, Fa1/0/21, Fa1/0/22
                                                Fa1/0/23, Fa1/0/24, Gi1/0/1
                                                Gi1/0/2
3    VLAN0003                         active    
5    VLAN0005                         active    
10   Voice                            active    Fa1/0/1
20   Data                             active    Fa1/0/1
1002 fddi-default                     act/unsup 
1003 token-ring-default               act/unsup 
1004 fddinet-default                  act/unsup 
1005 trnet-default                    act/unsup 
SW1#sh run int f1/0/1
Building configuration...

Current configuration : 210 bytes
!
interface FastEthernet1/0/1
 switchport access vlan 20
 switchport mode access
 switchport voice vlan 10
 priority-queue out 
 mls qos trust device cisco-phone
 mls qos trust cos
 spanning-tree portfast
end

SW1#sh run | i mls    
mls qos
 mls qos trust device cisco-phone
 mls qos trust cos
SW1#

NBAR(Network-Based Application Recognition)

Very heavy…..

Cisco IOS Quality of Service Solutions Command Reference - match access-group through mls ip pbr [Support & Downloads] - Cisco

This command was modified. Support for the c-header-field c-header-field-string and s-header-field s-header-field-string keywords and arguments was removed. The content-encoding , from , location , referrer , and user-agent keywords and respective arguments were added.
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#int gig0/0
R1(config-if)#ip nbar
R1(config-if)#ip nbar pro
R1(config-if)#ip nbar protocol-discovery 

-Traceback= 1140338z 130825z 15E41Ez 15E140z 15DF4Dz 158075z 158CABz 158C3Fz 3CE3952z 3CCC643z 3CCC5CBz 38CF5FFz 38C1EBCz 38C21F0z 38C9416z 38CE1D0z - Process "Exec", CPU hog, PC 0x00153D6B

-Traceback= 1140338z 130825z 15E41Ez 15E140z 15DF4Dz 158075z 158CABz 158C3Fz 3CCC6EAz 3CCC62Cz 3CCC5CBz 38CF640z 38C1EBCz 38C21F0z 38C9416z 38CE1D0z - Process "Exec", CPU hog, PC 0x00153D73
R1(config-if)#
*May  2 22:00:15.824: %SYS-3-CPUHOG: Task is running for (2000)msecs, more than (2000)msecs (0/0),process = Exec.
*May  2 22:00:17.824: %SYS-3-CPUHOG: Task is running for (4000)msecs, more than (2000)msecs (0/0),process = Exec.
R1(config-if)#
-Traceback= 1140338z 130825z 15E41Ez 15E140z 15DF4Dz 158075z 158CABz 158C3Fz 3CE4A6Az 3CD3F2Ez 3CD724Fz 50D46D1z 380B750z 388A09Cz 388A1E2z 388A349z - Process "STILE PERIODIC TASK", CPU hog, PC 0x00153D7D

*May  2 22:00:24.768: %SYS-3-CPUHOG: Task is running for (1997)msecs, more than (2000)msecs (0/0),process = STILE PERIODIC TASK.
R1(config-if)#do show policy-map interface
R1(config-if)#do show policy-map gig0/0   
R1(config-if)#show ip nbar proto
R1(config-if)#^Z                
R1#sho 
*May  2 22:01:18.650: %SYS-5-CONFIG_I: Configured from console by console
R1#sh ip nba
R1#sh ip nbar pro
R1#sh ip nbar protocol-diso
R1#sh ip nbar protocol-disco
R1#sh ip nbar protocol-discovery ?
  interface  Show for a specific interface
  protocol   Show stats about a particular protocol
  stats      Show Stats
  top-n      Show Top-N protocols by bytes
  |          Output modifiers
  <cr>

R1#sh ip nbar protocol-discovery inter
R1#sh ip nbar protocol-discovery interface gig0/0


 GigabitEthernet0/0 

 Last clearing of "show ip nbar protocol-discovery" counters 00:01:18


                            Input                    Output                  
                            -----                    ------                  
   Protocol                 Packet Count             Packet Count            
                            Byte Count               Byte Count              
                            5min Bit Rate (bps)      5min Bit Rate (bps)     
                            5min Max Bit Rate (bps)  5min Max Bit Rate (bps) 
   ------------------------ ------------------------ ------------------------
   Total                    0                        0                       
                            0                        0                       
                            0                        0                       
                            0                        0                       
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#ip cef
R1(config)#cla
R1(config)#class-map CLASS1
R1(config-cmap)#mat
R1(config-cmap)#match proto
R1(config-cmap)#match protocol http c-he
R1(config-cmap)#match protocol http c-hea
R1(config-cmap)#match protocol http c-header-field "somebody@example.com"
                                     ^
% Invalid input detected at '^' marker.

R1(config-cmap)#match protocol ht                                        
R1(config-cmap)#match protocol http ?
  content-encoding  Encoding mechanism used to package entity body
  from              E-mail of human controlling the user-agent
  host              Host name of Origin Server containing resource
  in-app-hierarchy  Match protocol in transport hierarchy
  location          Exact location of resource from request
  mime              Content-Type of entity body
  potentially       Match protocol, and all potentiall traffic
  referer           Address the resource request was obtained from
  server            Software used by Origin Server handling request
  url               Uniform Resource Locator path
  user-agent        Software used by agent sending the request
  <cr>

R1(config-cmap)#match protocol http mi
R1(config-cmap)#match protocol http mime ?
  WORD  Enter a string as the sub-protocol parameter

R1(config-cmap)#match protocol http pote 
R1(config-cmap)#match protocol http potentially ?
  <cr>

R1(config-cmap)#match protocol http ser         
R1(config-cmap)#match protocol http server "Apache"
R1(config-cmap)#match protocol http server "Apache"
-Traceback= 1140338z 130825z 15E41Ez 15E140z 15DF4Dz 158075z 158CABz 158C3Fz 3CE389Ez 3CD0C7Ez 3CD19E8z 50D46FFz 380B77Ez 388A04Fz 388A1E2z 388A349z - Process "STILE PERIODIC TASK", CPU hog, PC 0x00153D7D
he" 
*May  2 22:08:41.984: %SYS-3-CPUHOG: Task is running for (2000)msecs, more than (2000)msecs (0/0),process = STILE PERIODIC TASK.
R1(config-cmap)#match protocol http server "Nginx"
R1(config-cmap)#
R1(config-cmap)#
-Traceback= 1140338z 130825z 15E41Ez 15E140z 15DF4Dz 158075z 158CABz 158C3Fz 3CE4A6Az 3CD3F2Ez 3CD724Fz 50D46D1z 380B750z 388A09Cz 388A1E2z 388A349z - Process "STILE PERIODIC TASK", CPU hog, PC 0x00153D7D

*May  2 22:08:55.960: %SYS-3-CPUHOG: Task is running for (2000)msecs, more than (2000)msecs (0/0),process = STILE PERIODIC TASK.
R1(config-cmap)#^Z
R1#sh ru
*May  2 22:09:18.534: %SYS-5-CONFIG_I: Configured from console by console
R1#sh class-map
 Class Map match-any class-default (id 0)
   Match any 

 Class Map match-all CLASS1 (id 1)
   Match protocol http server "Apache"
   Match protocol http server "Nginx"

R1#sh run int gig0/1
Building configuration...

Current configuration : 103 bytes
!
interface GigabitEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
 media-type rj45
end

R1#sh run int gig0/0
Building configuration...

Current configuration : 131 bytes
!
interface GigabitEthernet0/0
 no ip address
 ip nbar protocol-discovery
 shutdown
 duplex auto
 speed auto
 media-type rj45
end

R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#class-map CLASS2
R1(config-cmap)#ma
R1(config-cmap)#match pro
R1(config-cmap)#match protocol htt
R1(config-cmap)#match protocol http loca
R1(config-cmap)#match protocol http location "http://pg1x.com/tech/"
R1(config-cmap)#
R1(config-cmap)#
-Traceback= 1140338z 130825z 15E41Ez 15E140z 15DF4Dz 158075z 158CABz 158C3Fz 3CE389Ez 3CD0C7Ez 3CD19E8z 50D46FFz 380B77Ez 388A04Fz 388A1E2z 388A349z - Process "STILE PERIODIC TASK", CPU hog, PC 0x00153D7D

*May  2 22:17:08.183: %SYS-3-CPUHOG: Task is running for (1997)msecs, more than (2000)msecs (0/0),process = STILE PERIODIC TASK.
R1(config-cmap)#

WRED(Weighted Random Early Detection)

  1. WRED
  2. tail drop
  3. RED
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#polic
R1(config)#class-map C-VOICE 
R1(config-cmap)#ma
R1(config-cmap)#match dsc
R1(config-cmap)#match dscp e
R1(config-cmap)#match dscp ef 
R1(config-cmap)#exit
R1(config)#cla
R1(config)#class-map C-DATA2
R1(config-cmap)#ma
R1(config-cmap)#match acce
R1(config-cmap)#match access-group 101
R1(config-cmap)#exit
R1(config)#cla
R1(config)#class-map C-DATA3
R1(config-cmap)#ma
R1(config-cmap)#match acc
R1(config-cmap)#match access-group 102
R1(config-cmap)#exit
R1(config)#cla
R1(config)#class-map ?
  WORD       class-map name
  match-all  Logical-AND all matching statements under this classmap
  match-any  Logical-OR all matching statements under this classmap
  type       Configure CPL Class Map

R1(config)#poli      
R1(config)#policy-map P-RULE1
R1(config-pmap)#cla
R1(config-pmap)#class C-VOICE
R1(config-pmap-c)#pri
R1(config-pmap-c)#priority per
R1(config-pmap-c)#priority percent 10
R1(config-pmap-c)#cla
R1(config-pmap-c)#exit
R1(config-pmap)#cla
R1(config-pmap)#class C-DATA2
R1(config-pmap-c)#band
R1(config-pmap-c)#bandwidth per
R1(config-pmap-c)#bandwidth percent 25
R1(config-pmap-c)#rando
R1(config-pmap-c)#random-detect 
R1(config-pmap-c)#exit
R1(config-pmap)#cla
R1(config-pmap)#class C-DATA3
R1(config-pmap-c)#band
R1(config-pmap-c)#bandwidth per
R1(config-pmap-c)#bandwidth percent 25
R1(config-pmap-c)#rando
R1(config-pmap-c)#random-detect 
R1(config-pmap-c)#exit
R1(config-pmap)#class class-default
R1(config-pmap-c)#fair-q
R1(config-pmap-c)#fair-queue 
R1(config-pmap-c)#rando
R1(config-pmap-c)#random-detect 
R1(config-pmap-c)#^Z
R1#
*May  2 22:45:34.179: %SYS-5-CONFIG_I: Configured from console by console
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#poi
R1(config)#poli
R1(config)#policy-map P-RULE1
R1(config-pmap)#cla
R1(config-pmap)#class C-DATA2
R1(config-pmap-c)#ran
R1(config-pmap-c)#random-detect ds
R1(config-pmap-c)#random-detect dscp-ba
R1(config-pmap-c)#random-detect dscp-based 
random-detect [precedence] must be disabled first.

R1(config-pmap-c)#random-detect dscp-based per
R1(config-pmap-c)#band                        
R1(config-pmap-c)#bandwidth per
R1(config-pmap-c)#bandwidth percent 25
R1(config-pmap-c)#ran
R1(config-pmap-c)#no random-detect 
R1(config-pmap-c)#ra
R1(config-pmap-c)#random-detect ds
R1(config-pmap-c)#random-detect dscp-
R1(config-pmap-c)#random-detect dscp-based 
R1(config-pmap-c)#
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#cla
R1(config)#class-map C-DATA1
R1(config-cmap)#mat
R1(config-cmap)#match ip
R1(config-cmap)#match ip prece
R1(config-cmap)#match ip precedence 1 ?
  <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)
  <cr>

R1(config-cmap)#match ip precedence 1 2 ?
  <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)
  <cr>

R1(config-cmap)#match ip precedence 1 2 
R1(config-cmap)#exit
R1(config)#cla
R1(config)#class-map C-DATA2
R1(config-cmap)#mat
R1(config-cmap)#match ip prece
R1(config-cmap)#match ip precedence 3 4
R1(config-cmap)#exit
R1(config)#policy
R1(config)#policy-map P-RULE1
R1(config-pmap)#cla
R1(config-pmap)#class C-DATA1
R1(config-pmap-c)#band
R1(config-pmap-c)#bandwidth per
R1(config-pmap-c)#bandwidth percent 20
R1(config-pmap-c)#rando
R1(config-pmap-c)#random-detect 
R1(config-pmap-c)#rando
R1(config-pmap-c)#random-detect prece
R1(config-pmap-c)#random-detect precedence ?         
  <0-7>  IP precedence
  rsvp   rsvp traffic

R1(config-pmap-c)#random-detect precedence 1 ?
  <1-262143>  minimum threshold (in packet by default)

R1(config-pmap-c)#random-detect precedence 1 22 ?
  <1-262143>  maximum threshold (in packet by default)
  bytes       number of bytes
  ms          milliseconds
  packets     in packets
  us          microseconds

R1(config-pmap-c)#random-detect precedence 1 22 36 ?
  <1-65535>  mark probability denominator
  packets    in packets
  <cr>

R1(config-pmap-c)#random-detect precedence 1 22 36 10
R1(config-pmap-c)#exit
R1(config-pmap)#cla
R1(config-pmap)#class C-DATA2
R1(config-pmap-c)#band
R1(config-pmap-c)#bandwidth per
R1(config-pmap-c)#bandwidth percent 30
R1(config-pmap-c)#rando
R1(config-pmap-c)#random-detect 
R1(config-pmap-c)#ran
R1(config-pmap-c)#random-detect prece
R1(config-pmap-c)#random-detect precedence 3 26 40 10
R1(config-pmap-c)#ran
R1(config-pmap-c)#random-detect pre
R1(config-pmap-c)#random-detect precedence 4 28 40 10
R1(config-pmap-c)#exit
R1(config-pmap)#cla
R1(config-pmap)#class C-DATA1
R1(config-pmap-c)#ran
R1(config-pmap-c)#random-detect prece
R1(config-pmap-c)#random-detect precedence 2 24 36 10
R1(config-pmap-c)#exit
R1(config-pmap)#cla
R1(config-pmap)#class class-de
class map class-de not configured
R1(config-pmap)#class class-default
R1(config-pmap-c)#fair
R1(config-pmap-c)#fair-queue 
R1(config-pmap-c)#ran
R1(config-pmap-c)#random-detect 
R1(config-pmap-c)#ran
R1(config-pmap-c)#random-detect ecn
R1(config-pmap-c)#
configure terminal
!
class-map C-DATA1
 match ip precedence 1 2 
exit
class-map C-DATA2
 match ip precedence 3 4
exit
!
policy-map P-RULE1
 class C-DATA1
  bandwidth percent 20
  random-detect 
  random-detect precedence 1 22 36 10
  random-detect precedence 2 24 36 10
 exit
 class C-DATA2
  bandwidth percent 30
  random-detect 
  random-detect precedence 3 26 40 10
  random-detect precedence 4 28 40 10
 exit
 class class-default
  fair-queue 
  random-detect 
  random-detect ecn
 exit
exit
!
end
configure terminal
!
class-map C-DATA1
 match ip precedence 1 2 
exit
class-map C-DATA2
 match ip precedence 3 4
exit
!
policy-map P-RULE1
 class C-DATA1
  bandwidth percent 20
  police 8000 1000 2000 conform-action transmit exceed-action drop
  exit
 exit
 class C-DATA2
  bandwidth percent 30
  police 8000 2000 4000 conform-action transmit exceed-action drop
  exit
 exit
 class class-default
  fair-queue
  police 8000 1000 1500 conform-action transmit exceed-action drop
  exit
 exit
exit
!
interface GigabitEthernet 0/1
 service-policy output P-RULE1
exit
!
end
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#class-map C-DATA1
R1(config-cmap)#mat
R1(config-cmap)#match ip prece
R1(config-cmap)#match ip precedence 1 2
R1(config-cmap)#exit
R1(config)#cla
R1(config)#class-map ip prece
R1(config)#class-map C-DATA2 
R1(config-cmap)#mat   
R1(config-cmap)#match ip prece
R1(config-cmap)#match ip precedence 3 4
R1(config-cmap)#exit
R1(config)#poli
R1(config)#policy-map P-RULE1
R1(config-pmap)#cla
R1(config-pmap)#class C-DATA1
R1(config-pmap-c)#band
R1(config-pmap-c)#bandwidth per
R1(config-pmap-c)#bandwidth percent 20
R1(config-pmap-c)#poli
R1(config-pmap-c)#police ?
  <8000-2000000000>  Target Bit Rate (bIts per second) (postfix k, m, g
                     optional; decimal point allo
  cir                Committed information rate
  rate               Specify police rate, PCR for hierarchical policies or SCR
                     for single-level ATM 4.0 policer policies

R1(config-pmap-c)#police 8000 ci
R1(config-pmap-c)#police ci     
R1(config-pmap-c)#police cir ?
  <8000-2000000000>  Target Bit Rate (biTs per second) (postfix k, m, g
                     optional; decimal point allo
  percent            % of interface bandwidth for Committed information rate

R1(config-pmap-c)#police 8000 ?    
  <1000-512000000>  Burst bytes
  bc                Conform burst
  conform-action    action when rate is less than conform burst
  pir               Peak Information Rate
  <cr>

R1(config-pmap-c)#police 8000 1000 ?
  <1000-512000000>  Burst bytes
  be                Excess burst
  conform-action    action when rate is less than conform burst
  pir               Peak Information Rate
  <cr>

R1(config-pmap-c)#police 8000 1000 1000 ?
  conform-action  action when rate is less than conform burst
  <cr>

R1(config-pmap-c)#police 8000 1000 1000 confi
R1(config-pmap-c)#police 8000 1000 1000 confo 
R1(config-pmap-c)#police 8000 1000 1000 conform-action ?
  drop                              drop packet
  set-clp-transmit                  set atm clp and send it
  set-cos-inner-transmit            rewrite packet inner cos and send it
  set-cos-transmit                  rewrite packet cos and send it
  set-discard-class-transmit        set discard-class and send it
  set-dscp-transmit                 set dscp and send it
  set-dscp-tunnel-transmit          rewrite tunnel packet dscp and send it
  set-frde-transmit                 set FR DE and send it
  set-mpls-exp-imposition-transmit  set exp at tag imposition and send it
  set-mpls-exp-topmost-transmit     set exp on topmost label and send it
  set-prec-transmit                 rewrite packet precedence and send it
  set-prec-tunnel-transmit          rewrite tunnel packet precedence and send
                                    it
  set-qos-transmit                  set qos-group and send it
  transmit                          transmit packet

R1(config-pmap-c)#police 8000 1000 1000 conform-action trans
R1(config-pmap-c)#police 8000 1000 1000 conform-action transmit 
R1(config-pmap-c-police)#exit
R1(config-pmap-c)#police 8000 1000 1000 conform-action transmit exce
R1(config-pmap-c)#$ 1000 1000 conform-action transmit exceed-action dr
R1(config-pmap-c)#$ 1000 1000 conform-action transmit exceed-action drop 
R1(config-pmap-c-police)#exit
R1(config-pmap-c)#exit
R1(config-pmap)#class C-DATA1
R1(config-pmap-c)#$ 1000 2000 conform-action transmit exceed-action drop     
R1(config-pmap-c-police)#exit
R1(config-pmap-c)#exit
R1(config-pmap)#cla
R1(config-pmap)#class C-DATA2
R1(config-pmap-c)#band
R1(config-pmap-c)#bandwidth per
R1(config-pmap-c)#bandwidth percent 30
R1(config-pmap-c)#poli
R1(config-pmap-c)#police 8000 2000 4000 confor
R1(config-pmap-c)#police 8000 2000 4000 conform-action trans
R1(config-pmap-c)#police 8000 2000 4000 conform-action transmit exe
R1(config-pmap-c)#police 8000 2000 4000 conform-action transmit exee
R1(config-pmap-c)#police 8000 2000 4000 conform-action transmit exe 
R1(config-pmap-c)#police 8000 2000 4000 conform-action transmit exc
R1(config-pmap-c)#$ 2000 4000 conform-action transmit exceed-action dr
R1(config-pmap-c)#$ 2000 4000 conform-action transmit exceed-action drop 
R1(config-pmap-c-police)#exit
R1(config-pmap-c)#exit
R1(config-pmap)#cla
R1(config-pmap)#class class-default
R1(config-pmap-c)#fair
R1(config-pmap-c)#fair-queue 
R1(config-pmap-c)#polic
R1(config-pmap-c)#police 8000 1000 1500 confor
R1(config-pmap-c)#police 8000 1000 1500 conform-action tran
R1(config-pmap-c)#police 8000 1000 1500 conform-action transmit exe
R1(config-pmap-c)#police 8000 1000 1500 conform-action transmit exc
R1(config-pmap-c)#$ 1000 1500 conform-action transmit exceed-action dro
R1(config-pmap-c)#$ 1000 1500 conform-action transmit exceed-action drop 
R1(config-pmap-c-police)#exit
R1(config-pmap-c)#exit
R1(config-pmap)#exit
R1(config)#int gig0/1
R1(config-if)#service-po
R1(config-if)#service-policy out
R1(config-if)#service-policy output P-RULE1
R1(config-if)#exit
R1(config)#^Z
R1#
*May  3 01:35:07.946: %SYS-5-CONFIG_I: Configured from console by console
R1#sh int gig0/1
GigabitEthernet0/1 is administratively down, line protocol is down 
  Hardware is iGbE, address is 0c7c.ced8.e801 (bia 0c7c.ced8.e801)
  MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Auto Duplex, Auto Speed, link type is auto, media type is RJ45
  output flow-control is unsupported, input flow-control is unsupported
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input never, output never, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: Class-based queueing
  Output queue: 0/1000/0 (size/max total/drops)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles 
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 0 multicast, 0 pause input
     0 packets output, 0 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 pause output
     0 output buffer failures, 0 output buffers swapped out
R1#show poli
R1#show policy-ma
R1#show policy-map
R1#show policy-map P-RULE1
  Policy Map P-RULE1
    Class C-DATA1
      bandwidth 20 (%)
     police cir 8000 bc 1000 be 2000
       conform-action transmit 
       exceed-action drop 
       violate-action drop 
    Class C-DATA2
      bandwidth 30 (%)
     police cir 8000 bc 2000 be 4000
       conform-action transmit 
       exceed-action drop 
       violate-action drop 
    Class class-default
      fair-queue
     police cir 8000 bc 1000 be 1500
       conform-action transmit 
       exceed-action drop 
       violate-action drop 
R1#

Single Token Bucket

  1. conform bucket
configure terminal
!
class-map C-DATA1
 match ip precedence 1 2 
exit
class-map C-DATA2
 match ip precedence 3 4
exit
!
policy-map P-RULE1
 class C-DATA1
  bandwidth percent 20
  police 8000 1000 conform-action transmit exceed-action drop
  exit
 exit
exit
!
interface GigabitEthernet 0/1
 service-policy output P-RULE1
exit
!
end
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#configure terminal
                   ^
% Invalid input detected at '^' marker.

R1(config)#!
R1(config)#class-map C-DATA1
R1(config-cmap)# match ip precedence 1 2 
R1(config-cmap)#exit
R1(config)#class-map C-DATA2
R1(config-cmap)# match ip precedence 3 4
R1(config-cmap)#exit
R1(config)#!
R1(config)#policy-map P-RULE1
R1(config-pmap)# class C-DATA1
R1(config-pmap-c)#poli
R1(config-pmap-c)#police 8000 1000 confo
R1(config-pmap-c)#police 8000 1000 conform-action transmi
R1(config-pmap-c)#police 8000 1000 conform-action transmit exe
R1(config-pmap-c)#police 8000 1000 conform-action transmit exee
R1(config-pmap-c)#police 8000 1000 conform-action transmit exce
R1(config-pmap-c)#police 8000 1000 conform-action transmit exceed-action dr
R1(config-pmap-c)#$ 1000 conform-action transmit exceed-action drop 
R1(config-pmap-c-police)#

Dual Token Bucket

  1. conform bucket
  2. exceed bucket
configure terminal
!
class-map C-DATA1
 match ip dscp af12 af13
exit
class-map C-DATA2
 match ip dscp af22 af23
exit
!
policy-map P-RULE1
 class C-DATA1
  bandwidth percent 20
  police 8000 1000 2000 conform-action transmit exceed-action set-dscp-transmit 0 violation-action drop
  exit
 exit
exit
!
interface GigabitEthernet 0/1
 service-policy output P-RULE1
exit
!
end
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#class-map
R1(config)#class-map C-DATA1
R1(config-cmap)#ma
R1(config-cmap)#match dsc
R1(config-cmap)#match dscp af1?
af11  af12  af13  

R1(config-cmap)#match dscp af12 af13
R1(config-cmap)#match dscp af12 af13 
R1(config-cmap)#exit
R1(config)#cla
R1(config)#class-map C-DATA2
R1(config-cmap)#mat
R1(config-cmap)#match dscp af22 af23
R1(config-cmap)#exit
R1(config)#poli
R1(config)#policy-map P-RULE1
R1(config-pmap)#cla
R1(config-pmap)#class C-DATA1
R1(config-pmap-c)#band
R1(config-pmap-c)#bandwidth per
R1(config-pmap-c)#bandwidth percent 20
R1(config-pmap-c)#poli
R1(config-pmap-c)#police ?   
  <8000-2000000000>  Target Bit Rate (bIts per second) (postfix k, m, g
                     optional; decimal point allo
  cir                Committed information rate
  rate               Specify police rate, PCR for hierarchical policies or SCR
                     for single-level ATM 4.0 policer policies

R1(config-pmap-c)#police 8000 ?
  <1000-512000000>  Burst bytes
  bc                Conform burst
  conform-action    action when rate is less than conform burst
  pir               Peak Information Rate
  <cr>

R1(config-pmap-c)#police 8000 1000 ?   
  <1000-512000000>  Burst bytes
  be                Excess burst
  conform-action    action when rate is less than conform burst
  pir               Peak Information Rate
  <cr>

R1(config-pmap-c)#police 8000 1000 2000 confor
R1(config-pmap-c)#police 8000 1000 2000 conform-action tran
R1(config-pmap-c)#police 8000 1000 2000 conform-action transmit excee
R1(config-pmap-c)#$ 1000 2000 conform-action transmit exceed-action set-ds
R1(config-pmap-c)#$ conform-action transmit exceed-action set-dscp-t?
set-dscp-transmit  set-dscp-tunnel-transmit  

R1(config-pmap-c)#$ conform-action transmit exceed-action set-dscp-ttra
R1(config-pmap-c)#$ conform-action transmit exceed-action set-dscp-tra 
R1(config-pmap-c)#$ conform-action transmit exceed-action set-dscp-transmit ?
  <0-63>      Differentiated services codepoint value
  af11        Match packets with AF11 dscp (001010)
  af12        Match packets with AF12 dscp (001100)
  af13        Match packets with AF13 dscp (001110)
  af21        Match packets with AF21 dscp (010010)
  af22        Match packets with AF22 dscp (010100)
  af23        Match packets with AF23 dscp (010110)
  af31        Match packets with AF31 dscp (011010)
  af32        Match packets with AF32 dscp (011100)
  af33        Match packets with AF33 dscp (011110)
  af41        Match packets with AF41 dscp (100010)
  af42        Match packets with AF42 dscp (100100)
  af43        Match packets with AF43 dscp (100110)
  cos         Set packet dscp from cos
  cs1         Match packets with CS1(precedence 1) dscp (001000)
  cs2         Match packets with CS2(precedence 2) dscp (010000)
  cs3         Match packets with CS3(precedence 3) dscp (011000)
  cs4         Match packets with CS4(precedence 4) dscp (100000)
  cs5         Match packets with CS5(precedence 5) dscp (101000)
  cs6         Match packets with CS6(precedence 6) dscp (110000)
  cs7         Match packets with CS7(precedence 7) dscp (111000)
  default     Match packets with default dscp (000000)
          
R1(config-pmap-c)#$ction transmit exceed-action set-dscp-transmit 0 viol     
R1(config-pmap-c)#$smit exceed-action set-dscp-transmit 0 violate-action ?  
  drop                              drop packet
  set-clp-transmit                  set atm clp and send it
  set-cos-inner-transmit            set inner cos and send it
  set-cos-transmit                  set cos and send it
  set-discard-class-transmit        set discard-class and send it
  set-dscp-transmit                 set dscp and send it
  set-dscp-tunnel-transmit          rewrite tunnel packet dscp and send it
  set-frde-transmit                 set FR DE and send it
  set-mpls-exp-imposition-transmit  set exp at tag imposition and send it
  set-mpls-exp-topmost-transmit     set exp on topmost label and send it
  set-prec-transmit                 rewrite packet precedence and send it
  set-prec-tunnel-transmit          rewrite tunnel packet precedence and send
                                    it
  set-qos-transmit                  set qos-group and send it
  transmit                          transmit packet

R1(config-pmap-c)#$smit exceed-action set-dscp-transmit 0 violate-action drop
R1(config-pmap-c-police)#exce
R1(config-pmap-c-police)#exit          
R1(config-pmap-c)#^Z
R1#
*May  3 03:26:12.192: %SYS-5-CONFIG_I: Configured from console by console
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#int gig0/1
R1(config-if)#service-poli
R1(config-if)#service-policy output P-RULE1
R1(config-if)#^Z
R1#
*May  3 03:26:32.688: %SYS-5-CONFIG_I: Configured from console by console
R1#

CAR(Committed Access Rate)

configure terminal
!
access-list 101 permit tcp any any eq www
!
interface GigabitEthernet 0/1
 rate-limit output access-group 101 256000 48000 96000 conform-action transmit exceed-action drop
exit
!
end
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#acce
R1(config)#access-list 101 permit tc
R1(config)#access-list 101 permit tcp an
R1(config)#access-list 101 permit tcp any an
R1(config)#access-list 101 permit tcp any any eq htt
R1(config)#access-list 101 permit tcp any any eq http
R1(config)#access-list 101 permit tcp any any eq https
R1(config)#access-list 101 permit tcp any any eq ?    
  <0-65535>    Port number
  bgp          Border Gateway Protocol (179)
  chargen      Character generator (19)
  cmd          Remote commands (rcmd, 514)
  daytime      Daytime (13)
  discard      Discard (9)
  domain       Domain Name Service (53)
  drip         Dynamic Routing Information Protocol (3949)
  echo         Echo (7)
  exec         Exec (rsh, 512)
  finger       Finger (79)
  ftp          File Transfer Protocol (21)
  ftp-data     FTP data connections (20)
  gopher       Gopher (70)
  hostname     NIC hostname server (101)
  ident        Ident Protocol (113)
  irc          Internet Relay Chat (194)
  klogin       Kerberos login (543)
  kshell       Kerberos shell (544)
  login        Login (rlogin, 513)
  lpd          Printer service (515)
  nntp         Network News Transport Protocol (119)
          
R1(config)#access-list 101 permit tcp any any eq wwws
R1(config)#access-list 101 permit tcp any any eq www?
www  

R1(config)#access-list 101 permit tcp any any eq www
R1(config)#int gig0/1
R1(config-if)#rate-limi
R1(config-if)#rate-limit out
R1(config-if)#rate-limit output acc
R1(config-if)#rate-limit output access-group 101 ?      
  <8000-2000000000>  Bits per second

R1(config-if)#rate-limit output access-group 101 256000 ?
  <1000-512000000>  Normal burst bytes

R1(config-if)#rate-limit output access-group 101 256000 48000 ?
  <2000-1024000000>  Maximum burst bytes

R1(config-if)#rate-limit output access-group 101 256000 48000 96000 confor
R1(config-if)#$output access-group 101 256000 48000 96000 conform-action tran
R1(config-if)#$ess-group 101 256000 48000 96000 conform-action transmit ?
  exceed-action  action when rate exceeded

R1(config-if)#$ess-group 101 256000 48000 96000 conform-action transmit excee
R1(config-if)#$ 48000 96000 conform-action transmit exceed-action dr         
R1(config-if)#$ 48000 96000 conform-action transmit exceed-action drop 
R1(config-if)#exit
R1(config)#^Z
R1#
*May  3 03:52:14.209: %SYS-5-CONFIG_I: Configured from console by console
R1#

Class-Based Shaping

configure terminal
!
class-map C-DATA1
 match ip dscp af12 af13
exit
class-map C-DATA2
 match ip dscp af22 af23
exit
!
policy-map P-RULE1
 class C-DATA1
  bandwidth percent 20
  shape average 8000
  exit
 exit
exit
!
interface GigabitEthernet 0/1
 service-policy output P-RULE1
exit
!
end
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#class map C-DATA1
                ^
% Invalid input detected at '^' marker.

R1(config)#class-map C-DATA1
R1(config-cmap)#mat
R1(config-cmap)#match ip dscp af12 af13
R1(config-cmap)#exit
R1(config)#cla
R1(config)#class-map C-DATA2
R1(config-cmap)#mat
R1(config-cmap)#match ip dscp af22 af23
R1(config-cmap)#exit
R1(config)#policy-ma
R1(config)#policy-map P-RULE1
R1(config-pmap)#cla
R1(config-pmap)#class C-DATA1
R1(config-pmap-c)#band
R1(config-pmap-c)#bandwidth per
R1(config-pmap-c)#bandwidth percent 20
R1(config-pmap-c)#sh
R1(config-pmap-c)#shape avera
R1(config-pmap-c)#shape ?          
  adaptive        Enable Traffic Shaping adaptation
  average         configure token bucket: CIR (bps) [Bc (bits) [Be (bits)]],
                  send out Bc only per interval
  fecn-adapt      Enable Traffic Shaping reflection of FECN as BECN
  fr-voice-adapt  Enable rate adjustment depending on voice presence
  peak            configure token bucket: CIR (bps) [Bc (bits) [Be (bits)]],
                  send out Bc+Be per interval 

R1(config-pmap-c)#shape avera
R1(config-pmap-c)#shape average ?
  <1000-1000000000>  Target Bit Rate (bits/sec). (postfix k, m, g optional;
                     decimal point allowed)
  percent            % of interface bandwidth for Committed information rate

R1(config-pmap-c)#shape average 8000
R1(config-pmap-c)#exit
R1(config-pmap)#exit
R1(config)#int gig0/1
R1(config-if)#servi
R1(config-if)#service-po
R1(config-if)#service-policy outpu
R1(config-if)#service-policy output P-RULE1
R1(config-if)#no shut
R1(config-if)#
*May  3 04:59:26.871: %LINK-3-UPDOWN: Interface GigabitEthernet0/1, changed state to up
*May  3 04:59:27.872: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up
R1(config-if)#

Class-Based Shaping Hierarchical Policy Maps

configure terminal
!
access-list 101 permit ip 192.168.1.0 0.0.0.255 10.1.1.0 0.0.0.255
access-list 102 permit ip 192.168.2.0 0.0.0.255 10.2.2.0 0.0.0.255
!
class-map C-VOICE
 match access-group 101
exit
class-map C-DATA
 match access-group 102
exit
!
policy-map P-CHILD
 class C-VOICE
  priority percent 35
  set dscp ef
 exit
 class C-DATA
  bandwidth percent 40
  set dscp af31
 exit
 class class-default
  fair-queue
 exit
exit
!
policy-map P-PARENT
 class class-default
  shape average 100000000
  service-policy P-CHILD
 exit
exit
!
interface GigabitEthernet 0/1
 service-policy output P-PARENT
exit
!
end
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#acce
R1(config)#access-list 101 ip 192.168.1.0 0.0.0.255 10.1.1.0 0.0.0.255
                           ^
% Invalid input detected at '^' marker.

R1(config)#access-list 101 permit ip 192.168.1.0 0.0.0.255 10.1.1.0 0.0.0.255
R1(config)#acce
R1(config)#access-list 101 permi
R1(config)#access-list 102 permit ip 192.168.2.0 0.0.0.255 10.2.2.0 0.0.0.255
R1(config)#class-map C-VOICE
R1(config-cmap)#mat
R1(config-cmap)#match acce
R1(config-cmap)#match access-group 101
R1(config-cmap)#exit
R1(config)#cla
R1(config)#class-map C-DATA
R1(config-cmap)#mat
R1(config-cmap)#match acce
R1(config-cmap)#match access-group 102
R1(config-cmap)#exit
R1(config)#policy-map P-CHILD
R1(config-pmap)#cla
R1(config-pmap)#class C-VOICE
R1(config-pmap-c)#prio
R1(config-pmap-c)#priority per
R1(config-pmap-c)#priority percent 35
R1(config-pmap-c)#set ds
R1(config-pmap-c)#set dscp ef
R1(config-pmap-c)#exit
R1(config-pmap)#cla
R1(config-pmap)#class C-DATA
R1(config-pmap-c)#band
R1(config-pmap-c)#bandwidth per
R1(config-pmap-c)#bandwidth percent 40
R1(config-pmap-c)#set dsc
R1(config-pmap-c)#set dscp af31
R1(config-pmap-c)#exit
R1(config-pmap)#cla
R1(config-pmap)#class cla
R1(config-pmap)#class class-default
R1(config-pmap-c)#fair
R1(config-pmap-c)#fair-queue 
R1(config-pmap-c)#exit
R1(config-pmap)#exit
R1(config)#po
R1(config)#policy-map P-PARENT
R1(config-pmap)#class class-default
R1(config-pmap-c)#shap
R1(config-pmap-c)#shape ave
R1(config-pmap-c)#shape average 100?
<1000-1000000000> (postfix k, m, g optional; decimal point allowed)  

R1(config-pmap-c)#shape average 100000000
R1(config-pmap-c)#exit
R1(config-pmap)#class class-default    
R1(config-pmap-c)#servi
R1(config-pmap-c)#service-policy ?
  WORD  policy-map name

R1(config-pmap-c)#service-policy P-CHILD
R1(config-pmap-c)#exit
R1(config-pmap)#exit
R1(config)#int gig0/1
R1(config-if)#service
R1(config-if)#service-po
R1(config-if)#service-policy ou
R1(config-if)#service-policy output P-PARENT
R1(config-if)#^Z
R1#sh
*May  3 05:20:11.373: %SYS-5-CONFIG_I: Configured from console by console
R1#show int gig0/1
GigabitEthernet0/1 is administratively down, line protocol is down 
  Hardware is iGbE, address is 0c7c.ced8.e801 (bia 0c7c.ced8.e801)
  MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Auto Duplex, Auto Speed, link type is auto, media type is RJ45
  output flow-control is unsupported, input flow-control is unsupported
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input never, output never, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: Class-based queueing
  Output queue: 0/1000/0 (size/max total/drops)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles 
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 0 multicast, 0 pause input
     0 packets output, 0 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 pause output
     0 output buffer failures, 0 output buffers swapped out
R1#show policy-map
  Policy Map P-PARENT
    Class class-default
      Average Rate Traffic Shaping
      cir 100000000 (bps)   
      service-policy P-CHILD

  Policy Map P-CHILD
    Class C-VOICE
      priority 35 (%)
      set dscp ef
    Class C-DATA
      bandwidth 40 (%)
      set dscp af31
    Class class-default
      fair-queue

R1#show class-map
 Class Map match-any class-default (id 0)
   Match any 

 Class Map match-all C-VOICE (id 1)
   Match access-group  101 

 Class Map match-all C-DATA (id 2)
   Match access-group  102 

R1#show access-lists
Extended IP access list 101
    10 permit ip 192.168.1.0 0.0.0.255 10.1.1.0 0.0.0.255
Extended IP access list 102
    10 permit ip 192.168.2.0 0.0.0.255 10.2.2.0 0.0.0.255
R1#

Traffic shaping for Data / Voice

IOS Router

configure terminal
!
ip cef
!
policy-map P-SHAPE
 class class-default
  shape average 20000000
 exit
exit
!
interface GigabitEthernet 0/1
 service-policy output P-SHAPE
exit
!
end
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#ip cef
R1(config)#policy-ma
R1(config)#policy-map P-SHAPE
R1(config-pmap)#cla
R1(config-pmap)#class class-default
R1(config-pmap-c)#shap
R1(config-pmap-c)#shape avera
R1(config-pmap-c)#shape average 20000000
R1(config-pmap-c)#exit
R1(config-pmap)#exit
R1(config)#int gig0/1
R1(config-if)#service-po
R1(config-if)#service-policy output P-SHAPE
R1(config-if)#^Z
R1#
*May  3 05:37:48.498: %SYS-5-CONFIG_I: Configured from console by console
R1#sh int gig0/1
GigabitEthernet0/1 is administratively down, line protocol is down 
  Hardware is iGbE, address is 0c7c.ced8.e801 (bia 0c7c.ced8.e801)
  MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Auto Duplex, Auto Speed, link type is auto, media type is RJ45
  output flow-control is unsupported, input flow-control is unsupported
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input never, output never, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: Class-based queueing
  Output queue: 0/1000/0 (size/max total/drops)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles 
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 0 multicast, 0 pause input
     0 packets output, 0 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 pause output
     0 output buffer failures, 0 output buffers swapped out
R1#

Catalyst Switch: SRR

  1. SRR(Shaped Round Robin)
  2. Catalyst 3750 v2 15 IP Services
enable
configure terminal
!
mls qos
!
interface FastEthernet 1/0/1
 srr-queue bandwidth limit 20
exit
!
end
SW1>enable
SW1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
SW1(config)#mls qos
SW1(config)#int fa 1/0/1
SW1(config-if)#srr-qu
SW1(config-if)#srr-queue ?
  bandwidth  Configure shared bandwidth

SW1(config-if)#srr-queue ban
SW1(config-if)#srr-queue bandwidth ?
  limit  Configure bandwidth-limit for this interface
  shape  Configure shaping on transmit queues
  share  Configure shared bandwidth

SW1(config-if)#srr-queue bandwidth limi
SW1(config-if)#srr-queue bandwidth limit ?
  <10-90>  enter bandwidth limit for interface as percentage

SW1(config-if)#srr-queue bandwidth limit 20
SW1(config-if)#^Z
SW1#
*Mar  1 00:05:21.090: %SYS-5-CONFIG_I: Configured from console by console
SW1#sh sr 
SW1#sh int f1/0/1
FastEthernet1/0/1 is down, line protocol is down (notconnect) 
  Hardware is Fast Ethernet, address is e8ed.f315.9383 (bia e8ed.f315.9383)
  MTU 1500 bytes, BW 10000 Kbit/sec, DLY 1000 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Auto-duplex, Auto-speed, media type is 10/100BaseTX
  input flow-control is off, output flow-control is unsupported 
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input never, output never, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts (0 multicasts)
     0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 0 multicast, 0 pause input
     0 input packets with dribble condition detected
     0 packets output, 0 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 pause output
     0 output buffer failures, 0 output buffers swapped out
SW1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
SW1(config)#cla
SW1(config)#class-map C-VOICE
SW1(config-cmap)#ma
SW1(config-cmap)#match ef
SW1(config-cmap)#match ds
SW1(config-cmap)#match ip ds
SW1(config-cmap)#match ip dscp ?
  <0-63>   Differentiated services codepoint value
  af11     Match packets with AF11 dscp (001010)
  af12     Match packets with AF12 dscp (001100)
  af13     Match packets with AF13 dscp (001110)
  af21     Match packets with AF21 dscp (010010)
  af22     Match packets with AF22 dscp (010100)
  af23     Match packets with AF23 dscp (010110)
  af31     Match packets with AF31 dscp (011010)
  af32     Match packets with AF32 dscp (011100)
  af33     Match packets with AF33 dscp (011110)
  af41     Match packets with AF41 dscp (100010)
  af42     Match packets with AF42 dscp (100100)
  af43     Match packets with AF43 dscp (100110)
  cs1      Match packets with CS1(precedence 1) dscp (001000)
  cs2      Match packets with CS2(precedence 2) dscp (010000)
  cs3      Match packets with CS3(precedence 3) dscp (011000)
  cs4      Match packets with CS4(precedence 4) dscp (100000)
  cs5      Match packets with CS5(precedence 5) dscp (101000)
  cs6      Match packets with CS6(precedence 6) dscp (110000)
  cs7      Match packets with CS7(precedence 7) dscp (111000)
  default  Match packets with default dscp (000000)
  ef       Match packets with EF dscp (101110)
          
SW1(config-cmap)#match ip dscp ef
SW1(config-cmap)#match ip dscp ef 
SW1(config-cmap)#exit
SW1(config)#policy
SW1(config)#policy-map P-SHAPE1
SW1(config-pmap)#cla
SW1(config-pmap)#class cla
SW1(config-pmap)#class ?     
  WORD            class-map name
  class-default   System default class matching otherwise unclassified packets

SW1(config-pmap)#class class-default
SW1(config-pmap-c)#sh
SW1(config-pmap-c)#sha
SW1(config-pmap-c)#sha?
% Unrecognized command
SW1(config-pmap-c)#   
SW1(config-pmap-c)#
SW1(config-pmap-c)#
SW1(config-pmap-c)#sha
SW1(config-pmap-c)#sha
SW1(config-pmap-c)#shape ?
% Unrecognized command
SW1(config-pmap-c)#?            
Policy-map class configuration commands:
  exit            Exit from QoS class action configuration mode
  no              Negate or set default values of a command
  police          Police
  service-policy  Configure QoS Service Policy
  set             Set QoS values
  trust           Set trust value for the class
  <cr>

SW1(config-pmap-c)#poli
SW1(config-pmap-c)#police ?
  <8000-10000000000>  Bits per second (postfix k, m, g optional; decimal point
                      allowed)
  aggregate           Choose aggregate policer for current class

SW1(config-pmap-c)#

Voice, Data Mixed Traffic Control

configure terminal
!
ip cef
!
access-list 100 permit ip 172.16.1.0 0.0.0.255
!
class-map match-any C-VOICE
 match ip dscp cs3
 match ip dscp ef
 match access-group 100
exit
!
policy-map P-QUE
 class C-VOICE
  priority
 exit
 class class-default
  fair-queue
 exit
exit
!
interface GigabitEthernet 0/1
 service-policy output P-QUE
!
end
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#ip cef 
R1(config)#acce
R1(config)#access-list 100 per
R1(config)#access-list 100 permit ?
  <0-255>       An IP protocol number
  ahp           Authentication Header Protocol
  eigrp         Cisco's EIGRP routing protocol
  esp           Encapsulation Security Payload
  gre           Cisco's GRE tunneling
  icmp          Internet Control Message Protocol
  igmp          Internet Gateway Message Protocol
  ip            Any Internet Protocol
  ipinip        IP in IP tunneling
  nos           KA9Q NOS compatible IP over IP tunneling
  object-group  Service object group
  ospf          OSPF routing protocol
  pcp           Payload Compression Protocol
  pim           Protocol Independent Multicast
  sctp          Stream Control Transmission Protocol
  tcp           Transmission Control Protocol
  udp           User Datagram Protocol

R1(config)#access-list 100 permit ip ?
  A.B.C.D       Source address
  any           Any source host
  host          A single source host
  object-group  Source network object group

R1(config)#access-list 100 permit ip 172.16.1.0 0.0.0.255 
% Incomplete command.

R1(config)#access-list 100 permit ip 172.16.1.0 0.0.0.255 an
R1(config)#access-list 100 permit ip 172.16.1.0 0.0.0.255 any 
R1(config)#class-ma
R1(config)#class-map C-VOICE
R1(config-cmap)#mat
R1(config-cmap)#match ip ds
R1(config-cmap)#match ip dscp cs3 ef
R1(config-cmap)#mat                 
R1(config-cmap)#match acce
R1(config-cmap)#match access-group 100
R1(config-cmap)#exit
R1(config)#poli
R1(config)#policy-map P-QUE
R1(config-pmap)#cla
R1(config-pmap)#class C-VOICE
R1(config-pmap-c)#pri
R1(config-pmap-c)#priority ?
  <1-2000000>  Kilo Bits per second
  level        Multi-Level Priority Queue
  percent      % of total bandwidth
  <cr>

R1(config-pmap-c)#priority 
R1(config-pmap-c)#exit
R1(config-pmap)#cla
R1(config-pmap)#class class-default
R1(config-pmap-c)#fair
R1(config-pmap-c)#fair-queue 
R1(config-pmap-c)#exit
R1(config-pmap)#exit
R1(config)#int gig0/1
R1(config-if)#service-poli
R1(config-if)#service-policy outpu
R1(config-if)#service-policy output P-QUE
R1(config-if)#^Z
R1#
*May  3 06:06:40.536: %SYS-5-CONFIG_I: Configured from console by console
R1#
configure terminal
!
ip cef
!
access-list 100 permit ip 172.16.1.0 0.0.0.255
!
class-map match-any C-VOICE
 match ip dscp cs3
 match ip dscp ef
 match access-group 100
exit
!
policy-map P-QUE
 class C-VOICE
  set ip precedence 4
  priority
 exit
 class class-default
  fair-queue
 exit
exit
!
interface GigabitEthernet 0/1
 service-policy output P-QUE
!
end
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#policy
R1(config)#policy-map P-QUE
R1(config-pmap)#class C-VOICE
R1(config-pmap-c)#set ip prece
R1(config-pmap-c)#set ip precedence 4
R1(config-pmap-c)#^Z
R1#sh 
*May  3 06:11:12.432: %SYS-5-CONFIG_I: Configured from console by console
R1#sh policy-map
  Policy Map P-QUE
    Class C-VOICE
      priority
      set ip precedence 4
    Class class-default
      fair-queue

R1#

Applied Traffic shaping for Data / Voice

  1. Classification
  2. Marking
  3. Queueing
  4. Scheduling

Project name: ccna-qos-0002-shaping-1-n-multi-site

Configuring Docker Host Networking

Basic Configuration

  • IP-PBX
auto eth0
iface eth0 inet static
	address 172.16.1.100
	netmask 255.255.255.0
	gateway 172.16.1.1
#	up echo nameserver 192.168.0.1 > /etc/resolv.conf
  • SV1
auto eth0
iface eth0 inet static
	address 172.16.1.200
	netmask 255.255.255.0
	gateway 172.16.1.1
#	up echo nameserver 192.168.0.1 > /etc/resolv.conf
  • IP-PHONE1
auto eth0
iface eth0 inet static
	address 172.16.2.100
	netmask 255.255.255.0
	gateway 172.16.2.1
#	up echo nameserver 192.168.0.1 > /etc/resolv.conf
  • PC1
auto eth0
iface eth0 inet static
	address 172.16.2.200
	netmask 255.255.255.0
	gateway 172.16.2.2
#	up echo nameserver 192.168.0.1 > /etc/resolv.conf
  • IP-PHONE2
auto eth0
iface eth0 inet static
	address 172.16.3.100
	netmask 255.255.255.0
	gateway 172.16.3.3
#	up echo nameserver 192.168.0.1 > /etc/resolv.conf
  • PC2
auto eth0
iface eth0 inet static
	address 172.16.3.200
	netmask 255.255.255.0
	gateway 172.16.3.3
#	up echo nameserver 192.168.0.1 > /etc/resolv.conf
  • CE1
configure terminal
!
hostname CE1
no ip domain-lookup
line console 0
 exec-timeout 0 0
 logging synchronous
exit
!
interface GigabitEthernet 0/0
 ip address 172.16.0.1 255.255.255.0
 no shutdown
exit
interface GigabitEthernet 0/1
 ip address 172.16.1.1 255.255.255.0
 no shutdown
exit
!
ip route 172.16.2.0 255.255.255.0 172.16.0.2
ip route 172.16.3.0 255.255.255.0 172.16.0.3
!
end
write
  • CE2
configure terminal
!
hostname CE2
no ip domain-lookup
line console 0
 exec-timeout 0 0
 logging synchronous
exit
!
interface GigabitEthernet 0/0
 ip address 172.16.0.2 255.255.255.0
 no shutdown
exit
interface GigabitEthernet 0/1
 ip address 172.16.2.2 255.255.255.0
 no shutdown
exit
!
ip route 172.16.1.0 255.255.255.0 172.16.0.1
!
end
write
  • CE3
configure terminal
!
hostname CE3
no ip domain-lookup
line console 0
 exec-timeout 0 0
 logging synchronous
exit
!
interface GigabitEthernet 0/0
 ip address 172.16.0.3 255.255.255.0
 no shutdown
exit
interface GigabitEthernet 0/1
 ip address 172.16.3.3 255.255.255.0
 no shutdown
exit
!
ip route 172.16.1.0 255.255.255.0 172.16.0.1
!
end
write
root@IP-PBX:~# ping -c2 172.16.1.200
PING 172.16.1.200 (172.16.1.200) 56(84) bytes of data.
64 bytes from 172.16.1.200: icmp_seq=1 ttl=64 time=0.661 ms
64 bytes from 172.16.1.200: icmp_seq=2 ttl=64 time=0.351 ms

--- 172.16.1.200 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.351/0.506/0.661/0.155 ms
root@IP-PBX:~# ping -c2 172.16.0.2   
PING 172.16.0.2 (172.16.0.2) 56(84) bytes of data.
64 bytes from 172.16.0.2: icmp_seq=1 ttl=254 time=4.51 ms
64 bytes from 172.16.0.2: icmp_seq=2 ttl=254 time=3.23 ms

--- 172.16.0.2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 3.239/3.874/4.510/0.638 ms
root@IP-PBX:~# ping -c2 172.16.0.3
PING 172.16.0.3 (172.16.0.3) 56(84) bytes of data.
64 bytes from 172.16.0.3: icmp_seq=1 ttl=254 time=7.80 ms
64 bytes from 172.16.0.3: icmp_seq=2 ttl=254 time=3.65 ms

--- 172.16.0.3 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 3.653/5.729/7.805/2.076 ms
root@IP-PBX:~# ping -c2 172.16.2.100
PING 172.16.2.100 (172.16.2.100) 56(84) bytes of data.
64 bytes from 172.16.2.100: icmp_seq=1 ttl=62 time=2.49 ms
64 bytes from 172.16.2.100: icmp_seq=2 ttl=62 time=2.30 ms

--- 172.16.2.100 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 2.306/2.401/2.496/0.095 ms
root@IP-PBX:~# ping -c2 172.16.2.200 
PING 172.16.2.200 (172.16.2.200) 56(84) bytes of data.
64 bytes from 172.16.2.200: icmp_seq=1 ttl=62 time=2.55 ms
64 bytes from 172.16.2.200: icmp_seq=2 ttl=62 time=2.64 ms

--- 172.16.2.200 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 2.556/2.600/2.645/0.067 ms
root@IP-PBX:~# ping -c2 172.16.3.100  
PING 172.16.3.100 (172.16.3.100) 56(84) bytes of data.
64 bytes from 172.16.3.100: icmp_seq=1 ttl=62 time=3.10 ms
64 bytes from 172.16.3.100: icmp_seq=2 ttl=62 time=2.59 ms

--- 172.16.3.100 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 2.596/2.850/3.104/0.254 ms
root@IP-PBX:~# ping -c2 172.16.3.200 
PING 172.16.3.200 (172.16.3.200) 56(84) bytes of data.
64 bytes from 172.16.3.200: icmp_seq=1 ttl=62 time=3.30 ms
64 bytes from 172.16.3.200: icmp_seq=2 ttl=62 time=3.09 ms

--- 172.16.3.200 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 3.097/3.202/3.307/0.105 ms

Configure Site Shaping based on ACL: ex. 1

  • CE1
configure terminal
!
ip cef
!
access-list 101 permit ip host 172.16.1.100 any
access-list 102 permit ip host 172.16.1.200 any
!
class-map match-all C-VOICE
 match access-group 101
exit
class-map match-all C-MANAGEMENT
 match access-group 102
exit
!
policy-map P-MARK
 class C-VOICE
  set dscp ef
 exit
 class C-MANAGEMENT
  set dscp af31
 exit
exit
!
interface GigabitEthernet 0/1
 service-policy input P-MARK
exit
!
!
class-map match-all C-EF
 match dscp ef
exit
class-map match-all C-AF31
 match dscp af31
exit
!
policy-map P-CHILD
 class C-EF
  priority percent 25
 exit
 class C-AF31
  bandwidth percent 10
 exit
 class class-default
  fair-queue
 exit
exit
!
!
access-list 111 permit ip any 172.16.2.0 0.0.0.255
access-list 112 permit ip any 172.16.3.0 0.0.0.255
!
class-map match-all C-CE2
 match access-group 111
exit
class-map match-all C-CE3
 match access-group 112
exit
!
policy-map P-PARENT
 class C-CE2
  shape average 15000000
  service-policy P-CHILD
 exit
 class C-CE3
  shape average 15000000
  service-policy P-CHILD
 exit
exit
!
interface GigabitEthernet 0/0
 service-policy output P-PARENT
exit
!
end
  • CE2
configure terminal
!
ip cef
!
access-list 101 permit ip host 172.16.2.100 any
access-list 102 permit ip host 172.16.2.200 any
!
class-map match-all C-VOICE
 match access-group 101
exit
class-map match-all C-MANAGEMENT
 match access-group 102
exit
!
policy-map P-MARK
 class C-VOICE
  set dscp ef
 exit
 class C-MANAGEMENT
  set dscp af31
 exit
exit
!
interface GigabitEthernet 0/1
 service-policy input P-MARK
exit
!
!
class-map match-all C-EF
 match dscp ef
exit
class-map match-all C-AF31
 match dscp af31
exit
!
policy-map P-CHILD
 class C-EF
  priority percent 25
 exit
 class C-AF31
  bandwidth percent 10
 exit
 class class-default
  fair-queue
 exit
exit
!
policy-map P-PARENT
 class class-default
  shape average 15000000
  service-policy P-CHILD
 exit
exit
!
interface GigabitEthernet 0/0
 service-policy output P-PARENT
exit
!
end
  • CE3
configure terminal
!
ip cef
!
access-list 101 permit ip host 172.16.3.100 any
access-list 102 permit ip host 172.16.3.200 any
!
class-map match-all C-VOICE
 match access-group 101
exit
class-map match-all C-MANAGEMENT
 match access-group 102
exit
!
policy-map P-MARK
 class C-VOICE
  set dscp ef
 exit
 class C-MANAGEMENT
  set dscp af31
 exit
exit
!
interface GigabitEthernet 0/1
 service-policy input P-MARK
exit
!
!
class-map match-all C-EF
 match dscp ef
exit
class-map match-all C-AF31
 match dscp af31
exit
!
policy-map P-CHILD
 class C-EF
  priority percent 25
 exit
 class C-AF31
  bandwidth percent 10
 exit
 class class-default
  fair-queue
 exit
exit
!
policy-map P-PARENT
 class class-default
  shape average 15000000
  service-policy P-CHILD
 exit
exit
!
interface GigabitEthernet 0/0
 service-policy output P-PARENT
exit
!
end
CE1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
CE1(config)#ip cef
CE1(config)#acce
CE1(config)#access-list 101 permi
CE1(config)#access-list 101 permit ip hos
CE1(config)#access-list 101 permit ip host 172.16.1.100 an
CE1(config)#access-list 101 permit ip host 172.16.1.100 any 
CE1(config)#acc
CE1(config)#access-list 102 per
CE1(config)#access-list 102 permit ip hos
CE1(config)#access-list 102 permit ip host 172.16.1.200 an
CE1(config)#access-list 102 permit ip host 172.16.1.200 any 
CE1(config)#cla
CE1(config)#class-map mat
CE1(config)#class-map match-al
CE1(config)#class-map match-all C-VOICE
CE1(config-cmap)#ma
CE1(config-cmap)#match acce
CE1(config-cmap)#match access-group 101
CE1(config-cmap)#exit
CE1(config)#cla
CE1(config)#class-map match-all C-MANAGEMENT
CE1(config-cmap)#mat
CE1(config-cmap)#match acc
CE1(config-cmap)#match access-group 102
CE1(config-cmap)#exit
CE1(config)#poli
CE1(config)#policy-map P-MARK
CE1(config-pmap)#cla
CE1(config-pmap)#class C-VOICE
CE1(config-pmap-c)#set ds
CE1(config-pmap-c)#set dscp ef
CE1(config-pmap-c)#exit
CE1(config-pmap)#cla
CE1(config-pmap)#class C-MANAGEMENT
CE1(config-pmap-c)#set dscp af31
CE1(config-pmap-c)#exit
CE1(config-pmap)#exit
CE1(config)#int gig0/1
CE1(config-if)#service-
CE1(config-if)#service-po
CE1(config-if)#service-policy in
CE1(config-if)#service-policy input P-MARK
CE1(config-if)#exit
CE1(config)#cla
CE1(config)#class-map matc
CE1(config)#class-map match-all C-EF
CE1(config-cmap)#mat
CE1(config-cmap)#match dsc
CE1(config-cmap)#match dscp ef
CE1(config-cmap)#exit
CE1(config)#cla
CE1(config)#class-map match
CE1(config)#class-map match-al
CE1(config)#class-map match-all C-AF31
CE1(config-cmap)#mat
CE1(config-cmap)#match dsc
CE1(config-cmap)#match dscp af31 
CE1(config-cmap)#exit
CE1(config)#poli
CE1(config)#policy-map P-CHILD
CE1(config-pmap)#cla
CE1(config-pmap)#class C-EF
CE1(config-pmap-c)#pri
CE1(config-pmap-c)#priority per
CE1(config-pmap-c)#priority percent 25
CE1(config-pmap-c)#exit
CE1(config-pmap)#cla
CE1(config-pmap)#class C-AF31
CE1(config-pmap-c)#band
CE1(config-pmap-c)#bandwidth per
CE1(config-pmap-c)#bandwidth percent 10
CE1(config-pmap-c)#exit
CE1(config-pmap)#cla
CE1(config-pmap)#class class-default
CE1(config-pmap-c)#fai
CE1(config-pmap-c)#fair-queue 
CE1(config-pmap-c)#ext
                     ^
% Invalid input detected at '^' marker.

CE1(config-pmap-c)#exit
CE1(config-pmap)#exit
CE1(config)#acc
CE1(config)#access-list 111 permi
CE1(config)#access-list 111 permit ip an
CE1(config)#access-list 111 permit ip any 172.16.2.0 0.0.0.255
CE1(config)#acc
CE1(config)#access-list 112 per
CE1(config)#access-list 112 permit ip any
CE1(config)#access-list 112 permit ip any 172.16.3.0 0.0.0.255
CE1(config)#cla
CE1(config)#class-map ma
CE1(config)#class-map match-al
CE1(config)#class-map match-all C-CE2
CE1(config-cmap)#mat
CE1(config-cmap)#match acc
CE1(config-cmap)#match access-group 111
CE1(config-cmap)#exit
CE1(config)#cla
CE1(config)#class-map mat
CE1(config)#class-map match-al
CE1(config)#class-map match-all C-CE3
CE1(config-cmap)#mat
CE1(config-cmap)#match acc
CE1(config-cmap)#match access-group 112
CE1(config-cmap)#exit
CE1(config)#po
CE1(config)#policy-map P-PARENT
CE1(config-pmap)#cla
CE1(config-pmap)#class C-CE2
CE1(config-pmap-c)#sha
CE1(config-pmap-c)#shape ave
CE1(config-pmap-c)#shape average 15000000
CE1(config-pmap-c)#service-poli
CE1(config-pmap-c)#service-policy P-CHILD
CE1(config-pmap-c)#exit
CE1(config-pmap)#cla
CE1(config-pmap)#class C-CE3 
CE1(config-pmap-c)#shap
CE1(config-pmap-c)#shape ave
CE1(config-pmap-c)#shape average 15000000
CE1(config-pmap-c)#servi
CE1(config-pmap-c)#service-policy P-CHILD
CE1(config-pmap-c)#exit
CE1(config-pmap)#exit
CE1(config)#int gig0/0 
CE1(config-if)#servi
CE1(config-if)#servicep
CE1(config-if)#service-po
CE1(config-if)#service-policy ou
CE1(config-if)#service-policy output P-PARENT
CE1(config-if)#^Z
CE1#
*May  3 07:48:28.978: %SYS-5-CONFIG_I: Configured from console by console
CE1#
CE2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
CE2(config)#ip cef
CE2(config)#acc
CE2(config)#access-list 101 permi
CE2(config)#access-list 101 permit ip host 172.16.2.100 an
CE2(config)#access-list 101 permit ip host 172.16.2.100 any 
CE2(config)#acc
CE2(config)#access-list 102 permi
CE2(config)#access-list 102 permit ip hsot 172.16.2.200 an
CE2(config)#access-list 102 permit ip hsot 172.16.2.200 any
CE2(config)#access-list 102 permit ip host 172.16.2.200 an 
CE2(config)#access-list 102 permit ip host 172.16.2.200 any 
CE2(config)#cla
CE2(config)#class-map ma
CE2(config)#class-map match-al
CE2(config)#class-map match-all C-VOICE
CE2(config-cmap)#ma
CE2(config-cmap)#match acc
CE2(config-cmap)#match access-group 101
CE2(config-cmap)#exit
CE2(config)#cla
CE2(config)#class-map mat
CE2(config)#class-map match-al
CE2(config)#class-map match-all C-MANAGEMENT
CE2(config-cmap)#mat
CE2(config-cmap)#match ac
CE2(config-cmap)#match access-group 102
CE2(config-cmap)#exit
CE2(config)#po
CE2(config)#policy-map P-MARK
CE2(config-pmap)#cla
CE2(config-pmap)#class C-VOICE
CE2(config-pmap-c)#set ds
CE2(config-pmap-c)#set dscp ef
CE2(config-pmap-c)#class C-MANAGEMENT
CE2(config-pmap-c)#set ds
CE2(config-pmap-c)#set dscp af31 
CE2(config-pmap-c)#int gig0/1
CE2(config-if)#ser
CE2(config-if)#service-
CE2(config-if)#service-p
CE2(config-if)#service-policy in
CE2(config-if)#service-policy input P-MARK
CE2(config-if)#class-map mat
CE2(config-if)#class-map match-all C-EF
CE2(config-cmap)#mat
CE2(config-cmap)#match ds
CE2(config-cmap)#match dscp ef
CE2(config-cmap)#match dscp ef 
CE2(config-cmap)#exit
CE2(config)#cla
CE2(config)#class-map mat
CE2(config)#class-map match-al
CE2(config)#class-map match-all C-AF31
CE2(config-cmap)#mat
CE2(config-cmap)#match ds
CE2(config-cmap)#match dscp af31
CE2(config-cmap)#match dscp af31 
CE2(config-cmap)#policy-map P-CHILD
CE2(config-pmap)#cla
CE2(config-pmap)#class C-EF
CE2(config-pmap-c)#pri
CE2(config-pmap-c)#priority per
CE2(config-pmap-c)#priority percent 25
CE2(config-pmap-c)#cla
CE2(config-pmap-c)#class C-AF31
CE2(config-pmap-c)#band
CE2(config-pmap-c)#bandwidth pe
CE2(config-pmap-c)#bandwidth percent 10
CE2(config-pmap-c)#class class-default
CE2(config-pmap-c)#fai
CE2(config-pmap-c)#fair-queue 
CE2(config-pmap-c)#po
CE2(config-pmap-c)#policy-map P-PARENT
CE2(config-pmap)#cla
CE2(config-pmap)#class class-default
CE2(config-pmap-c)#sha
CE2(config-pmap-c)#shape ave
CE2(config-pmap-c)#shape average 15000000
CE2(config-pmap-c)#service-po
CE2(config-pmap-c)#service-policy P-CHILD
CE2(config-pmap-c)#int gig0/0
CE2(config-if)#service po
CE2(config-if)#service poli
CE2(config-if)#service-po  
CE2(config-if)#service-policy P-PARENT
                              ^
% Invalid input detected at '^' marker.

CE2(config-if)#service-policy output P-PARENT
CE2(config-if)#^Z
CE2#
*May  3 07:54:59.694: %SYS-5-CONFIG_I: Configured from console by console
CE2#
CE3#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
CE3(config)#ip cef
CE3(config)#acce
CE3(config)#access-list 101 permi
CE3(config)#access-list 101 permit ip hsot 172.16.3.100 an
CE3(config)#access-list 101 permit ip hsot 172.16.3.100 an
                                       ^
% Invalid input detected at '^' marker.

CE3(config)#access-list 101 permit ip hos 172.16.3.100 an 
CE3(config)#access-list 101 permit ip hos 172.16.3.100 any 
CE3(config)#access-list 102 permit ip hos 172.16.3.200 any 
CE3(config)#cla
CE3(config)#class-map ma
CE3(config)#class-map match-al
CE3(config)#class-map match-all C-VOICE
CE3(config-cmap)#ma
CE3(config-cmap)#match acc
CE3(config-cmap)#match access-group 101
CE3(config-cmap)#cla
CE3(config-cmap)#class-ma
CE3(config-cmap)#class-map match-all C-MANAGEMENT
CE3(config-cmap)#mat
CE3(config-cmap)#match acce
CE3(config-cmap)#match access-group 102
CE3(config-cmap)#policy-map P-MARK
CE3(config-pmap)#cla
CE3(config-pmap)#class C-VOICE
CE3(config-pmap-c)#set ds
CE3(config-pmap-c)#set dscp ef
CE3(config-pmap-c)#class C-MANAGEMENT
CE3(config-pmap-c)#set dscp af31
CE3(config-pmap-c)#int gig0/1
CE3(config-if)#service-poli
CE3(config-if)#service-policy in
CE3(config-if)#service-policy input P-MARK
CE3(config-if)#class-map match-all C-AF31
CE3(config-cmap)#ma
CE3(config-cmap)#match ds
CE3(config-cmap)#match dscp af31
CE3(config-cmap)#policy-map P-CHILD
CE3(config-pmap)#cla
CE3(config-pmap)#class C-EF
class map C-EF not configured
CE3(config-pmap)#class-map C-EF
CE3(config-cmap)#mat
CE3(config-cmap)#match ds
CE3(config-cmap)#match dscp ef
CE3(config-cmap)#policy-map P-CHILD
CE3(config-pmap)#cla
CE3(config-pmap)#class C-EF
CE3(config-pmap-c)#pri
CE3(config-pmap-c)#priority per
CE3(config-pmap-c)#priority percent 25
CE3(config-pmap-c)#class AF31
class map AF31 not configured
CE3(config-pmap)#class C-AF31
CE3(config-pmap-c)#mat
CE3(config-pmap-c)#bandwid
CE3(config-pmap-c)#bandwidth 10
CE3(config-pmap-c)#class class-default
CE3(config-pmap-c)#fai
CE3(config-pmap-c)#fair-queue 
CE3(config-pmap-c)#policy-map P-PARENT
CE3(config-pmap)#cla
CE3(config-pmap)#class class-default
CE3(config-pmap-c)#shap
CE3(config-pmap-c)#shape ave
CE3(config-pmap-c)#shape average 15000000
CE3(config-pmap-c)#servi
CE3(config-pmap-c)#service-policy P-CHILD
CE3(config-pmap-c)#int gig0/0
CE3(config-if)#servi
CE3(config-if)#service-po
CE3(config-if)#service-policy ou
CE3(config-if)#service-policy output P-PARENT
CE3(config-if)#^Z
CE3#
*May  3 08:01:42.096: %SYS-5-CONFIG_I: Configured from console by console
CE3#

Verification

show access-lists
show class-map
show policy-map
show policy-map interface

Capture result: ccna-qos-0002-shaping-1-n-multi-site-CE1-gig0-0.pcapng

root@IP-PBX:~# ping -c2 172.16.2.100
PING 172.16.2.100 (172.16.2.100) 56(84) bytes of data.
64 bytes from 172.16.2.100: icmp_seq=1 ttl=62 time=3.62 ms
64 bytes from 172.16.2.100: icmp_seq=2 ttl=62 time=3.02 ms

--- 172.16.2.100 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 3.026/3.324/3.623/0.304 ms
root@IP-PBX:~# ping -c2 172.16.3.100 
PING 172.16.3.100 (172.16.3.100) 56(84) bytes of data.
64 bytes from 172.16.3.100: icmp_seq=1 ttl=62 time=12.2 ms
64 bytes from 172.16.3.100: icmp_seq=2 ttl=62 time=2.76 ms

--- 172.16.3.100 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 2.768/7.484/12.200/4.716 ms
root@SV1:~# ping 172.16.2.200
PING 172.16.2.200 (172.16.2.200) 56(84) bytes of data.
64 bytes from 172.16.2.200: icmp_seq=1 ttl=62 time=13.6 ms
64 bytes from 172.16.2.200: icmp_seq=2 ttl=62 time=3.52 ms
64 bytes from 172.16.2.200: icmp_seq=3 ttl=62 time=2.73 ms
64 bytes from 172.16.2.200: icmp_seq=4 ttl=62 time=3.36 ms
64 bytes from 172.16.2.200: icmp_seq=5 ttl=62 time=7.14 ms
64 bytes from 172.16.2.200: icmp_seq=6 ttl=62 time=3.93 ms
^C
--- 172.16.2.200 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5004ms
rtt min/avg/max/mdev = 2.733/5.726/13.665/3.823 ms
root@SV1:~# ping -c 2 172.16.3.200 
PING 172.16.3.200 (172.16.3.200) 56(84) bytes of data.
64 bytes from 172.16.3.200: icmp_seq=1 ttl=62 time=10.8 ms
64 bytes from 172.16.3.200: icmp_seq=2 ttl=62 time=3.26 ms

--- 172.16.3.200 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 3.263/7.033/10.804/3.771 ms
root@SV1:~# 
root@IP-PBX:~# ping -c2 172.16.3.200 
PING 172.16.3.200 (172.16.3.200) 56(84) bytes of data.
64 bytes from 172.16.3.200: icmp_seq=1 ttl=62 time=2.69 ms
64 bytes from 172.16.3.200: icmp_seq=2 ttl=62 time=3.29 ms

--- 172.16.3.200 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 2.697/2.994/3.291/0.297 ms
root@IP-PBX:~# 

CE1#sh access-lists 
Extended IP access list 101
    10 permit ip host 172.16.1.100 any (13 matches)
Extended IP access list 102
    10 permit ip host 172.16.1.200 any (8 matches)
Extended IP access list 111
    10 permit ip any 172.16.2.0 0.0.0.255 (20 matches)
Extended IP access list 112
    10 permit ip any 172.16.3.0 0.0.0.255 (16 matches)
CE1#sh cla
CE1#sh class-map 
 Class Map match-any class-default (id 0)
   Match any 

 Class Map match-all C-VOICE (id 1)
   Match access-group  101 

 Class Map match-all C-CE2 (id 5)
   Match access-group  111 

 Class Map match-all C-CE3 (id 6)
   Match access-group  112 

 Class Map match-all C-AF31 (id 4)
   Match   dscp af31 (26)

 Class Map match-all C-EF (id 3)
   Match   dscp ef (46)

 Class Map match-all C-MANAGEMENT (id 2)
   Match access-group  102 

CE1#sh poli
CE1#sh policy-ma
CE1#sh policy-map
  Policy Map P-PARENT
    Class C-CE2
      Average Rate Traffic Shaping
      cir 15000000 (bps)   
      service-policy P-CHILD
    Class C-CE3
      Average Rate Traffic Shaping
      cir 15000000 (bps)   
      service-policy P-CHILD

  Policy Map P-CHILD
    Class C-EF
      priority 25 (%)
    Class C-AF31
      bandwidth 10 (%)
    Class class-default
      fair-queue

  Policy Map P-MARK
    Class C-VOICE
      set dscp ef
    Class C-MANAGEMENT
      set dscp af31
          
CE1#sh policy-map ?
  WORD           policy-map name
  control-plane  Show Control Plane policy
  interface      Show Policy Interface
  multipoint     Show multipoint QoS Policy
  session        Show session Qos Policy
  target         policy-map target stats
  type           type of the policy-map
  |              Output modifiers
  <cr>

CE1#sh policy-map inter
CE1#sh policy-map interface 
 GigabitEthernet0/0 

  Service-policy output: P-PARENT

    Class-map: C-CE2 (match-all)  
      20 packets, 2040 bytes
      5 minute offered rate 0000 bps, drop rate 0000 bps
      Match: access-group 111
      Queueing
      queue limit 64 packets
      (queue depth/total drops/no-buffer drops) 0/0/0
      (pkts output/bytes output) 20/2040
      shape (average) cir 15000000, bc 60000, be 60000
      target shape rate 15000000

      Service-policy : P-CHILD

        queue stats for all priority classes:
          Queueing
          queue limit 64 packets
          (queue depth/total drops/no-buffer drops) 0/0/0
          (pkts output/bytes output) 9/882

        Class-map: C-EF (match-all)  
          9 packets, 882 bytes
          5 minute offered rate 0000 bps, drop rate 0000 bps
          Match:  dscp ef (46)
          Priority: 25% (3750 kbps), burst bytes 93750, b/w exceed drops: 0
          

        Class-map: C-AF31 (match-all)  
          6 packets, 588 bytes
          5 minute offered rate 0000 bps, drop rate 0000 bps
          Match:  dscp af31 (26)
          Queueing
          queue limit 64 packets
          (queue depth/total drops/no-buffer drops) 0/0/0
          (pkts output/bytes output) 6/588
          bandwidth 10% (1500 kbps)

        Class-map: class-default (match-any)  
          5 packets, 570 bytes
          5 minute offered rate 0000 bps, drop rate 0000 bps
          Match: any 
          Queueing
          queue limit 64 packets
          (queue depth/total drops/no-buffer drops/flowdrops) 0/0/0/0
          (pkts output/bytes output) 5/570
          Fair-queue: per-flow queue limit 16 packets

    Class-map: C-CE3 (match-all)  
      16 packets, 1728 bytes
      5 minute offered rate 0000 bps, drop rate 0000 bps
      Match: access-group 112
      Queueing
      queue limit 64 packets
      (queue depth/total drops/no-buffer drops) 0/0/0
      (pkts output/bytes output) 16/1728
      shape (average) cir 15000000, bc 60000, be 60000
      target shape rate 15000000

      Service-policy : P-CHILD

        queue stats for all priority classes:
          Queueing
          queue limit 64 packets
          (queue depth/total drops/no-buffer drops) 0/0/0
          (pkts output/bytes output) 4/392

        Class-map: C-EF (match-all)  
          4 packets, 392 bytes
          5 minute offered rate 0000 bps, drop rate 0000 bps
          Match:  dscp ef (46)
          Priority: 25% (3750 kbps), burst bytes 93750, b/w exceed drops: 0
          

        Class-map: C-AF31 (match-all)  
          2 packets, 196 bytes
          5 minute offered rate 0000 bps, drop rate 0000 bps
          Match:  dscp af31 (26)
          Queueing
          queue limit 64 packets
          (queue depth/total drops/no-buffer drops) 0/0/0
          (pkts output/bytes output) 2/196
          bandwidth 10% (1500 kbps)

        Class-map: class-default (match-any)  
          10 packets, 1140 bytes
          5 minute offered rate 0000 bps, drop rate 0000 bps
          Match: any 
          Queueing
          queue limit 64 packets
          (queue depth/total drops/no-buffer drops/flowdrops) 0/0/0/0
          (pkts output/bytes output) 10/1140
          Fair-queue: per-flow queue limit 16 packets

    Class-map: class-default (match-any)  
      290 packets, 17485 bytes
      5 minute offered rate 0000 bps, drop rate 0000 bps
      Match: any 
      
      queue limit 64 packets
      (queue depth/total drops/no-buffer drops) 0/0/0
      (pkts output/bytes output) 290/17485
 GigabitEthernet0/1 

  Service-policy input: P-MARK

    Class-map: C-VOICE (match-all)  
      13 packets, 1274 bytes
      5 minute offered rate 0000 bps, drop rate 0000 bps
      Match: access-group 101
      QoS Set
        dscp ef
          Packets marked 13
          
    Class-map: C-MANAGEMENT (match-all)  
      8 packets, 784 bytes
      5 minute offered rate 0000 bps, drop rate 0000 bps
      Match: access-group 102
      QoS Set
        dscp af31
          Packets marked 8

    Class-map: class-default (match-any)  
      0 packets, 0 bytes
      5 minute offered rate 0000 bps, drop rate 0000 bps
      Match: any 
CE1#
CE2#sh access-lists 
Extended IP access list 101
    10 permit ip host 172.16.2.100 any (14 matches)
Extended IP access list 102
    10 permit ip host 172.16.2.200 any (6 matches)
CE2#show cla
CE2#show class-map 
 Class Map match-any class-default (id 0)
   Match any 

 Class Map match-all C-VOICE (id 1)
   Match access-group  101 

 Class Map match-all C-AF31 (id 4)
   Match   dscp af31 (26)

 Class Map match-all C-EF (id 3)
   Match   dscp ef (46)

 Class Map match-all C-MANAGEMENT (id 2)
   Match access-group  102 

CE2#show poli
CE2#show policy-ma
CE2#show policy-map
CE2#show policy-map 
  Policy Map P-PARENT
    Class class-default
      Average Rate Traffic Shaping
      cir 15000000 (bps)   
      service-policy P-CHILD

  Policy Map P-CHILD
    Class C-EF
      priority 25 (%)
    Class C-AF31
      bandwidth 10 (%)
    Class class-default
      fair-queue

  Policy Map P-MARK
    Class C-VOICE
      set dscp ef
    Class C-MANAGEMENT
      set dscp af31

CE2#show policy-map inter
CE2#show policy-map interface 
 GigabitEthernet0/0 

  Service-policy output: P-PARENT

    Class-map: class-default (match-any)  
      276 packets, 17485 bytes
      5 minute offered rate 0000 bps, drop rate 0000 bps
      Match: any 
      Queueing
      queue limit 64 packets
      (queue depth/total drops/no-buffer drops) 0/0/0
      (pkts output/bytes output) 276/17485
      shape (average) cir 15000000, bc 60000, be 60000
      target shape rate 15000000

      Service-policy : P-CHILD

        queue stats for all priority classes:
          Queueing
          queue limit 64 packets
          (queue depth/total drops/no-buffer drops) 0/0/0
          (pkts output/bytes output) 14/1452

        Class-map: C-EF (match-all)  
          14 packets, 1452 bytes
          5 minute offered rate 0000 bps, drop rate 0000 bps
          Match:  dscp ef (46)
          Priority: 25% (3750 kbps), burst bytes 93750, b/w exceed drops: 0
          

        Class-map: C-AF31 (match-all)  
          6 packets, 588 bytes
          5 minute offered rate 0000 bps, drop rate 0000 bps
          Match:  dscp af31 (26)
          Queueing
          queue limit 64 packets
          (queue depth/total drops/no-buffer drops) 0/0/0
          (pkts output/bytes output) 6/588
          bandwidth 10% (1500 kbps)

        Class-map: class-default (match-any)  
          256 packets, 15445 bytes
          5 minute offered rate 0000 bps, drop rate 0000 bps
          Match: any 
          Queueing
          queue limit 64 packets
          (queue depth/total drops/no-buffer drops/flowdrops) 0/0/0/0
          (pkts output/bytes output) 256/15445
          Fair-queue: per-flow queue limit 16 packets
 GigabitEthernet0/1 

  Service-policy input: P-MARK

    Class-map: C-VOICE (match-all)  
      14 packets, 1452 bytes
      5 minute offered rate 0000 bps, drop rate 0000 bps
      Match: access-group 101
      QoS Set
        dscp ef
          Packets marked 14

    Class-map: C-MANAGEMENT (match-all)  
      6 packets, 588 bytes
      5 minute offered rate 0000 bps, drop rate 0000 bps
      Match: access-group 102
      QoS Set
        dscp af31
          Packets marked 6

    Class-map: class-default (match-any)  
      0 packets, 0 bytes
      5 minute offered rate 0000 bps, drop rate 0000 bps
      Match: any 
CE2#
CE3#sh access-lists 
Extended IP access list 101
    10 permit ip host 172.16.3.100 any (2 matches)
Extended IP access list 102
    10 permit ip host 172.16.3.200 any (9 matches)
CE3#sh cla
CE3#sh class-map 
 Class Map match-any class-default (id 0)
   Match any 

 Class Map match-all C-VOICE (id 1)
   Match access-group  101 

 Class Map match-all C-AF31 (id 3)
   Match   dscp af31 (26)

 Class Map match-all C-EF (id 4)
   Match   dscp ef (46)

 Class Map match-all C-MANAGEMENT (id 2)
   Match access-group  102 

CE3#sh poli
CE3#sh policy-m
CE3#sh policy-map
  Policy Map P-PARENT
    Class class-default
      Average Rate Traffic Shaping
      cir 15000000 (bps)   
      service-policy P-CHILD

  Policy Map P-CHILD
    Class C-EF
      priority 25 (%)
    Class C-AF31
      bandwidth 10 (kbps)
    Class class-default
      fair-queue

  Policy Map P-MARK
    Class C-VOICE
      set dscp ef
    Class C-MANAGEMENT
      set dscp af31

CE3#sh policy-map inter
CE3#sh policy-map interface 
 GigabitEthernet0/0 

  Service-policy output: P-PARENT

    Class-map: class-default (match-any)  
      234 packets, 14876 bytes
      5 minute offered rate 0000 bps, drop rate 0000 bps
      Match: any 
      Queueing
      queue limit 64 packets
      (queue depth/total drops/no-buffer drops) 0/0/0
      (pkts output/bytes output) 234/14876
      shape (average) cir 15000000, bc 60000, be 60000
      target shape rate 15000000

      Service-policy : P-CHILD

        queue stats for all priority classes:
          Queueing
          queue limit 64 packets
          (queue depth/total drops/no-buffer drops) 0/0/0
          (pkts output/bytes output) 2/196

        Class-map: C-EF (match-all)  
          2 packets, 196 bytes
          5 minute offered rate 0000 bps, drop rate 0000 bps
          Match:  dscp ef (46)
          Priority: 25% (3750 kbps), burst bytes 93750, b/w exceed drops: 0
          

        Class-map: C-AF31 (match-all)  
          9 packets, 962 bytes
          5 minute offered rate 0000 bps, drop rate 0000 bps
          Match:  dscp af31 (26)
          Queueing
          queue limit 64 packets
          (queue depth/total drops/no-buffer drops) 0/0/0
          (pkts output/bytes output) 9/962
          bandwidth 10 kbps

        Class-map: class-default (match-any)  
          223 packets, 13718 bytes
          5 minute offered rate 0000 bps, drop rate 0000 bps
          Match: any 
          Queueing
          queue limit 64 packets
          (queue depth/total drops/no-buffer drops/flowdrops) 0/0/0/0
          (pkts output/bytes output) 223/13718
          Fair-queue: per-flow queue limit 16 packets
 GigabitEthernet0/1 

  Service-policy input: P-MARK

    Class-map: C-VOICE (match-all)  
      2 packets, 196 bytes
      5 minute offered rate 0000 bps, drop rate 0000 bps
      Match: access-group 101
      QoS Set
        dscp ef
          Packets marked 2

    Class-map: C-MANAGEMENT (match-all)  
      9 packets, 962 bytes
      5 minute offered rate 0000 bps, drop rate 0000 bps
      Match: access-group 102
      QoS Set
        dscp af31
          Packets marked 9

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

QoS Pre-Classify

CE1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
CE1(config)#int tun0
CE1(config-if)#
*May  3 09:40:06.044: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel0, changed state to down
CE1(config-if)#qos
CE1(config-if)#qos pre
CE1(config-if)#qos pre-classify ?
  <cr>

CE1(config-if)#qos pre-classify 
CE1(config-if)#exit
CE1(config)#cry
CE1(config)#crypto ma
CE1(config)#crypto map M-ipsec ?
  <1-65535>       Sequence to insert into crypto map entry
  client          Specify client configuration settings
  gdoi            Configure crypto map gdoi features
  isakmp          Specify isakmp configuration settings
  isakmp-profile  Specify isakmp profile to use
  local-address   Interface to use for local address for this crypto map
  redundancy      High availability options for this map

CE1(config)#crypto map M-ipsec 1 ?
  gdoi          configure GDOI map
  ipsec-isakmp  IPSEC w/ISAKMP
  ipsec-manual  IPSEC w/manual keying
  <cr>

CE1(config)#crypto map M-ipsec 1 ipse
CE1(config)#crypto map M-ipsec 1 ipsec-isa
CE1(config)#crypto map M-ipsec 1 ipsec-isakmp 
% NOTE: This new crypto map will remain disabled until a peer
        and a valid access list have been configured.
CE1(config-crypto-map)#qo
CE1(config-crypto-map)#qos pre
CE1(config-crypto-map)#qos pre-classify 
CE1(config-crypto-map)#

WAN - 基本構成とデバイス

May be out of CCIE R&S v5.1 blueprint.

R1>en
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#int mul
R1(config)#inter         
R1(config)#interface Mul
R1(config)#interface Multilink 1
R1(config-if)#ip add
R1(config-if)#ip address 10.1.1.1 255.255.255.0
R1(config-if)#ppp mul
R1(config-if)#ppp multilink 
R1(config-if)#ppp mul
R1(config-if)#ppp multilink gr
R1(config-if)#ppp multilink group 1
R1(config-if)#ppp mul
R1(config-if)#ppp multilink fra
R1(config-if)#ppp multilink fragment de
R1(config-if)#ppp multilink fragment delay 10
R1(config-if)#ppp mul
R1(config-if)#ppp multilink inter
R1(config-if)#ppp multilink interleave ?
  <cr>

R1(config-if)#ppp multilink interleave 
R1(config-if)#exit
R1(config)#inter
R1(config)#interface Ser
R1(config)#interface Serial ?
  <0-0>  Serial interface number

R1(config)#interface Serial 0/?
  <0-0>  Serial interface number

R1(config)#interface Serial 0/0?
.  /  :  <0-2>

R1(config)#interface Serial 0/0/?
  <0-0>  Serial interface number

R1(config)#interface Serial 0/0/0
R1(config-if)#no ip address
R1(config-if)#enca
R1(config-if)#encapsulation ppp
R1(config-if)#ppp mu
R1(config-if)#ppp multilink 
R1(config-if)#ppp mu
R1(config-if)#ppp multilink gr
R1(config-if)#ppp multilink group 1
R1(config-if)#no shut
R1(config-if)#no shutdown 
R1(config-if)#
*May  3 10:54:00.119: %LINK-3-UPDOWN: Interface Serial0/0/0, changed state to down
R1(config-if)#
*May  3 10:55:48.447: %LINK-3-UPDOWN: Interface Serial0/0/0, changed state to up
*May  3 10:55:48.511: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
*May  3 10:55:48.523: %LINK-3-UPDOWN: Interface Multilink1, changed state to up
R1(config-if)#
*May  3 10:55:48.531: %LINEPROTO-5-UPDOWN: Line protocol on Interface Multilink1, changed state to up
R1(config-if)#^Z
R1#
*May  3 10:55:55.295: %SYS-5-CONFIG_I: Configured from console by console
R1#ping 10.1.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/4 ms
R1#show ppp multi
R1#show ppp multilink 

Multilink1
  Bundle name: R2
  Remote Endpoint Discriminator: [1] R2
  Local Endpoint Discriminator: [1] R1
  Bundle up for 00:00:35, total bandwidth 1544, load 1/255
  Receive buffer limit 12000 bytes, frag timeout 1000 ms
  Interleaving disabled
    0/0 fragments/bytes in reassembly list
    0 lost fragments, 0 reordered
    0/0 discarded fragments/bytes, 0 lost received
    0xB received sequence, 0xB sent sequence
  Member links: 1 active, 0 inactive (max 255, min not set)
    Se0/0/0, since 00:00:36, 1930 weight, 1496 frag size
No inactive multilink interfaces
R1#show inter
R1#show interfaces mu
R1#show interfaces multilink 1
Multilink1 is up, line protocol is up 
  Hardware is multilink group interface
  Internet address is 10.1.1.1/24
  MTU 1500 bytes, BW 1544 Kbit/sec, DLY 20000 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation PPP, LCP Open, multilink Open
  Open: IPCP, CDPCP, loopback not set
  Keepalive set (10 sec)
  DTR is pulsed for 2 seconds on reset
  Last input 00:00:18, output never, output hang never
  Last clearing of "show interface" counters 00:04:40
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     12 packets input, 1513 bytes, 0 no buffer
     Received 0 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     12 packets output, 1605 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 unknown protocol drops
     0 output buffer failures, 0 output buffers swapped out
     0 carrier transitions
R1#sh int s0/0/0
Serial0/0/0 is up, line protocol is up 
  Hardware is GT96K Serial
  MTU 1500 bytes, BW 1544 Kbit/sec, DLY 20000 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation PPP, LCP Open, multilink Open
  Link is a member of Multilink bundle Multilink1, loopback not set
  Keepalive set (10 sec)
  CRC checking enabled
  Last input 00:00:48, output 00:00:03, output hang never
  Last clearing of "show interface" counters 00:04:43
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     47 packets input, 2492 bytes, 0 no buffer
     Received 0 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     47 packets output, 2492 bytes, 0 underruns
     0 output errors, 0 collisions, 4 interface resets
     0 unknown protocol drops
     0 output buffer failures, 0 output buffers swapped out
     1 carrier transitions
     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up

R1#sh con
R1#sh se 
R1#sh seri
R1#sh con 
R1#sh contr
R1#sh controll
R1#sh controllers 
Interface FastEthernet0/0
Hardware is GT96K FE ADDR: 66BFCBBC, FASTSEND: 63C23EE0, MCI_INDEX: 0
DIST ROUTE ENABLED: 0Route Cache Flag: 11
GPIO 2 CONF= 67FF07A8 GPIO 2 IO= 187D303F  CIU arbit = 80F002BF 
 PHY add register = 0xA4  PHY data register = 0x3A50008 
 Port Conf Reg= 0x0 DISABLE HT8K HMOD0 
 Port Conf Ex Reg= 0x10CD00 
TX1:1 RXPRI=DE(00) ~FLCNTL ~FLNKP MFL64KB E RMII 
Port Com Reg= 0x0
 Port Status Reg= 0x0 10MB  HDPX FCTL EN  LNK DN ~PAUSED TX oFF 
 Serial Param Reg= 0x218823  Hash table pointer= 0x15FB3480 
Source ADDR L= 0x66D2 Source ADDR H= 0x1B2A77 
SDMA conf reg= 0x223C RETX 15 RX BE TX BE FRINT BSIZE 4 
SDMA com reg= 0x30000 STP TXL STP TXH 
IMASK= 0x90003DCD ICause= 0x20000000 SMI 
Serial 0 mask 30FFFC3Serial 0 cause 0
IpDiffservP0L= 0x0 IpDiffservP0H= 0x0 IpDiffservP1L= 0x0 IpDiffservP1H= 0x0 
 IP VLAN TAG PRI= 0xF0CC  IP VLAN TAG PRI= 0xF0CC 
 First rxd Q0= 0x15FF3500  Curr rxd Q0= 0x15FF3500 
 First rxd Q1= 0x15FF3960  Curr rxd Q1= 0x15FF3960 
 First rxd Q2= 0x15FF3DC0  Curr rxd Q2= 0x15FF3DC0 
 First rxd Q3= 0x15FF4220  Curr rxd Q3= 0x15FF4220 
 First txd Q0= 0x15FF4680  First txd Q1= 0x15FF4EC0 
gt96kfe_instance=0x66BFDD6C, registers=0x24084800
RxRing entries=64, tx ring entries=128
       RxR0=0x15FF3500, RxR1=0x15FF3960, RxR2=0x15FF3DC0, RxR3=0x15FF4220 
Malloc RxR0=0xF5FF3500, RxR1=0xF5FF3960, RxR2=0xF5FF3DC0, RxR3=0xF5FF4220 
SDOW RxR0=0x66BFE35C, RxR1=0x66BFE490, RxR2=0x66BFE5C4, RxR3=0x66BFE6F8 
HEAD RxR0=0x0, RxR1=0x0, RxR2=0x0, RxR3=0x0 
TAIL RxR0=0x0, RxR1=0x0, RxR2=0x0, RxR30x0 

tx_limited=0(128)
TxR0=0x15FF4680, TxR1=0x15FF4EC0 
COUNT TxR0=0x0, TxR1=0x0
Head TxR0=0x0, TxR1=0x0 Tail TxR0=0x0, TxR1=0x0

 PHY registers:
  Register 0x00:   1400  7809  0040  61E4  01E1  0000  0004  2001
  Register 0x08:   0000  0000  0000  0000  0000  0000  0000  0000
  Register 0x10:   3000  0000  0000  0000  0200  0600  0100  0000
  Register 0x18:   0038  1002  1F10  008A  0828  0008  0018
Bytes_recvd 0 Bytes_sent 0 Frames_recvd 0 Frames_sent 0
total_bytes_RX 0 Total_frames_RX 0 Bcast_frames_recvd 0
Mcast_frames_RX 0 CRC_err 0 Ovr_sized_frames 0
Fragments 0 Jabber 0 collision 0
Late_collision 0 64B frame 0; 65_127B_frames 0
128_255B_frames 0 256_511B_frames 0 512_1023B_frames 0
1023_maxB_frames 0 Rx_error 0 Dropped_frames 0
Mcast_frames_tx 0 Bcast_frames_tx 0 Sml_frame_recvd 0


 Software MAC address filter(hash:length/addr/mask/hits):
  0x00:  0  ffff.ffff.ffff  0000.0000.0000         0
  0xC0:  0  0180.c200.0002  0000.0000.0000         0
  0xC0:  1  0100.0ccc.cccc  0000.0000.0000         0
  0xC5:  0  0180.c200.0007  0000.0000.0000         0
  0xF8:  0  001b.2a77.66d2  0000.0000.0000         0

======= Driver Counters =======
Number of Transmitter Hang =  0 
tx_more_col_err=  0 tx_one_col_err=  0 
tx_exc_collision_err=  0 tx_late_collision_err=  0 
tx_underrun_err=  0 tx_error_intr=  0 
rx_soft_overflow_err=  0  rx_overflow_err= 0 

Interface FastEthernet0/1
Hardware is GT96K FE ADDR: 66C0A468, FASTSEND: 63C23EE0, MCI_INDEX: 0
DIST ROUTE ENABLED: 0Route Cache Flag: 11
GPIO 2 CONF= 67FF07A8 GPIO 2 IO= 187D303F  CIU arbit = 80F002BF 
 PHY add register = 0xA4  PHY data register = 0xFC40018 
 Port Conf Reg= 0x0 DISABLE HT8K HMOD0 
 Port Conf Ex Reg= 0x10CD00 
TX1:1 RXPRI=DE(00) ~FLCNTL ~FLNKP MFL64KB E RMII 
Port Com Reg= 0x0
 Port Status Reg= 0x0 10MB  HDPX FCTL EN  LNK DN ~PAUSED TX oFF 
 Serial Param Reg= 0x218823  Hash table pointer= 0x160C5740 
Source ADDR L= 0x66D3 Source ADDR H= 0x1B2A77 
SDMA conf reg= 0x223C RETX 15 RX BE TX BE FRINT BSIZE 4 
SDMA com reg= 0x30000 STP TXL STP TXH 
IMASK= 0x90003DCD ICause= 0x20000000 SMI 
Serial 0 mask 30FFFC3Serial 0 cause 0
IpDiffservP0L= 0x0 IpDiffservP0H= 0x0 IpDiffservP1L= 0x0 IpDiffservP1H= 0x0 
 IP VLAN TAG PRI= 0xF0CC  IP VLAN TAG PRI= 0xF0CC 
 First rxd Q0= 0x161057C0  Curr rxd Q0= 0x161057C0 
 First rxd Q1= 0x16105C20  Curr rxd Q1= 0x16105C20 
 First rxd Q2= 0x16106080  Curr rxd Q2= 0x16106080 
 First rxd Q3= 0x161064E0  Curr rxd Q3= 0x161064E0 
 First txd Q0= 0x16106940  First txd Q1= 0x16107180 
gt96kfe_instance=0x66C0B618, registers=0x24088800
RxRing entries=64, tx ring entries=128
       RxR0=0x161057C0, RxR1=0x16105C20, RxR2=0x16106080, RxR3=0x161064E0 
Malloc RxR0=0xF61057C0, RxR1=0xF6105C20, RxR2=0xF6106080, RxR3=0xF61064E0 
SDOW RxR0=0x66C0BC54, RxR1=0x66C0BD88, RxR2=0x66C0BEBC, RxR3=0x66C0BFF0 
HEAD RxR0=0x0, RxR1=0x0, RxR2=0x0, RxR3=0x0 
TAIL RxR0=0x0, RxR1=0x0, RxR2=0x0, RxR30x0 

tx_limited=0(128)
TxR0=0x16106940, TxR1=0x16107180 
COUNT TxR0=0x0, TxR1=0x0
Head TxR0=0x0, TxR1=0x0 Tail TxR0=0x0, TxR1=0x0

 PHY registers:
  Register 0x00:   1400  7809  0040  61E4  01E1  0000  0004  2001
  Register 0x08:   0000  0000  0000  0000  0000  0000  0000  0000
  Register 0x10:   3000  0000  0000  0000  0200  0600  0100  0000
  Register 0x18:   0038  1002  1F10  008A  0828  0008  0018
Bytes_recvd 0 Bytes_sent 0 Frames_recvd 0 Frames_sent 0
total_bytes_RX 0 Total_frames_RX 0 Bcast_frames_recvd 0
Mcast_frames_RX 0 CRC_err 0 Ovr_sized_frames 0
Fragments 0 Jabber 0 collision 0
Late_collision 0 64B frame 0; 65_127B_frames 0
128_255B_frames 0 256_511B_frames 0 512_1023B_frames 0
1023_maxB_frames 0 Rx_error 0 Dropped_frames 0
Mcast_frames_tx 0 Bcast_frames_tx 0 Sml_frame_recvd 0
          

 Software MAC address filter(hash:length/addr/mask/hits):
  0x00:  0  ffff.ffff.ffff  0000.0000.0000         0
  0xC0:  0  0180.c200.0002  0000.0000.0000         0
  0xC0:  1  0100.0ccc.cccc  0000.0000.0000         0
  0xC5:  0  0180.c200.0007  0000.0000.0000         0
  0xF9:  0  001b.2a77.66d3  0000.0000.0000         0

======= Driver Counters =======
Number of Transmitter Hang =  0 
tx_more_col_err=  0 tx_one_col_err=  0 
tx_exc_collision_err=  0 tx_late_collision_err=  0 
tx_underrun_err=  0 tx_error_intr=  0 
rx_soft_overflow_err=  0  rx_overflow_err= 0 

Interface Serial0/0/0
Hardware is GT96K
DCE V.35, clock rate 2000000
idb at 0x66C186A0, driver data structure at 0x66C1FEBC
wic_info 0x66C204E8
Physical Port 0, SCC Num 0
MPSC Registers:
MMCR_L=0x000304C0, MMCR_H=0x00000000, MPCR=0x00000000
CHR1=0x00FE007E, CHR2=0x00000000, CHR3=0x0000064A, CHR4=0x00000000
CHR5=0x00000000, CHR6=0x00000000, CHR7=0x00000000, CHR8=0x00000000
CHR9=0x00000000, CHR10=0x00003008
SDMA Registers:
SDC=0x00002201, SDCM=0x00000080, SGC=0x0000C000
CRDP=0x161D7BA0, CTDP=0x161D7FE0, FTDB=0x161D7FE0
Main Routing Register=0x0003FFF8 BRG Conf Register=0x00490013
Rx Clk Routing Register=0x76543218 Tx Clk Routing Register=0x76543210
GPP Registers:
Conf=0x430002  , Io=0x464050  , Data=0x7F6BBFAF, Level=0x80004   
Conf0=0x430002  , Io0=0x464050  , Data0=0x7F4BBFAF, Level0=0x80004   
0 input aborts on receiving flag sequence
0 throttles, 0 enables
0 overruns
0 transmitter underruns
0 transmitter CTS losts
58 rxintr, 59 txintr, 0 rxerr, 0 txerr
124 mpsc_rx, 0 mpsc_rxerr, 5 mpsc_rlsc, 8 mpsc_rhnt, 116 mpsc_rfsc
4 mpsc_rcsc, 0 mpsc_rovr, 0 mpsc_rcdl, 0 mpsc_rckg, 0 mpsc_bper
0 mpsc_txerr, 41 mpsc_teidl, 0 mpsc_tudr, 0 mpsc_tctsl, 0 mpsc_tckg
0 sdma_rx_sf, 0 sdma_rx_mfl, 0 sdma_rx_or, 0 sdma_rx_abr, 0 sdma_rx_no
0 sdma_rx_de, 0 sdma_rx_cdl, 0 sdma_rx_ce, 0 sdma_tx_rl, 0 sdma_tx_ur, 0 sdma_tx_ctsl
0 sdma_rx_reserr, 0 sdma_tx_reserr
0 rx_bogus_pkts, rx_bogus_flag FALSE 
0 sdma_tx_ur_processed

tx_limited = 0(128), errata19 count1 - 0, count2 - 0
Receive Ring 
rxr head (26)(0x161D7BA0), rxr tail (0)(0x161D7A00)
  rmd(161D7A00): nbd 161D7A10 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E4A80
  rmd(161D7A10): nbd 161D7A20 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E50E0
  rmd(161D7A20): nbd 161D7A30 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161D84E0
  rmd(161D7A30): nbd 161D7A40 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161D8B40
  rmd(161D7A40): nbd 161D7A50 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161D91A0
  rmd(161D7A50): nbd 161D7A60 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161D9800
  rmd(161D7A60): nbd 161D7A70 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161D9E60
  rmd(161D7A70): nbd 161D7A80 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DA4C0
  rmd(161D7A80): nbd 161D7A90 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DAB20
  rmd(161D7A90): nbd 161D7AA0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DB180
  rmd(161D7AA0): nbd 161D7AB0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DB7E0
  rmd(161D7AB0): nbd 161D7AC0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DBE40
  rmd(161D7AC0): nbd 161D7AD0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DC4A0
  rmd(161D7AD0): nbd 161D7AE0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DCB00
  rmd(161D7AE0): nbd 161D7AF0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DD160
  rmd(161D7AF0): nbd 161D7B00 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DD7C0
  rmd(161D7B00): nbd 161D7B10 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DDE20
  rmd(161D7B10): nbd 161D7B20 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DE480
  rmd(161D7B20): nbd 161D7B30 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DEAE0
  rmd(161D7B30): nbd 161D7B40 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DF140
  rmd(161D7B40): nbd 161D7B50 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DF7A0
  rmd(161D7B50): nbd 161D7B60 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DFE00
  rmd(161D7B60): nbd 161D7B70 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E0460
  rmd(161D7B70): nbd 161D7B80 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E0AC0
  rmd(161D7B80): nbd 161D7B90 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E1120
  rmd(161D7B90): nbd 161D7BA0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E1780
  rmd(161D7BA0): nbd 161D7BB0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E2440
  rmd(161D7BB0): nbd 161D7BC0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E2AA0
  rmd(161D7BC0): nbd 161D7BD0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E3100
  rmd(161D7BD0): nbd 161D7BE0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E3760
  rmd(161D7BE0): nbd 161D7BF0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E3DC0
  rmd(161D7BF0): nbd 161D7A00 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E4420
Transmit Ring 
txr head (58)(0x161D7FE0), txr tail (58)(0x161D7FE0)
  tmd(161D7C40): nbd 161D7C50 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161F2994
  tmd(161D7C50): nbd 161D7C60 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161F2AD4
  tmd(161D7C60): nbd 161D7C70 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161F2FCE
  tmd(161D7C70): nbd 161D7C80 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161F310E
  tmd(161D7C80): nbd 161D7C90 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161F39CE
  tmd(161D7C90): nbd 161D7CA0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161F3B0E
  tmd(161D7CA0): nbd 161D7CB0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 1620166E
  tmd(161D7CB0): nbd 161D7CC0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 16201D4E
  tmd(161D7CC0): nbd 161D7CD0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161DB7E0
  tmd(161D7CD0): nbd 161D7CE0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 15E06754
  tmd(161D7CE0): nbd 161D7CF0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161DC4A0
  tmd(161D7CF0): nbd 161D7D00 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 15E06894
  tmd(161D7D00): nbd 161D7D10 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 15E069CE
  tmd(161D7D10): nbd 161D7D20 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161F248E
  tmd(161D7D20): nbd 161D7D30 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 15E06C4E
  tmd(161D7D30): nbd 161D7D40 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 15E0700E
  tmd(161D7D40): nbd 161D7D50 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 15E073CE
  tmd(161D7D50): nbd 161D7D60 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161DF140
  tmd(161D7D60): nbd 161D7D70 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 15E07794
  tmd(161D7D70): nbd 161D7D80 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161DFE00
  tmd(161D7D80): nbd 161D7D90 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 15E078D4
  tmd(161D7D90): nbd 161D7DA0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161E0AC0
  tmd(161D7DA0): nbd 161D7DB0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 15E07A14
  tmd(161D7DB0): nbd 161D7DC0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 16202B0E
  tmd(161D7DC0): nbd 161D7DD0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161E1DE0
  tmd(161D7DD0): nbd 161D7DE0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 15E07C94
  tmd(161D7DE0): nbd 161D7DF0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161E2AA0
  tmd(161D7DF0): nbd 161D7E00 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 15E07B54
  tmd(161D7E00): nbd 161D7E10 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161E3760
  tmd(161D7E10): nbd 161D7E20 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 15E07DD4
  tmd(161D7E20): nbd 161D7E30 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161E4420
  tmd(161D7E30): nbd 161D7E40 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 15E07F14
  tmd(161D7E40): nbd 161D7E50 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161E50E0
  tmd(161D7E50): nbd 161D7E60 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 15E08194
  tmd(161D7E60): nbd 161D7E70 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161D8B40
  tmd(161D7E70): nbd 161D7E80 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 15E08054
  tmd(161D7E80): nbd 161D7E90 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 162031EE
  tmd(161D7E90): nbd 161D7EA0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161D9E60
  tmd(161D7EA0): nbd 161D7EB0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 15E082D4
  tmd(161D7EB0): nbd 161D7EC0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161DAB20
  tmd(161D7EC0): nbd 161D7ED0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 15E064D4
  tmd(161D7ED0): nbd 161D7EE0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161DB7E0
  tmd(161D7EE0): nbd 161D7EF0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161F1D14
  tmd(161D7EF0): nbd 161D7F00 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161DC4A0
  tmd(161D7F00): nbd 161D7F10 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 15E06614
  tmd(161D7F10): nbd 161D7F20 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161DD160
  tmd(161D7F20): nbd 161D7F30 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161F1E54
  tmd(161D7F30): nbd 161D7F40 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161DE480
  tmd(161D7F40): nbd 161D7F50 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161F1F94
  tmd(161D7F50): nbd 161D7F60 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 162038CE
  tmd(161D7F60): nbd 161D7F70 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161DF140
  tmd(161D7F70): nbd 161D7F80 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161F20D4
  tmd(161D7F80): nbd 161D7F90 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161DFE00
  tmd(161D7F90): nbd 161D7FA0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161F2214
  tmd(161D7FA0): nbd 161D7FB0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161E0AC0
  tmd(161D7FB0): nbd 161D7FC0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161F2994
  tmd(161D7FC0): nbd 161D7FD0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161E1780
  tmd(161D7FD0): nbd 161D7FE0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161F2854
  tmd(161D7FE0): nbd 161D7FF0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161E2AA0
  tmd(161D7FF0): nbd 161D8000 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161F2AD4
  tmd(161D8000): nbd 161D8010 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 16203FAE
  tmd(161D8010): nbd 161D8020 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161E3760
  tmd(161D8020): nbd 161D8030 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 161F2C14
  tmd(161D8030): nbd 161D8040 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 0
  tmd(161D8040): nbd 161D8050 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 0
  tmd(161D8050): nbd 161D8060 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 0
  tmd(161D8060): nbd 161D8070 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 0
  tmd(161D8070): nbd 161D8080 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 0
  tmd(161D8080): nbd 161D8090 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 0
  tmd(161D8090): nbd 161D80A0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 0
  tmd(161D80A0): nbd 161D80B0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 0
  tmd(161D80B0): nbd 161D80C0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 0
  tmd(161D80C0): nbd 161D80D0 cmd_sts 00C30000 byt_cnt ABCDABCD buf_ptr 0
          
R1#sh controllers s0/0/0
Interface Serial0/0/0
Hardware is GT96K
DCE V.35, clock rate 2000000
idb at 0x66C186A0, driver data structure at 0x66C1FEBC
wic_info 0x66C204E8
Physical Port 0, SCC Num 0
MPSC Registers:
MMCR_L=0x000304C0, MMCR_H=0x00000000, MPCR=0x00000000
CHR1=0x00FE007E, CHR2=0x00000000, CHR3=0x0000064A, CHR4=0x00000000
CHR5=0x00000000, CHR6=0x00000000, CHR7=0x00000000, CHR8=0x00000000
CHR9=0x00000000, CHR10=0x00003008
SDMA Registers:
SDC=0x00002201, SDCM=0x00000080, SGC=0x0000C000
CRDP=0x161D7A10, CTDP=0x161D8050, FTDB=0x161D8050
Main Routing Register=0x0003FFF8 BRG Conf Register=0x00490013
Rx Clk Routing Register=0x76543218 Tx Clk Routing Register=0x76543210
GPP Registers:
Conf=0x430002  , Io=0x464050  , Data=0x7F4BBFAF, Level=0x80004   
Conf0=0x430002  , Io0=0x464050  , Data0=0x7F6BBFAF, Level0=0x80004   
0 input aborts on receiving flag sequence
0 throttles, 0 enables
0 overruns
0 transmitter underruns
0 transmitter CTS losts
65 rxintr, 66 txintr, 0 rxerr, 0 txerr
138 mpsc_rx, 0 mpsc_rxerr, 5 mpsc_rlsc, 8 mpsc_rhnt, 130 mpsc_rfsc
4 mpsc_rcsc, 0 mpsc_rovr, 0 mpsc_rcdl, 0 mpsc_rckg, 0 mpsc_bper
0 mpsc_txerr, 45 mpsc_teidl, 0 mpsc_tudr, 0 mpsc_tctsl, 0 mpsc_tckg
0 sdma_rx_sf, 0 sdma_rx_mfl, 0 sdma_rx_or, 0 sdma_rx_abr, 0 sdma_rx_no
0 sdma_rx_de, 0 sdma_rx_cdl, 0 sdma_rx_ce, 0 sdma_tx_rl, 0 sdma_tx_ur, 0 sdma_tx_ctsl
0 sdma_rx_reserr, 0 sdma_tx_reserr
0 rx_bogus_pkts, rx_bogus_flag FALSE 
0 sdma_tx_ur_processed

tx_limited = 0(128), errata19 count1 - 0, count2 - 0
Receive Ring 
rxr head (1)(0x161D7A10), rxr tail (0)(0x161D7A00)
  rmd(161D7A00): nbd 161D7A10 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E4420
  rmd(161D7A10): nbd 161D7A20 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E50E0
  rmd(161D7A20): nbd 161D7A30 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161D84E0
  rmd(161D7A30): nbd 161D7A40 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161D8B40
  rmd(161D7A40): nbd 161D7A50 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161D91A0
  rmd(161D7A50): nbd 161D7A60 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161D9800
  rmd(161D7A60): nbd 161D7A70 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161D9E60
  rmd(161D7A70): nbd 161D7A80 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DA4C0
  rmd(161D7A80): nbd 161D7A90 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DAB20
  rmd(161D7A90): nbd 161D7AA0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DB180
  rmd(161D7AA0): nbd 161D7AB0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DB7E0
  rmd(161D7AB0): nbd 161D7AC0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DBE40
  rmd(161D7AC0): nbd 161D7AD0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DC4A0
  rmd(161D7AD0): nbd 161D7AE0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DCB00
  rmd(161D7AE0): nbd 161D7AF0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DD160
  rmd(161D7AF0): nbd 161D7B00 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DD7C0
  rmd(161D7B00): nbd 161D7B10 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DDE20
  rmd(161D7B10): nbd 161D7B20 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DE480
  rmd(161D7B20): nbd 161D7B30 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DEAE0
  rmd(161D7B30): nbd 161D7B40 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DF140
  rmd(161D7B40): nbd 161D7B50 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DF7A0
  rmd(161D7B50): nbd 161D7B60 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DFE00
  rmd(161D7B60): nbd 161D7B70 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E0460
  rmd(161D7B70): nbd 161D7B80 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E0AC0
  rmd(161D7B80): nbd 161D7B90 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E1120
  rmd(161D7B90): nbd 161D7BA0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E1780
  rmd(161D7BA0): nbd 161D7BB0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E1DE0
  rmd(161D7BB0): nbd 161D7BC0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E2440
  rmd(161D7BC0): nbd 161D7BD0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E2AA0
  rmd(161D7BD0): nbd 161D7BE0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E3100

R1#conf t          
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#do sh run int s0/0/0
Building configuration...

Current configuration : 136 bytes
!
interface Serial0/0/0
 no ip address
 encapsulation ppp
 no fair-queue
 ppp multilink
 ppp multilink group 1
 clock rate 2000000
end

R1(config)#int s0/0/0
R1(config-if)#clo
R1(config-if)#clock ra
R1(config-if)#clock rate 64000?
<300-8000000>  

R1(config-if)#clock rate ?    
        Speed (bits per second)
  1200
  2400
  4800
  9600
  14400
  19200
  28800
  32000
  38400
  48000
  56000
  57600
  64000
  72000
  115200
  125000
  128000
  148000
  192000
  250000
  256000
  320000
  384000
  500000
  512000
  640000
  704000
  768000
  800000
  1000000
  1024000
  1200000
  1536000
  2000000
  4000000
  8000000

  <300-8000000>    Choose clockrate from list above

R1(config-if)#clock rate 64000
R1(config-if)#^Z
R1#sh controllers s0/0/0
*May  3 11:03:07.275: %SYS-5-CONFIG_I: Configured from console by console
R1#sh int s0/0/0            
Serial0/0/0 is up, line protocol is up 
  Hardware is GT96K Serial
  MTU 1500 bytes, BW 1544 Kbit/sec, DLY 20000 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation PPP, LCP Open, multilink Open
  Link is a member of Multilink bundle Multilink1, loopback not set
  Keepalive set (10 sec)
  CRC checking enabled
  Last input 00:00:20, output 00:00:00, output hang never
  Last clearing of "show interface" counters 00:09:31
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     111 packets input, 5394 bytes, 0 no buffer
     Received 0 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     111 packets output, 5394 bytes, 0 underruns
     0 output errors, 0 collisions, 5 interface resets
     0 unknown protocol drops
     0 output buffer failures, 0 output buffers swapped out
     1 carrier transitions
     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up

R1#sh contr
R1#sh controll
R1#sh controllers s0/0/0 | i clock
DCE V.35, clock rate 64000
R1#
  rmd(161D7A80): nbd 161D7A90 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DAB20
  rmd(161D7A90): nbd 161D7AA0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DB180
  rmd(161D7AA0): nbd 161D7AB0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DB7E0
  rmd(161D7AB0): nbd 161D7AC0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DBE40
  rmd(161D7AC0): nbd 161D7AD0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DC4A0
  rmd(161D7AD0): nbd 161D7AE0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DCB00
  rmd(161D7AE0): nbd 161D7AF0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DD160
  rmd(161D7AF0): nbd 161D7B00 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DD7C0
  rmd(161D7B00): nbd 161D7B10 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DDE20
  rmd(161D7B10): nbd 161D7B20 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DE480
  rmd(161D7B20): nbd 161D7B30 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DEAE0
  rmd(161D7B30): nbd 161D7B40 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DF140
  rmd(161D7B40): nbd 161D7B50 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DF7A0
  rmd(161D7B50): nbd 161D7B60 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161DFE00
  rmd(161D7B60): nbd 161D7B70 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E0460
  rmd(161D7B70): nbd 161D7B80 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E0AC0
  rmd(161D7B80): nbd 161D7B90 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E1120
  rmd(161D7B90): nbd 161D7BA0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E1780
  rmd(161D7BA0): nbd 161D7BB0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E1DE0
  rmd(161D7BB0): nbd 161D7BC0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E2440
  rmd(161D7BC0): nbd 161D7BD0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E2AA0
  rmd(161D7BD0): nbd 161D7BE0 cmd_sts 80800000 buf_sz 06000000 buf_ptr 161E3100

R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#do sh run int s0/0/0
Building configuration...

Current configuration : 136 bytes
!
interface Serial0/0/0
 no ip address
 encapsulation ppp
 no fair-queue
 ppp multilink
 ppp multilink group 1
 clock rate 2000000
end

R1(config)#int s0/0/0
R1(config-if)#clo
R1(config-if)#clock ra
R1(config-if)#clock rate 64000?
<300-8000000>

R1(config-if)#clock rate ?
        Speed (bits per second)
  1200
  2400
  4800
  9600
  14400
  19200
  28800
  32000
  38400
  48000
  56000
  57600
  64000
  72000
  115200
  125000
  128000
  148000
  192000
  250000
  256000
  320000
  384000
  500000
  512000
  640000
  704000
  768000
  800000
  1000000
  1024000
  1200000
  1536000
  2000000
  4000000
  8000000

  <300-8000000>    Choose clockrate from list above

R1(config-if)#clock rate 64000
R1(config-if)#^Z
R1#sh controllers s0/0/0
*May  3 11:03:07.275: %SYS-5-CONFIG_I: Configured from console by console
R1#sh int s0/0/0
Serial0/0/0 is up, line protocol is up
  Hardware is GT96K Serial
  MTU 1500 bytes, BW 1544 Kbit/sec, DLY 20000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation PPP, LCP Open, multilink Open
  Link is a member of Multilink bundle Multilink1, loopback not set
  Keepalive set (10 sec)
  CRC checking enabled
  Last input 00:00:20, output 00:00:00, output hang never
  Last clearing of "show interface" counters 00:09:31
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     111 packets input, 5394 bytes, 0 no buffer
     Received 0 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     111 packets output, 5394 bytes, 0 underruns
     0 output errors, 0 collisions, 5 interface resets
     0 unknown protocol drops
     0 output buffer failures, 0 output buffers swapped out
     1 carrier transitions
     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up

R1#sh contr
R1#sh controll
R1#sh controllers s0/0/0 | i clock
DCE V.35, clock rate 64000
R1#
R2>en
R2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#inter
R2(config)#interface Mul
R2(config)#interface Multilink 1
R2(config-if)#ip add
R2(config-if)#ip address 10.1.1.2 255.255.255.0
R2(config-if)#ppp mul
R2(config-if)#ppp multilink 
R2(config-if)#ppp multilink gr
R2(config-if)#ppp multilink group 1
R2(config-if)#ppp mu
R2(config-if)#ppp multilink fra
R2(config-if)#ppp multilink fragment de
R2(config-if)#ppp multilink fragment delay 10
R2(config-if)#ppp mu
R2(config-if)#ppp multilink inter
R2(config-if)#ppp multilink interleave 
R2(config-if)#ppp multilink fragment delay ? 
  <0-1000>  Delay in milliseconds

R2(config-if)#exit                         
R2(config)#int s0/0/0
R2(config-if)#no ip address
R2(config-if)#enca
R2(config-if)#encapsulation ppp
R2(config-if)#ppp mu
R2(config-if)#ppp multilink 
R2(config-if)#ppp mu
R2(config-if)#ppp multilink group 1
R2(config-if)#no shut
R2(config-if)#no shutdown 
R2(config-if)#
*May  3 11:03:50.275: %LINK-3-UPDOWN: Interface Serial0/0/0, changed state to up
*May  3 11:03:50.335: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
*May  3 11:03:50.347: %LINK-3-UPDOWN: Interface Multilink1, changed state to up
R2(config-if)#
*May  3 11:03:50.351: %LINEPROTO-5-UPDOWN: Line protocol on Interface Multilink1, changed state to up
R2(config-if)#^Z
R2#
*May  3 11:03:52.195: %SYS-5-CONFIG_I: Configured from console by console
R2#sh ppp mu
R2#sh ppp multilink 

Multilink1
  Bundle name: R1
  Remote Endpoint Discriminator: [1] R1
  Local Endpoint Discriminator: [1] R2
  Bundle up for 00:01:39, total bandwidth 1544, load 1/255
  Receive buffer limit 12000 bytes, frag timeout 1000 ms
  Interleaving disabled
    0/0 fragments/bytes in reassembly list
    0 lost fragments, 0 reordered
    0/0 discarded fragments/bytes, 0 lost received
    0xC received sequence, 0xC sent sequence
  Member links: 1 active, 0 inactive (max 255, min not set)
    Se0/0/0, since 00:01:39, 1930 weight, 1496 frag size
No inactive multilink interfaces
R2#sh int mul
R2#sh inter         
R2#sh interfaces mul
R2#sh interfaces multilink 1
Multilink1 is up, line protocol is up 
  Hardware is multilink group interface
  Internet address is 10.1.1.2/24
  MTU 1500 bytes, BW 1544 Kbit/sec, DLY 20000 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation PPP, LCP Open, multilink Open
  Open: IPCP, CDPCP, loopback not set
  Keepalive set (10 sec)
  DTR is pulsed for 2 seconds on reset
  Last input 00:00:12, output never, output hang never
  Last clearing of "show interface" counters 00:03:25
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     13 packets input, 1830 bytes, 0 no buffer
     Received 0 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     13 packets output, 1934 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 unknown protocol drops
     0 output buffer failures, 0 output buffers swapped out
     0 carrier transitions
R2#sh int s0/0/0
Serial0/0/0 is up, line protocol is up 
  Hardware is GT96K Serial
  MTU 1500 bytes, BW 1544 Kbit/sec, DLY 20000 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation PPP, LCP Open, multilink Open
  Link is a member of Multilink bundle Multilink1, loopback not set
  Keepalive set (10 sec)
  CRC checking enabled
  Last input 00:00:59, output 00:00:02, output hang never
  Last clearing of "show interface" counters 00:03:07
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     49 packets input, 2524 bytes, 0 no buffer
     Received 0 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     50 packets output, 2853 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 unknown protocol drops
     0 output buffer failures, 0 output buffers swapped out
     0 carrier transitions
     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up

R2#sh contro
R2#sh controll
R2#sh controllers | i DCE|DTE
DTE V.35 TX and RX clocks detected.
R2#sh run int s0/0/0
Building configuration...

Current configuration : 116 bytes
!
interface Serial0/0/0
 no ip address
 encapsulation ppp
 no fair-queue
 ppp multilink
 ppp multilink group 1
end

R2#sh controllers | i DCE|DTE
DTE V.35 TX and RX clocks detected.
R2#
R2(config-if)#ppp multilink fra
R2(config-if)#ppp multilink fragment de
R2(config-if)#ppp multilink fragment delay 10
R2(config-if)#ppp mu
R2(config-if)#ppp multilink inter
R2(config-if)#ppp multilink interleave
R2(config-if)#ppp multilink fragment delay ?
  <0-1000>  Delay in milliseconds

R2(config-if)#exit
R2(config)#int s0/0/0
R2(config-if)#no ip address
R2(config-if)#enca
R2(config-if)#encapsulation ppp
R2(config-if)#ppp mu
R2(config-if)#ppp multilink
R2(config-if)#ppp mu
R2(config-if)#ppp multilink group 1
R2(config-if)#no shut
R2(config-if)#no shutdown
R2(config-if)#
*May  3 11:03:50.275: %LINK-3-UPDOWN: Interface Serial0/0/0, changed state to up
*May  3 11:03:50.335: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
*May  3 11:03:50.347: %LINK-3-UPDOWN: Interface Multilink1, changed state to up
R2(config-if)#
*May  3 11:03:50.351: %LINEPROTO-5-UPDOWN: Line protocol on Interface Multilink1, changed state to up
R2(config-if)#^Z
R2#
*May  3 11:03:52.195: %SYS-5-CONFIG_I: Configured from console by console
R2#sh ppp mu
R2#sh ppp multilink

Multilink1
  Bundle name: R1
  Remote Endpoint Discriminator: [1] R1
  Local Endpoint Discriminator: [1] R2
  Bundle up for 00:01:39, total bandwidth 1544, load 1/255
  Receive buffer limit 12000 bytes, frag timeout 1000 ms
  Interleaving disabled
    0/0 fragments/bytes in reassembly list
    0 lost fragments, 0 reordered
    0/0 discarded fragments/bytes, 0 lost received
    0xC received sequence, 0xC sent sequence
  Member links: 1 active, 0 inactive (max 255, min not set)
    Se0/0/0, since 00:01:39, 1930 weight, 1496 frag size
No inactive multilink interfaces
R2#sh int mul
R2#sh inter
R2#sh interfaces mul
R2#sh interfaces multilink 1
Multilink1 is up, line protocol is up
  Hardware is multilink group interface
  Internet address is 10.1.1.2/24
  MTU 1500 bytes, BW 1544 Kbit/sec, DLY 20000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation PPP, LCP Open, multilink Open
  Open: IPCP, CDPCP, loopback not set
  Keepalive set (10 sec)
  DTR is pulsed for 2 seconds on reset
  Last input 00:00:12, output never, output hang never
  Last clearing of "show interface" counters 00:03:25
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     13 packets input, 1830 bytes, 0 no buffer
     Received 0 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     13 packets output, 1934 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 unknown protocol drops
     0 output buffer failures, 0 output buffers swapped out
     0 carrier transitions
R2#sh int s0/0/0
Serial0/0/0 is up, line protocol is up
  Hardware is GT96K Serial
  MTU 1500 bytes, BW 1544 Kbit/sec, DLY 20000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation PPP, LCP Open, multilink Open
  Link is a member of Multilink bundle Multilink1, loopback not set
  Keepalive set (10 sec)
  CRC checking enabled
  Last input 00:00:59, output 00:00:02, output hang never
  Last clearing of "show interface" counters 00:03:07
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     49 packets input, 2524 bytes, 0 no buffer
     Received 0 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     50 packets output, 2853 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 unknown protocol drops
     0 output buffer failures, 0 output buffers swapped out
     0 carrier transitions
     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up

R2#sh contro
R2#sh controll
R2#sh controllers | i DCE|DTE
DTE V.35 TX and RX clocks detected.
R2#sh run int s0/0/0
Building configuration...

Current configuration : 116 bytes
!
interface Serial0/0/0
 no ip address
 encapsulation ppp
 no fair-queue
 ppp multilink
 ppp multilink group 1
end

R2#sh controllers | i DCE|DTE
DTE V.35 TX and RX clocks detected.
R1#sh controllers s0/0/0 | i clock
DCE V.35, clock rate 64000
R1#ping 10.1.1.2 repeat 10000000
Type escape sequence to abort.
Sending 10000000, 100-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.
Success rate is 99 percent (107/108), round-trip min/avg/max = 28/30/32 ms
R1#ping 10.1.1.2 repeat 10000000 ?
  data      specify data pattern
  df-bit    enable do not fragment bit in IP header
  size      specify datagram size
  source    specify source address or name
  timeout   specify timeout interval
  validate  validate reply data
  <cr>

R1#ping 10.1.1.2 repeat 10000000 si
R1#ping 10.1.1.2 repeat 10000000 size 15000
Type escape sequence to abort.
Sending 10000000, 15000-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:
......
Success rate is 0 percent (0/6)
R1#ping 10.1.1.2 repeat 10000000 size 1500 
Type escape sequence to abort.
Sending 10000000, 1500-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.
Success rate is 97 percent (40/41), round-trip min/avg/max = 384/414/1580 ms
R1#

End-to-End QoS Network Design

Catalyst QoS: Trust Boundary

Using Physical Box

  1. Catalyst 3750 v2 15 IP Services
  2. Catalyst 2960 15.0(2)SE8 LANBASE
SW1>en
SW1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
SW1(config)#
*Mar  1 00:02:07.842: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
SW1(config)#
SW1(config)#
SW1(config)#
SW1(config)#
SW1(config)#ml
SW1(config)#mls qo
SW1(config)#mlsq qos
               ^
% Invalid input detected at '^' marker.

SW1(config)#mls qos
SW1(config)#int f1/0/1
SW1(config-if)#mls qos tr
SW1(config-if)#mls qos trust ds
SW1(config-if)#mls qos trust dscp 
SW1(config-if)#do sh run int f1/0/1
Building configuration...

Current configuration : 55 bytes
!
interface FastEthernet1/0/1
 mls qos trust dscp
end

SW1(config-if)#
ASW1>en
ASW1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
ASW1(config)#mls
ASW1(config)#mls qo
ASW1(config)#mls qos 
ASW1(config)#int f0/1
ASW1(config-if)#mls
ASW1(config-if)#mls qo
ASW1(config-if)#mls qos tr
ASW1(config-if)#mls qos trust ?
  cos            cos keyword
  device         trusted device class
  dscp           dscp keyword
  ip-precedence  ip-precedence keyword
  <cr>

ASW1(config-if)#mls qos trust ds
ASW1(config-if)#mls qos trust dscp 
ASW1(config-if)#do sh run int f0/1
Building configuration...

Current configuration : 104 bytes
!
interface FastEthernet0/1
 switchport access vlan 10
 switchport mode access
 mls qos trust dscp
end

ASW1(config-if)#
configure terminal
!
mls qos
!
interface FastEthernet 0/0
 mls qos trust dscp
exit
interface GigabitEthernet 0/1
 priority-queue out
exit
!
end

References

tech/network/cisco/qos/qos.txt · Last modified: 2019/05/04 14:21 by wnoguchi