bugfix: Trafficgen Ixia does not work
[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 # path to 'ixos' install path
38 TRAFFICGEN_IXIA_ROOT_DIR = '/opt/ixos'
39
40 # network address of IXIA chassis
41 TRAFFICGEN_IXIA_HOST = ''
42
43 TRAFFICGEN_IXIA_CARD = ''
44
45 TRAFFICGEN_IXIA_PORT1 = ''
46
47 TRAFFICGEN_IXIA_PORT2 = ''
48
49 TRAFFICGEN_IXNET_LIB_PATH = '/opt/ixnetwork/lib/IxTclNetwork'
50
51 # IxNetwork host IP address
52 TRAFFICGEN_IXNET_MACHINE = ''
53 TRAFFICGEN_IXNET_PORT = ''
54 TRAFFICGEN_IXNET_USER = ''
55 TRAFFICGEN_IXNET_CHASSIS = ''
56
57 # The result directory on $TRAFFICGEN_IXNET_MACHINE
58 TRAFFICGEN_IXNET_TESTER_RESULT_DIR = ''
59
60 # The result directory on DUT. This needs to map to the same directory
61 # as the previous one
62 TRAFFICGEN_IXNET_DUT_RESULT_DIR = ''
63
64 # directory with 3rd party scripts generated by IXIA tools
65 TRAFFICGEN_IXIA_3RD_PARTY = os.path.join(ROOT_DIR, '3rd_party/ixia')
66
67 # default TCL script, which will be used for IXNETWORK configuration
68 TRAFFICGEN_IXNET_TCL_SCRIPT = 'ixnetrfc2544.tcl'
69
70 ###########################################
71 # Spirent TestCenter Configuration -- BEGIN
72
73 # Path to Python 2 executable
74 TRAFFICGEN_STC_PYTHON2_PATH = "/bin/python2.7"
75
76 # Path to the location of the TestCenter files
77 TRAFFICGEN_STC_TESTCENTER_PATH = os.path.join(ROOT_DIR, 'tools/pkt_gen/testcenter')
78
79 # Name of the TestCenter RFC2544 Tput helper python script
80 TRAFFICGEN_STC_RFC2544_TPUT_TEST_FILE_NAME = "testcenter-rfc2544-throughput.py"
81
82 # Name of the Testcenter RFC2899 Tput Helper Python Scripts
83 TRAFFICGEN_STC_RFC2889_TEST_FILE_NAME = "testcenter-rfc2889-rest.py"
84
85 # 2889 Port Locations
86 TRAFFICGEN_STC_RFC2889_LOCATION = ""
87
88 # The address of the Spirent Lab Server to use
89 TRAFFICGEN_STC_LAB_SERVER_ADDR = ""
90
91 # The address of the Spirent License Server in your environment
92 TRAFFICGEN_STC_LICENSE_SERVER_ADDR = ""
93
94 # The address of the TestCenter chassis that holds the east port
95 TRAFFICGEN_STC_EAST_CHASSIS_ADDR = ""
96
97 # The slot number of the card that holds the east port
98 TRAFFICGEN_STC_EAST_SLOT_NUM = ""
99
100 # The port number on the card that holds the east port
101 TRAFFICGEN_STC_EAST_PORT_NUM = ""
102
103 # The address of the TestCenter chassis that holds the west port
104 TRAFFICGEN_STC_WEST_CHASSIS_ADDR = ""
105
106 # The slot number of the card that holds the west port
107 TRAFFICGEN_STC_WEST_SLOT_NUM = ""
108
109 # The port number on the card that holds the west port
110 TRAFFICGEN_STC_WEST_PORT_NUM = ""
111
112 # The friendly name to identify the Spirent Lab Server test session
113 TRAFFICGEN_STC_TEST_SESSION_NAME = "RFC2544 Tput"
114 # The directory to copy results to
115
116 TRAFFICGEN_STC_RESULTS_DIR = os.path.join(ROOT_DIR, "Results")
117 #  The prefix for the CSV results file
118
119 TRAFFICGEN_STC_CSV_RESULTS_FILE_PREFIX = "RFC2544_tput"
120 # The number of trials to execute during the test
121
122 TRAFFICGEN_STC_NUMBER_OF_TRIALS = "1"
123
124 # The duration of each trial executed during the test, in seconds
125 TRAFFICGEN_STC_TRIAL_DURATION_SEC = "60"
126
127 # The traffic pattern between endpoints, BACKBONE, MESH or PAIR
128 TRAFFICGEN_STC_TRAFFIC_PATTERN = "PAIR"
129
130 # The search mode used to find the throughput rate, COMBO, STEP or BINARY
131 TRAFFICGEN_STC_SEARCH_MODE = "BINARY"
132
133 # The learning mode used during the test, AUTO, L2_LEARNING, L3_LERNING, or NONE
134 TRAFFICGEN_STC_LEARNING_MODE = "AUTO"
135
136 # The minimum percent line rate that will be used during the test
137 TRAFFICGEN_STC_RATE_LOWER_LIMIT_PCT = "1.0"
138
139 # The maximum percent line rate that will be used during the test
140 TRAFFICGEN_STC_RATE_UPPER_LIMIT_PCT = "99.0"
141
142 # If SearchMode is BINARY, the percent line rate that will be used at the start of the test
143 TRAFFICGEN_STC_RATE_INITIAL_PCT = "99.0"
144
145 # When SearchMode is STEP, the percent increase in load per step
146 TRAFFICGEN_STC_RATE_STEP_PCT = "10.0"
147
148 # The minimum percentage of load adjustment between iterations
149 TRAFFICGEN_STC_RESOLUTION_PCT = "1.0"
150
151 # The frame size, in bytes
152 TRAFFICGEN_STC_FRAME_SIZE = "256"
153
154 # The maximum acceptable frame loss percent in any iteration
155 TRAFFICGEN_STC_ACCEPTABLE_FRAME_LOSS_PCT = "0.0"
156
157 # The address to assign to the first emulated device interface on the first east port
158 TRAFFICGEN_STC_EAST_INTF_ADDR = ""
159
160 # The gateway address to assign to the first emulated device interface on the first east port
161 TRAFFICGEN_STC_EAST_INTF_GATEWAY_ADDR = ""
162
163 # The address to assign to the first emulated device interface on the first west port
164 TRAFFICGEN_STC_WEST_INTF_ADDR = ""
165
166 # The gateway address to assign to the first emulated device interface on the first west port
167 TRAFFICGEN_STC_WEST_INTF_GATEWAY_ADDR = ""
168
169 # Print additional information to the terminal during the test
170 TRAFFICGEN_STC_VERBOSE = "True"
171
172 # Spirent TestCenter Configuration -- END
173 #########################################
174
175 # Xena traffic generator connection info
176 TRAFFICGEN_XENA_IP = ''
177 TRAFFICGEN_XENA_PORT1 = ''
178 TRAFFICGEN_XENA_PORT2 = ''
179 TRAFFICGEN_XENA_USER = ''
180 TRAFFICGEN_XENA_PASSWORD = ''
181 TRAFFICGEN_XENA_MODULE1 = ''
182 TRAFFICGEN_XENA_MODULE2 = ''
183
184 # Xena Port IP info
185 TRAFFICGEN_XENA_PORT0_IP = '192.168.199.10'
186 TRAFFICGEN_XENA_PORT0_CIDR = 24
187 TRAFFICGEN_XENA_PORT0_GATEWAY = '192.168.199.1'
188 TRAFFICGEN_XENA_PORT1_IP = '192.168.199.11'
189 TRAFFICGEN_XENA_PORT1_CIDR = 24
190 TRAFFICGEN_XENA_PORT1_GATEWAY = '192.168.199.1'
191
192 # Xena RFC 2544 options
193 # Please reference xena documentation before making changes to these settings
194 TRAFFICGEN_XENA_2544_TPUT_INIT_VALUE = '10.0'
195 TRAFFICGEN_XENA_2544_TPUT_MIN_VALUE = '0.1'
196 TRAFFICGEN_XENA_2544_TPUT_MAX_VALUE = '100.0'
197 TRAFFICGEN_XENA_2544_TPUT_VALUE_RESOLUTION = '0.5'
198 TRAFFICGEN_XENA_2544_TPUT_USEPASS_THRESHHOLD = 'false'
199 TRAFFICGEN_XENA_2544_TPUT_PASS_THRESHHOLD = '0.0'
200
201 ###################################################
202 # MoonGen Configuration and Connection Info-- BEGIN
203
204 # Ex: TRAFFICGEN_MOONGEN_HOST_IP_ADDR = "192.10.1.1"
205 TRAFFICGEN_MOONGEN_HOST_IP_ADDR = ''
206 TRAFFICGEN_MOONGEN_USER = ''
207 TRAFFICGEN_MOONGEN_BASE_DIR = ''
208 TRAFFICGEN_MOONGEN_PORTS = ''
209 # Ex. 10 Gbps: TRAFFICGEN_MOONGEN_LINE_SPEED_GBPS = '10'
210 # Today only 10 Gbps is supported
211 TRAFFICGEN_MOONGEN_LINE_SPEED_GBPS = ''
212
213 # MoonGen Configuration and Connection Info-- END
214 ###################################################