cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
445
Views
0
Helpful
1
Replies

wred based on MPLS exp bits on 12000

imedina
Level 1
Level 1

I want to use WRED with MQC on 12000 but there is no mpls/exp-bits statment on the "random-detect" command.

I found this note at cisco documentation:

Note: The legacy CLI also uses the precedence syntax for Multiprotocol Label Switching (MPLS) traffic. The router treats the MPLS bits as though they are IP Type of Service (ToS) bits and puts the appropriate packets into the correct queues. This is not at all true for MQC.

so, is there a way to use WRED with MPLS EXP-bits on MQC?

1 Reply 1

dknov
Level 3
Level 3

Hi,

As fas as I know the solution is as follows:

1. Use MQC on the inbound interface of your P/PE LSR to match your desired traffic and set discard-class

2. Use MQC on the outbound interface of your P/PE

LSR to set desired WRED policy based on discard-class you marked in previous step. You also need to mark WRED as "discard-class-based"

Here is an example:

Inbound:

class-map class1

match XXXXX

class-map class2

match YYYYY

policy-map in-policy

class class1

set discard-class 0

class class2

set discard-class 1

Outbound:

policy-map out-policy

class class-default

random-detect discard-class-based

random-detect discard-class 0 10 20 5

random-detect discard-class 1 20 30 5

Hope that helped.

David