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

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.