4 CSIT functional tests are currently executed in FD.IO VIRL testbed. The physical
\r
5 VIRL testbed infrastructure consists of three VIRL hosts:
\r
7 - All hosts are Cisco UCS C240-M4 (2x Intel(R) Xeon(R) CPU E5-2699 v3 @2.30GHz,
\r
11 - Status: Production
\r
12 - OS: Ubuntu 16.04.2
\r
13 - STD server version 0.10.32.16
\r
14 - UWM server version 0.10.32.16
\r
18 - Status: Production
\r
19 - OS: Ubuntu 16.04.2
\r
20 - STD server version 0.10.32.16
\r
21 - UWM server version 0.10.32.16
\r
25 - Status: Production
\r
26 - OS: Ubuntu 14.04.3
\r
27 - STD server version 0.10.24.7
\r
28 - UWM server version 0.10.24.7
\r
30 Whenever a patch is submitted to gerrit for review, parallel VIRL simulations
\r
31 are started to reduce the time of execution of all functional tests. The number
\r
32 of parallel VIRL simulations is equal to number of test groups defined by
\r
33 TEST_GROUPS variable in :file:`csit/bootstrap.sh` file. The VIRL host to run
\r
34 VIRL simulation is selected based on least load algorithm per VIRL simulation.
\r
36 Every VIRL simulation uses the same three-node - Traffic Generator (TG node) and
\r
37 two Systems Under Test (SUT1 and SUT2) - "double-ring" topology. The appropriate
\r
38 pre-built VPP packages built by Jenkins for the patch under review are then
\r
39 installed on the two SUTs, along with their :file:`/etc/vpp/startup.conf` file,
\r
40 in all VIRL simulations.
\r
42 SUT Configuration - VIRL Guest VM
\r
43 ---------------------------------
\r
45 Configurations of the SUT VMs is defined in `VIRL topologies directory`_
\r
47 - List of SUT VM interfaces:::
\r
49 <interface id="0" name="GigabitEthernet0/4/0"/>
\r
50 <interface id="1" name="GigabitEthernet0/5/0"/>
\r
51 <interface id="2" name="GigabitEthernet0/6/0"/>
\r
52 <interface id="3" name="GigabitEthernet0/7/0"/>
\r
54 - Number of 2MB hugepages: 1024
\r
56 - Maximum number of memory map areas: 20000
\r
58 - Kernel Shared Memory Max: 2147483648 (vm.nr_hugepages * 2 * 1024 * 1024)
\r
60 SUT Configuration - VIRL Guest OS Linux
\r
61 ---------------------------------------
\r
63 In CSIT terminology, the VM operating system for both SUTs that |vpp-release| has
\r
64 been tested with, is the following:
\r
66 #. **Ubuntu VIRL image**
\r
68 This image implies Ubuntu 16.04.1 LTS, current as of yyyy-mm-dd (that is,
\r
69 package versions are those that would have been installed by a
\r
70 :command:`apt-get update`, :command:`apt-get upgrade` on that day), produced
\r
71 by CSIT disk image build scripts.
\r
73 The exact list of installed packages and their versions (including the Linux
\r
74 kernel package version) are included in `VIRL images lists`_.
\r
76 A replica of this VM image can be built by running the :command:`build.sh`
\r
77 script in CSIT repository.
\r
79 #. **CentOS VIRL image**
\r
81 The Centos7.3 image is ready to be used but no tests running on it now.
\r
82 Corresponding Jenkins jobs are under preparation.
\r
84 The exact list of installed packages and their versions (including the Linux
\r
85 kernel package version) are included in `VIRL images lists`_.
\r
87 A replica of this VM image can be built by running the :command:`build.sh`
\r
88 script in CSIT repository.
\r
90 #. **Nested VM image**
\r
92 In addition to the "main" VM image, tests which require VPP to communicate to
\r
93 a VM over a vhost-user interface, utilize a "nested" VM image.
\r
95 This "nested" VM is dynamically created and destroyed as part of a test case,
\r
96 and therefore the "nested" VM image is optimized to be small, lightweight and
\r
97 have a short boot time. The "nested" VM image is not built around any
\r
98 established Linux distribution, but is based on `BuildRoot
\r
99 <https://buildroot.org/>`_, a tool for building embedded Linux systems. Just
\r
100 as for the "main" image, scripts to produce an identical replica of the
\r
101 "nested" image are included in CSIT GIT repository, and the image can be
\r
102 rebuilt using the "build.sh" script at `VIRL nested`_.
\r
104 DUT Configuration - VPP
\r
105 -----------------------
\r
107 Every System Under Test runs VPP SW application in Linux user-mode as a Device
\r
108 Under Test (DUT) node.
\r
110 **DUT port configuration**
\r
112 Port configuration of DUTs is defined in topology file that is generated per
\r
113 VIRL simulation based on the definition stored in `VIRL topologies directory`_.
\r
115 Example of DUT nodes configuration:::
\r
119 host: "10.30.51.157"
\r
128 -----BEGIN RSA PRIVATE KEY-----
\r
129 MIIEpgIBAAKCAQEAwUDlTpzSHpwLQotZOFS4A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r
145 f54Z4oBhsMSL0jXoOMnu+NZzEc6EUdQeY4O+jhjzAoGBAIogC3dtjMPGKTP7+93u
\r
146 UE/XIioI8fWg9fj3sMka4IMu+pVvRCRbAjRH7JrFLkjbUyuMqs3Arnk9K+gbdQt/
\r
147 +m95Njtt6WoFXuPCwgbM3GidSmZwYT4454SfDzVBYScEDCNm1FuR+8ov9bFLDtGT
\r
148 D4gsngnGJj1MDFXTxZEn4nzZAoGBAKCg4WmpUPaCuXibyB+rZavxwsTNSn2lJ83/
\r
149 sYJGBhf/raiV/FLDUcM1vYg5dZnu37RsB/5/vqxOLZGyYd7x+Jo5HkQGPnKgNwhn
\r
150 g8BkdZIRF8uEJqxOo0ycdOU7n/2O93swIpKWo5LIiRPuqqzj+uZKnAL7vuVdxfaY
\r
151 qVz2daMPAoGBALgaaKa3voU/HO1PYLWIhFrBThyJ+BQSQ8OqrEzC8AnegWFxRAM8
\r
152 EqrzZXl7ACUuo1dH0Eipm41j2+BZWlQjiUgq5uj8+yzy+EU1ZRRyJcOKzbDACeuD
\r
153 BpWWSXGBI5G4CppeYLjMUHZpJYeX1USULJQd2c4crLJKb76E8gz3Z9kN
\r
154 -----END RSA PRIVATE KEY-----
\r
158 mac_address: "fa:16:3e:9b:89:52"
\r
159 pci_address: "0000:00:04.0"
\r
162 mac_address: "fa:16:3e:7a:33:60"
\r
163 pci_address: "0000:00:05.0"
\r
166 mac_address: "fa:16:3e:29:b7:ae"
\r
167 pci_address: "0000:00:06.0"
\r
170 mac_address: "fa:16:3e:76:8d:ff"
\r
171 pci_address: "0000:00:07.0"
\r
175 host: "10.30.51.156"
\r
184 -----BEGIN RSA PRIVATE KEY-----
\r
185 MIIEpgIBAAKCAQEAwUDlTpzSHpwLQotZOFS4AgcPNEWCnP1AB2hWFmvI+8Kah/gb
\r
186 v8ruZU9RqhPs56tyKzxbhvNkY4VbH5F1GilHZu3mLqzM4KfghMmaeMEjO1T7BYYd
\r
187 vuBfTvIluljfQ2vAlnYrDwn+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k9K+gbdQt/
\r
203 +m95Njtt6WoFXuPCwgbM3GidSmZwYT4454SfDzVBYScEDCNm1FuR+8ov9bFLDtGT
\r
204 D4gsngnGJj1MDFXTxZEn4nzZAoGBAKCg4WmpUPaCuXibyB+rZavxwsTNSn2lJ83/
\r
205 sYJGBhf/raiV/FLDUcM1vYg5dZnu37RsB/5/vqxOLZGyYd7x+Jo5HkQGPnKgNwhn
\r
206 g8BkdZIRF8uEJqxOo0ycdOU7n/2O93swIpKWo5LIiRPuqqzj+uZKnAL7vuVdxfaY
\r
207 qVz2daMPAoGBALgaaKa3voU/HO1PYLWIhFrBThyJ+BQSQ8OqrEzC8AnegWFxRAM8
\r
208 EqrzZXl7ACUuo1dH0Eipm41j2+BZWlQjiUgq5uj8+yzy+EU1ZRRyJcOKzbDACeuD
\r
209 BpWWSXGBI5G4CppeYLjMUHZpJYeX1USULJQd2c4crLJKb76E8gz3Z9kN
\r
210 -----END RSA PRIVATE KEY-----
\r
214 mac_address: "fa:16:3e:ad:6c:7d"
\r
215 pci_address: "0000:00:04.0"
\r
218 mac_address: "fa:16:3e:94:a4:99"
\r
219 pci_address: "0000:00:05.0"
\r
222 mac_address: "fa:16:3e:75:92:da"
\r
223 pci_address: "0000:00:06.0"
\r
226 mac_address: "fa:16:3e:2c:b1:2a"
\r
227 pci_address: "0000:00:07.0"
\r
234 **VPP Installed Packages**
\r
238 Desired=Unknown/Install/Remove/Purge/Hold
\r
239 | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
\r
240 |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
\r
241 ||/ Name Version Architecture Description
\r
242 +++-==============-=============-============-=============================================
\r
243 ii vpp 17.07-release amd64 Vector Packet Processing--executables
\r
244 ii vpp-dbg 17.07-release amd64 Vector Packet Processing--debug symbols
\r
245 ii vpp-dev 17.07-release amd64 Vector Packet Processing--development support
\r
246 ii vpp-dpdk-dev 17.07-release amd64 Vector Packet Processing--development support
\r
247 ii vpp-dpdk-dkms 17.07-release amd64 DPDK 2.1 igb_uio_driver
\r
248 ii vpp-lib 17.07-release amd64 Vector Packet Processing--runtime libraries
\r
249 ii vpp-plugins 17.07-release amd64 Vector Packet Processing--runtime plugins
\r
251 **VPP Startup Configuration**
\r
253 VPP startup configuration is common for all test cases.
\r
257 $ cat /etc/vpp/startup.conf
\r
273 ## In the VPP there is one main thread and optionally the user can create worker(s)
\r
274 ## The main thread and worker thread(s) can be pinned to CPU core(s) manually or automatically
\r
276 ## Manual pinning of thread(s) to CPU core(s)
\r
278 ## Set logical CPU core where main thread runs
\r
281 ## Set logical CPU core(s) where worker threads are running
\r
282 # corelist-workers 2-3,18-19
\r
284 ## Automatic pinning of thread(s) to CPU core(s)
\r
286 ## Sets number of CPU core(s) to be skipped (1 ... N-1)
\r
287 ## Skipped CPU core(s) are not used for pinning main thread and working thread(s).
\r
288 ## The main thread is automatically pinned to the first available CPU core and worker(s)
\r
289 ## are pinned to next free CPU core(s) after core assigned to main thread
\r
292 ## Specify a number of workers to be created
\r
293 ## Workers are pinned to N consecutive CPU cores while skipping "skip-cores" CPU core(s)
\r
294 ## and main thread's CPU core
\r
297 ## Set scheduling policy and priority of main and worker threads
\r
299 ## Scheduling policy options are: other (SCHED_OTHER), batch (SCHED_BATCH)
\r
300 ## idle (SCHED_IDLE), fifo (SCHED_FIFO), rr (SCHED_RR)
\r
301 # scheduler-policy fifo
\r
303 ## Scheduling priority is used only for "real-time policies (fifo and rr),
\r
304 ## and has to be in the range of priorities supported for a particular policy
\r
305 # scheduler-priority 50
\r
309 ## Change default settings for all intefaces
\r
311 ## Number of receive queues, enables RSS
\r
315 ## Number of transmit queues, Default is equal
\r
316 ## to number of worker threads or 1 if no workers treads
\r
319 ## Number of descriptors in transmit and receive rings
\r
320 ## increasing or reducing number can impact performance
\r
321 ## Default is 1024 for both rx and tx
\r
325 ## VLAN strip offload mode for interface
\r
327 # vlan-strip-offload on
\r
330 ## Whitelist specific interface by specifying PCI address
\r
333 ## Whitelist specific interface by specifying PCI address and in
\r
334 ## addition specify custom parameters for this interface
\r
335 # dev 0000:02:00.1 {
\r
339 ## Change UIO driver used by VPP, Options are: uio_pci_generic, vfio-pci
\r
340 ## and igb_uio (default)
\r
341 # uio-driver uio_pci_generic
\r
343 ## Disable mutli-segment buffers, improves performance but
\r
344 ## disables Jumbo MTU support
\r
347 ## Increase number of buffers allocated, needed only in scenarios with
\r
348 ## large number of interfaces and worker threads. Value is per CPU socket.
\r
349 ## Default is 32768
\r
352 ## Change hugepages allocation per-socket, needed only if there is need for
\r
353 ## larger number of mbufs. Default is 256M on each detected CPU socket
\r
354 # socket-mem 2048,2048
\r
360 Traffic Generator node is VM running the same OS Linux as SUTs. Ports of this
\r
361 VM are used as source (Tx) and destination (Rx) ports for the traffic.
\r
363 Traffic scripts of test cases are executed on this VM.
\r
365 **TG VM configuration**
\r
367 Configuration of the TG VMs is defined in `VIRL topologies directory`_.
\r
369 /csit/resources/tools/virl/topologies/double-ring-nested.xenial.virl
\r
371 - List of TG VM interfaces:::
\r
373 <interface id="0" name="eth1"/>
\r
374 <interface id="1" name="eth2"/>
\r
375 <interface id="2" name="eth3"/>
\r
376 <interface id="3" name="eth4"/>
\r
377 <interface id="4" name="eth5"/>
\r
378 <interface id="5" name="eth6"/>
\r
380 **TG node port configuration**
\r
382 Port configuration of TG is defined in topology file that is generated per VIRL
\r
383 simulation based on the definition stored in `VIRL topologies directory`_.
\r
385 Example of TG node configuration:::
\r
389 host: "10.30.51.155"
\r
393 -----BEGIN RSA PRIVATE KEY-----
\r
394 MIIEpgIBAAKCAQEAwUDlTpzSHpwLQotZOFS4AgcPNEWCnP1AB2hWFmvI+8Kah/gb
\r
395 v8ruZU9RqhPs56tyKzxbhvNkY4VbH5F1GilHZu3mLqzM4KfghMmaeMEjO1T7BYYd
\r
396 vuBfTvIluljfQ2vAlnYrDwn+ClxJk81m0pDgvrLEX4qVVh2sGh7UEkYy5r82DNa2
\r
397 4VjzPB1J/c8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EDCNm1FuR+8ov9bFLDtGT
\r
413 D4gsngnGJj1MDFXTxZEn4nzZAoGBAKCg4WmpUPaCuXibyB+rZavxwsTNSn2lJ83/
\r
414 sYJGBhf/raiV/FLDUcM1vYg5dZnu37RsB/5/vqxOLZGyYd7x+Jo5HkQGPnKgNwhn
\r
415 g8BkdZIRF8uEJqxOo0ycdOU7n/2O93swIpKWo5LIiRPuqqzj+uZKnAL7vuVdxfaY
\r
416 qVz2daMPAoGBALgaaKa3voU/HO1PYLWIhFrBThyJ+BQSQ8OqrEzC8AnegWFxRAM8
\r
417 EqrzZXl7ACUuo1dH0Eipm41j2+BZWlQjiUgq5uj8+yzy+EU1ZRRyJcOKzbDACeuD
\r
418 BpWWSXGBI5G4CppeYLjMUHZpJYeX1USULJQd2c4crLJKb76E8gz3Z9kN
\r
419 -----END RSA PRIVATE KEY-----
\r
423 mac_address: "fa:16:3e:b9:e1:27"
\r
424 pci_address: "0000:00:06.0"
\r
428 mac_address: "fa:16:3e:e9:c8:68"
\r
429 pci_address: "0000:00:07.0"
\r
433 mac_address: "fa:16:3e:e8:d3:47"
\r
434 pci_address: "0000:00:08.0"
\r
438 mac_address: "fa:16:3e:cf:ca:58"
\r
439 pci_address: "0000:00:09.0"
\r
443 **Traffic generator**
\r
445 Functional tests utilize Scapy as a traffic generator. There was used Scapy
\r
446 v2.3.1 for |vpp-release| tests.
\r