典型的qos设置-ECN+WRED

发表于:2007-06-23来源:作者:点击数: 标签:
[CODE] policy-map prova-base description This policy allows to apply ECN+WRED at the output queue interface class class-default fair-queue random-detect random-detect ecn random-detect precedence 0 100 300 2 //syntax: precedence min_thresh

   
  [CODE]
  policy-map prova-base
  description This policy allows to apply ECN+WRED at the output queue interface
  class class-default
  fair-queue
  random-detect
  random-detect ecn

  random-detect precedence 0 100 300 2 //syntax: precedence min_threshold max_threshold mark_probability_denominator
  
  
  interface ATM1/0/0.200 point-to-point
  description to ciscotest (shaping)
  bandwidth 50000
  ip address 192.168.3.1 255.255.255.248
  pvc 200/200
  vbr-nrt 50000 50000 1
  encapsulation aal5snap
  !
  service-policy output prova-base
  
  
  --------------------------------------------------------------
  
  dsdeis#sh vers
  Cisco Inte.network Operating System Software
  IOS (tm) RSP Software (RSP-PV-M), Version 12.2(6.3)PI, MAINTENANCE INTERIM SOFTWARE
  TAC Support: http://www.cisco.com/tac
  Copyright (c) 1986-2001 by cisco Systems, Inc.
  Compiled Tue 20-Nov-01 18:39 by dchih
  Image text-base: 0x60010948, data-base: 0x615C0000
  
  ROM: System Bootstrap, Version 11.1(2) [nitin 2], RELEASE SOFTWARE (fc1)
  BOOTLDR: RSP Software (RSP-BOOT-M), Version 12.0(1a), RELEASE SOFTWARE (fc1)
  
  dsdeis uptime is 16 weeks, 4 hours, 33 minutes
  System returned to ROM by reload
  System restarted at 11:01:54 UTC Fri Nov 30 2001
  System image file is "tftp://UNKNOWN/rsp-pv-mz.tiziana"
  
  cisco RSP2 (R4700) processor with 65536K/2072K bytes of memory.
  R4700 CPU at 100Mhz, Implementation 33, Rev 1.0
  Last reset from power-on
  G.703/E1 software, Version 1.0.
  G.703/JT2 software, Version 1.0.
  X.25 software, Version 3.0.0.
  Chassis Interface.
  1 VIP2 R5K controller (1 FastEthernet)(1 ATM).
  1 FastEthernet/IEEE 802.3 interface(s)
  1 ATM network interface(s)
  123K bytes of non-volatile configuration memory.
  
  20480K bytes of Flash PCMCIA card at slot 0 (Sector size 128K).
  8192K bytes of Flash internal SIMM (Sector size 256K).
  No slave installed in slot 3.
  Configuration register is 0x102
  
  
  dsdeis#sh pol inter atm 1/0/0.200
  
  ATM1/0/0.200
  
  Service-policy output: prova-base
  
  Class-map: class-default (match-any)
  0 packets, 0 bytes
  30 second offered rate 0 bps, drop rate 0 bps
  Match: any
  queue size 0, queue limit 724
  packets output 0, packet drops 0
  tail/random drops 0, no buffer drops 0, other drops 0
  Fair-queue: per-flow queue limit 181
  Random-detect:
  Exp-weight-constant: 9 (1/512)
  Mean queue depth: 0
  Class ECN Random Tail Minimum Maximum Mark Output
  marked drop drop threshold threshold probability packets
  0 0 0 0 100 300 1/2 0
  1 0 0 0 0 0 1/10 0
  2 0 0 0 0 0 1/10 0
  3 0 0 0 0 0 1/10 0
  4 0 0 0 0 0 1/10 0
  5 0 0 0 0 0 1/10 0
  6 0 0 0 0 0 1/10 0
  7 0 0 0 0 0 1/10 0
  
  
  {/CODE]

原文转自:http://www.ltesting.net