Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   ovs-fields    ( 7 )

поля заголовка протокола в OpenFlow и Open vSwitch (protocol header fields in OpenFlow and Open vSwitch)

LAYER 4: ICMPV4 AND ICMPV6 FIELDS

Summary: Name Bytes Mask RW? Prereqs NXM/OXM Support ──────────────── ────── ───── ──── ─────────── ─────────────────────

icmp_type 1 no yes ICMPv4 OF 1.2+ and OVS 1.1+ icmp_code 1 no yes ICMPv4 OF 1.2+ and OVS 1.1+ icmpv6_type 1 no yes ICMPv6 OF 1.2+ and OVS 1.1+ icmpv6_code 1 no yes ICMPv6 OF 1.2+ and OVS 1.1+ nd_target 16 yes yes ND OF 1.2+ and OVS 1.1+

nd_sll 6 yes yes ND solicit OF 1.2+ and OVS 1.1+ nd_tll 6 yes yes ND advert OF 1.2+ and OVS 1.1+ nd_reserved 4 no yes ND OVS 2.11+ nd_options_type 1 no yes ND OVS 2.11+

ICMPv4 Ethernet IPv4 ICMPv4 <-----------> <---------------> <-----------> 48 48 16 8 32 32 8 8 +---+---+-----+ +---+-----+---+---+ +----+----+---+ |dst|src|type | |...|proto|src|dst| |type|code|...| ... +---+---+-----+ +---+-----+---+---+ +----+----+---+ 0x800 1

ICMPv4 Type Field

Name: icmp_type Width: 8 bits Format: decimal Masking: not maskable Prerequisites: ICMPv4 Access: read/write

OpenFlow 1.0: yes (exact match only) OpenFlow 1.1: yes (exact match only) OXM: OXM_OF_ICMPV4_TYPE (19) since OpenFlow 1.2 and Open vSwitch 1.7 NXM: NXM_OF_ICMP_TYPE (13) since Open vSwitch 1.1

For historical reasons, in an ICMPv4 flow, Open vSwitch interprets matches on tp_src as actually referring to the ICMP type.

ICMPv4 Code Field

Name: icmp_code Width: 8 bits Format: decimal

Masking: not maskable Prerequisites: ICMPv4 Access: read/write OpenFlow 1.0: yes (exact match only) OpenFlow 1.1: yes (exact match only) OXM: OXM_OF_ICMPV4_CODE (20) since OpenFlow 1.2 and Open vSwitch 1.7

NXM: NXM_OF_ICMP_CODE (14) since Open vSwitch 1.1

For historical reasons, in an ICMPv4 flow, Open vSwitch interprets matches on tp_dst as actually referring to the ICMP code.

ICMPv6 Ethernet IPv6 ICMPv6 <------------> <--------------> <-----------> 48 48 16 8 128 128 8 8 +---+---+------+ +---+----+---+---+ +----+----+---+ |dst|src| type | |...|next|src|dst| |type|code|...| ... +---+---+------+ +---+----+---+---+ +----+----+---+ 0x86dd 58

ICMPv6 Type Field

Name: icmpv6_type Width: 8 bits Format: decimal Masking: not maskable Prerequisites: ICMPv6 Access: read/write OpenFlow 1.0: not supported OpenFlow 1.1: not supported

OXM: OXM_OF_ICMPV6_TYPE (29) since OpenFlow 1.2 and Open vSwitch 1.7 NXM: NXM_NX_ICMPV6_TYPE (21) since Open vSwitch 1.1

ICMPv6 Code Field

Name: icmpv6_code Width: 8 bits

Format: decimal Masking: not maskable Prerequisites: ICMPv6 Access: read/write OpenFlow 1.0: not supported OpenFlow 1.1: not supported OXM: OXM_OF_ICMPV6_CODE (30) since OpenFlow 1.2 and Open vSwitch 1.7

NXM: NXM_NX_ICMPV6_CODE (22) since Open vSwitch 1.1

ICMPv6 Neighbor Discovery Ethernet IPv6 ICMPv6 ICMPv6 ND <------------> <--------------> <--------------> <---------------> 48 48 16 8 128 128 8 8 128 +---+---+------+ +---+----+---+---+ +-------+----+---+ +------+----------+ |dst|src| type | |...|next|src|dst| | type |code|...| |target|option ...| +---+---+------+ +---+----+---+---+ +-------+----+---+ +------+----------+ 0x86dd 58 135/136 0

ICMPv6 Neighbor Discovery Target IPv6 Field

Name: nd_target Width: 128 bits Format: IPv6

Masking: arbitrary bitwise masks Prerequisites: ND Access: read/write OpenFlow 1.0: not supported OpenFlow 1.1: not supported OXM: OXM_OF_IPV6_ND_TARGET (31) since OpenFlow 1.2 and Open vSwitch 1.7 NXM: NXM_NX_ND_TARGET (23) since Open vSwitch 1.1

ICMPv6 Neighbor Discovery Source Ethernet Address Field

Name: nd_sll Width: 48 bits Format: Ethernet Masking: arbitrary bitwise masks Prerequisites: ND solicit Access: read/write

OpenFlow 1.0: not supported OpenFlow 1.1: not supported OXM: OXM_OF_IPV6_ND_SLL (32) since OpenFlow 1.2 and Open vSwitch 1.7 NXM: NXM_NX_ND_SLL (24) since Open vSwitch 1.1

ICMPv6 Neighbor Discovery Target Ethernet Address Field

Name: nd_tll Width: 48 bits Format: Ethernet Masking: arbitrary bitwise masks Prerequisites: ND advert Access: read/write OpenFlow 1.0: not supported OpenFlow 1.1: not supported

OXM: OXM_OF_IPV6_ND_TLL (33) since OpenFlow 1.2 and Open vSwitch 1.7 NXM: NXM_NX_ND_TLL (25) since Open vSwitch 1.1

ICMPv6 Neighbor Discovery Reserved Field Field

Name: nd_reserved Width: 32 bits

Format: decimal Masking: not maskable Prerequisites: ND Access: read/write OpenFlow 1.0: not supported OpenFlow 1.1: not supported OXM: none

NXM: ERICOXM_OF_ICMPV6_ND_RESERVED (1) since Open vSwitch 2.11

This is used to set the R,S,O bits in Neighbor Advertisement Messages

ICMPv6 Neighbor Discovery Options Type Field Field

Name: nd_options_type Width: 8 bits Format: decimal Masking: not maskable Prerequisites: ND Access: read/write OpenFlow 1.0: not supported OpenFlow 1.1: not supported

OXM: none NXM: ERICOXM_OF_ICMPV6_ND_OPTIONS_TYPE (2) since Open vSwitch 2.11

A value of 1 indicates that the option is Source Link Layer. A value of 2 indicates that the options is Target Link Layer. See RFC 4861 for further details.