The remark flow-id command configures an action of re-marking the flow ID in a traffic behavior.
The undo remark flow-id command deletes the configuration.
By default, an action of re-marking the flow ID is not configured in a traffic behavior.
Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-S, S5731S-H, S5732-H, S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, S5735S-S, S6720-EI, S6720-HI, S6730-H, S6730S-H, S6730-S, S6730S-S, and S6720S-EI support this command.
Parameter |
Description |
Value |
---|---|---|
flow-id |
Specifies the value of a flow ID. |
The value is an integer that ranges from 1 to 8. |
Application Scenarios
When a traffic policy is applied to different interfaces or VLANs, to save ACL resources, you can run the if-match flow-id command to classify packets based on the flow ID so that the device processes packets matching the same flow ID in the same manner. Before the device classifies packets based on the flow ID, use the remark flow-id command to configure an action of re-marking the flow ID in a traffic behavior.
Assume that M ACLs are configured on the device to distinguish services, and each ACL contains N ACL rules. Traffic classifiers classify packets based on ACL rules, and the traffic policy containing the ACL rules are applied to X interfaces. If the action of re-marking flow IDs and matching rules based on the flow IDs are not configured, applying the traffic policy occupies M*N*X ACL resources. If the action of re-marking flow IDs and matching rules based on flow IDs are configured, applying the traffic policy occupies only M*(N + X) ACL resources.
Follow-up Procedure
Run the traffic classifier command to configure a traffic classifier and run the if-match flow-id command in the traffic classifier view to create a matching rule based on the flow ID.
Precautions
It is recommended that the traffic classifier containing if-match flow-id and the traffic behavior containing remark flow-id be bound to different traffic policies.
The traffic policy containing remark flow-id can be only applied to an interface, a VLAN, or the system in the inbound direction.
remark flow-id, statistic enable, and car cannot be configured in the same traffic behavior.
If you run the remark flow-id command in the same traffic behavior view multiple times, only the latest configuration takes effect.
On the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-S, S5731S-H, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S, a traffic policy containing remark flow-id does not take effect for MPLS packets.