Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configuring DSCP Values for IPv6 Packets Entering the MPLS Tunnel

date_range 13-Jan-21

The following configuration example explains in detail how to set the DSCP and MPLS EXP bits independently on IPv6 packets.

1. Configure the router device (ingress PE router) to classify (behavior aggregate or multifield) the incoming packets to a particular forwarding class.

content_copy zoom_out_map
[edit firewall]
family inet6 {
    filter ss-v6filt {
        term ss-vpn {
            from {
                destination-address {
                    ::ffff:192.0.2.128/120;
                }
            }
                then {
                loss-priority low;
                forwarding-class ss-fc;
            }
        }
    }
}

In the preceding example, the ingress FPC classifies (MF) incoming IPv6 packets destined for address “::ffff:192.0.2.128/120” to forwarding class “ss-fc” and loss priority “low.”

2. Attach the preceding firewall filter to an interface. Because you are matching on inbound traffic, this would be an input filter. This classifies all traffic on the interface “ge-2/1/0” that matches the filter “ss-v6.”

content_copy zoom_out_map
[edit interfaces]
ge-2/1/0 {
    hierarchical-scheduler;
    vlan-tagging;
    unit 300 {
        family inet6 {
            filter {
                input ss-v6filt;
            }
            address ::ffff:192.0.2.100/120;
        }
    }
}

3. Configure the DSCP–IPv6 rewrite rule for the forwarding class “ss-fc.” This causes the outgoing IPv6 packets belonging to the forwarding class “ss-fc” and loss priority “low” to have their DSCP value rewritten to 100000.

content_copy zoom_out_map
[edit class-of-service rewrite-rules]
dscp-ipv6 ss-v6dscp {
    forwarding-class ss-fc {
        loss-priority low code-point 100000;
    }
}

4. Configure the EXP rewrite values for the forwarding class “ss-fc.” This rewrite rule stamps an EXP value of 100 on all outgoing MPLS packets assigned to the forwarding class “ss-fc” and loss priority “low.”

content_copy zoom_out_map
[edit class-of-service rewrite-rules]
exp ss-exp {
    forwarding-class ss-fc {
        loss-priority low code-point 100;
    }
}

5. Apply the preceding rewrite rule to an egress interface. On the egress FPC, all IPv6 packets in the forwarding class “ss-fc” with loss priority “low” are marked with the DSCP value “100000” and an EXP value of “100” before they enter the MPLS tunnel.

content_copy zoom_out_map
[edit class-of-service interfaces]
ge-2/1/1 {
    unit 10 {
        rewrite-rules {
            dscp-ipv6 ss-v6dscp protocol mpls;
            exp ss-exp;
        }
    }
}

6. To support IPv4 DSCP and MPLS EXP independent rewrite at the same time, you can define and apply an IPv4 DSCP rewrite rule “ss-dscp” to the same interface.

content_copy zoom_out_map
[edit class-of-service interfaces]
ge-2/1/1 {
    unit 10 {
        rewrite-rules {
            dscp ss-dscp protocol mpls;
            dscp-ipv6 ss-v6dscp protocol mpls;
            exp ss-exp;
        }
    }
}
footer-navigation