summaryrefslogtreecommitdiff
path: root/validation/validlib/ixia_tcl_templates/latency.tcl
blob: 6d097115e03601c0bcae0d390347850d54fe1491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
###################################################
# Begin Config Header
###################################################
#
# <CONFIG_HEADER>
#   <CONFIG_VERSION>1.00</CONFIG_VERSION>
#   <APPLICATION_VERSION>IxAutomate 6.90.102.3</APPLICATION_VERSION>
#   <COPYRIGHT>Copyright 2012 by IXIA All Rights Reserved.</COPYRIGHT>
#   <TEST_CAT>rfc2544</TEST_CAT>
#   <TEST_CAT_STR>RFC 2544 - IPv6 Benchmark</TEST_CAT_STR>
#   <TEST_NAME>{test_name}</TEST_NAME>
#   <TEST_NAME_STR>{test_name_str}</TEST_NAME_STR>
# </CONFIG_HEADER>

###################################################
# End Config Header
###################################################

###################################################
# Begin Test Registration
###################################################

catch {wm withdraw .}
catch {tk appname IxScriptMate}
set ixA on
package require IxTclHal
package require Scriptmate
configHeader::TestRegister;


###################################################
# End Test Registration
# Above MUST remain unmodified
###################################################

logOn "{log_on}.log.634699092549122592"
logMsg \n
logMsg -priority "  RFC 2544 - IPv6 Benchmark Latency test"
logMsg -priority "  Copyright 2012 by IXIA"
logMsg -priority "  All Rights Reserved."
logMsg -priority "  ............................................\n"

set testConf(hostname) {400T-0214240}
set testConf(chassisID) {1}
set testConf(chassisSequence) {1}
set testConf(cableLength) {cable3feet}
set testConf(timeSource) {Internal}
set testConf(reconnect) {True}



#
# This part contains the configuration of card and port levels.
#

set testConf(enableAccmNegotiation)    { {false Oc48}}
set testConf(atmFillerCell)    { {atmIdleCell Oc48}}
set testConf(atmInterfaceType)    { {atmInterfaceUni Oc48}}
set testConf(autonegotiate)    { {true 10100Gigabit} {true 10100}}
set testConf(C2byteExpected)    { {22 Oc48}}
set testConf(C2byteTransmit)    { {22 Oc48}}
set testConf(atmEnableCoset)    { {true Oc48}}
set testConf(dataScrambling)    { {true Oc48}}
set testConf(duplex)    { {full 10100Gigabit} {full 10100}}
set testConf(hdlcHeader)    { {ppp Oc48}}
set testConf(useMagicNumber)    { {true Oc48}}
set testConf(enableIp)    { {true Oc48}}
set testConf(enableIpv6)    { {true Oc48}}
set testConf(enableOsi)    { {true Oc48}}
set testConf(PPPnegotiation)    { {true Oc48}}
set testConf(atmReassemblyTimeout)    { {10 Oc48}}
set testConf(useRecoveredClock)    { {true Oc48}}
set testConf(sonetRxCRC)    { {sonetCrc32 Oc48}}
set testConf(speed)    { {Copper1000 10100Gigabit} {100 10100} {oc48 Oc48}}
set testConf(sonetTxCRC)    { {sonetCrc32 Oc48}}
set NumVlans({slave_comma_port})	{stas_nb}
set NumVlans({master_comma_port})	{stas_nb}


map new -type {map_type}
map config -type {map_type}
{map_add}



#FCoE Multicast Map(one2many) Elements
set testConf(portname,{slave_comma_port})    Slaves
set testConf(portname,{master_dot_port})    Master
set testConf(portname,{master_comma_port})    Master
set testConf(portname,{slave_dot_port})    Slaves
set VlanID({slave_comma_port})	{min_vlan_id}
set VlanID({master_comma_port})	{min_vlan_id}
set testConf(enableMpls)    { {true Oc48}}



#
# Select the protocol to be used to run this test.
# Supported protocols are MAC, IP , IPV6 and IPX.
# NOTE: MAC layer not valid for OC-n interfaces
# mac  = layer 2 MAC
# ip   = layer 3 IP
# ipV6 = layer 3 IPv6
# ipx  = layer 3 IPX
#
set testConf(protocolName) "mac"


