4 CSIT functional tests are currently executed in FD.IO VIRL testbed. The physical
\r
5 VIRL testbed infrastructure consists of three identical VIRL hosts:
\r
7 - All hosts are Cisco UCS C240-M4 (2x Intel(R) Xeon(R) CPU E5-2699 v3 @2.30GHz,
\r
9 - Hosts run Ubuntu 14.04.3
\r
10 - VIRL software versions:
\r
12 - STD server version 0.10.24.7
\r
13 - UWM server version 0.10.24.7
\r
15 Whenever a patch is submitted to gerrit for review, parallel VIRL simulations
\r
16 are started to reduce the time of execution of all functional tests. The number
\r
17 of parallel VIRL simulations is equal to number of test groups defined by
\r
18 TEST_GROUPS variable in csit/bootstrap.sh file. The VIRL host to run VIRL
\r
19 simulation is selected based on least load algorithm per VIRL simulation.
\r
21 Every VIRL simulation uses the same three-node - Traffic Generator (TG node) and
\r
22 two Systems Under Test (SUT1 and SUT2) - "double-ring" topology. The appropriate
\r
23 pre-built VPP packages built by Jenkins for the patch under review are then
\r
24 installed on the two SUTs, along with their /etc/vpp/startup.conf file, in all
\r
27 SUT Configuration - VIRL Guest VM
\r
28 ---------------------------------
\r
30 Configuration of the SUT VMs is defined in file
\r
32 /csit/resources/tools/virl/topologies/double-ring-nested.xenial.virl
\r
34 - List of SUT VM interfaces:::
\r
36 <interface id="0" name="GigabitEthernet0/4/0"/>
\r
37 <interface id="1" name="GigabitEthernet0/5/0"/>
\r
38 <interface id="2" name="GigabitEthernet0/6/0"/>
\r
39 <interface id="3" name="GigabitEthernet0/7/0"/>
\r
41 - Number of 2MB hugepages: 1024
\r
43 - Maximum number of memory map areas: 20000
\r
45 - Kernel Shared Memory Max: 2147483648 (vm.nr_hugepages * 2 * 1024 * 1024)
\r
47 SUT Configuration - VIRL Guest OS Linux
\r
48 ---------------------------------------
\r
50 In CSIT terminology, the VM operating system for both SUTs that |vpp-release| has
\r
51 been tested with, is the following:
\r
53 **#. Ubuntu VIRL image**
\r
55 This image implies Ubuntu 16.04.1 LTS, current as of yyyy-mm-dd (that is,
\r
56 package versions are those that would have been installed by a "apt-get update",
\r
57 "apt-get upgrade" on that day), produced by CSIT disk image build scripts.
\r
59 The exact list of installed packages and their versions (including the Linux
\r
60 kernel package version) are included in CSIT source repository:
\r
62 resources/tools/disk-image-builder/ubuntu/lists/|virl-image-ubuntu|
\r
64 A replica of this VM image can be built by running the "build.sh" script in CSIT
\r
65 repository resources/tools/disk-image-builder/ubuntu.
\r
67 **#. CentOS VIRL image**
\r
69 The Centos7.3 image is ready to be used but no tests running on it now.
\r
70 Corresponding Jenkins jobs are under preparation.
\r
72 The exact list of installed packages and their versions (including the Linux
\r
73 kernel package version) are included in CSIT source repository:
\r
75 resources/tools/disk-image-builder/ubuntu/lists/|virl-image-centos|
\r
77 A replica of this VM image can be built by running the "build.sh" script in CSIT
\r
78 repository resources/tools/disk-image-builder/centos.
\r
80 **#. Nested VM image**
\r
82 In addition to the "main" VM image, tests which require VPP to communicate to a
\r
83 VM over a vhost-user interface, utilize a "nested" VM image.
\r
85 This "nested" VM is dynamically created and destroyed as part of a test case,
\r
86 and therefore the "nested" VM image is optimized to be small, lightweight and
\r
87 have a short boot time. The "nested" VM image is not built around any
\r
88 established Linux distribution, but is based on `BuildRoot
\r
89 <https://buildroot.org/>`_, a tool for building embedded Linux systems. Just as
\r
90 for the "main" image, scripts to produce an identical replica of the "nested"
\r
91 image are included in CSIT GIT repository, and the image can be rebuilt using
\r
92 the "build.sh" script at:
\r
94 resources/tools/disk-image-builder/ubuntu/lists/nested
\r
96 DUT Configuration - VPP
\r
97 -----------------------
\r
99 Every System Under Test runs VPP SW application in Linux user-mode as a Device
\r
100 Under Test (DUT) node.
\r
102 **DUT port configuration**
\r
104 Port configuration of DUTs is defined in topology file that is generated per
\r
105 VIRL simulation based on the definition stored in file
\r
107 /csit/resources/tools/virl/topologies/double-ring-nested.xenial.yaml
\r
109 Example of DUT nodes configuration:::
\r
113 host: "10.30.51.157"
\r
122 -----BEGIN RSA PRIVATE KEY-----
\r
123 MIIEpgIBAAKCAQEAwUDlTpzSHpwLQotZOFS4A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r
139 f54Z4oBhsMSL0jXoOMnu+NZzEc6EUdQeY4O+jhjzAoGBAIogC3dtjMPGKTP7+93u
\r
140 UE/XIioI8fWg9fj3sMka4IMu+pVvRCRbAjRH7JrFLkjbUyuMqs3Arnk9K+gbdQt/
\r
141 +m95Njtt6WoFXuPCwgbM3GidSmZwYT4454SfDzVBYScEDCNm1FuR+8ov9bFLDtGT
\r
142 D4gsngnGJj1MDFXTxZEn4nzZAoGBAKCg4WmpUPaCuXibyB+rZavxwsTNSn2lJ83/
\r
143 sYJGBhf/raiV/FLDUcM1vYg5dZnu37RsB/5/vqxOLZGyYd7x+Jo5HkQGPnKgNwhn
\r
144 g8BkdZIRF8uEJqxOo0ycdOU7n/2O93swIpKWo5LIiRPuqqzj+uZKnAL7vuVdxfaY
\r
145 qVz2daMPAoGBALgaaKa3voU/HO1PYLWIhFrBThyJ+BQSQ8OqrEzC8AnegWFxRAM8
\r
146 EqrzZXl7ACUuo1dH0Eipm41j2+BZWlQjiUgq5uj8+yzy+EU1ZRRyJcOKzbDACeuD
\r
147 BpWWSXGBI5G4CppeYLjMUHZpJYeX1USULJQd2c4crLJKb76E8gz3Z9kN
\r
148 -----END RSA PRIVATE KEY-----
\r
152 mac_address: "fa:16:3e:9b:89:52"
\r
153 pci_address: "0000:00:04.0"
\r
156 mac_address: "fa:16:3e:7a:33:60"
\r
157 pci_address: "0000:00:05.0"
\r
160 mac_address: "fa:16:3e:29:b7:ae"
\r
161 pci_address: "0000:00:06.0"
\r
164 mac_address: "fa:16:3e:76:8d:ff"
\r
165 pci_address: "0000:00:07.0"
\r
169 host: "10.30.51.156"
\r
178 -----BEGIN RSA PRIVATE KEY-----
\r
179 MIIEpgIBAAKCAQEAwUDlTpzSHpwLQotZOFS4AgcPNEWCnP1AB2hWFmvI+8Kah/gb
\r
180 v8ruZU9RqhPs56tyKzxbhvNkY4VbH5F1GilHZu3mLqzM4KfghMmaeMEjO1T7BYYd
\r
181 vuBfTvIluljfQ2vAlnYrDwn+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k9K+gbdQt/
\r
197 +m95Njtt6WoFXuPCwgbM3GidSmZwYT4454SfDzVBYScEDCNm1FuR+8ov9bFLDtGT
\r
198 D4gsngnGJj1MDFXTxZEn4nzZAoGBAKCg4WmpUPaCuXibyB+rZavxwsTNSn2lJ83/
\r
199 sYJGBhf/raiV/FLDUcM1vYg5dZnu37RsB/5/vqxOLZGyYd7x+Jo5HkQGPnKgNwhn
\r
200 g8BkdZIRF8uEJqxOo0ycdOU7n/2O93swIpKWo5LIiRPuqqzj+uZKnAL7vuVdxfaY
\r
201 qVz2daMPAoGBALgaaKa3voU/HO1PYLWIhFrBThyJ+BQSQ8OqrEzC8AnegWFxRAM8
\r
202 EqrzZXl7ACUuo1dH0Eipm41j2+BZWlQjiUgq5uj8+yzy+EU1ZRRyJcOKzbDACeuD
\r
203 BpWWSXGBI5G4CppeYLjMUHZpJYeX1USULJQd2c4crLJKb76E8gz3Z9kN
\r
204 -----END RSA PRIVATE KEY-----
\r
208 mac_address: "fa:16:3e:ad:6c:7d"
\r
209 pci_address: "0000:00:04.0"
\r
212 mac_address: "fa:16:3e:94:a4:99"
\r
213 pci_address: "0000:00:05.0"
\r
216 mac_address: "fa:16:3e:75:92:da"
\r
217 pci_address: "0000:00:06.0"
\r
220 mac_address: "fa:16:3e:2c:b1:2a"
\r
221 pci_address: "0000:00:07.0"
\r
228 **VPP Installed Packages**
\r
232 Desired=Unknown/Install/Remove/Purge/Hold
\r
233 | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
\r
234 |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
\r
235 ||/ Name Version Architecture Description
\r
236 +++-==============-=============-============-=============================================
\r
237 ii vpp 17.07-release amd64 Vector Packet Processing--executables
\r
238 ii vpp-dbg 17.07-release amd64 Vector Packet Processing--debug symbols
\r
239 ii vpp-dev 17.07-release amd64 Vector Packet Processing--development support
\r
240 ii vpp-dpdk-dev 17.07-release amd64 Vector Packet Processing--development support
\r
241 ii vpp-dpdk-dkms 17.07-release amd64 DPDK 2.1 igb_uio_driver
\r
242 ii vpp-lib 17.07-release amd64 Vector Packet Processing--runtime libraries
\r
243 ii vpp-plugins 17.07-release amd64 Vector Packet Processing--runtime plugins
\r
245 **VPP Startup Configuration**
\r
247 VPP startup configuration is common for all test cases.
\r
251 $ cat /etc/vpp/startup.conf
\r
267 ## In the VPP there is one main thread and optionally the user can create worker(s)
\r
268 ## The main thread and worker thread(s) can be pinned to CPU core(s) manually or automatically
\r
270 ## Manual pinning of thread(s) to CPU core(s)
\r
272 ## Set logical CPU core where main thread runs
\r
275 ## Set logical CPU core(s) where worker threads are running
\r
276 # corelist-workers 2-3,18-19
\r
278 ## Automatic pinning of thread(s) to CPU core(s)
\r
280 ## Sets number of CPU core(s) to be skipped (1 ... N-1)
\r
281 ## Skipped CPU core(s) are not used for pinning main thread and working thread(s).
\r
282 ## The main thread is automatically pinned to the first available CPU core and worker(s)
\r
283 ## are pinned to next free CPU core(s) after core assigned to main thread
\r
286 ## Specify a number of workers to be created
\r
287 ## Workers are pinned to N consecutive CPU cores while skipping "skip-cores" CPU core(s)
\r
288 ## and main thread's CPU core
\r
291 ## Set scheduling policy and priority of main and worker threads
\r
293 ## Scheduling policy options are: other (SCHED_OTHER), batch (SCHED_BATCH)
\r
294 ## idle (SCHED_IDLE), fifo (SCHED_FIFO), rr (SCHED_RR)
\r
295 # scheduler-policy fifo
\r
297 ## Scheduling priority is used only for "real-time policies (fifo and rr),
\r
298 ## and has to be in the range of priorities supported for a particular policy
\r
299 # scheduler-priority 50
\r
303 ## Change default settings for all intefaces
\r
305 ## Number of receive queues, enables RSS
\r
309 ## Number of transmit queues, Default is equal
\r
310 ## to number of worker threads or 1 if no workers treads
\r
313 ## Number of descriptors in transmit and receive rings
\r
314 ## increasing or reducing number can impact performance
\r
315 ## Default is 1024 for both rx and tx
\r
319 ## VLAN strip offload mode for interface
\r
321 # vlan-strip-offload on
\r
324 ## Whitelist specific interface by specifying PCI address
\r
327 ## Whitelist specific interface by specifying PCI address and in
\r
328 ## addition specify custom parameters for this interface
\r
329 # dev 0000:02:00.1 {
\r
333 ## Change UIO driver used by VPP, Options are: uio_pci_generic, vfio-pci
\r
334 ## and igb_uio (default)
\r
335 # uio-driver uio_pci_generic
\r
337 ## Disable mutli-segment buffers, improves performance but
\r
338 ## disables Jumbo MTU support
\r
341 ## Increase number of buffers allocated, needed only in scenarios with
\r
342 ## large number of interfaces and worker threads. Value is per CPU socket.
\r
343 ## Default is 32768
\r
346 ## Change hugepages allocation per-socket, needed only if there is need for
\r
347 ## larger number of mbufs. Default is 256M on each detected CPU socket
\r
348 # socket-mem 2048,2048
\r
354 Traffic Generator node is VM running the same OS Linux as SUTs. Ports of this
\r
355 VM are used as source (Tx) and destination (Rx) ports for the traffic.
\r
357 Traffic scripts of test cases are executed on this VM.
\r
359 **TG VM configuration**
\r
361 Configuration of the TG VMs is defined in file
\r
363 /csit/resources/tools/virl/topologies/double-ring-nested.xenial.virl
\r
365 - List of TG VM interfaces:::
\r
367 <interface id="0" name="eth1"/>
\r
368 <interface id="1" name="eth2"/>
\r
369 <interface id="2" name="eth3"/>
\r
370 <interface id="3" name="eth4"/>
\r
371 <interface id="4" name="eth5"/>
\r
372 <interface id="5" name="eth6"/>
\r
374 **TG node port configuration**
\r
376 Port configuration of TG is defined in topology file that is generated per VIRL
\r
377 simulation based on the definition stored in file
\r
379 /csit/resources/tools/virl/topologies/double-ring-nested.xenial.yaml
\r
381 Example of TG node configuration:::
\r
385 host: "10.30.51.155"
\r
389 -----BEGIN RSA PRIVATE KEY-----
\r
390 MIIEpgIBAAKCAQEAwUDlTpzSHpwLQotZOFS4AgcPNEWCnP1AB2hWFmvI+8Kah/gb
\r
391 v8ruZU9RqhPs56tyKzxbhvNkY4VbH5F1GilHZu3mLqzM4KfghMmaeMEjO1T7BYYd
\r
392 vuBfTvIluljfQ2vAlnYrDwn+ClxJk81m0pDgvrLEX4qVVh2sGh7UEkYy5r82DNa2
\r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ZwYT4454SfDzVBYScEDCNm1FuR+8ov9bFLDtGT
\r
409 D4gsngnGJj1MDFXTxZEn4nzZAoGBAKCg4WmpUPaCuXibyB+rZavxwsTNSn2lJ83/
\r
410 sYJGBhf/raiV/FLDUcM1vYg5dZnu37RsB/5/vqxOLZGyYd7x+Jo5HkQGPnKgNwhn
\r
411 g8BkdZIRF8uEJqxOo0ycdOU7n/2O93swIpKWo5LIiRPuqqzj+uZKnAL7vuVdxfaY
\r
412 qVz2daMPAoGBALgaaKa3voU/HO1PYLWIhFrBThyJ+BQSQ8OqrEzC8AnegWFxRAM8
\r
413 EqrzZXl7ACUuo1dH0Eipm41j2+BZWlQjiUgq5uj8+yzy+EU1ZRRyJcOKzbDACeuD
\r
414 BpWWSXGBI5G4CppeYLjMUHZpJYeX1USULJQd2c4crLJKb76E8gz3Z9kN
\r
415 -----END RSA PRIVATE KEY-----
\r
419 mac_address: "fa:16:3e:b9:e1:27"
\r
420 pci_address: "0000:00:06.0"
\r
424 mac_address: "fa:16:3e:e9:c8:68"
\r
425 pci_address: "0000:00:07.0"
\r
429 mac_address: "fa:16:3e:e8:d3:47"
\r
430 pci_address: "0000:00:08.0"
\r
434 mac_address: "fa:16:3e:cf:ca:58"
\r
435 pci_address: "0000:00:09.0"
\r
439 **Traffic generator**
\r
441 Functional tests utilize Scapy as a traffic generator. There was used Scapy
\r
442 v2.3.1 for |vpp-release| tests.
\r