cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
276
Views
0
Helpful
2
Replies

converting QoS marking

pfrancis3
Level 1
Level 1

Hello, on my router I am currently identifying 'cs6' marked outgoing traffic and re-marking to 'ef'.

Vice versa, when incoming 'ef' traffic comes back in to my interface, I want to convert it back to 'cs6'. Would my code below achieve this ?

Thank you for any help.

 


class-map match-all VOIP
 match ip dscp cs6

class-map match-all matchEF
match ip dscp ef

policy-map SUB-LEVEL
 class VOIP
    shape average percent 95
    bandwidth percent 30
    fair-queue
  set dscp cs6
 class class-default
    fair-queue
    bandwidth percent 10
    shape average percent 95
  set ip precedence 0
policy-map TOP-LEVEL
 class SHAPE-ALL
    shape average 4900000 200000
    bandwidth 4900
  service-policy SUB-LEVEL

policy-map SETcs6Toef
  class matchEF
  set dscp ef

interface FastEthernet4
 description Routerport PHYSICAL
 bandwidth 5000
 no ip address
 ip nbar protocol-discovery
 ip flow ingress
 ip flow egress
 service-policy output TOP-LEVEL
 service-policy input SETcs6Toef

2 Replies 2

Hi, does not seem quite right to me.

class-map match-all VOIP
 match ip dscp cs6

so matches packets set to cs6

then in the policy map

policy-map SUB-LEVEL
 class VOIP
    shape average percent 95
    bandwidth percent 30
    fair-queue

  set dscp cs6 <<<< already matched cs6 surely this should be set dscp ef

 

the same logic applies to 

class-map match-all matchEF
match ip dscp ef

policy-map SETcs6Toef
  class matchEF
  set dscp ef 
<<<< already matched ef surely this should be set dscp cs6

 

 

fly
Level 2
Level 2

I think you made mistake for your config.

what's your platform , on sup720, in my memory there is problem when doing qos remark