set testConf(enableUdp) true

#
# Enables assigning addresses for excluded ports in Automatic Map.
#
set testConf(useExcludedPortsAddressing) false




#
# The approximate length of time frames are transmitted for each trial is
# set as a 'duration.
# The duration is in seconds; for example, if the duration is set to one
# second on a 100mbs switch, ~148810 frames will be transmitted.  This
# number must be an integer; minimum value is 1 second.
# duration of transmit during test, in seconds
#
latency config -duration 30


#
# One frame size/frame rate test is called a trial. The user may choose
# to run one or more trials; the average result of each trial will be
# presented in the result file. total number of trials per frame size/frame
# rate
#
latency config -numtrials 1


set testConf(numAddressesPerPort) {stas_nb}

latency config -trafficType "Constant Loading"


latency config -burstSize 1


latency config -framesPerBurstGap 1


set testConf(calibrateLatency) no

latency config -latencyType "cutThrough"


#
# Staggered start; if set to true, transmit start will be staggered; if
# set to false, transmit will start on all ports at the same time.
#
latency config -staggeredStart notStaggeredStart

latency config -reportSequenceError no


latency config -reportrateSelect "mbpsRate"


set testConf(ipv4rate) 50.0


set testConf(ipv6rate) 50.0


set testConf(IPv6Headers) {}


advancedTestParameter config -maxConnectRetries 3


advancedTestParameter config -linkStateTimeout 25


advancedTestParameter config -dutDelay 100


advancedTestParameter config -gpsLockTimeout 60


advancedTestParameter config -useServerConfig no

advancedTestParameter config -removeStreamsAtCompletion false

advancedTestParameter config -ipTTL 10


advancedTestParameter config -udpSourcePort 7


advancedTestParameter config -udpDestPort 7


advancedTestParameter config -verifyAllArpReply false

advancedTestParameter config -percentLossFormat 7.3


advancedTestParameter config -streamFrameType "08 00"


advancedTestParameter config -streamPatternType "repeat"


advancedTestParameter config -streamDataPattern "x00010203"


advancedTestParameter config -streamPattern ""


advancedTestParameter config -throughputOffsetCalculation "automatic"


advancedTestParameter config -throughputTagOffset 46


advancedTestParameter config -timestampOffsetCalculation "automatic"


advancedTestParameter config -timestampOffset 50


advancedTestParameter config -primeDut 0

advancedTestParameter config -primeDutTime 2








latency config -framesizeList { 68 }


learn config -when "oncePerTest"


learn config -type mac

learn config -sendRouterSolicitation true

learn config -waitTimeBeforeTransmit 0


learn config -numframes 10


learn config -retries 10


learn config -rate 100


learn config -waitTime 1000


learn config -framesize 64


fastpath config -enable false

fastpath config -numframes 10


fastpath config -rate 100


set testConf(enableInnerVLANTag) false

set testConf(firstInnerVlanID) {min_vlan_id}


set testConf(incrInnerVlanIdInterPort) no

#
# NOTE: If the DUT strips VLAN tags, the minimum
# frame size on Ethernet should be set to 68.
#
set testConf(enable802dot1qTag) true

learn config -snoopConfig false

set testConf(firstVlanID) {min_vlan_id}


set testConf(incrementVlanID) yes

set testConf(vlansPerPort) {stas_nb}


set testConf(enableISLtag) false

set tputMultipleVlans 1

set testConf(ethernetType) "noType"

advancedTestParameter config -l2DataProtocol native

advancedTestParameter config -l2DAIpAddress "127.0.0.1"


#
# Enable Random MAC addresses asignment.
#
set testConf(enableRandomMAC) false

#
# Enable using same random MAC address between runs.
#
set testConf(enableKeepRandomMACAddress) false

set testConf(randomMACSeedValue) 12345


set testConf(firstSrcIpAddress) 198.18.1.100


set testConf(firstDestDUTIpAddress) 198.18.1.101


set testConf(firstMaskWidth) 24



set testConf(firstSrcIpV6Address) 2000:0:0:1::1:100


set testConf(firstDestDUTIpV6Address) 2000:0:0:1::1:1


set testConf(incrIpV6AddressField) "siteLevelAggregationId"



