blob: 4af83aea640f37221abf69ac344e39c6487c0d74 [file] [log] [blame]
GlennRC0243c3f2015-11-24 13:25:38 -08001FUNCflow test suite
2
3Summary:
4 This test suite consists of basic flow-rule based functionality testing.
5 The main goal of this test suite is to verify that the flow subsytem is
6 compiling flows correctly. We verify each flow by utilizing Scapy, a
7 Python library for generating and sending packets. The following is an
8 overview of the test.
9 Steps:
10 - Discover hosts
11 - add specific flow
12 - verify flow
13 - remove flow
14
15 Each repetion of the steps tests a specific selector. Here is a list
16 of the selectors that are being tested:
17 Selectors:
18 - MAC
19 - IPv4
20 - VLAN
21 - MPLS
22 - TCP
23 - UDP
24
25 We verify the selectors by sending a tailor made packet through the
26 two hosts. If the packet was recieved, then the flow was compiled
27 correctly.
28
29Topology:
30 The topology consists of one switch with four hosts connected to it.
31 Two hosts are regular IPv4 hosts, while the other two are hosts with
32 vlan interfaces to test the vlan selector.
33
34Required:
35 This test requires Mininet topology file topo-flow.py located in the
Jon Hall53c5e662016-04-13 16:06:56 -070036 dependencies folder. The topology consistes of VLAN hosts, so you will
GlennRC0243c3f2015-11-24 13:25:38 -080037 need to install the VLAN module. You will also need to install the
38 Python module, Scapy.
39
40VLAN configuration:
41 Execute command:
42 $ sudo apt-get install vlan
43 Configuration:
44 $ sudo modprobe 8021q
45 NOTE:To make this configuration permanent
46 $ sudo su -c 'echo "8021q" >> /etc/modules'
47
48Scapy install:
49 sudo apt-get install Scapy