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