set testConf(firstSrcIpxSocket) "0x4011"


set testConf(firstSrcIpAddress) 198.18.1.100


set testConf(firstDestDUTIpAddress) 198.18.1.101


set testConf(firstMaskWidth) 24


set testConf(firstSrcIpV6Address) 2000:0:0:1::1:100


set testConf(firstDestDUTIpV6Address) 2000:0:0:1::1:1


set testConf(incrIpV6AddressField) "siteLevelAggregationId"


set testConf(incrDUTaddress) no

#
set testConf(protocolOverIp) "udp"


set testConf(protocolSourcePort) 7


set testConf(protocolDestinationPort) 7


#
set testConf(incrementSourcePort) false

#
set testConf(incrementSourceAddressPort) false

#
set testConf(incrementDestinationPort) false

#
set testConf(incrementDestinationAddressPort) false

set testConf(autoMapGeneration) "no"


set testConf(mapDirection) unidirectional


set testConf(mapFromPort) {1 3 1}


set testConf(mapToPort) {1 3 2}


set testConf(mapTransmitPort) {1 1 1}


set testConf(mapReceivePort) {1 1 1}


map config -echo false

latency config -rateSelect "mbpsRate"






latency config -mbpsRate 1





set testConf(passFailEnable) 0

set testConf(passFailLatencyType) "average"


set testConf(passFailLatencyValue) 1.0


set testConf(passFailLatencyUnit) "us"


user config -productname ""


user config -version ""


user config -serial# ""


#
# Indicates the username to show in reports
#
user config -username ""


user config -comments ""


results config -fileBackup false

results config -flatDir false

set testConf(uniqueResultsName) false

set testConf(userResultDir) false
#
# The results will be printed in test suite and test sub-directories
# under this parent results directory.
#
results config -directory "/home/spidcom/ixos/Results/"


#
# Indicates the username for use in port ownership
#
set testConf(loginId) "provence"


#
# Real time graphs configuration
#
set statViewer(config) "<?xml version=\"1.0\"?><StatViewer version=\"3.15.11.25\"><SessionList Key=\"aptixia.sv.persistence.SessionListWrapper\"><CONTENT /><PRESENTATION /><COMBINED><Sessions><Session Key=\"aptixia.sv.persistence.SessionWrapper\"><CONTENT><Frequency value=\"1\" /><CsvLogging value=\"True\" /><CsvLoggingHiddenViews value=\"False\" /><EnableDataStore value=\"True\" /><PersistenceType value=\"4\" /><EnableDataStoreHiddenViews value=\"False\" /><CsvOutputFrequencyMultiple value=\"1\" /><OutputDSFrequencyMultiple value=\"1\" /><MaxStatsPerCustomGraph value=\"16\" /><CsvFilePath /><Alerts><Alerts xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" /></Alerts><DefaultViews><DefaultViews><DefaultView>Port CPU Statistics</DefaultView></DefaultViews></DefaultViews></CONTENT><PRESENTATION /><COMBINED><Views><View Key=\"RealTime-AggregatedStatsCount\"><CONTENT><ViewXml></ViewXml><CsvLogging value=\"False\" /><DatastoreEnabled value=\"False\" /><Enabled value=\"True\" /><ContentPersistanceType value=\"kPersistInUserSettings\" /><DatastorePollingMultiplier value=\"1\" /><CsvPollingMultiplier value=\"1\" /></CONTENT><PRESENTATION /><COMBINED /></View><View Key=\"RealTime-Per-PortStatsCount\"><CONTENT><ViewXml></ViewXml><CsvLogging value=\"False\" /><DatastoreEnabled value=\"False\" /><Enabled value=\"True\" /><ContentPersistanceType value=\"kPersistInUserSettings\" /><DatastorePollingMultiplier value=\"1\" /><CsvPollingMultiplier value=\"1\" /></CONTENT><PRESENTATION /><COMBINED /></View><View Key=\"Port CPU Statistics\"><CONTENT><ViewXml></ViewXml><CsvLogging value=\"False\" /><DatastoreEnabled value=\"False\" /><Enabled value=\"True\" /><ContentPersistanceType value=\"kPersistInUserSettings\" /><DatastorePollingMultiplier value=\"1\" /><CsvPollingMultiplier value=\"1\" /></CONTENT><PRESENTATION /><COMBINED /></View></Views><LinkedViews /></COMBINED></Session></Sessions></COMBINED></SessionList><Group name=\"Views\" version=\"1\"><Group name=\"Defaults\" order=\"0\" accessLevel=\"1\"><Group name=\"Ports\" order=\"0\" accessLevel=\"1\" /></Group></Group><Snmp Key=\"aptixia.sv.persistence.SnmpPersistance\"><CONTENT><SnmpConfiguration value=\"&lt;snmpconf&gt;&lt;snmpvar name=&quot;Snmp&quot; active=&quot;true&quot; description=&quot;&quot;&gt;&lt;children /&gt;&lt;/snmpvar&gt;&lt;snmpdev&gt;&lt;children /&gt;&lt;/snmpdev&gt;&lt;/snmpconf&gt;\" /></CONTENT><PRESENTATION /><COMBINED /></Snmp></StatViewer>"


