]> git.proxmox.com Git - mirror_ovs.git/blame - OPENFLOW-1.1+
openflow-1.3.h: Fix typo
[mirror_ovs.git] / OPENFLOW-1.1+
CommitLineData
bea97716
BP
1 OpenFlow 1.1+ support in Open vSwitch
2 =====================================
3
4Open vSwitch support for OpenFlow 1.1, 1.2, and 1.3 is a work in
5progress. This file describes the work still to be done.
6
7The Plan
8--------
9
10OpenFlow version support is not a build-time option. A single build
11of Open vSwitch must be able to handle all supported versions of
12OpenFlow. Ideally, even at runtime it should be able to support all
13protocol versions at the same time on different OpenFlow bridges (and
14perhaps even on the same bridge).
15
16At the same time, it would be a shame to litter the core of the OVS
17code with lots of ugly code concerned with the details of various
18OpenFlow protocol versions.
19
20The primary approach to compatibility is to abstract most of the
21details of the differences from the core code, by adding a protocol
22layer that translates between OF1.x and a slightly higher-level
23abstract representation. The core of this approach is the many struct
24ofputil_* structures in lib/ofp-util.h.
25
26As a consequence of this approach, OVS cannot use OpenFlow protocol
27definitions that closely resemble those in the OpenFlow specification,
28because openflow.h in different versions of the OpenFlow specification
29defines the same identifier with different values. Instead,
30openflow-common.h contains definitions that are common to all the
31specifications and separate protocol version-specific headers contain
32protocol-specific definitions renamed so as not to conflict,
33e.g. OFPAT10_ENQUEUE and OFPAT11_ENQUEUE for the OpenFlow 1.0 and 1.1
34values for OFPAT_ENQUEUE. Generally, in cases of conflict, the
35protocol layer will define a more abstract OFPUTIL_* or struct
36ofputil_*.
37
38Here are the current approaches in a few tricky areas:
39
40 * Port numbering. OpenFlow 1.0 has 16-bit port numbers and later
41 OpenFlow versions have 32-bit port numbers. For now, OVS
42 support for later protocol versions requires all port numbers to
43 fall into the 16-bit range, translating the reserved OFPP_* port
44 numbers.
45
46 * Actions. OpenFlow 1.0 and later versions have very different
47 ideas of actions. OVS reconciles by translating all the
48 versions' actions (and instructions) to and from a common
49 internal representation.
50
51OpenFlow 1.1
52------------
53
54The list of remaining work items for OpenFlow 1.1 is below. It is
55probably incomplete.
56
57 * Implement Write-Actions instruction.
4db3f50a 58 [required for 1.1+]
bea97716
BP
59
60 * The new in_phy_port field in OFPT_PACKET_IN needs some kind of
61 implementation. It has a sensible interpretation for tunnels
62 but in general the physical port is not in the datapath for OVS
63 so the value is not necessarily meaningful. We might have to
64 just fix it as the same as in_port.
4db3f50a 65 [required for OF1.1; optional for OF1.2+]
bea97716 66
4db3f50a 67 * OFPT_TABLE_MOD message. This is new in OF1.1, so we need to
bea97716
BP
68 implement it. It should be implemented so that the default OVS
69 behavior does not change.
4db3f50a
SH
70 [required for OF1.1 and OF1.2]
71
bea97716 72 * MPLS. Simon Horman maintains a patch series that adds this
ac3d64b1 73 feature. This is partially merged.
4db3f50a 74 [optional for OF1.1+]
bea97716 75
bea97716
BP
76 * Match and set double-tagged VLANs (QinQ). This requires kernel
77 work for reasonable performance.
4db3f50a 78 [optional for OF1.1+]
bea97716
BP
79
80 * VLANs tagged with 88a8 Ethertype. This requires kernel work for
81 reasonable performance.
4db3f50a 82 [required for OF1.1+]
bea97716
BP
83
84 * Groups.
85
4db3f50a
SH
86 * Type all
87 [required for OF1.1+]
88
89 * Type select
90 [optional for OF1.1+]
91
92 * Type indirect
93 [required for OF1.1+]
94
95 * Type fast failover
96 [optional for OF1.1+]
97
98 * Statistics
99 [optional for OF1.1+]
100
bea97716
BP
101OpenFlow 1.2
102------------
103
86189a8c
GS
104OpenFlow 1.2 support requires OpenFlow 1.1 as a prerequisite. All the
105additional work specific to Openflow 1.2 are complete. (This is based
106on the change log at the end of the OF1.2 spec. I didn't compare the
107specs carefully yet.)
bea97716 108
bea97716
BP
109OpenFlow 1.3
110------------
111
112OpenFlow 1.3 support requires OpenFlow 1.2 as a prerequisite, plus the
113following additional work. (This is based on the change log at the
114end of the OF1.3 spec, reusing most of the section titles directly. I
b2c9b585 115didn't compare the specs carefully yet.)
bea97716 116
4db3f50a
SH
117 * Send errors for unsupported multipart requests.
118 [required for OF1.3+]
119
bea97716 120 * Add support for multipart requests.
4db3f50a 121 [optional for OF1.3+]
bea97716
BP
122
123 * Add OFPMP_TABLE_FEATURES statistics.
4db3f50a 124 [optional for OF1.3+]
bea97716
BP
125
126 * More flexible table miss support.
4db3f50a 127 [required for OF1.3+]
bea97716
BP
128
129 * IPv6 extension header handling support. Fully implementing this
130 requires kernel support. This likely will take some careful and
131 probably time-consuming design work. The actual coding, once
132 that is all done, is probably 2 or 3 days work.
4db3f50a 133 [optional for OF1.3+]
bea97716
BP
134
135 * Per-flow meters. Similar to IPv6 extension headers in kernel
136 and design requirements. Might be politically difficult to add
137 directly to the kernel module, since its functionality overlaps
138 with tc. Ideally, therefore, we could implement these somehow
b2c9b585 139 with tc, but I haven't investigated whether that makes sense.
4db3f50a 140 [optional for OF1.3+]
bea97716 141
ac3d64b1 142 * Per-connection event filtering. OF1.3 adopted Open vSwitch's
bea97716
BP
143 existing design for this feature so implementation should be
144 easy.
4db3f50a 145 [required for OF1.3+]
bea97716 146
4db3f50a
SH
147 * Auxiliary connections. An implementation in generic code might
148 be a week's worth of work. The value of an implementation in
149 generic code is questionable, though, since much of the benefit
150 of axuiliary connections is supposed to be to take advantage of
151 hardware support. (We could make the kernel module somehow
152 send packets across the auxiliary connections directly, for
153 some kind of "hardware" support, if we judged it useful enough.)
154 [optional for OF1.3+]
bea97716
BP
155
156 * MPLS BoS matching. (Included in Simon's MPLS series?)
4db3f50a 157 [optional for OF1.3+]
bea97716 158
b2c9b585
BP
159 * Provider Backbone Bridge tagging. I don't plan to implement
160 this (but we'd accept an implementation).
4db3f50a 161 [optional for OF1.3+]
bea97716 162
b2c9b585 163 * Rework tag order. I'm not sure whether we need to do anything
4db3f50a
SH
164 for this. Part of MPLS patchset by Simon Horman.
165 [required for v1.3+]
bea97716 166
bea97716
BP
167 * On-demand flow counters. I think this might be a real
168 optimization in some cases for the software switch.
4db3f50a
SH
169 [optional for OF1.3+]
170
bea97716
BP
171
172How to contribute
173-----------------
174
175If you plan to contribute code for a feature, please let everyone know
176on ovs-dev before you start work. This will help avoid duplicating
177work.
178
179Please consider the following:
180
181 * Testing. Please test your code.
182
183 * Unit tests. Please consider writing some. The tests directory
184 has many examples that you can use as a starting point.
185
186 * ovs-ofctl. If you add a feature that is useful for some
187 ovs-ofctl command then you should add support for it there.
188
189 * Documentation. If you add a user-visible feature, then you
190 should document it in the appropriate manpage and mention it in
191 NEWS as well.
192
193 * Coding style (see the CodingStyle file at the top of the source
194 tree).
195
196 * The patch submission guidelines (see SubmittingPatches). I
b2c9b585 197 recommend using "git send-email", which automatically follows a
bea97716
BP
198 lot of those guidelines.
199
200Bug Reporting
201-------------
202
203Please report problems to bugs@openvswitch.org.