1 # Copyright 2015 Intel Corporation.
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 # ############################
16 # Traffic gen configuration
17 # ############################
19 # log file for all traffic generator related commands
20 LOG_FILE_TRAFFIC_GEN = 'traffic-gen.log'
22 #path to traffic generators directory.
23 TRAFFICGEN_DIR = os.path.join(ROOT_DIR, 'tools/pkt_gen')
25 # traffic generator to use in tests
26 #TRAFFICGEN = 'TestCenter'
31 #TRAFFICGEN = 'Moongen'
33 # List of packet sizes to send.
34 # Expand like this: (64, 128, 256, 512, 1024)
35 TRAFFICGEN_PKT_SIZES = (64,)
37 # path to 'ixos' install path
38 TRAFFICGEN_IXIA_ROOT_DIR = '/opt/ixos'
40 # network address of IXIA chassis
41 TRAFFICGEN_IXIA_HOST = ''
43 TRAFFICGEN_IXIA_CARD = ''
45 TRAFFICGEN_IXIA_PORT1 = ''
47 TRAFFICGEN_IXIA_PORT2 = ''
49 TRAFFICGEN_IXNET_LIB_PATH = '/opt/ixnetwork/lib/IxTclNetwork'
51 # IxNetwork host IP address
52 TRAFFICGEN_IXNET_MACHINE = ''
53 TRAFFICGEN_IXNET_PORT = ''
54 TRAFFICGEN_IXNET_USER = ''
55 TRAFFICGEN_IXNET_CHASSIS = ''
57 # The result directory on $TRAFFICGEN_IXNET_MACHINE
58 TRAFFICGEN_IXNET_TESTER_RESULT_DIR = ''
60 # The result directory on DUT. This needs to map to the same directory
62 TRAFFICGEN_IXNET_DUT_RESULT_DIR = ''
64 TRAFFICGEN_IXNET_TCL_SCRIPT = 'ixnetrfc2544.tcl'
66 ###########################################
67 # Spirent TestCenter Configuration -- BEGIN
69 # Path to Python 2 executable
70 TRAFFICGEN_STC_PYTHON2_PATH = "/bin/python2.7"
72 # Path to the location of the TestCenter files
73 TRAFFICGEN_STC_TESTCENTER_PATH = os.path.join(ROOT_DIR, 'tools/pkt_gen/testcenter')
75 # Name of the TestCenter RFC2544 Tput helper python script
76 TRAFFICGEN_STC_RFC2544_TPUT_TEST_FILE_NAME = "testcenter-rfc2544-throughput.py"
78 # The address of the Spirent Lab Server to use
79 TRAFFICGEN_STC_LAB_SERVER_ADDR = ""
81 # The address of the Spirent License Server in your environment
82 TRAFFICGEN_STC_LICENSE_SERVER_ADDR = ""
84 # The address of the TestCenter chassis that holds the east port
85 TRAFFICGEN_STC_EAST_CHASSIS_ADDR = ""
87 # The slot number of the card that holds the east port
88 TRAFFICGEN_STC_EAST_SLOT_NUM = ""
90 # The port number on the card that holds the east port
91 TRAFFICGEN_STC_EAST_PORT_NUM = ""
93 # The address of the TestCenter chassis that holds the west port
94 TRAFFICGEN_STC_WEST_CHASSIS_ADDR = ""
96 # The slot number of the card that holds the west port
97 TRAFFICGEN_STC_WEST_SLOT_NUM = ""
99 # The port number on the card that holds the west port
100 TRAFFICGEN_STC_WEST_PORT_NUM = ""
102 # The friendly name to identify the Spirent Lab Server test session
103 TRAFFICGEN_STC_TEST_SESSION_NAME = "RFC2544 Tput"
104 # The directory to copy results to
106 TRAFFICGEN_STC_RESULTS_DIR = "./Results"
107 # The prefix for the CSV results file
109 TRAFFICGEN_STC_CSV_RESULTS_FILE_PREFIX = "RFC2544_tput"
110 # The number of trials to execute during the test
112 TRAFFICGEN_STC_NUMBER_OF_TRIALS = "1"
114 # The duration of each trial executed during the test, in seconds
115 TRAFFICGEN_STC_TRIAL_DURATION_SEC = "60"
117 # The traffic pattern between endpoints, BACKBONE, MESH or PAIR
118 TRAFFICGEN_STC_TRAFFIC_PATTERN = "PAIR"
120 # The search mode used to find the throughput rate, COMBO, STEP or BINARY
121 TRAFFICGEN_STC_SEARCH_MODE = "BINARY"
123 # The learning mode used during the test, AUTO, L2_LEARNING, L3_LERNING, or NONE
124 TRAFFICGEN_STC_LEARNING_MODE = "AUTO"
126 # The minimum percent line rate that will be used during the test
127 TRAFFICGEN_STC_RATE_LOWER_LIMIT_PCT = "1.0"
129 # The maximum percent line rate that will be used during the test
130 TRAFFICGEN_STC_RATE_UPPER_LIMIT_PCT = "99.0"
132 # If SearchMode is BINARY, the percent line rate that will be used at the start of the test
133 TRAFFICGEN_STC_RATE_INITIAL_PCT = "99.0"
135 # When SearchMode is STEP, the percent increase in load per step
136 TRAFFICGEN_STC_RATE_STEP_PCT = "10.0"
138 # The minimum percentage of load adjustment between iterations
139 TRAFFICGEN_STC_RESOLUTION_PCT = "1.0"
141 # The frame size, in bytes
142 TRAFFICGEN_STC_FRAME_SIZE = "256"
144 # The maximum acceptable frame loss percent in any iteration
145 TRAFFICGEN_STC_ACCEPTABLE_FRAME_LOSS_PCT = "0.0"
147 # The address to assign to the first emulated device interface on the first east port
148 TRAFFICGEN_STC_EAST_INTF_ADDR = ""
150 # The gateway address to assign to the first emulated device interface on the first east port
151 TRAFFICGEN_STC_EAST_INTF_GATEWAY_ADDR = ""
153 # The address to assign to the first emulated device interface on the first west port
154 TRAFFICGEN_STC_WEST_INTF_ADDR = ""
156 # The gateway address to assign to the first emulated device interface on the first west port
157 TRAFFICGEN_STC_WEST_INTF_GATEWAY_ADDR = ""
159 # Print additional information to the terminal during the test
160 TRAFFICGEN_STC_VERBOSE = "True"
162 # Spirent TestCenter Configuration -- END
163 #########################################
165 # Xena traffic generator connection info
166 TRAFFICGEN_XENA_IP = ''
167 TRAFFICGEN_XENA_PORT1 = ''
168 TRAFFICGEN_XENA_PORT2 = ''
169 TRAFFICGEN_XENA_USER = ''
170 TRAFFICGEN_XENA_PASSWORD = ''
171 TRAFFICGEN_XENA_MODULE1 = ''
172 TRAFFICGEN_XENA_MODULE2 = ''
175 TRAFFICGEN_XENA_PORT0_IP = '192.168.199.10'
176 TRAFFICGEN_XENA_PORT0_CIDR = 24
177 TRAFFICGEN_XENA_PORT0_GATEWAY = '192.168.199.1'
178 TRAFFICGEN_XENA_PORT1_IP = '192.168.199.11'
179 TRAFFICGEN_XENA_PORT1_CIDR = 24
180 TRAFFICGEN_XENA_PORT1_GATEWAY = '192.168.199.1'
182 ###################################################
183 # MoonGen Configuration and Connection Info-- BEGIN
185 # Ex: TRAFFICGEN_MOONGEN_HOST_IP_ADDR = "192.10.1.1"
186 TRAFFICGEN_MOONGEN_HOST_IP_ADDR = ''
187 TRAFFICGEN_MOONGEN_USER = ''
188 TRAFFICGEN_MOONGEN_BASE_DIR = ''
189 TRAFFICGEN_MOONGEN_PORTS = ''
190 # Ex. 10 Gbps: TRAFFICGEN_MOONGEN_LINE_SPEED_GBPS = '10'
191 # Today only 10 Gbps is supported
192 TRAFFICGEN_MOONGEN_LINE_SPEED_GBPS = ''
194 # MoonGen Configuration and Connection Info-- END
195 ###################################################