feat(docs): Add Methodology
[csit.git] / docs / content / methodology / reconfiguration_tests.md
1 ---
2 bookToc: false
3 title: "Reconfiguration Tests"
4 weight: 16
5 ---
6
7 # Reconfiguration Tests
8
9 ## Overview
10
11 Reconf tests are designed to measure the impact of VPP re-configuration
12 on data plane traffic.
13 While VPP takes some measures against the traffic being
14 entirely stopped for a prolonged time,
15 the immediate forwarding rate varies during the re-configuration,
16 as some configurations steps need the active dataplane worker threads
17 to be stopped temporarily.
18
19 As the usual methods of measuring throughput need multiple trial measurements
20 with somewhat long durations, and the re-configuration process can also be long,
21 finding an offered load which would result in zero loss
22 during the re-configuration process would be time-consuming.
23
24 Instead, reconf tests first find a througput value (lower bound for NDR)
25 without re-configuration, and then maintain that ofered load
26 during re-configuration. The measured loss count is then assumed to be caused
27 by the re-configuration process. The result published by reconf tests
28 is the effective blocked time, that is
29 the loss count divided by the offered load.
30
31 ## Current Implementation
32
33 Each reconf suite is based on a similar MLRsearch performance suite.
34
35 MLRsearch parameters are changed to speed up the throughput discovery.
36 For example, PDR is not searched for, and the final trial duration is shorter.
37
38 The MLRsearch suite has to contain a configuration parameter
39 that can be scaled up, e.g. number of tunnels or number of service chains.
40 Currently, only increasing the scale is supported
41 as the re-configuration operation. In future, scale decrease
42 or other operations can be implemented.
43
44 The traffic profile is not changed, so the traffic present is processed
45 only by the smaller scale configuration. The added tunnels / chains
46 are not targetted by the traffic.
47
48 For the re-configuration, the same Robot Framework and Python libraries
49 are used, as were used in the initial configuration, with the exception
50 of the final calls that do not interact with VPP (e.g. starting
51 virtual machines) being skipped to reduce the test overall duration.
52
53 ## Discussion
54
55 Robot Framework introduces a certain overhead, which may affect timing
56 of individual VPP API calls, which in turn may affect
57 the number of packets lost.
58
59 The exact calls executed may contain unnecessary info dumps, repeated commands,
60 or commands which change a value that do not need to be changed (e.g. MTU).
61 Thus, implementation details are affecting the results, even if their effect
62 on the corresponding MLRsearch suite is negligible.
63
64 The lower bound for NDR is the only value safe to be used when zero packets lost
65 are expected without re-configuration. But different suites show different
66 "jitter" in that value. For some suites, the lower bound is not tight,
67 allowing full NIC buffers to drain quickly between worker pauses.
68 For other suites, lower bound for NDR still has quite a large probability
69 of non-zero packet loss even without re-configuration.