QOS WRED DSCP-BASED CONFIGURATION

From: Carlos Trujillo Jimenez (nergal888@hotmail.com)
Date: Wed Sep 26 2007 - 23:25:56 ART


Please, If someone please can help me confirming if this configuration will
or will not work according to the specifications:

I want so that voip traffic is less likely to be dropped than http traffic
if the output interface becomes congested.

So I perform first classification and marking at the ingress interface.

and the random detect based in the classified packets at the egress
interface.

class-map match-all VOIP
  match ip rtp 16384 16383
class-map match-all MORE-LIKELY-DROP
  match ip dscp af13
class-map match-all HTTP
  match protocol http
class-map match-all LESS-LIKELY-DROP
  match ip dscp ef
!
!
policy-map DROP-IF-CONGESTED
  class LESS-LIKELY-DROP
   bandwidth percent 50
   random-detect dscp-based
  class MORE-LIKELY-DROP
   bandwidth percent 25
   random-detect dscp-based
policy-map CLASSIFICATION-MARKING
  class VOIP
   set ip dscp ef
  class HTTP
   set ip dscp af13

interface FastEthernet0/0
ip address 128.1.5.5 255.255.255.0
service-policy input CLASSIFICATION-MARKING

interface Serial0/0
ip address 128.1.125.5 255.255.255.0
service-policy output DROP-IF-CONGESTED

verifrication:

p4r5#show policy-map interface
FastEthernet0/0

  Service-policy input: CLASSIFICATION-MARKING

    Class-map: VOIP (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: ip rtp 16384 16383
      QoS Set
        dscp ef
          Packets marked 0

    Class-map: HTTP (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: protocol http
      QoS Set
        dscp af13
          Packets marked 0

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

  Service-policy output: DROP-IF-CONGESTED

    Class-map: LESS-LIKELY-DROP (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: ip dscp ef
      Queueing
        Output Queue: Conversation 265
        Bandwidth 50 (%)
        (pkts matched/bytes matched) 0/0
        (depth/total drops/no-buffer drops) 0/0/0
         exponential weight: 9
         mean queue depth: 0

dscp Transmitted Random drop Tail drop Minimum Maximum
Mark
          pkts/bytes pkts/bytes pkts/bytes thresh thresh
prob
af11 0/0 0/0 0/0 32 40
1/10
af12 0/0 0/0 0/0 28 40
1/10
af13 0/0 0/0 0/0 24 40
1/10
af21 0/0 0/0 0/0 32 40
1/10
af22 0/0 0/0 0/0 28 40
1/10
af23 0/0 0/0 0/0 24 40
1/10
af31 0/0 0/0 0/0 32 40
1/10
af32 0/0 0/0 0/0 28 40
1/10
af33 0/0 0/0 0/0 24 40
1/10
af41 0/0 0/0 0/0 32 40
1/10
af42 0/0 0/0 0/0 28 40
1/10
af43 0/0 0/0 0/0 24 40
1/10
cs1 0/0 0/0 0/0 22 40
1/10
cs2 0/0 0/0 0/0 24 40
1/10
cs3 0/0 0/0 0/0 26 40
1/10
cs4 0/0 0/0 0/0 28 40
1/10
cs5 0/0 0/0 0/0 30 40
1/10
cs6 0/0 0/0 0/0 32 40
1/10
cs7 0/0 0/0 0/0 34 40
1/10
ef 0/0 0/0 0/0 36 40
1/10
rsvp 0/0 0/0 0/0 36 40
1/10
default 0/0 0/0 0/0 20 40
1/10

    Class-map: MORE-LIKELY-DROP (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: ip dscp af13
      Queueing
        Output Queue: Conversation 266
        Bandwidth 25 (%)
        (pkts matched/bytes matched) 0/0
        (depth/total drops/no-buffer drops) 0/0/0
         exponential weight: 9
         mean queue depth: 0

p4r5#



This archive was generated by hypermail 2.1.4 : Sat Oct 06 2007 - 12:01:16 ART