Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Applying Egress Rewrite Rules to Mobile Interfaces

    You apply egress rewrite rules to change the DiffServ code point (DSCP), DSCPv6, or IP precedence value in the IP header of downstream subscriber packets. You can specify rewrite rules for DSCPv4, DSCPv6, or IP precedence values.

    An egress rewrite rule for downstream (Gi-to-Gn or SGi-to-S5) traffic is applied at the mobile interface and rewrites into the inner IP header, and optionally, outer IP header, or both inner and outer IP headers.

    Note: DSCP marking on the subscriber packet is required for mobile traffic. If egress rewrite rules are not configured and applied to the mobile interfaces, the default mcos-dscp-default or mcos-dscpv6-default rewrite rules apply.

    Before you begin, complete the following tasks:

    • Configure the mobile interfaces.
    • Configure an egress rewrite rule.

    To apply an egress rewrite rule to change DSCP, DSCPv6, or IP precedence values in the IP header of downstream subscriber packets:

    • To apply a DSCP (IPv4) rewrite rule to the inner IP header, specify the name of the rewrite rule you want to apply to the mobile interface.
      [edit class-of-service interfaces mif unit 0 rewrite-rules]user@host# set dscp downlink_rewrite_v4_dscp_inner
    • To apply a rewrite rule on the outer IP header, specify the name of the rewrite rule you want to apply to the mobile interface and include the gtp-inet-outer option.
      [edit class-of-service interfaces mif unit 0 rewrite-rules]user@host# set dscp downlink_rewrite_v4_dscp_outer protocol gtp-inet-outer
    • To apply a DSCP rewrite rule to both the inner and outer IP headers, specify the name of the rewrite rule you want to apply to the mobile interface and include the gtp-inet-both option.
      [edit class-of-service interfaces mif unit 0 rewrite-rules]user@host# set dscp downlink_rewrite_v4_dscp protocol gtp-inet-both

    Published: 2011-11-17