Routing
Highlighted
Routing

Set dscp on ingress packets

‎02-08-2017 12:37 AM

Good day!

 

I have a policy on Cisco ASR:

 

interface Bundle-Ether1.100

service-policy input PM-SET-DSCP-DEFAULT
service-policy output PM-SET-DSCP-DEFAULT

....

 

 

policy-map PM-SET-DSCP-DEFAULT
   class class-default
      set dscp 0
   !
end-policy-map
! 

So i set dscp 0 on ingress and egress traffic.

 

I need to do the same thing on Juniper MX480

 

I have made this:

class-of-service {
interfaces { ae1 { unit 100 { rewrite-rules { dscp PM-SET-DSCP-DEFAULT-OUT; } } } } rewrite-rules { dscp PM-SET-DSCP-DEFAULT-OUT { forwarding-class network-control { loss-priority low code-point 000000; loss-priority high code-point 000000; } forwarding-class assured-forwarding { loss-priority low code-point 000000; loss-priority high code-point 000000; } forwarding-class best-effort { loss-priority low code-point 000000; loss-priority high code-point 000000; } forwarding-class expedited-forwarding { loss-priority low code-point 000000; loss-priority high code-point 000000; } } }

But i still can't find how to set dscp on ingress packets. Could anybody help?

2 REPLIES 2
Highlighted
Routing

Re: Set dscp on ingress packets

‎02-08-2017 01:25 AM

Hi, 

 

An MF classifier configured as input firewall filter on the interface should be able to mark and classify selected packets on ingress:

http://www.juniper.net/documentation/en_US/junos/topics/example/cos-firewall-filter-multifield-class...

 

Alternatively you could use a fixed classifier on the interface to classify all ingress packets and rewrite that forwarding class with the desired dscp marking on egress.

 

Cheers,

Ashvin

Highlighted
Routing

Re: Set dscp on ingress packets

‎02-09-2017 09:51 PM

Thank you, AshvinO, for your answer!

I'll check it.

Feedback