Command Manual – QoS/ACL 
Quidway S8500 Series Routing Switches  Chapter 1  ACL Commands
 
Huawei Technologies Proprietary 
1-10 
z  vlanid: VLAN ID which the switch assigns to the packet , in the length of 2 bytes. 
z  vpn: the flow template which is pre-defined for the MPLS L2VPN, in the length of 2 
bytes.  
 
  Note: 
z  The above mentioned information about how many bytes a field occupies applies to 
traffic templates instead of IP packets. For example, DSCP field occupies one byte 
in flow template, but six bits in IP packets. You can determines whether the total 
length of template elements exceeds 16 bytes using these numbers.  
z  The dscp, exp, ip-precedence and tos fields jointly occupy one byte no matter you 
define any one of these four fields or the ip-precedence and tos field simultaneously.  
z  The cos and s-tag-vlan fields jointly occupy two bytes no matter you define one or 
both of these two fields. The c-tag-cos and c-tag-vlanid fields occupy two bytes in 
the same way. 
z  The fragment-flags field occupies no byte in flow template, so just ignore it when you 
determine whether the total length of template elements exceeds 16 bytes. 
 
slot slotid: Specifies the slot on which the flow template applied. 
Description 
Use the flow-template user-defined slot slotid template-info command to define a 
flow template. 
Use the undo flow-template user-defined  slot  slotid  command to delete a flow 
template. 
In defining a flow template, the total length of all elements should not be more than 16 
bytes. 
 
  Note: 
Currently, the default flow template is as follows: 
ip-protocol tcp-flag sport dport icmp-type icmp-code sip 0.0.0.0 dip 0.0.0.0 vlanid 
 
You cannot modify or delete the default flow template, but those you have defined. 
Related command: display flow-template, flow-template user-defined. 
Example 
# Define a flow template which classifies traffic by source and destination IP addresses, 
source and destination TCP/UDP ports, DSCP domain in the IP packet header.