]> git.proxmox.com Git - mirror_ovs.git/blame - DESIGN
nicira-ext: Support matching IPv6 traffic.
[mirror_ovs.git] / DESIGN
CommitLineData
d31f1109
JP
1 Design Decisions In Open vSwitch
2 ================================
3
4This document describes design decisions that went into implementing
5Open vSwitch. While we believe these to be reasonable decisions, it is
6impossible to predict how Open vSwitch will be used in all environments.
7Understanding assumptions made by Open vSwitch is critical to a
8successful deployment. The end of this document contains contact
9information that can be used to let us know how we can make Open vSwitch
10more generally useful.
11
12
13IPv6
14====
15
16Open vSwitch supports stateless handling of IPv6 packets. Flows can be
17written to support matching TCP, UDP, and ICMPv6 headers within an IPv6
18packet.
19
20IPv6 was not designed to interact well with middle-boxes. This,
21combined with Open vSwitch's stateless nature, have affected the
22processing of IPv6 traffic, which is detailed below.
23
24Extension Headers
25-----------------
26
27The base IPv6 header is incredibly simple with the intention of only
28containing information relevant for routing packets between two
29endpoints. IPv6 relies heavily on the use of extension headers to
30provide any other functionality. Unfortunately, the extension headers
31were designed in such a way that it is impossible to move to the next
32header (including the layer-4 payload) unless the current header is
33understood.
34
35Open vSwitch will process the following extension headers and continue
36to the next header:
37
38 * Fragment (see the next section)
39 * AH (Authentication Header)
40 * Hop-by-Hop Options
41 * Routing
42 * Destination Options
43
44When a header is encountered that is not in that list, it is considered
45"terminal". A terminal header's IPv6 protocol value is stored in
46"nw_proto" for matching purposes. If a terminal header is TCP, UDP, or
47ICMPv6, the packet will be further processed in an attempt to extract
48layer-4 information.
49
50Fragments
51---------
52
53IPv6 requires that every link in the internet have an MTU of 1280 octets
54or greater (RFC 2460). As such, a terminal header (as described above in
55"Extension Headers") in the first fragment should generally be
56reachable. In this case, the terminal header's IPv6 protocol type is
57stored in the "nw_proto" field for matching purposes. If a terminal
58header cannot be found in the first fragment (one with a fragment offset
59of zero), the "nw_proto" field is set to 0. Subsequent fragments (those
60with a non-zero fragment offset) have the "nw_proto" field set to the
61IPv6 protocol type for fragments (44).
62
63Jumbograms
64----------
65
66An IPv6 jumbogram (RFC 2675) is a packet containing a payload longer
67than 65,535 octets. A jumbogram is only relevant in subnets with a link
68MTU greater than 65,575 octets, and are not required to be supported on
69nodes that do not connect to link with such large MTUs. Currently, Open
70vSwitch doesn't process jumbograms.
71
72
73Suggestions
74===========
75
76Suggestions to improve Open vSwitch are welcome at discuss@openvswitch.org.