[Prev][Next][Report an Error]

Defining Rewrite Rules

Use the rewrite rules to alter the CoS values in outgoing packets to meet the requirements of the targeted peer. A rewrite rule examines the forwarding class and loss priority of a packet and sets its bits to a corresponding value specified in the rule. For more information about rewrite rules, see the .

To define rewrite rules using the J-Web configuration editor:

  1. Select Configure>Class of Service>Rewrite Rules.

    The Configure Rewrite Rule summary page appears.

  2. Fill in the options as shown in Table 136.
  3. Click one of the following buttons:

Table 136: Rewrite Rules Configuration Options




Configure Rewrite Rule Summary

Rewrite rule name

Displays names of defined rewrite rules.


Rewrite rule type

Displays the rewrite rule type. The following types are supported for J6350,SRX210, SRX240, and SRX650 devices:

  • dscp—Defines the differentiated services code point rewrite rule.
  • dscp-ipv6—Defines the differentiated services code point rewrite rule IPv6.
  • exp—Defines the MPLS EXP rewrite rule.
  • frame-relay-de—Defines the frame relay discard eligible bit rewrite rule.
  • ieee-802.1—Defines the IEEE-802.1 rewrite rule.
  • inet-precedence—Defines the IPv4 precedence rewrite rule.


Code Point Details

Incoming code point

Displays the CoS values and aliases that a specific rewrite rule has set for a specific forwarding class and loss priority.


Forwarding class name

Displays forwarding classes associated with a specific rewrite rule.


Loss priority

Displays loss priority values associated with a specific rewrite rule.



Opens a page that allows you to define a new rewrite rule.

To add a rewrite rule, click Add.


Opens a page that allows you to edit a selected rewrite rule.

To edit a rewrite rule, select a rewrite rule in the summary page and click Edit.


Removes selected rewrite rules.

To remove a rule, select the rewrite rule and click Delete.

Add Rewrite Rule/Edit Rewrite Rule

Rewrite rule name

Specifies a rewrite rule name.

To name a rule, type the name—for example, rewrite-dscps.

Rewrite rule type

Specify a rewrite rule type.

Select a rewrite rule type from the drop-down list, for example, dscp, ieee-802.1, or inet-precedence.


Opens a page that allows you to rewrite outgoing CoS values of a packet based on the forwarding class and loss priority.

To assign a code point, forwarding class, and loss priority to the rewrite rule, click Add.

Add Code Point Mapping

Code point

Specifies the CoS value in bits and the alias of a classifier.

To specify a CoS value and alias, select one from the drop-down list.

Forwarding class

Assigns the forwarding class to the rewrite rule.

To assign a forwarding class, select one from the drop-down list:

  • expedited-forwarding—Provides low loss, low delay, low jitter, assured bandwidth, and end-to-end service. Packets can be forwarded out of sequence or dropped.
  • best-effort—Provides no special CoS handling of packets. Typically, RED drop profile is aggressive and no loss priority is defined.
  • assured-forwarding—Provides high assurance for packets within the specified service profile. Excess packets are dropped.
  • network-control—Packets can be delayed but not dropped.

Loss priority

Assigns a loss priority to the specified rewrite rule.

To assign a loss priority, select one:

  • high—Packet has a high loss priority.
  • low—Packet has a low loss priority.

[Prev][Next][Report an Error]