#
# Enable/Disable DUT Configuration
#
set testConf(dutConfEnabled) 0

#
# Enable/Disable DUT Configuration in Reports
#
set testConf(dutConfReportEnabled) 0

#
# The command executed at the beginning of the test
#
set testConf(dutConfTestSetupCmd) ""


#
# The command executed in background.
#
set testConf(dutConfTestSetupBackgroundMode) 0

#
# The arguments passed to the command
#
set testConf(dutConfTestSetupArgs) ""


#
# If value is 1, the background command is stopped at cleanup.
#
set testConf(dutConfTestSetupStopAtCleanup) 0

#
# The command executed at the end of the test
#
set testConf(dutConfTestCleanupCmd) ""


#
# The arguments passed to the command
#
set testConf(dutConfTestCleanupArgs) ""


#
# The command executed at the beginning of the trial
#
set testConf(dutConfTrialSetupCmd) ""


#
# The command executed in background.
#
set testConf(dutConfTrialSetupBackgroundMode) 0

#
# The arguments passed to the command
#
set testConf(dutConfTrialSetupArgs) ""


#
# If value is 1, the background command is stopped at cleanup.
#
set testConf(dutConfTrialSetupStopAtCleanup) 0

#
# The command executed at the end of the trial
#
set testConf(dutConfTrialCleanupCmd) ""


#
# The arguments passed to the command
#
set testConf(dutConfTrialCleanupArgs) ""


#
# The command executed at the beginning of the trial
#
set testConf(dutConfFramesizeSetupCmd) ""


#
# The command executed in background.
#
set testConf(dutConfFramesizeSetupBackgroundMode) 0

#
# The arguments passed to the command
#
set testConf(dutConfFramesizeSetupArgs) ""


#
# If value is 1, the background command is stopped at cleanup.
#
set testConf(dutConfFramesizeSetupStopAtCleanup) 0

#
# The command executed at the end of the trial
#
set testConf(dutConfFramesizeCleanupCmd) ""


#
# The arguments passed to the command
#
set testConf(dutConfFramesizeCleanupArgs) ""


#
# The command executed at the beginning of the trial
#
set testConf(dutConfIterationSetupCmd) ""


#
# The command executed in background.
#
set testConf(dutConfIterationSetupBackgroundMode) 0

#
# The arguments passed to the command
#
set testConf(dutConfIterationSetupArgs) ""


#
# If value is 1, the background command is stopped at cleanup.
#
set testConf(dutConfIterationSetupStopAtCleanup) 0

#
# The command executed at the end of the trial
#
set testConf(dutConfIterationCleanupCmd) ""


#
# The arguments passed to the command
#
set testConf(dutConfIterationCleanupArgs) ""


#
# The first arguments passed to each command
#
set testConf(dutConfGlobalArgs) ""


# Enable/Disable DUT Polling
set testConf(dutConfPollingEnabled) 0

# Enable/Disable DUT Polling Reporting
set testConf(dutConfReportPollingEnabled) 0

# User authentification script
set testConf(authenticationEnableScript) ""


# User polling script
set testConf(pollingScript) ""


# DUT polling interval in seconds
set testConf(dutPollingInterval) 10



###################################################
# Begin Config Trailer
###################################################
configTrailer::TestStart
exit
###################################################
# End Config Trailer
###################################################