фильтр управления трафиком на основе потоков (flow based traffic control filter)
Имя (Name)
flower - flow based traffic control filter
Синопсис (Synopsis)
tc filter
... flower
[ MATCH_LIST ] [ action
ACTION_SPEC ] [
classid
CLASSID ] [ hw_tc
TCID ]
MATCH_LIST := [ MATCH_LIST ] MATCH
MATCH := { indev
ifname | verbose
| skip_sw
| skip_hw
| {
dst_mac
| src_mac
} MASKED_LLADDR | vlan_id
VID |
vlan_prio
PRIORITY | vlan_ethtype
{ ipv4
| ipv6
|
ETH_TYPE } | cvlan_id
VID | cvlan_prio
PRIORITY |
cvlan_ethtype
{ ipv4
| ipv6
| ETH_TYPE } | mpls
LSE_LIST
| mpls_label
LABEL | mpls_tc
TC | mpls_bos
BOS | mpls_ttl
TTL | ip_proto
{ tcp
| udp
| sctp
| icmp
| icmpv6
|
IP_PROTO } | ip_tos
MASKED_IP_TOS | ip_ttl
MASKED_IP_TTL
| { dst_ip
| src_ip
} PREFIX | { dst_port
| src_port
} {
MASKED_NUMBER | min_port_number-max_port_number } |
tcp_flags
MASKED_TCP_FLAGS | type
MASKED_TYPE | code
MASKED_CODE | { arp_tip
| arp_sip
} IPV4_PREFIX | arp_op
{ request
| reply
| OP } | { arp_tha
| arp_sha
}
MASKED_LLADDR | enc_key_id
KEY-ID | { enc_dst_ip
|
enc_src_ip
} { ipv4_address | ipv6_address } |
enc_dst_port
port_number | enc_tos
TOS | enc_ttl
TTL | {
geneve_opts
| vxlan_opts
| erspan_opts
} OPTIONS |
ip_flags
IP_FLAGS }
LSE_LIST := [ LSE_LIST ] LSE
LSE := lse depth
DEPTH { label
LABEL | tc
TC | bos
BOS | ttl
TTL
}
Описание (Description)
The flower
filter matches flows to the set of keys specified and
assigns an arbitrarily chosen class ID to packets belonging to
them. Additionally (or alternatively) an action from the generic
action framework may be called.