Merge "src: added mechanism to pull upstream packages and provided single top-level...
[vswitchperf.git] / test_spec / vswitchperf_ltd.md
1 #CHARACTERIZE VSWITCH PERFORMANCE FOR TELCO NFV USE CASES LEVEL TEST DESIGN
2
3 ##Table of Contents
4
5 - [1. Introduction](#Introduction)
6   - [1.1. Document identifier](#DocId)
7   - [1.2. Scope](#Scope)
8   - [1.3. References](#References)
9
10
11 - [2. Details of the Level Test Design](#DetailsOfTheLevelTestDesign)
12   - [2.1. Features to be tested](#FeaturesToBeTested)
13   - [2.2. Approach](#Approach)
14   - [2.3. Test identification](#TestIdentification)
15     - [2.3.1 Throughput tests](#ThroughputTests)
16     - [2.3.2 Packet Delay Tests](#PacketDelayTests)
17     - [2.3.3 Scalability Tests](#ScalabilityTests)
18     - [2.3.4 CPU and Memory Consumption Tests](#CPUTests)
19     - [2.3.5 Coupling Between the Control Path and The Datapath Tests](#CPDPTests)
20     - [2.3.6 Time to Establish Flows Tests](#FlowLatencyTests)
21     - [2.3.7 Noisy Neighbour Tests](#NoisyNeighbourTests)
22     - [2.3.8 Overlay Tests](#OverlayTests)
23     - [2.3.9 Summary Test List](#SummaryList)
24   - [2.4. Feature pass/fail criteria](#PassFail)
25   - [2.5. Test deliverables](#TestDeliverables)
26
27
28 - [3. General](#General)
29   - [3.1. Glossary](#Glossary)
30   - [3.2. Document change procedures and history](#History)
31   - [3.3. Contributors](#Contributors)
32
33 <br/>
34
35 ---
36 <a name="Introduction"></a>
37 ##1. Introduction
38   The objective of the OPNFV project titled **“Characterize vSwitch Performance for Telco NFV Use Cases”**, is to evaluate a virtual switch to identify its suitability for a Telco Network Function Virtualization (NFV) environment. The intention of this Level Test Design (LTD) document is to specify the set of tests to carry out in order to objectively measure the current characteristics of a virtual switch in the Network Function Virtualization Infrastructure (NFVI) as well as the test pass criteria. The detailed test cases will be defined in [Section 2](#DetailsOfTheLevelTestDesign), preceded by the [Document identifier](#DocId) and the [Scope](#Scope).
39
40  This document is currently in draft form.
41
42   <a name="DocId"></a>
43   ###1.1. Document identifier
44   The document id will be used to uniquely identify versions of the LTD. The format for the document id will be: OPNFV\_vswitchperf\_LTD\_ver\_NUM\_MONTH\_YEAR\_STATUS, where by the status is one of: draft, reviewed, corrected or final. The document id for this version of the LTD is: OPNFV\_vswitchperf\_LTD\_ver\_1.6\_Jan\_15\_DRAFT.
45
46   <a name="Scope"></a>
47   ###1.2. Scope
48   The main purpose of this project is to specify a suite of performance tests in order to objectively measure the current packet transfer characteristics of a virtual switch in the NFVI. The intent of the project is to facilitate testing of any virtual switch. Thus, a generic suite of tests shall be developed, with no hard dependencies to a single implementation. In addition, the test case suite shall be architecture independent.
49
50   The test cases developed in this project shall not form part of a separate test framework, all of these tests may be inserted into the Continuous Integration Test Framework and/or the Platform Functionality Test Framework - if a vSwitch becomes a standard component of an OPNFV release.
51
52   <a name="References"></a>
53   ###1.3. References
54
55   - [RFC 1242 Benchmarking Terminology for Network Interconnection Devices](http://www.ietf.org/rfc/rfc1242.txt)
56   - [RFC 2544 Benchmarking Methodology for Network Interconnect Devices](http://www.ietf.org/rfc/rfc2544.txt)
57   - [RFC 2285 Benchmarking Terminology for LAN Switching Devices](http://www.ietf.org/rfc/rfc2285.txt)
58   - [RFC 2889 Benchmarking Methodology for LAN Switching Devices](http://www.ietf.org/rfc/rfc2889.txt)
59   - [RFC 3918 Methodology for IP Multicast Benchmarking](http://www.ietf.org/rfc/rfc3918.txt)
60   - [RFC 4737 Packet Reordering Metrics](http://www.ietf.org/rfc/rfc4737.txt)
61   - [RFC 5481 Packet Delay Variation Applicability Statement](http://www.ietf.org/rfc/rfc5481.txt)
62   - [RFC 6201 Device Reset Characterization](http://tools.ietf.org/html/rfc6201)
63
64 <br/>
65
66 <a name=" DetailsOfTheLevelTestDesign"></a>
67 ##2. Details of the Level Test Design
68 This section describes the features to be tested ([cf. 2.1](#FeaturesToBeTested)), the test approach ([cf. 2.2](#Approach)); it also identifies the sets of test cases or scenarios ([cf. 2.3](#TestIdentification)) along with the pass/fail criteria ([cf. 2.4](#PassFail)) and the test deliverables ([cf. 2.5](#TestDeliverables)).
69
70 <a name="FeaturesToBeTested"></a>
71   ###2.1. Features to be tested
72   Characterizing virtual switches (i.e. Device Under Test (DUT) in this document) includes measuring the following performance metrics:
73    - Throughput as defined by [RFC1242]: The maximum rate at which none of the offered frames are dropped by the DUT. The maximum frame rate and bit rate that can be transmitted by the DUT without any error should be recorded. Note there is an equivalent bit rate and a specific layer at which the payloads contribute to the bits. Errors and improperly formed frames or packets are dropped.
74    - Packet delay introduced by the DUT and its cumulative effect on E2E networks. Frame delay can be measured equivalently.
75    - Packet delay variation: measured from the perspective of the VNF/application. Packet delay variation is sometimes called "jitter". However, we will avoid the term "jitter" as the term holds different meaning to different groups of people. In this document we will simply use the term packet delay variation. The preferred form for this metric is the PDV form of delay variation defined in [RFC5481].
76    - Packet loss (within a configured waiting time at the receiver): All packets sent to the DUT should be accounted for.
77    - Burst behaviour: measures the ability of the DUT to buffer packets.
78    - Packet re-ordering: measures the ability of the device under test to maintain sending order throughout transfer to the destination.
79    - Packet correctness Packets or Frames must be well-formed, in that they include all required fields, conform to length requirements, pass integrity checks, etc.
80    - Availability and capacity of the DUT i.e. when the DUT is fully “up” and connected:
81      - Includes power consumption of the CPU (in various power states) and system.
82      - Includes CPU utilization.
83      - Includes # NIC interfaces supported.
84      - Includes headroom of VM workload processing cores (i.e. available for applications).
85
86 <a name="Approach"></a>
87  ###2.2. Approach
88  In order to determine the packet transfer characteristics of a virtual switch, the tests will be broken down into the following categories:
89
90   - Throughput Tests to measure the maximum forwarding rate (in frames per second or fps) and bit rate (in Mbps) for a constant load (as defined by [RFC1242]) without traffic loss.
91   - Packet and Frame Delay Tests to measure average, min and max packet and frame delay for constant loads.
92   - Stream Performance Tests (TCP, UDP) to measure bulk data transfer performance, i.e. how fast systems can send and receive data through the switch.
93   - Request/Response Performance Tests (TCP, UDP) the measure the transaction rate through the switch.
94  - Packet delay tests to understand latency distribution for different packet sizes and over an extended test run to uncover outliers.
95   - Scalability Tests to understand how the virtual switch performs as the number of flows, active ports, complexity of the forwarding logic's configuration... it has to deal with increases.
96   - Control Path and Datapath Coupling Tests, to understand how closely coupled the datapath and the control path are as well as the effect of this coupling on the performance of the DUT.
97   - CPU and Memory Consumption Tests to understand the virtual switch’s footprint on the system, this includes:
98    - CPU utilization
99    - Cache utilization
100    - Memory footprint
101   - Time To Establish Flows Tests.
102   - Noisy Neighbour Tests, to understand the effects of resource sharing on the performance of a virtual switch.
103
104 **Note:** some of the tests above can be conducted simultaneously where the combined results would be insightful, for example Packet/Frame Delay and Scalability.
105
106 The following represents possible deployments which can help to determine the performance of both the virtual switch and the datapath into the VNF:
107
108   - Physical port  → virtual switch → physical port.
109
110 <pre><code>
111                                                          __
112     +--------------------------------------------------+   |
113     |              +--------------------+              |   |
114     |              |                    |              |   |
115     |              |                    v              |   |  Host
116     |   +--------------+            +--------------+   |   |
117     |   |   phy port   |  vSwitch   |   phy port   |   |   |
118     +---+--------------+------------+--------------+---+ __|
119                ^                           :
120                |                           |
121                :                           v
122     +--------------------------------------------------+
123     |                                                  |
124     |                traffic generator                 |
125     |                                                  |
126     +--------------------------------------------------+
127 </code></pre>
128
129   - Physical port → virtual switch → VNF → virtual switch → physical port.
130
131 <pre><code>
132                                                           __
133     +---------------------------------------------------+   |
134     |                                                   |   |
135     |   +-------------------------------------------+   |   |
136     |   |                 Application               |   |   |
137     |   +-------------------------------------------+   |   |
138     |       ^                                  :        |   |
139     |       |                                  |        |   |  Guest
140     |       :                                  v        |   |
141     |   +---------------+           +---------------+   |   |
142     |   | logical port 0|           | logical port 1|   |   |
143     +---+---------------+-----------+---------------+---+ __|
144             ^                                  :
145             |                                  |
146             :                                  v         __
147     +---+---------------+----------+---------------+---+   |
148     |   | logical port 0|          | logical port 1|   |   |
149     |   +---------------+          +---------------+   |   |
150     |       ^                                  :       |   |
151     |       |                                  |       |   |  Host
152     |       :                                  v       |   |
153     |   +--------------+            +--------------+   |   |
154     |   |   phy port   |  vSwitch   |   phy port   |   |   |
155     +---+--------------+------------+--------------+---+ __|
156                ^                           :
157                |                           |
158                :                           v
159     +--------------------------------------------------+
160     |                                                  |
161     |                traffic generator                 |
162     |                                                  |
163     +--------------------------------------------------+
164 </code></pre>
165
166   - Physical port → virtual switch → VNF → virtual switch → VNF → virtual switch → physical port.
167
168 <pre><code>
169                                                                                                                  __
170     +---------------------------------------------------+   +---------------------------------------------------+  |
171     |   Guest 1                                         |   |   Guest 2                                         |  |
172     |   +-------------------------------------------+   |   |   +-------------------------------------------+   |  |
173     |   |                 Application               |   |   |   |                 Application               |   |  |
174     |   +-------------------------------------------+   |   |   +-------------------------------------------+   |  |
175     |       ^                                  :        |   |       ^                                  :        |  |
176     |       |                                  |        |   |       |                                  |        |  |  Guest
177     |       :                                  v        |   |       :                                  v        |  |
178     |   +---------------+           +---------------+   |   |   +---------------+           +---------------+   |  |
179     |   | logical port 0|           | logical port 1|   |   |   | logical port 0|           | logical port 1|   |  |
180     +---+---------------+-----------+---------------+---+   +---+---------------+-----------+---------------+---+__|
181             ^                                  :                    ^                                  :
182             |                                  |                    |                                  |
183             :                                  v                    :                                  v         __
184     +---+---------------+----------+---------------+------------+---------------+-----------+---------------+---+  |
185     |   |     port 0    |          |     port 1    |            |     port 2    |           |     port 3    |   |  |
186     |   +---------------+          +---------------+            +---------------+           +---------------+   |  |
187     |       ^                                  :                    ^                                  :        |  |
188     |       |                                  |                    |                                  |        |  |  Host
189     |       :                                  +--------------------+                                  v        |  |
190     |   +--------------+                                                                    +--------------+    |  |
191     |   |   phy port   |                               vswitch                              |   phy port   |    |  |
192     +---+--------------+--------------------------------------------------------------------+--------------+----+__|
193                ^                                                                                    :
194                |                                                                                    |
195                :                                                                                    v
196     +-----------------------------------------------------------------------------------------------------------+
197     |                                                                                                           |
198     |                                              traffic generator                                            |
199     |                                                                                                           |
200     +-----------------------------------------------------------------------------------------------------------+
201 </code></pre>
202
203   - Physical port → virtual switch → VNF.
204
205 <pre><code>
206                                                           __
207     +---------------------------------------------------+   |
208     |                                                   |   |
209     |   +-------------------------------------------+   |   |
210     |   |                 Application               |   |   |
211     |   +-------------------------------------------+   |   |
212     |       ^                                           |   |
213     |       |                                           |   |  Guest
214     |       :                                           |   |
215     |   +---------------+                               |   |
216     |   | logical port 0|                               |   |
217     +---+---------------+-------------------------------+ __|
218             ^
219             |
220             :                                            __
221     +---+---------------+------------------------------+   |
222     |   | logical port 0|                              |   |
223     |   +---------------+                              |   |
224     |       ^                                          |   |
225     |       |                                          |   |  Host
226     |       :                                          |   |
227     |   +--------------+                               |   |
228     |   |   phy port   |  vSwitch                      |   |
229     +---+--------------+------------ -------------- ---+ __|
230                ^
231                |
232                :
233     +--------------------------------------------------+
234     |                                                  |
235     |                traffic generator                 |
236     |                                                  |
237     +--------------------------------------------------+
238 </code></pre>
239
240   - VNF → virtual switch → physical port.
241
242 <pre><code>
243                                                           __
244     +---------------------------------------------------+   |
245     |                                                   |   |
246     |   +-------------------------------------------+   |   |
247     |   |                 Application               |   |   |
248     |   +-------------------------------------------+   |   |
249     |                                          :        |   |
250     |                                          |        |   |  Guest
251     |                                          v        |   |
252     |                               +---------------+   |   |
253     |                               | logical port  |   |   |
254     +-------------------------------+---------------+---+ __|
255                                                :
256                                                |
257                                                v         __
258     +------------------------------+---------------+---+   |
259     |                              | logical port  |   |   |
260     |                              +---------------+   |   |
261     |                                          :       |   |
262     |                                          |       |   |  Host
263     |                                          v       |   |
264     |                               +--------------+   |   |
265     |                     vSwitch   |   phy port   |   |   |
266     +-------------------------------+--------------+---+ __|
267                                            :
268                                            |
269                                            v
270     +--------------------------------------------------+
271     |                                                  |
272     |                traffic generator                 |
273     |                                                  |
274     +--------------------------------------------------+
275 </code></pre>
276
277   - virtual switch → VNF → virtual switch.
278
279 <pre><code>
280                                                                                                                  __
281     +---------------------------------------------------+   +---------------------------------------------------+  |
282     |   Guest 1                                         |   |   Guest 2                                         |  |
283     |   +-------------------------------------------+   |   |   +-------------------------------------------+   |  |
284     |   |                 Application               |   |   |   |                 Application               |   |  |
285     |   +-------------------------------------------+   |   |   +-------------------------------------------+   |  |
286     |                                          :        |   |       ^                                           |  |
287     |                                          |        |   |       |                                           |  |  Guest
288     |                                          v        |   |       :                                           |  |
289     |                               +---------------+   |   |   +---------------+                               |  |
290     |                               | logical port 0|   |   |   | logical port 0|                               |  |
291     +-------------------------------+---------------+---+   +---+---------------+-------------------------------+__|
292                                                :                    ^
293                                                |                    |
294                                                v                    :                                            __
295     +------------------------------+---------------+------------+---------------+-------------------------------+  |
296     |                              |     port 0    |            |     port 1    |                               |  |
297     |                              +---------------+            +---------------+                               |  |
298     |                                          :                    ^                                           |  |
299     |                                          |                    |                                           |  |  Host
300     |                                          +--------------------+                                           |  |
301     |                                                                                                           |  |
302     |                                                  vswitch                                                  |  |
303     +-----------------------------------------------------------------------------------------------------------+__|
304 </code></pre>
305
306 **Note:** For tests where the traffic generator and/or measurement receiver are implemented on VM and connected to the virtual switch through vNIC, the issues of shared resources and interactions between the measurement devices and the device under test must be considered.
307
308  ####General Methodology:
309
310   To establish the baseline performance of the virtual switch, tests would initially be run with a simple workload in the VNF (the recommended simple workload VNF would be [DPDK]'s testpmd application forwarding packets in a VM). Subsequently, the tests would also be executed with a real Telco workload running in the VNF, which would exercise the virtual switch in the context of higher level Telco NFV use cases, and prove that its underlying characteristics and behaviour can be measured and validated. Suitable real Telco workload VNFs are yet to be identified.
311
312  <a name="DefaultParams"></a>
313  #####Default Test Parameters:
314  The following list identifies the default parameters for suite of tests:
315
316  - Reference application: Simple forwarding or Open Source VNF.
317  - Frame size (bytes): 64, 128, 256, 512, 1024, 1280, 1518, 2K, 4k OR Packet size based on use-case (e.g. RTP 64B, 256B).
318  - Reordering check: Tests should confirm that packets within a flow are not reordered.
319  - Duplex: Unidirectional / Bidirectional. Default: Full duplex with traffic transmitting in both directions, as network traffic generally does not flow in a single direction. By default the data rate of transmitted traffic should be the same in both directions, please note that asymmetric traffic (e.g. downlink-heavy) tests will be mentioned explicitly for the relevant test cases.
320  - Number of Flows: Default for non scalability tests is a single flow. For scalability tests the goal is to test with maximum supported flows but where possible will test up to 10 Million flows. Start with a single flow and scale up. By default flows should be added sequentially, tests that add flows simultaneously will explicitly call out their flow addition behaviour. Packets are generated across the flows uniformly with no burstiness.
321  - Traffic Types: UDP, SCTP, RTP, GTP and UDP traffic.
322  - Deployment scenarios are:
323    - Physical → virtual switch → physical.
324    - Physical → virtual switch → VNF → virtual switch → physical.
325    - Physical → virtual switch → VNF → virtual switch → VNF → virtual switch → physical.
326    - Physical → virtual switch → VNF.
327    - VNF → virtual switch → Physical.
328    - VNF → virtual switch → VNF.
329
330  Tests MUST have these parameters unless otherwise stated. **Test cases with non default parameters will be stated explicitly**.
331
332  **Note**: For throughput tests unless stated otherwise, test configurations should ensure that traffic traverses the installed flows through the switch, i.e. flows are installed and have an appropriate time out that doesn't expire before packet transmission starts.
333
334  #####Test Priority
335   Tests will be assigned a priority in order to determine which tests should be implemented immediately and which tests implementations can be deferred.
336
337  Priority can be of following types:
338   - Urgent: Must be implemented immediately.
339   - High: Must be implemented in the next release.
340   - Medium: May be implemented after the release.
341   - Low: May or may not be implemented at all.
342
343  #####DUT Setup
344  The DUT should be configured to its "default" state. The DUT's configuration or set-up must not change between tests in any way other than what is required to do the test. All supported protocols must be configured and enabled for each test set up.
345
346  #####Port Configuration
347  The DUT should be configured with n ports where n is a multiple of 2. Half of the ports on the DUT should be used as ingress ports and the other half of the ports on the DUT should be used as egress ports. Where a DUT has more than 2 ports, the ingress data streams should be set-up so that they transmit packets to the egress ports in sequence so that there is an even distribution of traffic across ports. For example, if a DUT has 4 ports 0(ingress), 1(ingress), 2(egress) and 3(egress), the traffic stream directed at port 0 should output a packet to port 2 followed by a packet to port 3. The traffic stream directed at port 1 should also output a packet to port 2 followed by a packet to port 3.
348
349  #####Frame formats
350   Layer 2 (data link layer) protocols:
351
352   -  Ethernet II
353
354   <pre><code>
355
356   +-----------------------------+-----------------------------------------------------------------------+---------+
357   |       Ethernet Header       |                                Payload                                |Check Sum|
358   +-----------------------------+-----------------------------------------------------------------------+---------+
359    |___________________________| |_____________________________________________________________________| |_______|
360               14 Bytes                                       46 - 1500 Bytes                              4 Bytes
361
362   </code></pre>
363
364   Layer 3 (network layer) protocols:
365
366   - IPv4
367
368   <pre><code>
369
370   +-----------------------------+-------------------------------------+---------------------------------+---------+
371   |       Ethernet Header       |              IP Header              |             Payload             |Check Sum|
372   +-----------------------------+-------------------------------------+---------------------------------+---------+
373    |___________________________| |___________________________________| |_______________________________| |_______|
374               14 Bytes                         20 Bytes                         26 - 1480 Bytes           4 Bytes
375
376   </code></pre>
377
378   - IPv6
379
380   <pre><code>
381
382   +-----------------------------+-------------------------------------+---------------------------------+---------+
383   |       Ethernet Header       |              IP Header              |             Payload             |Check Sum|
384   +-----------------------------+-------------------------------------+---------------------------------+---------+
385    |___________________________| |___________________________________| |_______________________________| |_______|
386               14 Bytes                         40 Bytes                         26 - 1460 Bytes           4 Bytes
387
388   </code></pre>
389
390   Layer 4 (transport layer) protocols:
391   - TCP
392   - UDP
393   - SCTP
394
395   <pre><code>
396
397   +-----------------------------+-------------------------------------+-----------------+---------------+---------+
398   |       Ethernet Header       |              IP Header              | Layer 4 Header  |    Payload    |Check Sum|
399   +-----------------------------+-------------------------------------+-----------------+---------------+---------+
400    |___________________________| |___________________________________| |_______________| |_____________| |_______|
401               14 Bytes                         20 Bytes                    20 Bytes       6 - 1460 Bytes  4 Bytes
402
403   </code></pre>
404
405   Layer 5 (application layer) protocols:
406
407   - RTP
408   - GTP
409
410   <pre><code>
411
412   +-----------------------------+-------------------------------------+-----------------+---------------+---------+
413   |       Ethernet Header       |              IP Header              | Layer 4 Header  |    Payload    |Check Sum|
414   +-----------------------------+-------------------------------------+-----------------+---------------+---------+
415    |___________________________| |___________________________________| |_______________| |_____________| |_______|
416               14 Bytes                         20 Bytes                    20 Bytes        Min 6 Bytes    4 Bytes
417
418   </code></pre>
419
420   #####Packet Throughput
421   There is a difference between an Ethernet frame, an IP packet, and a UDP datagram. In the seven-layer OSI model of computer networking, packet refers to a data unit at layer 3 (network layer). The correct term for a data unit at layer 2 (data link layer) is a frame, and at layer 4 (transport layer) is a segment or datagram.
422
423   Important concepts related to 10GbE performance are frame rate and throughput. The MAC bit rate of 10GbE, defined in the IEEE standard 802 .3ae, is 10 billion bits per second. Frame rate is based on the bit rate and frame format definitions. Throughput, defined in IETF RFC 1242, is the highest rate at which the system under test can forward the offered load, without loss.
424
425   The frame rate for 10GbE is determined by a formula that divides the 10 billion bits per second by the preamble + frame length + inter-frame gap.
426
427   The maximum frame rate is calculated using the minimum values of the following parameters, as described in the IEEE 802 .3ae standard:
428
429   - Preamble: 8 bytes * 8 = 64 bits
430   -  Frame Length: 64 bytes (minimum) * 8 = 512 bits
431   -  Inter-frame Gap: 12 bytes (minimum) * 8 = 96 bits
432
433   Therefore, Maximum Frame Rate (64B Frames)
434
435   = MAC Transmit Bit Rate / (Preamble + Frame Length + Inter-frame Gap)
436
437   = 10,000,000,000 / (64 + 512 + 96)
438
439   = 10,000,000,000 / 672
440
441   = 14,880,952.38 frame per second (fps)
442
443   #####RFC 1242 Benchmarking Terminology for Network Interconnection Devices
444   RFC 1242 defines the terminology that is used in describing performance benchmarking tests and their results. Definitions and discussions covered include: Back-to-back, bridge, bridge/router, constant load, data link frame size, frame loss rate, inter frame gap, latency, and many more.
445
446   #####RFC 2544 Benchmarking Methodology for Network Interconnect Devices
447   RFC 2544 outlines a benchmarking methodology for network Interconnect Devices. The methodology results in performance metrics such as latency, frame loss percentage, and maximum data throughput.
448
449   In this document network “throughput” (measured in millions of frames per second) is based on RFC 2544, unless otherwise noted. Frame size refers to Ethernet frames ranging from smallest frames of 64 bytes to largest frames of 4K bytes.
450
451   Types of tests are:
452   1.    Throughput test defines the maximum number of frames per second that can be transmitted without any error.
453   2.    Latency test measures the time required for a frame to travel from the originating device through the network to the destination device. Please note that note RFC2544 Latency measurement will be superseded with a measurement of average latency over all successfully transferred packets or frames.
454   3.    Frame loss test measures the network’s response in overload conditions - a critical indicator of the network’s ability to support real-time applications in which a large amount of frame loss will rapidly degrade service quality.
455   4.    Burst test assesses the buffering capability of a switch. It measures the maximum number of frames received at full line rate before a frame is lost. In carrier Ethernet networks, this measurement validates the excess information rate (EIR) as defined in many SLAs.
456   5.    System recovery to characterize speed of recovery from an overload condition
457   6.    Reset to characterize speed of recovery from device or software reset. This type of test has been updated by [RFC6201] as such, the methodology defined by this specification will be that of RFC 6201.
458
459   Although not included in the defined RFC 2544 standard, another crucial measurement in Ethernet networking is packet delay variation. The definition set out by this specification comes from [RFC5481].
460
461   #####RFC 2285 Benchmarking Terminology for LAN Switching Devices
462   RFC 2285 defines the terminology that is used to describe the terminology for benchmarking a LAN switching device. It extends RFC 1242 and defines: DUTs, SUTs, Traffic orientation and distribution, bursts, loads, forwarding rates, etc.
463
464   #####RFC 2889 Benchmarking Methodology for LAN Switching
465   RFC 2889 outlines a benchmarking methodology for LAN switching, it extends RFC 2544. The outlined methodology gathers performance metrics for forwarding, congestion control, latency, address handling and finally filtering.
466
467   #####RFC 3918 Methodology for IP Multicast Benchmarking
468   RFC 3918 outlines a methodology for IP Multicast benchmarking.
469
470   #####RFC 4737 Packet Reordering Metrics
471   RFC 4737 describes metrics for identifying and counting re-ordered packets within a stream, and metrics to measure the extent each packet has been re-ordered.
472
473   #####RFC 5481 Packet Delay Variation Applicability Statement
474   RFC 5481 defined two common, but different forms of delay variation metrics, and compares the metrics over a range of networking circumstances and tasks. The most suitable form for vSwitch benchmarking is the "PDV" form.
475
476   #####RFC 6201 Device Reset Characterization
477   RFC 6201 extends the methodology for characterizing the speed of recovery of the DUT from device or software reset described in RFC 2544.
478
479
480 <a name="TestIdentification"></a>
481 ###2.3. Test identification
482   <a name="ThroughputTests"></a>
483   ####2.3.1 Throughput tests
484   The following tests aim to determine the maximum forwarding rate that can be achieved with a virtual switch.
485
486   The following list is not exhaustive but should indicate the type of tests that should be required. It is expected that more will be added.
487
488   - #####Test ID: LTD.Throughput.RFC2544.PacketLossRatio
489
490   **Title**: RFC 2544 X% packet loss ratio Throughput and Latency Test
491
492   **Prerequisite Test**: N/A
493
494   **Priority**:
495
496   **Description**:
497
498   This test determines the DUT's maximum forwarding rate with X% traffic loss for a constant load (fixed length frames at a fixed interval time). The default loss percentages to be tested are:
499     - X = 0%
500     - X = 10^-7%
501   Note: Other values can be tested if required by the user.
502   The selected frame sizes are those previously defined under [Default Test Parameters](#DefaultParams). The test can also be used to determine the average latency of the traffic.
503
504   Under the [RFC2544] test methodology, the test duration will include a number of trials; each trial should run for a minimum period of 60 seconds. A binary search methodology must be applied for each trial to obtain the final result.
505
506   **Expected Result**:
507   At the end of each trial, the presence or absence of loss determines the modification of offered load for the next trial, converging on a maximum rate, or [RFC2544] Throughput with X% loss. The Throughput load is re-used in related [RFC2544] tests and other tests.
508
509   **Metrics Collected**:
510
511   The following are the metrics collected for this test:
512
513    - The maximum forwarding rate in Frames Per Second (FPS) and Mbps of the DUT for each frame size with X% packet loss.
514    - The average latency of the traffic flow when passing through the DUT (if testing for latency, note that this average is different from the test specified in Section 26.3 of [RFC2544]).
515
516 <br/>
517  - #####Test ID: LTD.Throughput.RFC2544.PacketLossRatioFrameModification
518   **Title**: RFC 2544 X% packet loss Throughput and Latency Test with packet modification
519
520   **Prerequisite Test**: N\A
521
522   **Priority**:
523
524   **Description**:
525
526   This test determines the DUT's maximum forwarding rate with X% traffic loss for a constant load (fixed length frames at a fixed interval time). The default loss percentages to be tested are:
527     - X = 0%
528     - X = 10^-7%
529   Note: Other values can be tested if required by the user.
530   The selected frame sizes are those previously defined under [Default Test Parameters](#DefaultParams). The test can also be used to determine the average latency of the traffic.
531
532   Under the [RFC2544] test methodology, the test duration will include a number of trials; each trial should run for a minimum period of 60 seconds. A binary search methodology must be applied for each trial to obtain the final result.
533
534   During this test, the DUT must perform the following operations on the traffic flow:
535
536    - Perform packet parsing on the DUT's ingress port.
537    - Perform any relevant address look-ups on the DUT's ingress ports.
538    - Modify the packet header before forwarding the packet to the DUT's egress port. Packet modifications include:
539      - Modifying the Ethernet source or destination MAC address.
540      - Modifying/adding a VLAN tag.
541      - Modifying/adding a MPLS tag.
542      - Modifying the source or destination ip address.
543      - Modifying the TOS/DSCP field.
544      - Modifying the source or destination ports for UDP/TCP/SCTP  (Recommended).
545      - Modifying the TTL.
546
547   **Expected Result**:
548   The Packet parsing/modifications require some additional degree of processing resource, therefore the [RFC2544] Throughput is expected to be somewhat lower than the Throughput level measured without additional steps. The reduction is expected to be greatest on tests with the smallest packet sizes (greatest header processing rates).
549
550   **Metrics Collected**:
551
552   The following are the metrics collected for this test:
553
554    - The maximum forwarding rate in Frames Per Second (FPS) and Mbps of the DUT for each frame size with X% packet loss and packet modification operations being performed by the DUT.
555    - The average latency of the traffic flow when passing through the DUT (if testing for latency, note that this average is different from the test specified in Section 26.3 of [RFC2544]).
556    - The [RFC5481] PDV form of delay variation on the traffic flow, using the 99th percentile.
557
558 <br/>
559  - #####Test ID: LTD.Throughput.RFC2544.SystemRecoveryTime
560   **Title**: RFC 2544 System Recovery Time Test
561
562   **Prerequisite Test**: N\A
563
564   **Priority**:
565
566   **Description**:
567
568   The aim of this test is to determine the length of time it takes the DUT to recover from an overload condition for a constant load (fixed length frames at a fixed interval time). The selected frame sizes are those previously defined under [Default Test Parameters](#DefaultParams), traffic should be sent to the DUT under normal conditions. During the duration of the test and while the traffic flows are passing though the DUT, at least one situation leading to an overload condition for the DUT should occur. The time from the start of the overload condition to when the DUT returns to normal operations should be measured to determine recovery time. Prior to overloading the DUT, one should record the average latency for 100 packets forwarded through the DUT.
569
570   The suggested overload condition would be to transmit traffic at a very high frame rate to the DUT, for at least 60 seconds, then reduce the frame rate to the DUT by half; A number of time-stamps should be recorded: 
571     - Record the time-stamp at which the frame rate was halved and record a second time-stamp at the time of the last frame lost. The recovery time is the difference between the two timestamps.
572     - Record the average Latency for 100 frames after the last frame loss and continue to record average latency measurements for every 100 frames, when latency returns to pre-overload levels record the time-stamp.
573
574   **Expected Result**:
575
576   **Metrics collected**
577
578   The following are the metrics collected for this test:
579
580    - The length of time it takes the DUT to recover from an overload condition.
581    - The length of time it takes the DUT to recover the average latency to pre-overload conditions.
582
583   **Deployment scenario**:
584
585    - Physical → virtual switch → physical.
586
587 <br/>
588  - #####Test ID: LTD.Throughput.RFC2544.BackToBackFrames
589   **Title**: RFC 2544 Back To Back Frames Test
590
591   **Prerequisite Test**: N\A
592
593   **Priority**:
594
595   **Description**:
596
597   The aim of this test is to characterize the ability of the DUT to process back-to-back frames. For each frame size previously defined under [Default Test Parameters](#DefaultParams), a burst of traffic is sent to the DUT with the minimum inter-frame gap between each frame. If the number of received frames equals the number of frames that were transmitted, the burst size should be increased and traffic is sent to the DUT again. The value measured is the back-to-back value, that is the maximum burst size the DUT can handle without any frame loss. 
598
599   **Expected Result**:
600
601   Tests of back-to-back frames with physical devices have produced unstable results in some cases. All tests should be repeated in multiple test sessions and results stability should be examined.
602
603   **Metrics collected**
604
605   The following are the metrics collected for this test:
606
607    - The back-to-back value, which is the the number of frames in the longest burst that the DUT will handle without the loss of any frames.
608
609   **Deployment scenario**:
610
611    - Physical → virtual switch → physical.
612
613 <br/>
614 [RFC1242]:(http://www.ietf.org/rfc/rfc1242.txt)
615 [RFC2544]:(http://www.ietf.org/rfc/rfc2544.txt)
616 [RFC5481]:(http://www.ietf.org/rfc/rfc5481.txt)
617 [RFC6201]:(http://www.ietf.org/rfc/rfc6201.txt)
618 [DPDK]:http://www.dpdk.org/