Merge "cli: Modify configuration via CLI"
[vswitchperf.git] / conf / 03_traffic.conf
1 # Copyright 2015 Intel Corporation.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #   http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 # ############################
16 # Traffic gen configuration
17 # ############################
18
19 # log file for all traffic generator related commands
20 LOG_FILE_TRAFFIC_GEN = 'traffic-gen.log'
21
22 #path to traffic generators directory.
23 TRAFFICGEN_DIR = os.path.join(ROOT_DIR, 'tools/pkt_gen')
24
25 # traffic generator to use in tests
26 #TRAFFICGEN = 'TestCenter'
27 TRAFFICGEN = 'Dummy'
28 #TRAFFICGEN = 'IxNet'
29 #TRAFFICGEN = 'Ixia'
30 #TRAFFICGEN = 'Xena'
31 #TRAFFICGEN = 'Moongen'
32
33 # List of packet sizes to send.
34 # Expand like this: (64, 128, 256, 512, 1024)
35 TRAFFICGEN_PKT_SIZES = (64,)
36
37 TRAFFICGEN_DURATION = 30
38
39 TRAFFICGEN_RFC2544_TESTS = 1
40 TRAFFICGEN_RFC2889_TRIALS = 1
41 TRAFFICGEN_LOSSRATE = 0.0
42
43 #############################
44 # IXIA Configuration -- BEGIN
45
46 # path to 'ixos' install path
47 TRAFFICGEN_IXIA_ROOT_DIR = '/opt/ixos'
48
49 # network address of IXIA chassis
50 TRAFFICGEN_IXIA_HOST = ''
51
52 TRAFFICGEN_IXIA_CARD = ''
53
54 TRAFFICGEN_IXIA_PORT1 = ''
55
56 TRAFFICGEN_IXIA_PORT2 = ''
57
58 TRAFFICGEN_IXNET_LIB_PATH = '/opt/ixnetwork/lib/IxTclNetwork'
59
60 # IxNetwork host IP address
61 TRAFFICGEN_IXNET_MACHINE = ''
62 TRAFFICGEN_IXNET_PORT = ''
63 TRAFFICGEN_IXNET_USER = ''
64 TRAFFICGEN_IXNET_CHASSIS = ''
65
66 # The result directory on $TRAFFICGEN_IXNET_MACHINE
67 TRAFFICGEN_IXNET_TESTER_RESULT_DIR = ''
68
69 # The result directory on DUT. This needs to map to the same directory
70 # as the previous one
71 TRAFFICGEN_IXNET_DUT_RESULT_DIR = ''
72
73 # directory with 3rd party scripts generated by IXIA tools
74 TRAFFICGEN_IXIA_3RD_PARTY = os.path.join(ROOT_DIR, '3rd_party/ixia')
75
76 # default TCL script, which will be used for IXNETWORK configuration
77 TRAFFICGEN_IXNET_TCL_SCRIPT = 'ixnetrfc2544.tcl'
78
79 # IXIA Configuration -- END
80 ###########################
81
82
83 ###########################################
84 # Spirent TestCenter Configuration -- BEGIN
85
86 # Path to Python 2 executable
87 TRAFFICGEN_STC_PYTHON2_PATH = "/bin/python2.7"
88
89 # Path to the location of the TestCenter files
90 TRAFFICGEN_STC_TESTCENTER_PATH = os.path.join(ROOT_DIR, 'tools/pkt_gen/testcenter')
91
92 # Name of the TestCenter RFC2544 Tput helper python script
93 TRAFFICGEN_STC_RFC2544_TPUT_TEST_FILE_NAME = "testcenter-rfc2544-throughput.py"
94
95 # Name of the Testcenter RFC2899 Tput Helper Python Scripts
96 TRAFFICGEN_STC_RFC2889_TEST_FILE_NAME = "testcenter-rfc2889-rest.py"
97
98 # 2889 Port Locations
99 TRAFFICGEN_STC_RFC2889_LOCATION = ""
100
101 # The address of the Spirent Lab Server to use
102 TRAFFICGEN_STC_LAB_SERVER_ADDR = ""
103
104 # The address of the Spirent License Server in your environment
105 TRAFFICGEN_STC_LICENSE_SERVER_ADDR = ""
106
107 # The address of the TestCenter chassis that holds the east port
108 TRAFFICGEN_STC_EAST_CHASSIS_ADDR = ""
109
110 # The slot number of the card that holds the east port
111 TRAFFICGEN_STC_EAST_SLOT_NUM = ""
112
113 # The port number on the card that holds the east port
114 TRAFFICGEN_STC_EAST_PORT_NUM = ""
115
116 # The address of the TestCenter chassis that holds the west port
117 TRAFFICGEN_STC_WEST_CHASSIS_ADDR = ""
118
119 # The slot number of the card that holds the west port
120 TRAFFICGEN_STC_WEST_SLOT_NUM = ""
121
122 # The port number on the card that holds the west port
123 TRAFFICGEN_STC_WEST_PORT_NUM = ""
124
125 # The friendly name to identify the Spirent Lab Server test session
126 TRAFFICGEN_STC_TEST_SESSION_NAME = "RFC2544 Tput"
127 # The directory to copy results to
128
129 TRAFFICGEN_STC_RESULTS_DIR = os.path.join(ROOT_DIR, "Results")
130 #  The prefix for the CSV results file
131
132 TRAFFICGEN_STC_CSV_RESULTS_FILE_PREFIX = "RFC2544_tput"
133 # The number of trials to execute during the test
134
135 TRAFFICGEN_STC_NUMBER_OF_TRIALS = "1"
136
137 # The duration of each trial executed during the test, in seconds
138 TRAFFICGEN_STC_TRIAL_DURATION_SEC = "60"
139
140 # The traffic pattern between endpoints, BACKBONE, MESH or PAIR
141 TRAFFICGEN_STC_TRAFFIC_PATTERN = "PAIR"
142
143 # The search mode used to find the throughput rate, COMBO, STEP or BINARY
144 TRAFFICGEN_STC_SEARCH_MODE = "BINARY"
145
146 # The learning mode used during the test, AUTO, L2_LEARNING, L3_LERNING, or NONE
147 TRAFFICGEN_STC_LEARNING_MODE = "AUTO"
148
149 # The minimum percent line rate that will be used during the test
150 TRAFFICGEN_STC_RATE_LOWER_LIMIT_PCT = "1.0"
151
152 # The maximum percent line rate that will be used during the test
153 TRAFFICGEN_STC_RATE_UPPER_LIMIT_PCT = "99.0"
154
155 # If SearchMode is BINARY, the percent line rate that will be used at the start of the test
156 TRAFFICGEN_STC_RATE_INITIAL_PCT = "99.0"
157
158 # When SearchMode is STEP, the percent increase in load per step
159 TRAFFICGEN_STC_RATE_STEP_PCT = "10.0"
160
161 # The minimum percentage of load adjustment between iterations
162 TRAFFICGEN_STC_RESOLUTION_PCT = "1.0"
163
164 # The frame size, in bytes
165 TRAFFICGEN_STC_FRAME_SIZE = "256"
166
167 # The maximum acceptable frame loss percent in any iteration
168 TRAFFICGEN_STC_ACCEPTABLE_FRAME_LOSS_PCT = "0.0"
169
170 # The address to assign to the first emulated device interface on the first east port
171 TRAFFICGEN_STC_EAST_INTF_ADDR = ""
172
173 # The gateway address to assign to the first emulated device interface on the first east port
174 TRAFFICGEN_STC_EAST_INTF_GATEWAY_ADDR = ""
175
176 # The address to assign to the first emulated device interface on the first west port
177 TRAFFICGEN_STC_WEST_INTF_ADDR = ""
178
179 # The gateway address to assign to the first emulated device interface on the first west port
180 TRAFFICGEN_STC_WEST_INTF_GATEWAY_ADDR = ""
181
182 # Print additional information to the terminal during the test
183 TRAFFICGEN_STC_VERBOSE = "True"
184
185 # Spirent TestCenter Configuration -- END
186 #########################################
187
188 #############################
189 # Xena Configuration -- BEGIN
190
191 # Xena traffic generator connection info
192 TRAFFICGEN_XENA_IP = ''
193 TRAFFICGEN_XENA_PORT1 = ''
194 TRAFFICGEN_XENA_PORT2 = ''
195 TRAFFICGEN_XENA_USER = ''
196 TRAFFICGEN_XENA_PASSWORD = ''
197 TRAFFICGEN_XENA_MODULE1 = ''
198 TRAFFICGEN_XENA_MODULE2 = ''
199
200 # Xena Port IP info
201 TRAFFICGEN_XENA_PORT0_IP = '192.168.199.10'
202 TRAFFICGEN_XENA_PORT0_CIDR = 24
203 TRAFFICGEN_XENA_PORT0_GATEWAY = '192.168.199.1'
204 TRAFFICGEN_XENA_PORT1_IP = '192.168.199.11'
205 TRAFFICGEN_XENA_PORT1_CIDR = 24
206 TRAFFICGEN_XENA_PORT1_GATEWAY = '192.168.199.1'
207
208 # Xena RFC 2544 options
209 # Please reference xena documentation before making changes to these settings
210 TRAFFICGEN_XENA_2544_TPUT_INIT_VALUE = '10.0'
211 TRAFFICGEN_XENA_2544_TPUT_MIN_VALUE = '0.1'
212 TRAFFICGEN_XENA_2544_TPUT_MAX_VALUE = '100.0'
213 TRAFFICGEN_XENA_2544_TPUT_VALUE_RESOLUTION = '0.5'
214 TRAFFICGEN_XENA_2544_TPUT_USEPASS_THRESHHOLD = 'false'
215 TRAFFICGEN_XENA_2544_TPUT_PASS_THRESHHOLD = '0.0'
216
217 # Xena Configuration -- END
218 ###########################
219
220 ###################################################
221 # MoonGen Configuration and Connection Info-- BEGIN
222
223 # Ex: TRAFFICGEN_MOONGEN_HOST_IP_ADDR = "192.10.1.1"
224 TRAFFICGEN_MOONGEN_HOST_IP_ADDR = ''
225 TRAFFICGEN_MOONGEN_USER = ''
226 TRAFFICGEN_MOONGEN_BASE_DIR = ''
227 TRAFFICGEN_MOONGEN_PORTS = ''
228 # Ex. 10 Gbps: TRAFFICGEN_MOONGEN_LINE_SPEED_GBPS = '10'
229 # Today only 10 Gbps is supported
230 TRAFFICGEN_MOONGEN_LINE_SPEED_GBPS = ''
231
232 # MoonGen Configuration and Connection Info-- END
233 ###################################################