Allow latency thresholds for TST009 testing
[samplevnf.git] / VNFs / DPPD-PROX / flow_gen / README
1 ##
2 ## Copyright (c) 2010-2017 Intel Corporation
3 ##
4 ## Licensed under the Apache License, Version 2.0 (the "License");
5 ## you may not use this file except in compliance with the License.
6 ## You may obtain a copy of the License at
7 ##
8 ##     http://www.apache.org/licenses/LICENSE-2.0
9 ##
10 ## Unless required by applicable law or agreed to in writing, software
11 ## distributed under the License is distributed on an "AS IS" BASIS,
12 ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ## See the License for the specific language governing permissions and
14 ## limitations under the License.
15 ##
16
17 While it is possible to manually run stateful traffic generation as
18 described below, it is recommended to use the provided dpi scripts
19 available in the help-scripts directory..
20
21 Before running flow based generation, a traffic profile needs to be
22 extracted and copied into this directory. This is done by running the
23 flow extract tool. An example of running the tool is shown below. For
24 more details on the flow extract tool, please read the provided help
25 by running the tool with the -h argument.
26
27 ./build/flowextract2 -s 500000 -i input.pcap -o output_directory
28
29 After the output has been copied to this directory, the configuration
30 can be launched as shown below:
31
32 ./build/prox -f flow_gen/flow_gen_4ports.cfg -e \
33              -q max_setup_rate=2000 \
34              -q connections=50000 \
35              -q ss=19.46 \
36              -q test_system_id=0
37
38 The parameters provided through -q depend on the traffic profile. The
39 following command can be used to find the maximum value of ss:
40
41 ./build/prox -f flow_gen/flow_gen_4ports.cfg -e \
42              -q max_ss_and_quit=true \
43              -q test_system_id=0
44
45 This will cause prox to read the traffic profile, calculate the maximum
46 value and quit immediately. No packets will be sent and the value for
47 ss will be printed on stdout.