1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. (c) OPNFV, Intel Corporation, AT&T and others.
8 VSPERF includes a set of integration tests defined in conf/integration.
9 These tests can be run by specifying --integration as a parameter to vsperf.
10 Current tests in conf/integration are Overlay tests.
12 VSPERF supports VXLAN, GRE and GENEVE tunneling protocols.
13 Testing of these protocols is limited to unidirectional traffic and
14 P2P (Physical to Physical scenarios).
16 NOTE: The configuration for overlay tests provided in this guide is for unidirectional traffic only.
18 Executing Tunnel encapsulation tests
19 ------------------------------------
21 The VXLAN OVS DPDK encapsulation tests requires IPs, MAC addresses,
22 bridge names and WHITELIST_NICS for DPDK.
24 Default values are already provided. To customize for your environment, override
25 the following variables in you user_settings.py file:
27 .. code-block:: python
29 # Variables defined in conf/integration/02_vswitch.conf
30 # Tunnel endpoint for Overlay P2P deployment scenario
32 VTEP_IP1 = '192.168.0.1/24'
34 # Used as remote_ip in adding OVS tunnel port and
35 # to set ARP entry in OVS (e.g. tnl/arp/set br-ext 192.168.240.10 02:00:00:00:00:02
36 VTEP_IP2 = '192.168.240.10'
38 # Network to use when adding a route for inner frame data
39 VTEP_IP2_SUBNET = '192.168.240.0/24'
42 TUNNEL_INTEGRATION_BRIDGE = 'br0'
43 TUNNEL_EXTERNAL_BRIDGE = 'br-ext'
46 TUNNEL_EXTERNAL_BRIDGE_IP = '192.168.240.1/24'
51 # Variables defined conf/integration/03_traffic.conf
52 # For OP2P deployment scenario
53 TRAFFICGEN_PORT1_MAC = '02:00:00:00:00:01'
54 TRAFFICGEN_PORT2_MAC = '02:00:00:00:00:02'
55 TRAFFICGEN_PORT1_IP = '1.1.1.1'
56 TRAFFICGEN_PORT2_IP = '192.168.240.10'
58 To run VXLAN encapsulation tests:
60 .. code-block:: console
62 ./vsperf --conf-file user_settings.py --integration
63 --test-params 'tunnel_type=vxlan' overlay_p2p_tput
65 To run GRE encapsulation tests:
67 .. code-block:: console
69 ./vsperf --conf-file user_settings.py --integration
70 --test-params 'tunnel_type=gre' overlay_p2p_tput
72 To run GENEVE encapsulation tests:
74 .. code-block:: console
76 ./vsperf --conf-file user_settings.py --integration
77 --test-params 'tunnel_type=geneve' overlay_p2p_tput
79 To run OVS NATIVE tunnel tests (VXLAN/GRE/GENEVE):
81 1. Install the OVS kernel modules
86 sudo -E make modules_install
88 2. Set the following variables:
90 .. code-block:: python
92 VSWITCH = 'OvsVanilla'
93 # Specify vport_* kernel module to test.
94 VSWITCH_VANILLA_KERNEL_MODULES = ['vport_vxlan',
97 os.path.join(OVS_DIR_VANILLA,
98 'datapath/linux/openvswitch.ko')]
102 .. code-block:: console
104 ./vsperf --conf-file user_settings.py --integration
105 --test-params 'tunnel_type=vxlan' overlay_p2p_tput
108 Executing VXLAN decapsulation tests
109 ------------------------------------
111 To run VXLAN decapsulation tests:
113 1. Set the variables used in "Executing Tunnel encapsulation tests"
115 2. Set dstmac of DUT_NIC2_MAC to the MAC adddress of the 2nd NIC of your DUT
117 .. code-block:: python
119 DUT_NIC2_MAC = '<DUT NIC2 MAC>'
123 .. code-block:: console
125 ./vsperf --conf-file user_settings.py --integration overlay_p2p_decap_cont
127 If you want to use different values for your VXLAN frame, you may set:
129 .. code-block:: python
131 VXLAN_FRAME_L3 = {'proto': 'udp',
133 'srcip': TRAFFICGEN_PORT1_IP,
134 'dstip': '192.168.240.1',
136 VXLAN_FRAME_L4 = {'srcport': 4789,
139 'inner_srcmac': '01:02:03:04:05:06',
140 'inner_dstmac': '06:05:04:03:02:01',
141 'inner_srcip': '192.168.0.10',
142 'inner_dstip': '192.168.240.9',
143 'inner_proto': 'udp',
144 'inner_srcport': 3000,
145 'inner_dstport': 3001,
149 Executing GRE decapsulation tests
150 ---------------------------------
152 To run GRE decapsulation tests:
154 1. Set the variables used in "Executing Tunnel encapsulation tests"
156 2. Set dstmac of DUT_NIC2_MAC to the MAC adddress of the 2nd NIC of your DUT
158 .. code-block:: python
160 DUT_NIC2_MAC = '<DUT NIC2 MAC>'
164 .. code-block:: console
166 ./vsperf --conf-file user_settings.py --test-params 'tunnel_type=gre'
167 --integration overlay_p2p_decap_cont
170 If you want to use different values for your GRE frame, you may set:
172 .. code-block:: python
174 GRE_FRAME_L3 = {'proto': 'gre',
176 'srcip': TRAFFICGEN_PORT1_IP,
177 'dstip': '192.168.240.1',
180 GRE_FRAME_L4 = {'srcport': 0,
182 'inner_srcmac': '01:02:03:04:05:06',
183 'inner_dstmac': '06:05:04:03:02:01',
184 'inner_srcip': '192.168.0.10',
185 'inner_dstip': '192.168.240.9',
186 'inner_proto': 'udp',
187 'inner_srcport': 3000,
188 'inner_dstport': 3001,
192 Executing GENEVE decapsulation tests
193 ------------------------------------
195 IxNet 7.3X does not have native support of GENEVE protocol. The
196 template, GeneveIxNetTemplate.xml_ClearText.xml, should be imported
197 into IxNET for this testcase to work.
199 To import the template do:
201 1. Run the IxNetwork TCL Server
202 2. Click on the Traffic menu
203 3. Click on the Traffic actions and click Edit Packet Templates
204 4. On the Template editor window, click Import. Select the template
205 tools/pkt_gen/ixnet/GeneveIxNetTemplate.xml_ClearText.xml
207 5. Restart the TCL Server.
209 To run GENEVE decapsulation tests:
211 1. Set the variables used in "Executing Tunnel encapsulation tests"
213 2. Set dstmac of DUT_NIC2_MAC to the MAC adddress of the 2nd NIC of your DUT
215 .. code-block:: python
217 DUT_NIC2_MAC = '<DUT NIC2 MAC>'
221 .. code-block:: console
223 ./vsperf --conf-file user_settings.py --test-params 'tunnel_type=geneve'
224 --integration overlay_p2p_decap_cont
227 If you want to use different values for your GENEVE frame, you may set:
229 .. code-block:: python
231 GENEVE_FRAME_L3 = {'proto': 'udp',
233 'srcip': TRAFFICGEN_PORT1_IP,
234 'dstip': '192.168.240.1',
237 GENEVE_FRAME_L4 = {'srcport': 6081,
240 'inner_srcmac': '01:02:03:04:05:06',
241 'inner_dstmac': '06:05:04:03:02:01',
242 'inner_srcip': '192.168.0.10',
243 'inner_dstip': '192.168.240.9',
244 'inner_proto': 'udp',
245 'inner_srcport': 3000,
246 'inner_dstport': 3001,
250 Executing Native/Vanilla OVS VXLAN decapsulation tests
251 ------------------------------------------------------
253 To run VXLAN decapsulation tests:
255 1. Set the following variables in your user_settings.py file:
257 .. code-block:: python
259 VSWITCH_VANILLA_KERNEL_MODULES = ['vport_vxlan',
260 os.path.join(OVS_DIR_VANILLA,
261 'datapath/linux/openvswitch.ko')]
263 DUT_NIC1_MAC = '<DUT NIC1 MAC ADDRESS>'
265 TRAFFICGEN_PORT1_IP = '172.16.1.2'
266 TRAFFICGEN_PORT2_IP = '192.168.1.11'
268 VTEP_IP1 = '172.16.1.2/24'
269 VTEP_IP2 = '192.168.1.1'
270 VTEP_IP2_SUBNET = '192.168.1.0/24'
271 TUNNEL_EXTERNAL_BRIDGE_IP = '172.16.1.1/24'
272 TUNNEL_INT_BRIDGE_IP = '192.168.1.1'
274 VXLAN_FRAME_L2 = {'srcmac':
276 'dstmac': DUT_NIC1_MAC
279 VXLAN_FRAME_L3 = {'proto': 'udp',
281 'srcip': TRAFFICGEN_PORT1_IP,
282 'dstip': '172.16.1.1',
288 'protocolpad': 'true',
290 'inner_srcmac': '01:02:03:04:05:06',
291 'inner_dstmac': '06:05:04:03:02:01',
292 'inner_srcip': '192.168.1.2',
293 'inner_dstip': TRAFFICGEN_PORT2_IP,
294 'inner_proto': 'udp',
295 'inner_srcport': 3000,
296 'inner_dstport': 3001,
301 .. code-block:: console
303 ./vsperf --conf-file user_settings.py --integration
304 --test-params 'tunnel_type=vxlan' overlay_p2p_decap_cont
306 Executing Native/Vanilla OVS GRE decapsulation tests
307 ----------------------------------------------------
309 To run GRE decapsulation tests:
311 1. Set the following variables in your user_settings.py file:
313 .. code-block:: python
315 VSWITCH_VANILLA_KERNEL_MODULES = ['vport_gre',
316 os.path.join(OVS_DIR_VANILLA,
317 'datapath/linux/openvswitch.ko')]
319 DUT_NIC1_MAC = '<DUT NIC1 MAC ADDRESS>'
321 TRAFFICGEN_PORT1_IP = '172.16.1.2'
322 TRAFFICGEN_PORT2_IP = '192.168.1.11'
324 VTEP_IP1 = '172.16.1.2/24'
325 VTEP_IP2 = '192.168.1.1'
326 VTEP_IP2_SUBNET = '192.168.1.0/24'
327 TUNNEL_EXTERNAL_BRIDGE_IP = '172.16.1.1/24'
328 TUNNEL_INT_BRIDGE_IP = '192.168.1.1'
330 GRE_FRAME_L2 = {'srcmac':
332 'dstmac': DUT_NIC1_MAC
335 GRE_FRAME_L3 = {'proto': 'udp',
337 'srcip': TRAFFICGEN_PORT1_IP,
338 'dstip': '172.16.1.1',
344 'protocolpad': 'true',
345 'inner_srcmac': '01:02:03:04:05:06',
346 'inner_dstmac': '06:05:04:03:02:01',
347 'inner_srcip': '192.168.1.2',
348 'inner_dstip': TRAFFICGEN_PORT2_IP,
349 'inner_proto': 'udp',
350 'inner_srcport': 3000,
351 'inner_dstport': 3001,
356 .. code-block:: console
358 ./vsperf --conf-file user_settings.py --integration
359 --test-params 'tunnel_type=gre' overlay_p2p_decap_cont
361 Executing Native/Vanilla OVS GENEVE decapsulation tests
362 -------------------------------------------------------
364 To run GENEVE decapsulation tests:
366 1. Set the following variables in your user_settings.py file:
368 .. code-block:: python
370 VSWITCH_VANILLA_KERNEL_MODULES = ['vport_geneve',
371 os.path.join(OVS_DIR_VANILLA,
372 'datapath/linux/openvswitch.ko')]
374 DUT_NIC1_MAC = '<DUT NIC1 MAC ADDRESS>'
376 TRAFFICGEN_PORT1_IP = '172.16.1.2'
377 TRAFFICGEN_PORT2_IP = '192.168.1.11'
379 VTEP_IP1 = '172.16.1.2/24'
380 VTEP_IP2 = '192.168.1.1'
381 VTEP_IP2_SUBNET = '192.168.1.0/24'
382 TUNNEL_EXTERNAL_BRIDGE_IP = '172.16.1.1/24'
383 TUNNEL_INT_BRIDGE_IP = '192.168.1.1'
385 GENEVE_FRAME_L2 = {'srcmac':
387 'dstmac': DUT_NIC1_MAC
390 GENEVE_FRAME_L3 = {'proto': 'udp',
392 'srcip': TRAFFICGEN_PORT1_IP,
393 'dstip': '172.16.1.1',
396 GENEVE_FRAME_L4 = {'srcport': 6081,
398 'protocolpad': 'true',
400 'inner_srcmac': '01:02:03:04:05:06',
401 'inner_dstmac': '06:05:04:03:02:01',
402 'inner_srcip': '192.168.1.2',
403 'inner_dstip': TRAFFICGEN_PORT2_IP,
404 'inner_proto': 'udp',
405 'inner_srcport': 3000,
406 'inner_dstport': 3001,
411 .. code-block:: console
413 ./vsperf --conf-file user_settings.py --integration
414 --test-params 'tunnel_type=geneve' overlay_p2p_decap_cont