specs: Introduction to High Priority Traffic Path
[ovsnfv.git] / specs / High-Priority-Traffic-Path.rst
1 ..
2  This work is licensed under a Creative Commons Attribution 3.0 Unported
3  License.
4
5  http://creativecommons.org/licenses/by/3.0/legalcode
6
7 ==========================================
8 High Priority Traffic Path
9 ==========================================
10
11 https://wiki.opnfv.org/display/ovsnfv/OVSFV+Requirement+-+High+Priority+Traffic+Path
12
13 Problem description
14 ===================
15
16 A network design may need to adequately accommodate multiple classes of traffic, each
17 class requiring different levels of service in critical network elements.
18
19 As a concrete example, a network element managed by a service provider may be
20 handling voice and elastic data traffic. Voice traffic requires that the end-to-end
21 latency and jitter is bounded to some numerical limit (in msec) accuracy in order to ensure
22 sufficient quality-of-service (QoS) for the participants in the voice call.
23 Elastic data traffic does not impose the same demanding requirements on the network
24 (there will be essentially no requirement on jitter. For example, when downloading a
25 large file across the Internet, although the bandwidth requirements may be high there
26 is usually no requirement that the file arrives within a bounded time interval.
27
28 Depending on the scheduling algorithms running on the network element,
29 frames belonging to the data traffic may get transmitted before frames
30 belonging to the voice traffic introducing unwanted latency or jitter.
31 Therefore, in order to ensure deterministic latency and jitter characteristics
32 end-to-end, each network element through which the voice traffic traverses
33 must ensure that voice traffic is handled deterministically.
34
35 Hardware switches have typically been designed to ensure certain classes
36 of traffic can be scheduled ahead of other classes and are also
37 over-provisioned which further ensures deterministic behavior when
38 handling high priority traffic. However, software switches (which includes
39 virtual switches such as Open vSwitch) may require modification in order
40 to achieve this deterministic behavior.
41
42 Use Cases
43 ---------
44
45 1. Program classes of service
46
47 The End User specifies a number of classes of service. Each class of service
48 will be represented by the value of a particular field in a frame. The class
49 of service determines the priority treatment which flows in the class will
50 receive, while maintaining a relative level of priority for other classes and
51 a default level of treatment for the lowest priority class of service. As
52 such, each class of service will be associated with a priority. The End User
53 will associate classes of service and priorities to ingress ports with the
54 expectation that frames that arrive on these ingress ports will get
55 scheduled following the specified priorities.
56
57 Note: Priority treatment of the classes of service cannot cause any one of
58 the classes (even the default class) from being transferred at all. In other
59 words, a strict priority treatment would likely not be successful for serving
60 all classes eventually, and this is a key consideration.
61
62 2. Forward high priority network traffic
63
64 A remote network element sends traffic to Open vSwitch. The remote network
65 element, indicates the class of service to which this flow of traffic belongs
66 to by modifying a pre-determined but arbitrary field in the frame as specified
67 in Use Case 1. Some examples include the Differentiated Services Code Point
68 (DSCP) in an IP packet or the Priority Code Point (PCP) in an Ethernet frame.
69 The relative priority treatment that frames get processed by Open vSwitch can be guaranteed by the
70 values populated in these fields when the fields are different. If the fields
71 are the same, ordering is not deterministic.
72
73 For example: Packet A is sent with a DSCP value of 0 and packet B is sent
74 with a value of 46; 0 has a lower priority than 46. Packet A arrives
75 before packet B. If Open vSwitch has been configured as such, Packet
76 B will be transmitted before Packet A.
77
78 Proposed change
79 ===============
80
81 TBD
82
83 Alternatives
84 ------------
85
86 TBD
87
88 OVSDB schema impact
89 -------------------
90
91 TBD
92
93 User interface impact
94 ---------------------
95
96 TBD
97
98 Security impact
99 ---------------
100
101 TBD
102
103 Other end user impact
104 ---------------------
105
106 TBD
107
108 Performance Impact
109 ------------------
110
111 TBD
112
113 Other deployer impact
114 ---------------------
115
116 TBD
117
118 Developer impact
119 ----------------
120
121 TBD
122
123 Implementation
124 ==============
125
126 Assignee(s)
127 -----------
128
129 Who is leading the writing of the code? Or is this a blueprint where you're
130 throwing it out there to see who picks it up?
131
132 If more than one person is working on the implementation, please designate the
133 primary author and contact.
134
135 Primary assignee:
136   <email address>
137
138 Other contributors:
139   <email address>
140
141 Work Items
142 ----------
143
144 TBD
145
146 Dependencies
147 ============
148
149 TBD
150
151 Testing
152 =======
153
154 TBD
155
156 Documentation Impact
157 ====================
158
159 TBD
160
161 References
162 ==========
163
164 Please add any useful references here. You are not required to have any
165 reference. Moreover, this specification should still make sense when your
166 references are unavailable. Examples of what you could include are:
167
168 * Links to mailing list or IRC discussions
169
170 - http://lists.opnfv.org/pipermail/opnfv-tech-discuss/2015-December/007193.html
171 - http://ircbot.wl.linuxfoundation.org/meetings/opnfv-ovsnfv/2016/opnfv-ovsnfv.2016-03-07-13.01.html
172
173 * Links to relevant research, if appropriate
174
175 - https://wiki.opnfv.org/download/attachments/5046510/qos_mechanisms.pdf?version=1&modificationDate=1459187636000&api=v2
176
177 * Related specifications as appropriate
178
179 * Anything else you feel it is worthwhile to refer to
180
181
182 History
183 =======
184
185 Optional section intended to be used each time the spec
186 is updated to describe new design, API or any database schema
187 updated. Useful to let reader understand what's happened along the
188 time.
189
190 .. list-table:: Revisions
191    :header-rows: 1
192
193    * - Release Name
194      - Description
195    * - Colorado
196      - Introduced