1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
|
Overview
========
Virtual Topologies
------------------
CSIT HoneyComb functional tests are executed in VM-based virtual topologies
created on demand using :abbr:`VIRL (Virtual Internet Routing Lab)`
simulation platform contributed by Cisco. VIRL runs on physical
baremetal servers hosted by LF FD.io project.
All tests are executed in two-node virtual test topology shown in the
figure below.
.. only:: latex
.. raw:: latex
\begin{figure}[H]
\centering
\graphicspath{{../_tmp/src/vpp_functional_tests/}}
\includegraphics[width=0.90\textwidth]{virtual-2n-nic2nic}
\label{fig:virtual-2n-nic2nic}
\end{figure}
.. only:: html
.. figure:: ../vpp_functional_tests/virtual-2n-nic2nic.svg
:alt: virtual-2n-nic2nic
:align: center
SUT (System Under Test) is a VM running Ubuntu Linux (or Centos,
depending on the test suite), TG (Traffic Generator) is another VM
running Ubuntu Linux. SUT VMs run HoneyComb management agent and VPP in
Linux user-mode as a combined DUT (Device Under Test). TG runs Scapy
application as a packet Traffic Generator. Virtual connectivity between
SUT and TG is provided using virtual NICs using VMs' virtio drivers.
Functional Tests Coverage
-------------------------
|csit-release| includes following HoneyComb functionality tested in
virtual VM environment:
+-----------------------+----------------------------------------------+
| Functionality | Description |
+=======================+==============================================+
| ACL | CRD for low-level classifiers: table and |
| | session management, interface assignment. |
| | |
| | - Configure up to 2 classify tables. |
| | - Configure up to 2 classify sessions on one |
| | table. |
| | - Assign classify session to a physical |
| | interface. |
| | - Remove tables, sessions, interface |
| | assignments. |
| | - Test case count: 9. |
+-----------------------+----------------------------------------------+
| ACL-PLUGIN | CRD for high-level classifier. |
| | |
| | - MAC + IP address classification. |
| | - IPv4, IPv6 address classification. |
| | - TCP, UDP, ICMP, ICMPv6 protocol and |
| | next-header classification. |
| | - port number classification. |
| | - ICMP, ICMPv6 code and type classification. |
| | - Test case count: 15. |
+-----------------------+----------------------------------------------+
| Basic interface | CRUD for interface state. |
| management | |
| | - ipv4/ipv6 address, ipv4 neighbor, MTU |
| | value. |
| | - Test case count: 14. |
+-----------------------+----------------------------------------------+
| Border Gateway | CRUD and functional tests for BGP. |
| Protocol | |
| | - Configure peers and routes |
| | - Check interactions with another BGP peer. |
| | - Test case count: 13. |
+-----------------------+----------------------------------------------+
| DHCP Relay | CRD for DHCP relay feature. |
| | |
| | - Configure DHCP Relays. |
| | - IPv4 and IPv6 variants. |
| | - Test case count: 4. |
+-----------------------+----------------------------------------------+
| Honeycomb | Configuration persistence. |
| Infractructure | |
| | - Netconf notifications for interface |
| | events. |
| | - Netconf negative tests aimed at specific |
| | issues. |
| | - Netconf/Restconf northbound over IPv6. |
| | - Test case count: 12. |
+-----------------------+----------------------------------------------+
| L2BD | CRUD for L2 Bridge-Domain, interface |
| | assignment. |
| | |
| | - Create up to two bridge domains with all |
| | implemented functions turned on: |
| | flooding, unknown-unicast flooding, |
| | forwarding, learning, arp-termination. |
| | - Assign up to two physical interfaces to a |
| | single bridge domain. |
| | - Remove interface assignments, remove |
| | bridge domains. |
| | - Test case count: 5. |
+-----------------------+----------------------------------------------+
| L2FIB | CRD for L2-FIB entries. |
| | |
| | - Create 4 FIB entries: |
| | one of each for filter/forward, |
| | static/dynamic combinations. |
| | - Remove FIB entries. |
| | - Test case count: 7. |
+-----------------------+----------------------------------------------+
| LISP | CRD for Lisp: mapping, locator set, |
| | adjacency, mapresolver. |
| | |
| | - Toggle Lisp feature status. |
| | - Configure and delete Lisp mapping as local |
| | and remote. |
| | - Configure and delete Lisp adjacency |
| | mapping. |
| | - Configure and delete Lisp map resolver, |
| | proxy ITR. |
| | - Test case count: 18. |
+-----------------------+----------------------------------------------+
| LISP GPE | CRUD for LISP GPE mappings. |
| | |
| | - Toggle Lisp GPE feature status. |
| | - Configure Lisp GPE mappings. |
| | - Traffic test verifying encapsulation. |
| | - Test case count: 12. |
+-----------------------+----------------------------------------------+
| NAT | CRD for NAT entries, interface assignment. |
| | |
| | - Configure and delete up to two NAT |
| | entries. |
| | - Assign NAT entries to a physical |
| | interface. |
| | - Test case count: 6. |
+-----------------------+----------------------------------------------+
| NSH_SFC | CRD for NSH maps and entries, using NSH_SFC |
| | plugin. |
| | |
| | - Configure up to 2 NSH entries. |
| | - Configure up to 2 NSH maps. |
| | - Modify and delete NSH maps and entries. |
| | - Test case count: 8. |
+-----------------------+----------------------------------------------+
| PBB | CRD for provider backbone bridge |
| | sub-interface. |
| | |
| | - Configure, modify and remove a PBB |
| | sub-interface over a physical interface. |
| | - Test case count: 8. |
+-----------------------+----------------------------------------------+
| Policer | CRD for traffic policing feature. |
| | |
| | - Configure Policing rules. |
| | - Assign to interface. |
| | - Test case count: 6. |
+-----------------------+----------------------------------------------+
| Port mirroring | CRD for SPAN port mirroring, interface |
| | assignment. |
| | |
| | - Configure SPAN port mirroring on a |
| | physical interface, mirroring. |
| | - up to 2 interfaces. |
| | - Remove SPAN configuration from interfaces. |
| | - Test case count: 14. |
+-----------------------+----------------------------------------------+
| ProxyARP | CRD for proxyARP feature. |
| | |
| | - Configure proxyARP. |
| | - Assign to interface. |
| | - Test case count: 3. |
+-----------------------+----------------------------------------------+
| ProxyND6 | CRD for Neighbor Discovery Proxy. |
| | |
| | - Configure ProxyND6 feature on interface. |
| | - Test case count: 4. |
+-----------------------+----------------------------------------------+
| Routing | CRD for routing. |
| | |
| | - Configure single-hop route. |
| | - Configure multi-hop routes. |
| | - Configure blackhole route. |
| | - IPv4 and IPv6 variants. |
| | - Test case count: 6. |
+-----------------------+----------------------------------------------+
| SLAAC | CRD for Stateless Address AutoConfiguration. |
| | |
| | - Configure SLAAC feature on interfaces. |
| | - Test case count: 7. |
+-----------------------+----------------------------------------------+
| Vhost-user | CRUD for Vhost-user interfaces. |
| | |
| | - Create, modify and delete Vhost-user |
| | interface, as client and server. |
| | - Test case count: 8. |
+-----------------------+----------------------------------------------+
| VLAN | CRUD for VLAN sub-interface management. |
| | |
| | - Create VLAN sub-interface over a physical |
| | interface. |
| | - Toggle interface state separately for |
| | super-interface and sub-interface. |
| | - Configure IP address and bridge domain |
| | assignment on sub-interface. |
| | - Configure VLAN tag rewrite on |
| | sub-interface. |
| | - Test case count: 24. |
+-----------------------+----------------------------------------------+
| VxLAN | CRD for VxLAN tunnels. |
| | |
| | - Create VxLAN interface. |
| | - Disable VxLAN interface. |
| | - Re-create a disabled VxLAN interface. |
| | - Test case count: 6. |
+-----------------------+----------------------------------------------+
| VxLAN-GPE | CRD for VxLAN GPE tunnels. |
| | |
| | - Create VxLAN GPE interface. |
| | - Disable VxLAN interface. |
| | - Re-create a disabled VxLAN interface. |
| | - Test case count: 7. |
+-----------------------+----------------------------------------------+
| TAP | CRUD for Tap interface management. |
| | |
| | - Create, modify and delete TAP interface. |
| | - Test case count: 3. |
+-----------------------+----------------------------------------------+
Total 219 Honeycomb functional tests in the |csit-release|.
Operational data in Honeycomb should mirror configuration data at all
times. Because of this, test cases follow this general pattern:
#. read operational data of the feature using restconf.
#. read status of the feature using VPP API dump.
#. modify configuration of the feature using restconf.
#. verify changes to operational data using restconf.
#. verify changes using VPP API dump, OR
#. send a packet to VPP node and observe behaviour to verify configuration.
Test cases involving network interfaces utilize the first two interfaces
on the DUT node.
Functional Tests Naming
-----------------------
|csit-release| follows a common structured naming convention for all
performance and system functional tests, introduced in CSIT-17.01.
The naming should be intuitive for majority of the tests. Complete
description of CSIT test naming convention is provided on
:ref:`csit_test_naming`.
|