Merge "ixia: Support of 1 NIC connection to trafficgen"
[vswitchperf.git] / 3rd_party / ixia / ixnetrfc2544.tcl
1 #!/usr/bin/env tclsh
2
3 # Copyright (c) 2014, Ixia
4 # Copyright (c) 2015-2017, Intel Corporation
5 # All rights reserved.
6 #
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted provided that the following conditions
9 # are met:
10 #
11 # 1. Redistributions of source code must retain the above copyright
12 # notice, this list of conditions and the following disclaimer.
13 #
14 # 2. Redistributions in binary form must reproduce the above copyright
15 # notice, this list of conditions and the following disclaimer in the
16 # documentation and/or other materials provided with the distribution.
17 #
18 # 3. Neither the name of the copyright holder nor the names of its
19 # contributors may be used to endorse or promote products derived
20 # from this software without specific prior written permission.
21 #
22 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
25 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
26 # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
27 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
28 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
30 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
32 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 # POSSIBILITY OF SUCH DAMAGE.
34
35 # This file is a modified version of a script generated by Ixia
36 # IxNetwork.
37
38 lappend auto_path [list $lib_path]
39
40 ###################################################################
41 ########################## Configuration ##########################
42 ###################################################################
43
44 # verify that the IXIA chassis spec is given
45
46 set reqVars [list "machine" "port" "user" "chassis" "card" "port1" "port2" "output_dir" "bidir"]
47 set rfc2544test ""
48
49 foreach var $reqVars {
50     set var_ns [namespace which -variable "$var"]
51     if { [string compare $var_ns ""] == 0 } {
52         errorMsg "The '$var' variable is undefined. Did you set it?"
53         return -1
54     }
55 }
56
57 # machine configuration
58
59 set ::IxNserver $machine
60 set ::IxNport   $port
61 set ::biDirect  $bidir
62
63 # change to windows path format and append directory
64 set output_dir [string map {"/" "\\"} $output_dir]
65 set output_dir "$output_dir\\rfctests"
66 puts "Output directory is $output_dir"
67
68 proc startRfc2544Test { testSpec trafficSpec } {
69     # Start RFC2544 quicktest.
70
71     # Configure global variables. See documentation on 'global' for more
72     # information on why this is necessary
73     #   https://www.tcl.tk/man/tcl8.5/tutorial/Tcl13.html
74     global rfc2544test
75     global sg_rfc2544throughput
76     global sg_rfc2544back2back
77
78     # Suffix for stack names
79     # This variable should be incremented after setting sg_stack like:
80     # set sg_stack $ixNetSG_Stack(2)/stack:"protocolnamehere-$stack_number"
81     # incr stack_number
82     set stack_number    1
83
84     # flow spec
85
86     set rfc2544TestType         [dict get $testSpec rfc2544TestType]
87
88     set binary                  [dict get $testSpec binary]
89
90     set duration                [dict get $testSpec duration]
91
92     # check if only one tgen port is requested
93     if {($::port1 == $::port2)} {
94         set twoPorts 0
95         set selfDestined True
96     } else {
97         set twoPorts 1
98         set selfDestined False
99     }
100
101     # RFC2544 to IXIA terminology mapping (it affects Ixia configuration inside this script):
102     # Test    => Trial
103     # Trial   => Iteration
104     if {$binary} {
105         set numTests            [dict get $testSpec tests]
106         set frameRate           100
107         set tolerance           [dict get $testSpec lossrate]
108         set loadType            binary
109     } else {
110         set numTests            1
111         set frameRate           [dict get $testSpec framerate]
112         set tolerance           0.0
113         set loadType            custom
114     }
115
116     set learningFrames          True
117
118     set L2CountValue            1
119     set L2Increment             False
120     set L3ValueType             singleValue
121     set L3CountValue            1
122     set L4ValueType             singleValue
123     set L4CountValue            1
124
125     if {$learningFrames} {
126         set learningFrequency   oncePerTest
127         set fastPathEnable      True
128     } else {
129         set learningFrequency   never
130         set fastPathEnable      False
131     }
132
133     set multipleStreams         [dict get $testSpec multipleStreams]
134     set streamType              [dict get $testSpec streamType]
135
136     if {($multipleStreams < 0)} {
137         set multipleStreams     0
138     }
139
140     if {$multipleStreams} {
141         if {($streamType == "L2")} {
142             set L2CountValue    $multipleStreams
143             set L2Increment     True
144         } elseif {($streamType == "L3")} {
145             set L3ValueType     increment
146             set L3CountValue    $multipleStreams
147         } else {
148             set L4ValueType     increment
149             set L4CountValue    $multipleStreams
150         }
151     }
152
153     set fastConvergence         True
154     set convergenceDuration     [expr $duration/10]
155
156     # traffic spec
157
158     # extract nested dictionaries
159     set trafficSpec_l2          [dict get $trafficSpec l2]
160     set trafficSpec_l3          [dict get $trafficSpec l3]
161     set trafficSpec_l4          [dict get $trafficSpec l4]
162     set trafficSpec_vlan        [dict get $trafficSpec vlan]
163
164     set frameSize               [dict get $trafficSpec_l2 framesize]
165     set srcMac                  [dict get $trafficSpec_l2 srcmac]
166     set dstMac                  [dict get $trafficSpec_l2 dstmac]
167
168     set proto                   [dict get $trafficSpec_l3 proto]
169     set srcIp                   [dict get $trafficSpec_l3 srcip]
170     set dstIp                   [dict get $trafficSpec_l3 dstip]
171
172     set srcPort                 [dict get $trafficSpec_l4 srcport]
173     set dstPort                 [dict get $trafficSpec_l4 dstport]
174
175     set l3Enabled               [dict get $trafficSpec_l3 enabled]
176     set l4Enabled               [dict get $trafficSpec_l4 enabled]
177     set vlanEnabled             [dict get $trafficSpec_vlan enabled]
178
179     if {$vlanEnabled == 1 } {
180         # these keys won't exist if vlan wasn't enabled
181         set vlanId                  [dict get $trafficSpec_vlan id]
182         set vlanUserPrio            [dict get $trafficSpec_vlan priority]
183         set vlanCfi                 [dict get $trafficSpec_vlan cfi]
184     } else {
185         set vlanId                  0
186         set vlanUserPrio            0
187         set vlanCfi                 0
188     }
189
190     if {$frameSize < 68 } {
191         if {$rfc2544TestType == "back2back"} {
192             puts "INFO: Packet size too small, packet size will be \
193                   increased to 68 for this test"
194         }
195     }
196     # constants
197
198     set VERSION [package require IxTclNetwork]
199
200     ###################################################################
201     ############################ Operation ############################
202     ###################################################################
203
204     puts "Connecting to IxNetwork machine..."
205
206     ixNet connect $::IxNserver -port $::IxNport -version $VERSION
207
208     puts "Connected to IxNetwork machine"
209
210     puts "Configuring IxNetwork machine..."
211
212     set ::_sg_cc 0
213     proc sg_commit {} {ixNet commit}
214
215     ixNet rollback
216     ixNet setSessionParameter version 6.30.701.16
217     ixNet execute newConfig
218     set ixNetSG_Stack(0) [ixNet getRoot]
219
220     #
221     # setting global options
222     #
223     set sg_top [ixNet getRoot]
224     ixNet setMultiAttrs $sg_top/availableHardware \
225      -offChassisHwM {} \
226      -isOffChassis False
227     ixNet setMultiAttrs $sg_top/globals/preferences \
228      -connectPortsOnLoadConfig True \
229      -rebootPortsOnConnect False
230     ixNet setMultiAttrs $sg_top/globals/interfaces \
231      -arpOnLinkup True \
232      -nsOnLinkup True \
233      -sendSingleArpPerGateway True \
234      -sendSingleNsPerGateway True
235     ixNet setMultiAttrs $sg_top/impairment/defaultProfile/checksums \
236      -dropRxL2FcsErrors False \
237      -correctTxL2FcsErrors False \
238      -alwaysCorrectWhenModifying True \
239      -correctTxChecksumOverIp False \
240      -correctTxIpv4Checksum False
241     ixNet setMultiAttrs $sg_top/impairment/defaultProfile/rxRateLimit \
242      -enabled False \
243      -value 8 \
244      -units {kKilobitsPerSecond}
245     ixNet setMultiAttrs $sg_top/impairment/defaultProfile/drop \
246      -enabled False \
247      -clusterSize 1 \
248      -percentRate 0
249     ixNet setMultiAttrs $sg_top/impairment/defaultProfile/reorder \
250      -enabled False \
251      -clusterSize 1 \
252      -percentRate 0 \
253      -skipCount 1
254     ixNet setMultiAttrs $sg_top/impairment/defaultProfile/duplicate \
255      -enabled False \
256      -clusterSize 1 \
257      -percentRate 0 \
258      -duplicateCount 1
259     ixNet setMultiAttrs $sg_top/impairment/defaultProfile/bitError \
260      -enabled False \
261      -logRate 3 \
262      -skipEndOctets 0 \
263      -skipStartOctets 0
264     ixNet setMultiAttrs $sg_top/impairment/defaultProfile/delay \
265      -enabled False \
266      -value 300 \
267      -units {kMicroseconds}
268     ixNet setMultiAttrs $sg_top/impairment/defaultProfile/delayVariation \
269      -uniformSpread 0 \
270      -enabled False \
271      -units {kMicroseconds} \
272      -distribution {kUniform} \
273      -exponentialMeanArrival 0 \
274      -gaussianStandardDeviation 0
275     ixNet setMultiAttrs $sg_top/impairment/defaultProfile/customDelayVariation \
276      -enabled False \
277      -name {}
278     ixNet setMultiAttrs $sg_top/statistics \
279      -additionalFcoeStat2 fcoeInvalidFrames \
280      -csvLogPollIntervalMultiplier 1 \
281      -pollInterval 2 \
282      -guardrailEnabled True \
283      -enableCsvLogging False \
284      -dataStorePollingIntervalMultiplier 1 \
285      -maxNumberOfStatsPerCustomGraph 16 \
286      -additionalFcoeStat1 fcoeInvalidDelimiter \
287      -timestampPrecision 3 \
288      -enableDataCenterSharedStats False \
289      -timeSynchronization syncTimeToTestStart \
290      -enableAutoDataStore False
291     ixNet setMultiAttrs $sg_top/statistics/measurementMode \
292      -measurementMode mixedMode
293     ixNet setMultiAttrs $sg_top/eventScheduler \
294      -licenseServerLocation {127.0.0.1}
295     ixNet setMultiAttrs $sg_top/traffic \
296      -destMacRetryCount 1 \
297      -maxTrafficGenerationQueries 500 \
298      -enableStaggeredTransmit False \
299      -learningFrameSize $frameSize \
300      -useTxRxSync True \
301      -enableDestMacRetry True \
302      -enableMulticastScalingFactor False \
303      -destMacRetryDelay 5 \
304      -largeErrorThreshhold 2 \
305      -refreshLearnedInfoBeforeApply False \
306      -enableMinFrameSize True \
307      -macChangeOnFly False \
308      -waitTime 1 \
309      -enableInstantaneousStatsSupport False \
310      -learningFramesCount 10 \
311      -globalStreamControl continuous \
312      -displayMplsCurrentLabelValue False \
313      -mplsLabelLearningTimeout 30 \
314      -enableStaggeredStartDelay True \
315      -enableDataIntegrityCheck False \
316      -enableSequenceChecking False \
317      -globalStreamControlIterations 1 \
318      -enableStreamOrdering False \
319      -frameOrderingMode none \
320      -learningFramesRate 100
321     ixNet setMultiAttrs $sg_top/traffic/statistics/latency \
322      -enabled True \
323      -mode storeForward
324     ixNet setMultiAttrs $sg_top/traffic/statistics/interArrivalTimeRate \
325      -enabled False
326     ixNet setMultiAttrs $sg_top/traffic/statistics/delayVariation \
327      -enabled False \
328      -statisticsMode rxDelayVariationErrorsAndRate \
329      -latencyMode storeForward \
330      -largeSequenceNumberErrorThreshold 2
331     ixNet setMultiAttrs $sg_top/traffic/statistics/sequenceChecking \
332      -enabled False \
333      -sequenceMode rxThreshold
334     ixNet setMultiAttrs $sg_top/traffic/statistics/advancedSequenceChecking \
335      -enabled False \
336      -advancedSequenceThreshold 1
337     ixNet setMultiAttrs $sg_top/traffic/statistics/cpdpConvergence \
338      -enabled False \
339      -dataPlaneJitterWindow 10485760 \
340      -dataPlaneThreshold 95 \
341      -enableDataPlaneEventsRateMonitor False \
342      -enableControlPlaneEvents False
343     ixNet setMultiAttrs $sg_top/traffic/statistics/packetLossDuration \
344      -enabled False
345     ixNet setMultiAttrs $sg_top/traffic/statistics/dataIntegrity \
346      -enabled False
347     ixNet setMultiAttrs $sg_top/traffic/statistics/errorStats \
348      -enabled False
349     ixNet setMultiAttrs $sg_top/traffic/statistics/prbs \
350      -enabled False
351     ixNet setMultiAttrs $sg_top/traffic/statistics/iptv \
352      -enabled False
353     ixNet setMultiAttrs $sg_top/traffic/statistics/l1Rates \
354      -enabled False
355     ixNet setMultiAttrs $sg_top/quickTest/globals \
356      -productLabel {Your switch/router name here} \
357      -serialNumber {Your switch/router serial number here} \
358      -version {Your firmware version here} \
359      -comments {} \
360      -titlePageComments {} \
361      -maxLinesToDisplay 100 \
362      -enableCheckLinkState False \
363      -enableAbortIfLinkDown False \
364      -enableSwitchToStats True \
365      -enableCapture False \
366      -enableSwitchToResult True \
367      -enableGenerateReportAfterRun False \
368      -enableRebootCpu False \
369      -saveCaptureBeforeRun False \
370      -linkDownTimeout 5 \
371      -sleepTimeAfterReboot 10 \
372      -useDefaultRootPath False \
373      -outputRootPath $::output_dir
374     sg_commit
375     set sg_top [lindex [ixNet remapIds $sg_top] 0]
376     set ixNetSG_Stack(0) $sg_top
377
378     ###
379     ### /vport area
380     ###
381
382     #
383     # configuring the object that corresponds to /vport:1
384     #
385     set sg_vport [ixNet add $ixNetSG_Stack(0) vport]
386     ixNet setMultiAttrs $sg_vport \
387      -transmitIgnoreLinkStatus False \
388      -txGapControlMode averageMode \
389      -type tenGigLan \
390      -connectedTo ::ixNet::OBJ-null \
391      -txMode interleaved \
392      -isPullOnly False \
393      -rxMode captureAndMeasure \
394      -name {10GE LAN - 001}
395     ixNet setMultiAttrs $sg_vport/l1Config \
396      -currentType tenGigLan
397     ixNet setMultiAttrs $sg_vport/l1Config/tenGigLan \
398      -ppm 0 \
399      -flowControlDirectedAddress "01 80 C2 00 00 01" \
400      -enablePPM False \
401      -autoInstrumentation endOfFrame \
402      -transmitClocking internal \
403      -txIgnoreRxLinkFaults False \
404      -loopback False \
405      -enableLASIMonitoring False \
406      -enabledFlowControl True
407     ixNet setMultiAttrs $sg_vport/l1Config/tenGigLan/oam \
408      -tlvType {00} \
409      -linkEvents False \
410      -enabled False \
411      -vendorSpecificInformation {00 00 00 00} \
412      -macAddress "00:00:00:00:00:00" \
413      -loopback False \
414      -idleTimer 5 \
415      -tlvValue {00} \
416      -enableTlvOption False \
417      -maxOAMPDUSize 64 \
418      -organizationUniqueIdentifier {000000}
419     ixNet setMultiAttrs $sg_vport/l1Config/tenGigLan/fcoe \
420      -supportDataCenterMode False \
421      -priorityGroupSize priorityGroupSize-8 \
422      -pfcPauseDelay 1 \
423      -pfcPriorityGroups {0 1 2 3 4 5 6 7} \
424      -flowControlType ieee802.1Qbb \
425      -enablePFCPauseDelay False
426     ixNet setMultiAttrs $sg_vport/l1Config/fortyGigLan \
427      -ppm 0 \
428      -flowControlDirectedAddress "01 80 C2 00 00 01" \
429      -enablePPM False \
430      -autoInstrumentation endOfFrame \
431      -transmitClocking internal \
432      -txIgnoreRxLinkFaults False \
433      -loopback False \
434      -enableLASIMonitoring False \
435      -enabledFlowControl False
436     ixNet setMultiAttrs $sg_vport/l1Config/fortyGigLan/fcoe \
437      -supportDataCenterMode False \
438      -priorityGroupSize priorityGroupSize-8 \
439      -pfcPauseDelay 1 \
440      -pfcPriorityGroups {0 1 2 3 4 5 6 7} \
441      -flowControlType ieee802.1Qbb \
442      -enablePFCPauseDelay False
443     ixNet setMultiAttrs $sg_vport/l1Config/OAM \
444      -tlvType {00} \
445      -linkEvents False \
446      -enabled False \
447      -vendorSpecificInformation {00 00 00 00} \
448      -macAddress "00:00:00:00:00:00" \
449      -loopback False \
450      -idleTimer 5 \
451      -tlvValue {00} \
452      -enableTlvOption False \
453      -maxOAMPDUSize 64 \
454      -organizationUniqueIdentifier {000000}
455     ixNet setMultiAttrs $sg_vport/l1Config/rxFilters/filterPalette \
456      -sourceAddress1Mask {00:00:00:00:00:00} \
457      -destinationAddress1Mask {00:00:00:00:00:00} \
458      -sourceAddress2 {00:00:00:00:00:00} \
459      -pattern2OffsetType fromStartOfFrame \
460      -pattern2Offset 20 \
461      -pattern1Mask {00} \
462      -sourceAddress2Mask {00:00:00:00:00:00} \
463      -destinationAddress2 {00:00:00:00:00:00} \
464      -destinationAddress1 {00:00:00:00:00:00} \
465      -sourceAddress1 {00:00:00:00:00:00} \
466      -pattern1 {00} \
467      -destinationAddress2Mask {00:00:00:00:00:00} \
468      -pattern2Mask {00} \
469      -pattern1Offset 20 \
470      -pattern2 {00} \
471      -pattern1OffsetType fromStartOfFrame
472     ixNet setMultiAttrs $sg_vport/protocols/arp \
473      -enabled False
474     ixNet setMultiAttrs $sg_vport/protocols/bfd \
475      -enabled False \
476      -intervalValue 0 \
477      -packetsPerInterval 0
478     ixNet setMultiAttrs $sg_vport/protocols/bgp \
479      -autoFillUpDutIp False \
480      -disableReceivedUpdateValidation False \
481      -enableAdVplsPrefixLengthInBits False \
482      -enableExternalActiveConnect True \
483      -enableInternalActiveConnect True \
484      -enableVpnLabelExchangeOverLsp True \
485      -enabled False \
486      -externalRetries 0 \
487      -externalRetryDelay 120 \
488      -internalRetries 0 \
489      -internalRetryDelay 120 \
490      -mldpP2mpFecType 6 \
491      -triggerVplsPwInitiation False
492     ixNet setMultiAttrs $sg_vport/protocols/cfm \
493      -enableOptionalLmFunctionality False \
494      -enableOptionalTlvValidation True \
495      -enabled False \
496      -receiveCcm True \
497      -sendCcm True \
498      -suppressErrorsOnAis True
499     ixNet setMultiAttrs $sg_vport/protocols/eigrp \
500      -enabled False
501     ixNet setMultiAttrs $sg_vport/protocols/elmi \
502      -enabled False
503     ixNet setMultiAttrs $sg_vport/protocols/igmp \
504      -enabled False \
505      -numberOfGroups 0 \
506      -numberOfQueries 0 \
507      -queryTimePeriod 0 \
508      -sendLeaveOnStop True \
509      -statsEnabled False \
510      -timePeriod 0
511     ixNet setMultiAttrs $sg_vport/protocols/isis \
512      -allL1RbridgesMac "01:80:c2:00:00:40" \
513      -emulationType isisL3Routing \
514      -enabled False \
515      -helloMulticastMac "01:80:c2:00:00:41" \
516      -lspMgroupPdusPerInterval 0 \
517      -nlpId 192 \
518      -rateControlInterval 0 \
519      -sendP2PHellosToUnicastMac True \
520      -spbAllL1BridgesMac "09:00:2b:00:00:05" \
521      -spbHelloMulticastMac "09:00:2b:00:00:05" \
522      -spbNlpId 192
523     ixNet setMultiAttrs $sg_vport/protocols/lacp \
524      -enablePreservePartnerInfo False \
525      -enabled False
526     ixNet setMultiAttrs $sg_vport/protocols/ldp \
527      -enableDiscardSelfAdvFecs False \
528      -enableHelloJitter True \
529      -enableVpnLabelExchangeOverLsp True \
530      -enabled False \
531      -helloHoldTime 15 \
532      -helloInterval 5 \
533      -keepAliveHoldTime 30 \
534      -keepAliveInterval 10 \
535      -p2mpCapabilityParam 1288 \
536      -p2mpFecType 6 \
537      -targetedHelloInterval 15 \
538      -targetedHoldTime 45 \
539      -useTransportLabelsForMplsOam False
540     ixNet setMultiAttrs $sg_vport/protocols/linkOam \
541      -enabled False
542     ixNet setMultiAttrs $sg_vport/protocols/lisp \
543      -burstIntervalInMs 0 \
544      -enabled False \
545      -ipv4MapRegisterPacketsPerBurst 0 \
546      -ipv4MapRequestPacketsPerBurst 0 \
547      -ipv4SmrPacketsPerBurst 0 \
548      -ipv6MapRegisterPacketsPerBurst 0 \
549      -ipv6MapRequestPacketsPerBurst 0 \
550      -ipv6SmrPacketsPerBurst 0
551     ixNet setMultiAttrs $sg_vport/protocols/mld \
552      -enableDoneOnStop True \
553      -enabled False \
554      -mldv2Report type143 \
555      -numberOfGroups 0 \
556      -numberOfQueries 0 \
557      -queryTimePeriod 0 \
558      -timePeriod 0
559     ixNet setMultiAttrs $sg_vport/protocols/mplsOam \
560      -enabled False
561     ixNet setMultiAttrs $sg_vport/protocols/mplsTp \
562      -apsChannelType {00 02 } \
563      -bfdCcChannelType {00 07 } \
564      -delayManagementChannelType {00 05 } \
565      -enableHighPerformanceMode True \
566      -enabled False \
567      -faultManagementChannelType {00 58 } \
568      -lossMeasurementChannelType {00 04 } \
569      -onDemandCvChannelType {00 09 } \
570      -pwStatusChannelType {00 0B } \
571      -y1731ChannelType {7F FA }
572     ixNet setMultiAttrs $sg_vport/protocols/ospf \
573      -enableDrOrBdr False \
574      -enabled False \
575      -floodLinkStateUpdatesPerInterval 0 \
576      -rateControlInterval 0
577     ixNet setMultiAttrs $sg_vport/protocols/ospfV3 \
578      -enabled False
579     ixNet setMultiAttrs $sg_vport/protocols/pimsm \
580      -bsmFramePerInterval 0 \
581      -crpFramePerInterval 0 \
582      -dataMdtFramePerInterval 0 \
583      -denyGrePimIpPrefix {0.0.0.0/32} \
584      -enableDiscardJoinPruneProcessing False \
585      -enableRateControl False \
586      -enabled False \
587      -helloMsgsPerInterval 0 \
588      -interval 0 \
589      -joinPruneMessagesPerInterval 0 \
590      -registerMessagesPerInterval 0 \
591      -registerStopMessagesPerInterval 0
592     ixNet setMultiAttrs $sg_vport/protocols/ping \
593      -enabled False
594     ixNet setMultiAttrs $sg_vport/protocols/rip \
595      -enabled False
596     ixNet setMultiAttrs $sg_vport/protocols/ripng \
597      -enabled False
598     ixNet setMultiAttrs $sg_vport/protocols/rsvp \
599      -enableControlLspInitiationRate False \
600      -enableShowTimeValue False \
601      -enableVpnLabelExchangeOverLsp True \
602      -enabled False \
603      -maxLspInitiationsPerSec 400 \
604      -useTransportLabelsForMplsOam False
605     ixNet setMultiAttrs $sg_vport/protocols/stp \
606      -enabled False
607     ixNet setMultiAttrs $sg_vport/rateControlParameters \
608      -maxRequestsPerBurst 1 \
609      -maxRequestsPerSec 250 \
610      -minRetryInterval 10 \
611      -retryCount 3 \
612      -sendInBursts False \
613      -sendRequestsAsFastAsPossible False
614     ixNet setMultiAttrs $sg_vport/capture \
615      -controlCaptureTrigger {} \
616      -controlCaptureFilter {} \
617      -hardwareEnabled False \
618      -softwareEnabled False \
619      -displayFiltersDataCapture {} \
620      -displayFiltersControlCapture {} \
621      -controlBufferSize 30 \
622      -controlBufferBehaviour bufferLiveNonCircular
623     ixNet setMultiAttrs $sg_vport/protocolStack/options \
624      -routerSolicitationDelay 1 \
625      -routerSolicitationInterval 4 \
626      -routerSolicitations 3 \
627      -retransTime 1000 \
628      -dadTransmits 1 \
629      -dadEnabled True \
630      -ipv4RetransTime 3000 \
631      -ipv4McastSolicit 4
632     sg_commit
633     set sg_vport [lindex [ixNet remapIds $sg_vport] 0]
634     set ixNetSG_ref(2) $sg_vport
635     set ixNetSG_Stack(1) $sg_vport
636
637     #
638     # configuring the object that corresponds to /vport:1/l1Config/rxFilters/uds:1
639     #
640     set sg_uds $ixNetSG_Stack(1)/l1Config/rxFilters/uds:1
641     ixNet setMultiAttrs $sg_uds \
642      -destinationAddressSelector anyAddr \
643      -customFrameSizeTo 0 \
644      -customFrameSizeFrom 0 \
645      -error errAnyFrame \
646      -patternSelector anyPattern \
647      -sourceAddressSelector anyAddr \
648      -isEnabled True \
649      -frameSizeType any
650     sg_commit
651     set sg_uds [lindex [ixNet remapIds $sg_uds] 0]
652
653     #
654     # configuring the object that corresponds to /vport:1/l1Config/rxFilters/uds:2
655     #
656     set sg_uds $ixNetSG_Stack(1)/l1Config/rxFilters/uds:2
657     ixNet setMultiAttrs $sg_uds \
658      -destinationAddressSelector anyAddr \
659      -customFrameSizeTo 0 \
660      -customFrameSizeFrom 0 \
661      -error errAnyFrame \
662      -patternSelector anyPattern \
663      -sourceAddressSelector anyAddr \
664      -isEnabled True \
665      -frameSizeType any
666     sg_commit
667     set sg_uds [lindex [ixNet remapIds $sg_uds] 0]
668
669     #
670     # configuring the object that corresponds to /vport:1/l1Config/rxFilters/uds:3
671     #
672     set sg_uds $ixNetSG_Stack(1)/l1Config/rxFilters/uds:3
673     ixNet setMultiAttrs $sg_uds \
674      -destinationAddressSelector anyAddr \
675      -customFrameSizeTo 0 \
676      -customFrameSizeFrom 0 \
677      -error errAnyFrame \
678      -patternSelector anyPattern \
679      -sourceAddressSelector anyAddr \
680      -isEnabled True \
681      -frameSizeType any
682     sg_commit
683     set sg_uds [lindex [ixNet remapIds $sg_uds] 0]
684
685     #
686     # configuring the object that corresponds to /vport:1/l1Config/rxFilters/uds:4
687     #
688     set sg_uds $ixNetSG_Stack(1)/l1Config/rxFilters/uds:4
689     ixNet setMultiAttrs $sg_uds \
690      -destinationAddressSelector anyAddr \
691      -customFrameSizeTo 0 \
692      -customFrameSizeFrom 0 \
693      -error errAnyFrame \
694      -patternSelector anyPattern \
695      -sourceAddressSelector anyAddr \
696      -isEnabled True \
697      -frameSizeType any
698     sg_commit
699     set sg_uds [lindex [ixNet remapIds $sg_uds] 0]
700
701     #
702     # configuring the object that corresponds to /vport:1/l1Config/rxFilters/uds:5
703     #
704     set sg_uds $ixNetSG_Stack(1)/l1Config/rxFilters/uds:5
705     ixNet setMultiAttrs $sg_uds \
706      -destinationAddressSelector anyAddr \
707      -customFrameSizeTo 0 \
708      -customFrameSizeFrom 0 \
709      -error errAnyFrame \
710      -patternSelector anyPattern \
711      -sourceAddressSelector anyAddr \
712      -isEnabled True \
713      -frameSizeType any
714     sg_commit
715     set sg_uds [lindex [ixNet remapIds $sg_uds] 0]
716
717     #
718     # configuring the object that corresponds to /vport:1/l1Config/rxFilters/uds:6
719     #
720     set sg_uds $ixNetSG_Stack(1)/l1Config/rxFilters/uds:6
721     ixNet setMultiAttrs $sg_uds \
722      -destinationAddressSelector anyAddr \
723      -customFrameSizeTo 0 \
724      -customFrameSizeFrom 0 \
725      -error errAnyFrame \
726      -patternSelector anyPattern \
727      -sourceAddressSelector anyAddr \
728      -isEnabled True \
729      -frameSizeType any
730     sg_commit
731     set sg_uds [lindex [ixNet remapIds $sg_uds] 0]
732
733     #
734     # configuring the object that corresponds to /vport:1/protocols/static/lan:1
735     #
736     set sg_lan [ixNet add $ixNetSG_Stack(1)/protocols/static lan]
737     ixNet setMultiAttrs $sg_lan \
738      -atmEncapsulation ::ixNet::OBJ-null \
739      -count $L2CountValue \
740      -countPerVc 1 \
741      -enableIncrementMac $L2Increment \
742      -enableIncrementVlan False \
743      -enableSiteId False \
744      -enableVlan False \
745      -enabled True \
746      -frEncapsulation ::ixNet::OBJ-null \
747      -incrementPerVcVlanMode noIncrement \
748      -incrementVlanMode noIncrement \
749      -mac $srcMac \
750      -macRangeMode normal \
751      -numberOfVcs 1 \
752      -siteId 0 \
753      -skipVlanIdZero True \
754      -tpid {0x8100} \
755      -trafficGroupId ::ixNet::OBJ-null \
756      -vlanCount 1 \
757      -vlanId {1} \
758      -vlanPriority {0}
759     sg_commit
760     set sg_lan [lindex [ixNet remapIds $sg_lan] 0]
761
762     if {$twoPorts} {
763         #
764         # configuring the object that corresponds to /vport:2
765         #
766         set sg_vport [ixNet add $ixNetSG_Stack(0) vport]
767         ixNet setMultiAttrs $sg_vport \
768          -transmitIgnoreLinkStatus False \
769          -txGapControlMode averageMode \
770          -type tenGigLan \
771          -connectedTo ::ixNet::OBJ-null \
772          -txMode interleaved \
773          -isPullOnly False \
774          -rxMode captureAndMeasure \
775          -name {10GE LAN - 002}
776         ixNet setMultiAttrs $sg_vport/l1Config \
777          -currentType tenGigLan
778         ixNet setMultiAttrs $sg_vport/l1Config/tenGigLan \
779          -ppm 0 \
780          -flowControlDirectedAddress "01 80 C2 00 00 01" \
781          -enablePPM False \
782          -autoInstrumentation endOfFrame \
783          -transmitClocking internal \
784          -txIgnoreRxLinkFaults False \
785          -loopback False \
786          -enableLASIMonitoring False \
787          -enabledFlowControl False
788         ixNet setMultiAttrs $sg_vport/l1Config/tenGigLan/oam \
789          -tlvType {00} \
790          -linkEvents False \
791          -enabled False \
792          -vendorSpecificInformation {00 00 00 00} \
793          -macAddress "00:00:00:00:00:00" \
794          -loopback False \
795          -idleTimer 5 \
796          -tlvValue {00} \
797          -enableTlvOption False \
798          -maxOAMPDUSize 64 \
799          -organizationUniqueIdentifier {000000}
800         ixNet setMultiAttrs $sg_vport/l1Config/tenGigLan/fcoe \
801          -supportDataCenterMode False \
802          -priorityGroupSize priorityGroupSize-8 \
803          -pfcPauseDelay 1 \
804          -pfcPriorityGroups {0 1 2 3 4 5 6 7} \
805          -flowControlType ieee802.1Qbb \
806          -enablePFCPauseDelay False
807         ixNet setMultiAttrs $sg_vport/l1Config/fortyGigLan \
808          -ppm 0 \
809          -flowControlDirectedAddress "01 80 C2 00 00 01" \
810          -enablePPM False \
811          -autoInstrumentation endOfFrame \
812          -transmitClocking internal \
813          -txIgnoreRxLinkFaults False \
814          -loopback False \
815          -enableLASIMonitoring False \
816          -enabledFlowControl False
817         ixNet setMultiAttrs $sg_vport/l1Config/fortyGigLan/fcoe \
818          -supportDataCenterMode False \
819          -priorityGroupSize priorityGroupSize-8 \
820          -pfcPauseDelay 1 \
821          -pfcPriorityGroups {0 1 2 3 4 5 6 7} \
822          -flowControlType ieee802.1Qbb \
823          -enablePFCPauseDelay False
824         ixNet setMultiAttrs $sg_vport/l1Config/OAM \
825          -tlvType {00} \
826          -linkEvents False \
827          -enabled False \
828          -vendorSpecificInformation {00 00 00 00} \
829          -macAddress "00:00:00:00:00:00" \
830          -loopback False \
831          -idleTimer 5 \
832          -tlvValue {00} \
833          -enableTlvOption False \
834          -maxOAMPDUSize 64 \
835          -organizationUniqueIdentifier {000000}
836         ixNet setMultiAttrs $sg_vport/l1Config/rxFilters/filterPalette \
837          -sourceAddress1Mask {00:00:00:00:00:00} \
838          -destinationAddress1Mask {00:00:00:00:00:00} \
839          -sourceAddress2 {00:00:00:00:00:00} \
840          -pattern2OffsetType fromStartOfFrame \
841          -pattern2Offset 20 \
842          -pattern1Mask {00} \
843          -sourceAddress2Mask {00:00:00:00:00:00} \
844          -destinationAddress2 {00:00:00:00:00:00} \
845          -destinationAddress1 {00:00:00:00:00:00} \
846          -sourceAddress1 {00:00:00:00:00:00} \
847          -pattern1 {00} \
848          -destinationAddress2Mask {00:00:00:00:00:00} \
849          -pattern2Mask {00} \
850          -pattern1Offset 20 \
851          -pattern2 {00} \
852          -pattern1OffsetType fromStartOfFrame
853         ixNet setMultiAttrs $sg_vport/protocols/arp \
854          -enabled False
855         ixNet setMultiAttrs $sg_vport/protocols/bfd \
856          -enabled False \
857          -intervalValue 0 \
858          -packetsPerInterval 0
859         ixNet setMultiAttrs $sg_vport/protocols/bgp \
860          -autoFillUpDutIp False \
861          -disableReceivedUpdateValidation False \
862          -enableAdVplsPrefixLengthInBits False \
863          -enableExternalActiveConnect True \
864          -enableInternalActiveConnect True \
865          -enableVpnLabelExchangeOverLsp True \
866          -enabled False \
867          -externalRetries 0 \
868          -externalRetryDelay 120 \
869          -internalRetries 0 \
870          -internalRetryDelay 120 \
871          -mldpP2mpFecType 6 \
872          -triggerVplsPwInitiation False
873         ixNet setMultiAttrs $sg_vport/protocols/cfm \
874          -enableOptionalLmFunctionality False \
875          -enableOptionalTlvValidation True \
876          -enabled False \
877          -receiveCcm True \
878          -sendCcm True \
879          -suppressErrorsOnAis True
880         ixNet setMultiAttrs $sg_vport/protocols/eigrp \
881          -enabled False
882         ixNet setMultiAttrs $sg_vport/protocols/elmi \
883          -enabled False
884         ixNet setMultiAttrs $sg_vport/protocols/igmp \
885          -enabled False \
886          -numberOfGroups 0 \
887          -numberOfQueries 0 \
888          -queryTimePeriod 0 \
889          -sendLeaveOnStop True \
890          -statsEnabled False \
891          -timePeriod 0
892         ixNet setMultiAttrs $sg_vport/protocols/isis \
893          -allL1RbridgesMac "01:80:c2:00:00:40" \
894          -emulationType isisL3Routing \
895          -enabled False \
896          -helloMulticastMac "01:80:c2:00:00:41" \
897          -lspMgroupPdusPerInterval 0 \
898          -nlpId 192 \
899          -rateControlInterval 0 \
900          -sendP2PHellosToUnicastMac True \
901          -spbAllL1BridgesMac "09:00:2b:00:00:05" \
902          -spbHelloMulticastMac "09:00:2b:00:00:05" \
903          -spbNlpId 192
904         ixNet setMultiAttrs $sg_vport/protocols/lacp \
905          -enablePreservePartnerInfo False \
906          -enabled False
907         ixNet setMultiAttrs $sg_vport/protocols/ldp \
908          -enableDiscardSelfAdvFecs False \
909          -enableHelloJitter True \
910          -enableVpnLabelExchangeOverLsp True \
911          -enabled False \
912          -helloHoldTime 15 \
913          -helloInterval 5 \
914          -keepAliveHoldTime 30 \
915          -keepAliveInterval 10 \
916          -p2mpCapabilityParam 1288 \
917          -p2mpFecType 6 \
918          -targetedHelloInterval 15 \
919          -targetedHoldTime 45 \
920          -useTransportLabelsForMplsOam False
921         ixNet setMultiAttrs $sg_vport/protocols/linkOam \
922          -enabled False
923         ixNet setMultiAttrs $sg_vport/protocols/lisp \
924          -burstIntervalInMs 0 \
925          -enabled False \
926          -ipv4MapRegisterPacketsPerBurst 0 \
927          -ipv4MapRequestPacketsPerBurst 0 \
928          -ipv4SmrPacketsPerBurst 0 \
929          -ipv6MapRegisterPacketsPerBurst 0 \
930          -ipv6MapRequestPacketsPerBurst 0 \
931          -ipv6SmrPacketsPerBurst 0
932         ixNet setMultiAttrs $sg_vport/protocols/mld \
933          -enableDoneOnStop True \
934          -enabled False \
935          -mldv2Report type143 \
936          -numberOfGroups 0 \
937          -numberOfQueries 0 \
938          -queryTimePeriod 0 \
939          -timePeriod 0
940         ixNet setMultiAttrs $sg_vport/protocols/mplsOam \
941          -enabled False
942         ixNet setMultiAttrs $sg_vport/protocols/mplsTp \
943          -apsChannelType {00 02 } \
944          -bfdCcChannelType {00 07 } \
945          -delayManagementChannelType {00 05 } \
946          -enableHighPerformanceMode True \
947          -enabled False \
948          -faultManagementChannelType {00 58 } \
949          -lossMeasurementChannelType {00 04 } \
950          -onDemandCvChannelType {00 09 } \
951          -pwStatusChannelType {00 0B } \
952          -y1731ChannelType {7F FA }
953         ixNet setMultiAttrs $sg_vport/protocols/ospf \
954          -enableDrOrBdr False \
955          -enabled False \
956          -floodLinkStateUpdatesPerInterval 0 \
957          -rateControlInterval 0
958         ixNet setMultiAttrs $sg_vport/protocols/ospfV3 \
959          -enabled False
960         ixNet setMultiAttrs $sg_vport/protocols/pimsm \
961          -bsmFramePerInterval 0 \
962          -crpFramePerInterval 0 \
963          -dataMdtFramePerInterval 0 \
964          -denyGrePimIpPrefix {0.0.0.0/32} \
965          -enableDiscardJoinPruneProcessing False \
966          -enableRateControl False \
967          -enabled False \
968          -helloMsgsPerInterval 0 \
969          -interval 0 \
970          -joinPruneMessagesPerInterval 0 \
971          -registerMessagesPerInterval 0 \
972          -registerStopMessagesPerInterval 0
973         ixNet setMultiAttrs $sg_vport/protocols/ping \
974          -enabled False
975         ixNet setMultiAttrs $sg_vport/protocols/rip \
976          -enabled False
977         ixNet setMultiAttrs $sg_vport/protocols/ripng \
978          -enabled False
979         ixNet setMultiAttrs $sg_vport/protocols/rsvp \
980          -enableControlLspInitiationRate False \
981          -enableShowTimeValue False \
982          -enableVpnLabelExchangeOverLsp True \
983          -enabled False \
984          -maxLspInitiationsPerSec 400 \
985          -useTransportLabelsForMplsOam False
986         ixNet setMultiAttrs $sg_vport/protocols/stp \
987          -enabled False
988         ixNet setMultiAttrs $sg_vport/rateControlParameters \
989          -maxRequestsPerBurst 1 \
990          -maxRequestsPerSec 250 \
991          -minRetryInterval 10 \
992          -retryCount 3 \
993          -sendInBursts False \
994          -sendRequestsAsFastAsPossible False
995         ixNet setMultiAttrs $sg_vport/capture \
996          -controlCaptureTrigger {} \
997          -controlCaptureFilter {} \
998          -hardwareEnabled False \
999          -softwareEnabled False \
1000          -displayFiltersDataCapture {} \
1001          -displayFiltersControlCapture {} \
1002          -controlBufferSize 30 \
1003          -controlBufferBehaviour bufferLiveNonCircular
1004         ixNet setMultiAttrs $sg_vport/protocolStack/options \
1005          -routerSolicitationDelay 1 \
1006          -routerSolicitationInterval 4 \
1007          -routerSolicitations 3 \
1008          -retransTime 1000 \
1009          -dadTransmits 1 \
1010          -dadEnabled True \
1011          -ipv4RetransTime 3000 \
1012          -ipv4McastSolicit 4
1013         sg_commit
1014         set sg_vport [lindex [ixNet remapIds $sg_vport] 0]
1015         set ixNetSG_ref(10) $sg_vport
1016         set ixNetSG_Stack(1) $sg_vport
1017
1018         #
1019         # configuring the object that corresponds to /vport:2/l1Config/rxFilters/uds:1
1020         #
1021         set sg_uds $ixNetSG_Stack(1)/l1Config/rxFilters/uds:1
1022         ixNet setMultiAttrs $sg_uds \
1023          -destinationAddressSelector anyAddr \
1024          -customFrameSizeTo 0 \
1025          -customFrameSizeFrom 0 \
1026          -error errAnyFrame \
1027          -patternSelector anyPattern \
1028          -sourceAddressSelector anyAddr \
1029          -isEnabled True \
1030          -frameSizeType any
1031         sg_commit
1032         set sg_uds [lindex [ixNet remapIds $sg_uds] 0]
1033
1034         #
1035         # configuring the object that corresponds to /vport:2/l1Config/rxFilters/uds:2
1036         #
1037         set sg_uds $ixNetSG_Stack(1)/l1Config/rxFilters/uds:2
1038         ixNet setMultiAttrs $sg_uds \
1039          -destinationAddressSelector anyAddr \
1040          -customFrameSizeTo 0 \
1041          -customFrameSizeFrom 0 \
1042          -error errAnyFrame \
1043          -patternSelector anyPattern \
1044          -sourceAddressSelector anyAddr \
1045          -isEnabled True \
1046          -frameSizeType any
1047         sg_commit
1048         set sg_uds [lindex [ixNet remapIds $sg_uds] 0]
1049
1050         #
1051         # configuring the object that corresponds to /vport:2/l1Config/rxFilters/uds:3
1052         #
1053         set sg_uds $ixNetSG_Stack(1)/l1Config/rxFilters/uds:3
1054         ixNet setMultiAttrs $sg_uds \
1055          -destinationAddressSelector anyAddr \
1056          -customFrameSizeTo 0 \
1057          -customFrameSizeFrom 0 \
1058          -error errAnyFrame \
1059          -patternSelector anyPattern \
1060          -sourceAddressSelector anyAddr \
1061          -isEnabled True \
1062          -frameSizeType any
1063         sg_commit
1064         set sg_uds [lindex [ixNet remapIds $sg_uds] 0]
1065
1066         #
1067         # configuring the object that corresponds to /vport:2/l1Config/rxFilters/uds:4
1068         #
1069         set sg_uds $ixNetSG_Stack(1)/l1Config/rxFilters/uds:4
1070         ixNet setMultiAttrs $sg_uds \
1071          -destinationAddressSelector anyAddr \
1072          -customFrameSizeTo 0 \
1073          -customFrameSizeFrom 0 \
1074          -error errAnyFrame \
1075          -patternSelector anyPattern \
1076          -sourceAddressSelector anyAddr \
1077          -isEnabled True \
1078          -frameSizeType any
1079         sg_commit
1080         set sg_uds [lindex [ixNet remapIds $sg_uds] 0]
1081
1082         #
1083         # configuring the object that corresponds to /vport:2/l1Config/rxFilters/uds:5
1084         #
1085         set sg_uds $ixNetSG_Stack(1)/l1Config/rxFilters/uds:5
1086         ixNet setMultiAttrs $sg_uds \
1087          -destinationAddressSelector anyAddr \
1088          -customFrameSizeTo 0 \
1089          -customFrameSizeFrom 0 \
1090          -error errAnyFrame \
1091          -patternSelector anyPattern \
1092          -sourceAddressSelector anyAddr \
1093          -isEnabled True \
1094          -frameSizeType any
1095         sg_commit
1096         set sg_uds [lindex [ixNet remapIds $sg_uds] 0]
1097
1098         #
1099         # configuring the object that corresponds to /vport:2/l1Config/rxFilters/uds:6
1100         #
1101         set sg_uds $ixNetSG_Stack(1)/l1Config/rxFilters/uds:6
1102         ixNet setMultiAttrs $sg_uds \
1103          -destinationAddressSelector anyAddr \
1104          -customFrameSizeTo 0 \
1105          -customFrameSizeFrom 0 \
1106          -error errAnyFrame \
1107          -patternSelector anyPattern \
1108          -sourceAddressSelector anyAddr \
1109          -isEnabled True \
1110          -frameSizeType any
1111         sg_commit
1112         set sg_uds [lindex [ixNet remapIds $sg_uds] 0]
1113
1114         #
1115         # configuring the object that corresponds to /vport:2/protocols/static/lan:1
1116         #
1117         set sg_lan [ixNet add $ixNetSG_Stack(1)/protocols/static lan]
1118         ixNet setMultiAttrs $sg_lan \
1119          -atmEncapsulation ::ixNet::OBJ-null \
1120          -count $L2CountValue \
1121          -countPerVc 1 \
1122          -enableIncrementMac $L2Increment \
1123          -enableIncrementVlan False \
1124          -enableSiteId False \
1125          -enableVlan False \
1126          -enabled True \
1127          -frEncapsulation ::ixNet::OBJ-null \
1128          -incrementPerVcVlanMode noIncrement \
1129          -incrementVlanMode noIncrement \
1130          -mac $dstMac \
1131          -macRangeMode normal \
1132          -numberOfVcs 1 \
1133          -siteId 0 \
1134          -skipVlanIdZero True \
1135          -tpid {0x8100} \
1136          -trafficGroupId ::ixNet::OBJ-null \
1137          -vlanCount 1 \
1138          -vlanId {1} \
1139          -vlanPriority {0}
1140         sg_commit
1141         set sg_lan [lindex [ixNet remapIds $sg_lan] 0]
1142     }
1143
1144     ###
1145     ### /availableHardware area
1146     ###
1147
1148     #
1149     # configuring the object that corresponds to /availableHardware/chassis"
1150     #
1151     set sg_chassis [ixNet add $ixNetSG_Stack(0)/availableHardware chassis]
1152     ixNet setMultiAttrs $sg_chassis \
1153      -masterChassis {} \
1154      -sequenceId 1 \
1155      -cableLength 0 \
1156      -hostname $::chassis
1157     sg_commit
1158     set sg_chassis [lindex [ixNet remapIds $sg_chassis] 0]
1159     set ixNetSG_Stack(1) $sg_chassis
1160
1161     #
1162     # configuring the object that corresponds to /availableHardware/chassis/card
1163     #
1164     set sg_card $ixNetSG_Stack(1)/card:$::card
1165     ixNet setMultiAttrs $sg_card \
1166      -aggregationMode normal
1167     sg_commit
1168     set sg_card [lindex [ixNet remapIds $sg_card] 0]
1169     set ixNetSG_ref(19) $sg_card
1170     set ixNetSG_Stack(2) $sg_card
1171
1172     #
1173     # configuring the object that corresponds to /availableHardware/chassis/card/aggregation:1
1174     #
1175     set sg_aggregation $ixNetSG_Stack(2)/aggregation:1
1176     ixNet setMultiAttrs $sg_aggregation \
1177      -mode normal
1178     sg_commit
1179     set sg_aggregation [lindex [ixNet remapIds $sg_aggregation] 0]
1180
1181     #
1182     # configuring the object that corresponds to /availableHardware/chassis/card/aggregation:2
1183     #
1184     set sg_aggregation $ixNetSG_Stack(2)/aggregation:2
1185     ixNet setMultiAttrs $sg_aggregation \
1186      -mode normal
1187     sg_commit
1188     set sg_aggregation [lindex [ixNet remapIds $sg_aggregation] 0]
1189
1190     #
1191     # configuring the object that corresponds to /availableHardware/chassis/card/aggregation:3
1192     #
1193     set sg_aggregation $ixNetSG_Stack(2)/aggregation:3
1194     ixNet setMultiAttrs $sg_aggregation \
1195      -mode normal
1196     sg_commit
1197     set sg_aggregation [lindex [ixNet remapIds $sg_aggregation] 0]
1198
1199     #
1200     # configuring the object that corresponds to /availableHardware/chassis/card/aggregation:4
1201     #
1202     set sg_aggregation $ixNetSG_Stack(2)/aggregation:4
1203     ixNet setMultiAttrs $sg_aggregation \
1204      -mode normal
1205     sg_commit
1206     set sg_aggregation [lindex [ixNet remapIds $sg_aggregation] 0]
1207     ixNet setMultiAttrs $ixNetSG_ref(2) \
1208      -connectedTo $ixNetSG_ref(19)/port:$::port1
1209     sg_commit
1210     if {$twoPorts} {
1211         ixNet setMultiAttrs $ixNetSG_ref(10) \
1212          -connectedTo $ixNetSG_ref(19)/port:$::port2
1213         sg_commit
1214     }
1215     sg_commit
1216
1217     ###
1218     ### /impairment area
1219     ###
1220
1221     #
1222     # configuring the object that corresponds to /impairment/profile:3
1223     #
1224     set sg_profile [ixNet add $ixNetSG_Stack(0)/impairment profile]
1225     ixNet setMultiAttrs $sg_profile \
1226      -enabled False \
1227      -name {Impairment Profile 1} \
1228      -links {} \
1229      -allLinks True \
1230      -priority 1
1231     ixNet setMultiAttrs $sg_profile/checksums \
1232      -dropRxL2FcsErrors False \
1233      -correctTxL2FcsErrors False \
1234      -alwaysCorrectWhenModifying True \
1235      -correctTxChecksumOverIp False \
1236      -correctTxIpv4Checksum False
1237     ixNet setMultiAttrs $sg_profile/rxRateLimit \
1238      -enabled False \
1239      -value 8 \
1240      -units {kKilobitsPerSecond}
1241     ixNet setMultiAttrs $sg_profile/drop \
1242      -enabled True \
1243      -clusterSize 1 \
1244      -percentRate 0
1245     ixNet setMultiAttrs $sg_profile/reorder \
1246      -enabled False \
1247      -clusterSize 1 \
1248      -percentRate 0 \
1249      -skipCount 1
1250     ixNet setMultiAttrs $sg_profile/duplicate \
1251      -enabled False \
1252      -clusterSize 1 \
1253      -percentRate 0 \
1254      -duplicateCount 1
1255     ixNet setMultiAttrs $sg_profile/bitError \
1256      -enabled False \
1257      -logRate 3 \
1258      -skipEndOctets 0 \
1259      -skipStartOctets 0
1260     ixNet setMultiAttrs $sg_profile/delay \
1261      -enabled True \
1262      -value 300 \
1263      -units {kMicroseconds}
1264     ixNet setMultiAttrs $sg_profile/delayVariation \
1265      -uniformSpread 0 \
1266      -enabled False \
1267      -units {kMicroseconds} \
1268      -distribution {kUniform} \
1269      -exponentialMeanArrival 0 \
1270      -gaussianStandardDeviation 0
1271     ixNet setMultiAttrs $sg_profile/customDelayVariation \
1272      -enabled False \
1273      -name {}
1274     sg_commit
1275     set sg_profile [lindex [ixNet remapIds $sg_profile] 0]
1276     set ixNetSG_Stack(1) $sg_profile
1277
1278     #
1279     # configuring the object that corresponds to /impairment/profile:3/fixedClassifier:1
1280     #
1281     set sg_fixedClassifier [ixNet add $ixNetSG_Stack(1) fixedClassifier]
1282     sg_commit
1283     set sg_fixedClassifier [lindex [ixNet remapIds $sg_fixedClassifier] 0]
1284
1285     ###
1286     ### /traffic area
1287     ###
1288
1289     #
1290     # configuring the object that corresponds to /traffic/trafficItem:1
1291     #
1292     set sg_trafficItem [ixNet add $ixNetSG_Stack(0)/traffic trafficItem]
1293     ixNet setMultiAttrs $sg_trafficItem \
1294      -transportRsvpTePreference one \
1295      -trafficItemType l2L3 \
1296      -biDirectional $::biDirect \
1297      -mergeDestinations True \
1298      -hostsPerNetwork 1 \
1299      -transmitMode interleaved \
1300      -ordinalNo 0 \
1301      -trafficType {ethernetVlan} \
1302      -interAsLdpPreference two \
1303      -allowSelfDestined $selfDestined \
1304      -enabled True \
1305      -maxNumberOfVpnLabelStack 2 \
1306      -interAsBgpPreference one \
1307      -suspend False \
1308      -transportLdpPreference two \
1309      -egressEnabled False \
1310      -enableDynamicMplsLabelValues False \
1311      -routeMesh oneToOne \
1312      -name {Traffic Item 1} \
1313      -srcDestMesh oneToOne
1314     sg_commit
1315     set sg_trafficItem [lindex [ixNet remapIds $sg_trafficItem] 0]
1316     set ixNetSG_ref(26) $sg_trafficItem
1317     set ixNetSG_Stack(1) $sg_trafficItem
1318
1319     #
1320     # configuring the object that corresponds to /traffic/trafficItem:1/endpointSet:1
1321     #
1322     set sg_endpointSet [ixNet add $ixNetSG_Stack(1) endpointSet]
1323     if {$twoPorts} {
1324         ixNet setMultiAttrs $sg_endpointSet \
1325          -destinations [list $ixNetSG_ref(10)/protocols] \
1326          -destinationFilter {} \
1327          -sourceFilter {} \
1328          -trafficGroups {} \
1329          -sources [list $ixNetSG_ref(2)/protocols] \
1330          -name {EndpointSet-1}
1331     } else {
1332         ixNet setMultiAttrs $sg_endpointSet \
1333          -destinations [list $ixNetSG_ref(2)/protocols] \
1334          -destinationFilter {} \
1335          -sourceFilter {} \
1336          -trafficGroups {} \
1337          -sources [list $ixNetSG_ref(2)/protocols] \
1338          -name {EndpointSet-1}
1339     }
1340     sg_commit
1341     set sg_endpointSet [lindex [ixNet remapIds $sg_endpointSet] 0]
1342
1343     #
1344     # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1
1345     #
1346     set sg_configElement $ixNetSG_Stack(1)/configElement:1
1347     ixNet setMultiAttrs $sg_configElement \
1348      -crc goodCrc \
1349      -preambleCustomSize 8 \
1350      -enableDisparityError False \
1351      -preambleFrameSizeMode auto \
1352      -destinationMacMode manual
1353     ixNet setMultiAttrs $sg_configElement/frameSize \
1354      -weightedPairs {} \
1355      -fixedSize 64 \
1356      -incrementFrom 64 \
1357      -randomMin 64 \
1358      -randomMax 1518 \
1359      -quadGaussian {} \
1360      -type fixed \
1361      -presetDistribution cisco \
1362      -incrementStep 1 \
1363      -incrementTo 1518
1364     ixNet setMultiAttrs $sg_configElement/frameRate \
1365      -bitRateUnitsType bitsPerSec \
1366      -rate 10 \
1367      -enforceMinimumInterPacketGap 0 \
1368      -type percentLineRate \
1369      -interPacketGapUnitsType nanoseconds
1370     ixNet setMultiAttrs $sg_configElement/framePayload \
1371      -type incrementByte \
1372      -customRepeat True \
1373      -customPattern {}
1374     ixNet setMultiAttrs $sg_configElement/frameRateDistribution \
1375      -streamDistribution applyRateToAll \
1376      -portDistribution applyRateToAll
1377     ixNet setMultiAttrs $sg_configElement/transmissionControl \
1378      -frameCount 1 \
1379      -minGapBytes 12 \
1380      -interStreamGap 0 \
1381      -interBurstGap 0 \
1382      -interBurstGapUnits nanoseconds \
1383      -type continuous \
1384      -duration 1 \
1385      -repeatBurst 1 \
1386      -enableInterStreamGap False \
1387      -startDelayUnits bytes \
1388      -iterationCount 1 \
1389      -burstPacketCount 1 \
1390      -enableInterBurstGap False \
1391      -startDelay 0
1392     sg_commit
1393     set sg_configElement [lindex [ixNet remapIds $sg_configElement] 0]
1394     set ixNetSG_Stack(2) $sg_configElement
1395
1396     #
1397     # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ethernet-1"
1398     #
1399     set sg_stack $ixNetSG_Stack(2)/stack:"ethernet-$stack_number"
1400     sg_commit
1401     set sg_stack [lindex [ixNet remapIds $sg_stack] 0]
1402     set ixNetSG_Stack(3) $sg_stack
1403     incr stack_number
1404
1405     #
1406     # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ethernet-1"/field:"ethernet.header.destinationAddress-1"
1407     #
1408     set sg_field $ixNetSG_Stack(3)/field:"ethernet.header.destinationAddress-1"
1409     ixNet setMultiAttrs $sg_field \
1410      -singleValue $dstMac \
1411      -seed {1} \
1412      -optionalEnabled True \
1413      -fullMesh False \
1414      -valueList {{00:00:00:00:00:00}} \
1415      -stepValue {00:00:00:00:00:01} \
1416      -fixedBits {00:00:00:00:00:00} \
1417      -fieldValue $dstMac \
1418      -auto False \
1419      -randomMask {00:00:00:00:00:00} \
1420      -trackingEnabled False \
1421      -valueType singleValue \
1422      -activeFieldChoice False \
1423      -startValue $dstMac \
1424      -countValue {1}
1425     sg_commit
1426     set sg_field [lindex [ixNet remapIds $sg_field] 0]
1427
1428     #
1429     # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ethernet-1"/field:"ethernet.header.sourceAddress-2"
1430     #
1431     set sg_field $ixNetSG_Stack(3)/field:"ethernet.header.sourceAddress-2"
1432     ixNet setMultiAttrs $sg_field \
1433      -singleValue $srcMac \
1434      -seed {1} \
1435      -optionalEnabled True \
1436      -fullMesh False \
1437      -valueList {{00:00:00:00:00:00}} \
1438      -stepValue {00:00:00:00:00:00} \
1439      -fixedBits {00:00:00:00:00:00} \
1440      -fieldValue $srcMac \
1441      -auto False \
1442      -randomMask {00:00:00:00:00:00} \
1443      -trackingEnabled False \
1444      -valueType singleValue \
1445      -activeFieldChoice False \
1446      -startValue $srcMac \
1447      -countValue {1}
1448     sg_commit
1449     set sg_field [lindex [ixNet remapIds $sg_field] 0]
1450
1451     #
1452     # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ethernet-1"/field:"ethernet.header.etherType-3"
1453     #
1454     set sg_field $ixNetSG_Stack(3)/field:"ethernet.header.etherType-3"
1455     ixNet setMultiAttrs $sg_field \
1456      -singleValue {800} \
1457      -seed {1} \
1458      -optionalEnabled True \
1459      -fullMesh False \
1460      -valueList {{0xFFFF}} \
1461      -stepValue {0xFFFF} \
1462      -fixedBits {0xFFFF} \
1463      -fieldValue {800} \
1464      -auto True \
1465      -randomMask {0xFFFF} \
1466      -trackingEnabled False \
1467      -valueType singleValue \
1468      -activeFieldChoice False \
1469      -startValue {0xFFFF} \
1470      -countValue {1}
1471     sg_commit
1472     set sg_field [lindex [ixNet remapIds $sg_field] 0]
1473
1474     #
1475     # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ethernet-1"/field:"ethernet.header.pfcQueue-4"
1476     #
1477     set sg_field $ixNetSG_Stack(3)/field:"ethernet.header.pfcQueue-4"
1478     ixNet setMultiAttrs $sg_field \
1479      -singleValue {0} \
1480      -seed {1} \
1481      -optionalEnabled True \
1482      -fullMesh False \
1483      -valueList {{0}} \
1484      -stepValue {0} \
1485      -fixedBits {0} \
1486      -fieldValue {0} \
1487      -auto False \
1488      -randomMask {0} \
1489      -trackingEnabled False \
1490      -valueType singleValue \
1491      -activeFieldChoice False \
1492      -startValue {0} \
1493      -countValue {1}
1494     sg_commit
1495     set sg_field [lindex [ixNet remapIds $sg_field] 0]
1496
1497     if {$vlanEnabled == 1 } {
1498         set sg_stack $ixNetSG_Stack(2)/stack:"vlan-$stack_number"
1499         sg_commit
1500         set sg_stack [lindex [ixNet remapIds $sg_stack] 0]
1501         set ixNetSG_Stack(3) $sg_stack
1502         incr stack_number
1503
1504         set sg_field $ixNetSG_Stack(3)/field:"vlan.header.vlanTag.vlanUserPriority-1"
1505         ixNet setMultiAttrs $sg_field \
1506                 -singleValue $vlanUserPrio \
1507                 -seed 1 \
1508                 -optionalEnabled true \
1509                 -fullMesh false \
1510                 -valueList [list 0] \
1511                 -stepValue 0 \
1512                 -fixedBits 0 \
1513                 -fieldValue $vlanUserPrio \
1514                 -auto false \
1515                 -randomMask 0 \
1516                 -trackingEnabled false \
1517                 -valueType singleValue \
1518                 -activeFieldChoice false \
1519                 -startValue 0 \
1520                 -countValue 1
1521
1522         set sg_field $ixNetSG_Stack(3)/field:"vlan.header.vlanTag.cfi-2"
1523         ixNet setMultiAttrs $sg_field \
1524                 -singleValue $vlanCfi \
1525                 -seed 1 \
1526                 -optionalEnabled true \
1527                 -fullMesh false \
1528                 -valueList [list 0] \
1529                 -stepValue 0 \
1530                 -fixedBits 0 \
1531                 -fieldValue $vlanCfi \
1532                 -auto false \
1533                 -randomMask 0 \
1534                 -trackingEnabled false \
1535                 -valueType singleValue \
1536                 -activeFieldChoice false \
1537                 -startValue 0 \
1538                 -countValue 1
1539
1540         set sg_field $ixNetSG_Stack(3)/field:"vlan.header.vlanTag.vlanID-3"
1541         ixNet setMultiAttrs $sg_field \
1542                 -singleValue $vlanId \
1543                 -seed 1 \
1544                 -optionalEnabled true \
1545                 -fullMesh false \
1546                 -valueList [list 0] \
1547                 -stepValue 0 \
1548                 -fixedBits 0 \
1549                 -fieldValue $vlanId \
1550                 -auto false \
1551                 -randomMask 0 \
1552                 -trackingEnabled false \
1553                 -valueType singleValue \
1554                 -activeFieldChoice false \
1555                 -startValue 0 \
1556                 -countValue 1
1557
1558         set sg_field $ixNetSG_Stack(3)/field:"vlan.header.protocolID-4"
1559         ixNet setMultiAttrs $sg_field \
1560                 -singleValue ffff \
1561                 -seed 1 \
1562                 -optionalEnabled true \
1563                 -fullMesh false \
1564                 -valueList [list 0xffff] \
1565                 -stepValue 0xffff \
1566                 -fixedBits 0xffff \
1567                 -fieldValue ffff \
1568                 -auto true \
1569                 -randomMask 0xffff \
1570                 -trackingEnabled false \
1571                 -valueType singleValue \
1572                 -activeFieldChoice false \
1573                 -startValue 0xffff \
1574                 -countValue 1
1575     }
1576
1577     if {$l3Enabled == 1 } {
1578         #
1579         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"
1580         #
1581         set sg_stack $ixNetSG_Stack(2)/stack:"ipv4-$stack_number"
1582         sg_commit
1583         set sg_stack [lindex [ixNet remapIds $sg_stack] 0]
1584         set ixNetSG_Stack(3) $sg_stack
1585         incr stack_number
1586
1587         #
1588         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.version-1"
1589         #
1590         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.version-1"
1591         ixNet setMultiAttrs $sg_field \
1592          -singleValue {4} \
1593          -seed {1} \
1594          -optionalEnabled True \
1595          -fullMesh False \
1596          -valueList {{4}} \
1597          -stepValue {4} \
1598          -fixedBits {4} \
1599          -fieldValue {4} \
1600          -auto False \
1601          -randomMask {4} \
1602          -trackingEnabled False \
1603          -valueType singleValue \
1604          -activeFieldChoice False \
1605          -startValue {4} \
1606          -countValue {1}
1607         sg_commit
1608         set sg_field [lindex [ixNet remapIds $sg_field] 0]
1609
1610         #
1611         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.headerLength-2"
1612         #
1613         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.headerLength-2"
1614         ixNet setMultiAttrs $sg_field \
1615          -singleValue {5} \
1616          -seed {1} \
1617          -optionalEnabled True \
1618          -fullMesh False \
1619          -valueList {{0}} \
1620          -stepValue {0} \
1621          -fixedBits {0} \
1622          -fieldValue {5} \
1623          -auto True \
1624          -randomMask {0} \
1625          -trackingEnabled False \
1626          -valueType singleValue \
1627          -activeFieldChoice False \
1628          -startValue {0} \
1629          -countValue {1}
1630         sg_commit
1631         set sg_field [lindex [ixNet remapIds $sg_field] 0]
1632
1633         #
1634         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.priority.raw-3"
1635         #
1636         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.raw-3"
1637         ixNet setMultiAttrs $sg_field \
1638          -singleValue {0} \
1639          -seed {1} \
1640          -optionalEnabled True \
1641          -fullMesh False \
1642          -valueList {{0}} \
1643          -stepValue {0} \
1644          -fixedBits {0} \
1645          -fieldValue {0} \
1646          -auto False \
1647          -randomMask {0} \
1648          -trackingEnabled False \
1649          -valueType singleValue \
1650          -activeFieldChoice False \
1651          -startValue {0} \
1652          -countValue {1}
1653         sg_commit
1654         set sg_field [lindex [ixNet remapIds $sg_field] 0]
1655
1656         #
1657         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.priority.tos.precedence-4"
1658         #
1659         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.tos.precedence-4"
1660         ixNet setMultiAttrs $sg_field \
1661          -singleValue {0} \
1662          -seed {1} \
1663          -optionalEnabled True \
1664          -fullMesh False \
1665          -valueList {{0}} \
1666          -stepValue {0} \
1667          -fixedBits {0} \
1668          -fieldValue {000 Routine} \
1669          -auto False \
1670          -randomMask {0} \
1671          -trackingEnabled False \
1672          -valueType singleValue \
1673          -activeFieldChoice True \
1674          -startValue {0} \
1675          -countValue {1}
1676         sg_commit
1677         set sg_field [lindex [ixNet remapIds $sg_field] 0]
1678
1679         #
1680         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.priority.tos.delay-5"
1681         #
1682         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.tos.delay-5"
1683         ixNet setMultiAttrs $sg_field \
1684          -singleValue {0} \
1685          -seed {1} \
1686          -optionalEnabled True \
1687          -fullMesh False \
1688          -valueList {{0}} \
1689          -stepValue {0} \
1690          -fixedBits {0} \
1691          -fieldValue {Normal} \
1692          -auto False \
1693          -randomMask {0} \
1694          -trackingEnabled False \
1695          -valueType singleValue \
1696          -activeFieldChoice True \
1697          -startValue {0} \
1698          -countValue {1}
1699         sg_commit
1700         set sg_field [lindex [ixNet remapIds $sg_field] 0]
1701
1702         #
1703         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.priority.tos.throughput-6"
1704         #
1705         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.tos.throughput-6"
1706         ixNet setMultiAttrs $sg_field \
1707          -singleValue {0} \
1708          -seed {1} \
1709          -optionalEnabled True \
1710          -fullMesh False \
1711          -valueList {{0}} \
1712          -stepValue {0} \
1713          -fixedBits {0} \
1714          -fieldValue {Normal} \
1715          -auto False \
1716          -randomMask {0} \
1717          -trackingEnabled False \
1718          -valueType singleValue \
1719          -activeFieldChoice True \
1720          -startValue {0} \
1721          -countValue {1}
1722         sg_commit
1723         set sg_field [lindex [ixNet remapIds $sg_field] 0]
1724
1725         #
1726         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.priority.tos.reliability-7"
1727         #
1728         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.tos.reliability-7"
1729         ixNet setMultiAttrs $sg_field \
1730          -singleValue {0} \
1731          -seed {1} \
1732          -optionalEnabled True \
1733          -fullMesh False \
1734          -valueList {{0}} \
1735          -stepValue {0} \
1736          -fixedBits {0} \
1737          -fieldValue {Normal} \
1738          -auto False \
1739          -randomMask {0} \
1740          -trackingEnabled False \
1741          -valueType singleValue \
1742          -activeFieldChoice True \
1743          -startValue {0} \
1744          -countValue {1}
1745         sg_commit
1746         set sg_field [lindex [ixNet remapIds $sg_field] 0]
1747
1748         #
1749         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.priority.tos.monetary-8"
1750         #
1751         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.tos.monetary-8"
1752         ixNet setMultiAttrs $sg_field \
1753          -singleValue {0} \
1754          -seed {1} \
1755          -optionalEnabled True \
1756          -fullMesh False \
1757          -valueList {{0}} \
1758          -stepValue {0} \
1759          -fixedBits {0} \
1760          -fieldValue {Normal} \
1761          -auto False \
1762          -randomMask {0} \
1763          -trackingEnabled False \
1764          -valueType singleValue \
1765          -activeFieldChoice True \
1766          -startValue {0} \
1767          -countValue {1}
1768         sg_commit
1769         set sg_field [lindex [ixNet remapIds $sg_field] 0]
1770
1771         #
1772         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.priority.tos.unused-9"
1773         #
1774         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.tos.unused-9"
1775         ixNet setMultiAttrs $sg_field \
1776          -singleValue {0} \
1777          -seed {1} \
1778          -optionalEnabled True \
1779          -fullMesh False \
1780          -valueList {{0}} \
1781          -stepValue {0} \
1782          -fixedBits {0} \
1783          -fieldValue {0} \
1784          -auto False \
1785          -randomMask {0} \
1786          -trackingEnabled False \
1787          -valueType singleValue \
1788          -activeFieldChoice True \
1789          -startValue {0} \
1790          -countValue {1}
1791         sg_commit
1792         set sg_field [lindex [ixNet remapIds $sg_field] 0]
1793
1794         #
1795         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.defaultPHB.defaultPHB-10"
1796         #
1797         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.defaultPHB.defaultPHB-10"
1798         ixNet setMultiAttrs $sg_field \
1799          -singleValue {0} \
1800          -seed {1} \
1801          -optionalEnabled True \
1802          -fullMesh False \
1803          -valueList {{0}} \
1804          -stepValue {0} \
1805          -fixedBits {0} \
1806          -fieldValue {0} \
1807          -auto False \
1808          -randomMask {0} \
1809          -trackingEnabled False \
1810          -valueType singleValue \
1811          -activeFieldChoice False \
1812          -startValue {0} \
1813          -countValue {1}
1814         sg_commit
1815         set sg_field [lindex [ixNet remapIds $sg_field] 0]
1816
1817         #
1818         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.defaultPHB.unused-11"
1819         #
1820         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.defaultPHB.unused-11"
1821         ixNet setMultiAttrs $sg_field \
1822          -singleValue {0} \
1823          -seed {1} \
1824          -optionalEnabled True \
1825          -fullMesh False \
1826          -valueList {{0}} \
1827          -stepValue {0} \
1828          -fixedBits {0} \
1829          -fieldValue {0} \
1830          -auto False \
1831          -randomMask {0} \
1832          -trackingEnabled False \
1833          -valueType singleValue \
1834          -activeFieldChoice False \
1835          -startValue {0} \
1836          -countValue {1}
1837         sg_commit
1838         set sg_field [lindex [ixNet remapIds $sg_field] 0]
1839
1840         #
1841         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.classSelectorPHB.classSelectorPHB-12"
1842         #
1843         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.classSelectorPHB.classSelectorPHB-12"
1844         ixNet setMultiAttrs $sg_field \
1845          -singleValue {8} \
1846          -seed {1} \
1847          -optionalEnabled True \
1848          -fullMesh False \
1849          -valueList {{8}} \
1850          -stepValue {8} \
1851          -fixedBits {8} \
1852          -fieldValue {Precedence 1} \
1853          -auto False \
1854          -randomMask {8} \
1855          -trackingEnabled False \
1856          -valueType singleValue \
1857          -activeFieldChoice False \
1858          -startValue {8} \
1859          -countValue {1}
1860         sg_commit
1861         set sg_field [lindex [ixNet remapIds $sg_field] 0]
1862
1863         #
1864         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.classSelectorPHB.unused-13"
1865         #
1866         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.classSelectorPHB.unused-13"
1867         ixNet setMultiAttrs $sg_field \
1868          -singleValue {0} \
1869          -seed {1} \
1870          -optionalEnabled True \
1871          -fullMesh False \
1872          -valueList {{0}} \
1873          -stepValue {0} \
1874          -fixedBits {0} \
1875          -fieldValue {0} \
1876          -auto False \
1877          -randomMask {0} \
1878          -trackingEnabled False \
1879          -valueType singleValue \
1880          -activeFieldChoice False \
1881          -startValue {0} \
1882          -countValue {1}
1883         sg_commit
1884         set sg_field [lindex [ixNet remapIds $sg_field] 0]
1885
1886         #
1887         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.assuredForwardingPHB.assuredForwardingPHB-14"
1888         #
1889         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.assuredForwardingPHB.assuredForwardingPHB-14"
1890         ixNet setMultiAttrs $sg_field \
1891          -singleValue {10} \
1892          -seed {1} \
1893          -optionalEnabled True \
1894          -fullMesh False \
1895          -valueList {{10}} \
1896          -stepValue {10} \
1897          -fixedBits {10} \
1898          -fieldValue {Class 1, Low drop precedence} \
1899          -auto False \
1900          -randomMask {10} \
1901          -trackingEnabled False \
1902          -valueType singleValue \
1903          -activeFieldChoice False \
1904          -startValue {10} \
1905          -countValue {1}
1906         sg_commit
1907         set sg_field [lindex [ixNet remapIds $sg_field] 0]
1908
1909         #
1910         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.assuredForwardingPHB.unused-15"
1911         #
1912         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.assuredForwardingPHB.unused-15"
1913         ixNet setMultiAttrs $sg_field \
1914          -singleValue {0} \
1915          -seed {1} \
1916          -optionalEnabled True \
1917          -fullMesh False \
1918          -valueList {{0}} \
1919          -stepValue {0} \
1920          -fixedBits {0} \
1921          -fieldValue {0} \
1922          -auto False \
1923          -randomMask {0} \
1924          -trackingEnabled False \
1925          -valueType singleValue \
1926          -activeFieldChoice False \
1927          -startValue {0} \
1928          -countValue {1}
1929         sg_commit
1930         set sg_field [lindex [ixNet remapIds $sg_field] 0]
1931
1932         #
1933         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.expeditedForwardingPHB.expeditedForwardingPHB-16"
1934         #
1935         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.expeditedForwardingPHB.expeditedForwardingPHB-16"
1936         ixNet setMultiAttrs $sg_field \
1937          -singleValue {46} \
1938          -seed {1} \
1939          -optionalEnabled True \
1940          -fullMesh False \
1941          -valueList {{46}} \
1942          -stepValue {46} \
1943          -fixedBits {46} \
1944          -fieldValue {46} \
1945          -auto False \
1946          -randomMask {46} \
1947          -trackingEnabled False \
1948          -valueType singleValue \
1949          -activeFieldChoice False \
1950          -startValue {46} \
1951          -countValue {1}
1952         sg_commit
1953         set sg_field [lindex [ixNet remapIds $sg_field] 0]
1954
1955         #
1956         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.expeditedForwardingPHB.unused-17"
1957         #
1958         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.expeditedForwardingPHB.unused-17"
1959         ixNet setMultiAttrs $sg_field \
1960          -singleValue {0} \
1961          -seed {1} \
1962          -optionalEnabled True \
1963          -fullMesh False \
1964          -valueList {{0}} \
1965          -stepValue {0} \
1966          -fixedBits {0} \
1967          -fieldValue {0} \
1968          -auto False \
1969          -randomMask {0} \
1970          -trackingEnabled False \
1971          -valueType singleValue \
1972          -activeFieldChoice False \
1973          -startValue {0} \
1974          -countValue {1}
1975         sg_commit
1976         set sg_field [lindex [ixNet remapIds $sg_field] 0]
1977
1978         #
1979         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.totalLength-18"
1980         #
1981         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.totalLength-18"
1982         ixNet setMultiAttrs $sg_field \
1983          -singleValue {46} \
1984          -seed {1} \
1985          -optionalEnabled True \
1986          -fullMesh False \
1987          -valueList {{20}} \
1988          -stepValue {20} \
1989          -fixedBits {20} \
1990          -fieldValue {46} \
1991          -auto True \
1992          -randomMask {20} \
1993          -trackingEnabled False \
1994          -valueType singleValue \
1995          -activeFieldChoice False \
1996          -startValue {20} \
1997          -countValue {1}
1998         sg_commit
1999         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2000
2001         #
2002         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.identification-19"
2003         #
2004         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.identification-19"
2005         ixNet setMultiAttrs $sg_field \
2006          -singleValue {0} \
2007          -seed {1} \
2008          -optionalEnabled True \
2009          -fullMesh False \
2010          -valueList {{0}} \
2011          -stepValue {0} \
2012          -fixedBits {0} \
2013          -fieldValue {0} \
2014          -auto False \
2015          -randomMask {0} \
2016          -trackingEnabled False \
2017          -valueType singleValue \
2018          -activeFieldChoice False \
2019          -startValue {0} \
2020          -countValue {1}
2021         sg_commit
2022         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2023
2024         #
2025         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.flags.reserved-20"
2026         #
2027         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.flags.reserved-20"
2028         ixNet setMultiAttrs $sg_field \
2029          -singleValue {0} \
2030          -seed {1} \
2031          -optionalEnabled True \
2032          -fullMesh False \
2033          -valueList {{0}} \
2034          -stepValue {0} \
2035          -fixedBits {0} \
2036          -fieldValue {0} \
2037          -auto False \
2038          -randomMask {0} \
2039          -trackingEnabled False \
2040          -valueType singleValue \
2041          -activeFieldChoice False \
2042          -startValue {0} \
2043          -countValue {1}
2044         sg_commit
2045         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2046
2047         #
2048         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.flags.fragment-21"
2049         #
2050         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.flags.fragment-21"
2051         ixNet setMultiAttrs $sg_field \
2052          -singleValue {0} \
2053          -seed {1} \
2054          -optionalEnabled True \
2055          -fullMesh False \
2056          -valueList {{0}} \
2057          -stepValue {0} \
2058          -fixedBits {0} \
2059          -fieldValue {May fragment} \
2060          -auto False \
2061          -randomMask {0} \
2062          -trackingEnabled False \
2063          -valueType singleValue \
2064          -activeFieldChoice False \
2065          -startValue {0} \
2066          -countValue {1}
2067         sg_commit
2068         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2069
2070         #
2071         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.flags.lastFragment-22"
2072         #
2073         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.flags.lastFragment-22"
2074         ixNet setMultiAttrs $sg_field \
2075          -singleValue {0} \
2076          -seed {1} \
2077          -optionalEnabled True \
2078          -fullMesh False \
2079          -valueList {{0}} \
2080          -stepValue {0} \
2081          -fixedBits {0} \
2082          -fieldValue {Last fragment} \
2083          -auto False \
2084          -randomMask {0} \
2085          -trackingEnabled False \
2086          -valueType singleValue \
2087          -activeFieldChoice False \
2088          -startValue {0} \
2089          -countValue {1}
2090         sg_commit
2091         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2092
2093         #
2094         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.fragmentOffset-23"
2095         #
2096         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.fragmentOffset-23"
2097         ixNet setMultiAttrs $sg_field \
2098          -singleValue {0} \
2099          -seed {1} \
2100          -optionalEnabled True \
2101          -fullMesh False \
2102          -valueList {{0}} \
2103          -stepValue {0} \
2104          -fixedBits {0} \
2105          -fieldValue {0} \
2106          -auto False \
2107          -randomMask {0} \
2108          -trackingEnabled False \
2109          -valueType singleValue \
2110          -activeFieldChoice False \
2111          -startValue {0} \
2112          -countValue {1}
2113         sg_commit
2114         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2115
2116         #
2117         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.ttl-24"
2118         #
2119         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.ttl-24"
2120         ixNet setMultiAttrs $sg_field \
2121          -singleValue {64} \
2122          -seed {1} \
2123          -optionalEnabled True \
2124          -fullMesh False \
2125          -valueList {{64}} \
2126          -stepValue {64} \
2127          -fixedBits {64} \
2128          -fieldValue {64} \
2129          -auto False \
2130          -randomMask {64} \
2131          -trackingEnabled False \
2132          -valueType singleValue \
2133          -activeFieldChoice False \
2134          -startValue {64} \
2135          -countValue {1}
2136         sg_commit
2137         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2138
2139         #
2140         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.protocol-25"
2141         #
2142         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.protocol-25"
2143         ixNet setMultiAttrs $sg_field \
2144          -singleValue {17} \
2145          -seed {1} \
2146          -optionalEnabled True \
2147          -fullMesh False \
2148          -valueList {{61}} \
2149          -stepValue {61} \
2150          -fixedBits {61} \
2151          -fieldValue {UDP} \
2152          -auto True \
2153          -randomMask {61} \
2154          -trackingEnabled False \
2155          -valueType singleValue \
2156          -activeFieldChoice False \
2157          -startValue {61} \
2158          -countValue {1}
2159         sg_commit
2160         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2161
2162         #
2163         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.checksum-26"
2164         #
2165         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.checksum-26"
2166         ixNet setMultiAttrs $sg_field \
2167          -singleValue {0} \
2168          -seed {1} \
2169          -optionalEnabled True \
2170          -fullMesh False \
2171          -valueList {{0}} \
2172          -stepValue {0} \
2173          -fixedBits {0} \
2174          -fieldValue {0} \
2175          -auto True \
2176          -randomMask {0} \
2177          -trackingEnabled False \
2178          -valueType singleValue \
2179          -activeFieldChoice False \
2180          -startValue {0} \
2181          -countValue {1}
2182         sg_commit
2183         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2184
2185         #
2186         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.srcIp-27"
2187         #
2188         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.srcIp-27"
2189         ixNet setMultiAttrs $sg_field \
2190          -singleValue $srcIp \
2191          -seed {1} \
2192          -optionalEnabled True \
2193          -fullMesh False \
2194          -valueList {{0.0.0.0}} \
2195          -stepValue {0.0.0.0} \
2196          -fixedBits {0.0.0.0} \
2197          -fieldValue $srcIp \
2198          -auto False \
2199          -randomMask {0.0.0.0} \
2200          -trackingEnabled False \
2201          -valueType singleValue \
2202          -activeFieldChoice False \
2203          -startValue {0.0.0.0} \
2204          -countValue {1}
2205         sg_commit
2206         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2207
2208         #
2209         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.dstIp-28"
2210         #
2211         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.dstIp-28"
2212         ixNet setMultiAttrs $sg_field \
2213          -singleValue $dstIp \
2214          -seed {1} \
2215          -optionalEnabled True \
2216          -fullMesh False \
2217          -valueList {{0.0.0.0}} \
2218          -stepValue {0.0.0.1} \
2219          -fixedBits {0.0.0.0} \
2220          -fieldValue $dstIp \
2221          -auto False \
2222          -randomMask {0.0.0.0} \
2223          -trackingEnabled False \
2224          -valueType $L3ValueType \
2225          -activeFieldChoice False \
2226          -startValue $dstIp \
2227          -countValue $L3CountValue
2228         sg_commit
2229         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2230
2231         #
2232         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.nop-29"
2233         #
2234         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.nop-29"
2235         ixNet setMultiAttrs $sg_field \
2236          -singleValue {1} \
2237          -seed {1} \
2238          -optionalEnabled False \
2239          -fullMesh False \
2240          -valueList {{1}} \
2241          -stepValue {1} \
2242          -fixedBits {1} \
2243          -fieldValue {1} \
2244          -auto False \
2245          -randomMask {1} \
2246          -trackingEnabled False \
2247          -valueType singleValue \
2248          -activeFieldChoice True \
2249          -startValue {1} \
2250          -countValue {1}
2251         sg_commit
2252         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2253
2254         #
2255         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.security.type-30"
2256         #
2257         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.security.type-30"
2258         ixNet setMultiAttrs $sg_field \
2259          -singleValue {130} \
2260          -seed {1} \
2261          -optionalEnabled False \
2262          -fullMesh False \
2263          -valueList {{130}} \
2264          -stepValue {130} \
2265          -fixedBits {130} \
2266          -fieldValue {130} \
2267          -auto False \
2268          -randomMask {130} \
2269          -trackingEnabled False \
2270          -valueType singleValue \
2271          -activeFieldChoice False \
2272          -startValue {130} \
2273          -countValue {1}
2274         sg_commit
2275         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2276
2277         #
2278         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.security.length-31"
2279         #
2280         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.security.length-31"
2281         ixNet setMultiAttrs $sg_field \
2282          -singleValue {11} \
2283          -seed {1} \
2284          -optionalEnabled False \
2285          -fullMesh False \
2286          -valueList {{11}} \
2287          -stepValue {11} \
2288          -fixedBits {11} \
2289          -fieldValue {11} \
2290          -auto False \
2291          -randomMask {11} \
2292          -trackingEnabled False \
2293          -valueType singleValue \
2294          -activeFieldChoice False \
2295          -startValue {11} \
2296          -countValue {1}
2297         sg_commit
2298         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2299
2300         #
2301         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.security.security-32"
2302         #
2303         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.security.security-32"
2304         ixNet setMultiAttrs $sg_field \
2305          -singleValue {0} \
2306          -seed {1} \
2307          -optionalEnabled False \
2308          -fullMesh False \
2309          -valueList {{0}} \
2310          -stepValue {0} \
2311          -fixedBits {0} \
2312          -fieldValue {Unclassified} \
2313          -auto False \
2314          -randomMask {0} \
2315          -trackingEnabled False \
2316          -valueType singleValue \
2317          -activeFieldChoice False \
2318          -startValue {0} \
2319          -countValue {1}
2320         sg_commit
2321         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2322
2323         #
2324         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.security.compartments-33"
2325         #
2326         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.security.compartments-33"
2327         ixNet setMultiAttrs $sg_field \
2328          -singleValue {0} \
2329          -seed {1} \
2330          -optionalEnabled False \
2331          -fullMesh False \
2332          -valueList {{0}} \
2333          -stepValue {0} \
2334          -fixedBits {0} \
2335          -fieldValue {0} \
2336          -auto False \
2337          -randomMask {0} \
2338          -trackingEnabled False \
2339          -valueType singleValue \
2340          -activeFieldChoice False \
2341          -startValue {0} \
2342          -countValue {1}
2343         sg_commit
2344         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2345
2346         #
2347         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.security.handling-34"
2348         #
2349         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.security.handling-34"
2350         ixNet setMultiAttrs $sg_field \
2351          -singleValue {0} \
2352          -seed {1} \
2353          -optionalEnabled False \
2354          -fullMesh False \
2355          -valueList {{0}} \
2356          -stepValue {0} \
2357          -fixedBits {0} \
2358          -fieldValue {0} \
2359          -auto False \
2360          -randomMask {0} \
2361          -trackingEnabled False \
2362          -valueType singleValue \
2363          -activeFieldChoice False \
2364          -startValue {0} \
2365          -countValue {1}
2366         sg_commit
2367         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2368
2369         #
2370         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.security.tcc-35"
2371         #
2372         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.security.tcc-35"
2373         ixNet setMultiAttrs $sg_field \
2374          -singleValue {0} \
2375          -seed {1} \
2376          -optionalEnabled False \
2377          -fullMesh False \
2378          -valueList {{0}} \
2379          -stepValue {0} \
2380          -fixedBits {0} \
2381          -fieldValue {0} \
2382          -auto False \
2383          -randomMask {0} \
2384          -trackingEnabled False \
2385          -valueType singleValue \
2386          -activeFieldChoice False \
2387          -startValue {0} \
2388          -countValue {1}
2389         sg_commit
2390         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2391
2392         #
2393         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.lsrr.type-36"
2394         #
2395         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.lsrr.type-36"
2396         ixNet setMultiAttrs $sg_field \
2397          -singleValue {131} \
2398          -seed {1} \
2399          -optionalEnabled False \
2400          -fullMesh False \
2401          -valueList {{131}} \
2402          -stepValue {131} \
2403          -fixedBits {131} \
2404          -fieldValue {131} \
2405          -auto False \
2406          -randomMask {131} \
2407          -trackingEnabled False \
2408          -valueType singleValue \
2409          -activeFieldChoice False \
2410          -startValue {131} \
2411          -countValue {1}
2412         sg_commit
2413         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2414
2415         #
2416         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.lsrr.length-37"
2417         #
2418         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.lsrr.length-37"
2419         ixNet setMultiAttrs $sg_field \
2420          -singleValue {8} \
2421          -seed {1} \
2422          -optionalEnabled False \
2423          -fullMesh False \
2424          -valueList {{8}} \
2425          -stepValue {8} \
2426          -fixedBits {8} \
2427          -fieldValue {8} \
2428          -auto False \
2429          -randomMask {8} \
2430          -trackingEnabled False \
2431          -valueType singleValue \
2432          -activeFieldChoice False \
2433          -startValue {8} \
2434          -countValue {1}
2435         sg_commit
2436         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2437
2438         #
2439         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.pointer-38"
2440         #
2441         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.pointer-38"
2442         ixNet setMultiAttrs $sg_field \
2443          -singleValue {4} \
2444          -seed {1} \
2445          -optionalEnabled False \
2446          -fullMesh False \
2447          -valueList {{4}} \
2448          -stepValue {4} \
2449          -fixedBits {4} \
2450          -fieldValue {4} \
2451          -auto False \
2452          -randomMask {4} \
2453          -trackingEnabled False \
2454          -valueType singleValue \
2455          -activeFieldChoice False \
2456          -startValue {4} \
2457          -countValue {1}
2458         sg_commit
2459         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2460
2461         #
2462         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.routeData-39"
2463         #
2464         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.routeData-39"
2465         ixNet setMultiAttrs $sg_field \
2466          -singleValue {0} \
2467          -seed {1} \
2468          -optionalEnabled False \
2469          -fullMesh False \
2470          -valueList {{0}} \
2471          -stepValue {0} \
2472          -fixedBits {0} \
2473          -fieldValue {0} \
2474          -auto False \
2475          -randomMask {0} \
2476          -trackingEnabled False \
2477          -valueType singleValue \
2478          -activeFieldChoice False \
2479          -startValue {0} \
2480          -countValue {1}
2481         sg_commit
2482         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2483
2484         #
2485         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.ssrr.type-40"
2486         #
2487         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.ssrr.type-40"
2488         ixNet setMultiAttrs $sg_field \
2489          -singleValue {137} \
2490          -seed {1} \
2491          -optionalEnabled False \
2492          -fullMesh False \
2493          -valueList {{137}} \
2494          -stepValue {137} \
2495          -fixedBits {137} \
2496          -fieldValue {137} \
2497          -auto False \
2498          -randomMask {137} \
2499          -trackingEnabled False \
2500          -valueType singleValue \
2501          -activeFieldChoice False \
2502          -startValue {137} \
2503          -countValue {1}
2504         sg_commit
2505         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2506
2507         #
2508         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.ssrr.length-41"
2509         #
2510         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.ssrr.length-41"
2511         ixNet setMultiAttrs $sg_field \
2512          -singleValue {8} \
2513          -seed {1} \
2514          -optionalEnabled False \
2515          -fullMesh False \
2516          -valueList {{8}} \
2517          -stepValue {8} \
2518          -fixedBits {8} \
2519          -fieldValue {8} \
2520          -auto False \
2521          -randomMask {8} \
2522          -trackingEnabled False \
2523          -valueType singleValue \
2524          -activeFieldChoice False \
2525          -startValue {8} \
2526          -countValue {1}
2527         sg_commit
2528         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2529
2530         #
2531         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.recordRoute.type-42"
2532         #
2533         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.recordRoute.type-42"
2534         ixNet setMultiAttrs $sg_field \
2535          -singleValue {7} \
2536          -seed {1} \
2537          -optionalEnabled False \
2538          -fullMesh False \
2539          -valueList {{7}} \
2540          -stepValue {7} \
2541          -fixedBits {7} \
2542          -fieldValue {7} \
2543          -auto False \
2544          -randomMask {7} \
2545          -trackingEnabled False \
2546          -valueType singleValue \
2547          -activeFieldChoice False \
2548          -startValue {7} \
2549          -countValue {1}
2550         sg_commit
2551         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2552
2553         #
2554         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.recordRoute.length-43"
2555         #
2556         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.recordRoute.length-43"
2557         ixNet setMultiAttrs $sg_field \
2558          -singleValue {8} \
2559          -seed {1} \
2560          -optionalEnabled False \
2561          -fullMesh False \
2562          -valueList {{8}} \
2563          -stepValue {8} \
2564          -fixedBits {8} \
2565          -fieldValue {8} \
2566          -auto False \
2567          -randomMask {8} \
2568          -trackingEnabled False \
2569          -valueType singleValue \
2570          -activeFieldChoice False \
2571          -startValue {8} \
2572          -countValue {1}
2573         sg_commit
2574         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2575
2576         #
2577         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.streamId.type-44"
2578         #
2579         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.streamId.type-44"
2580         ixNet setMultiAttrs $sg_field \
2581          -singleValue {136} \
2582          -seed {1} \
2583          -optionalEnabled False \
2584          -fullMesh False \
2585          -valueList {{136}} \
2586          -stepValue {136} \
2587          -fixedBits {136} \
2588          -fieldValue {136} \
2589          -auto False \
2590          -randomMask {136} \
2591          -trackingEnabled False \
2592          -valueType singleValue \
2593          -activeFieldChoice False \
2594          -startValue {136} \
2595          -countValue {1}
2596         sg_commit
2597         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2598
2599         #
2600         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.streamId.length-45"
2601         #
2602         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.streamId.length-45"
2603         ixNet setMultiAttrs $sg_field \
2604          -singleValue {4} \
2605          -seed {1} \
2606          -optionalEnabled False \
2607          -fullMesh False \
2608          -valueList {{4}} \
2609          -stepValue {4} \
2610          -fixedBits {4} \
2611          -fieldValue {4} \
2612          -auto False \
2613          -randomMask {4} \
2614          -trackingEnabled False \
2615          -valueType singleValue \
2616          -activeFieldChoice False \
2617          -startValue {4} \
2618          -countValue {1}
2619         sg_commit
2620         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2621
2622         #
2623         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.streamId.id-46"
2624         #
2625         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.streamId.id-46"
2626         ixNet setMultiAttrs $sg_field \
2627          -singleValue {0} \
2628          -seed {1} \
2629          -optionalEnabled False \
2630          -fullMesh False \
2631          -valueList {{0}} \
2632          -stepValue {0} \
2633          -fixedBits {0} \
2634          -fieldValue {0} \
2635          -auto False \
2636          -randomMask {0} \
2637          -trackingEnabled False \
2638          -valueType singleValue \
2639          -activeFieldChoice False \
2640          -startValue {0} \
2641          -countValue {1}
2642         sg_commit
2643         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2644
2645         #
2646         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.type-47"
2647         #
2648         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.type-47"
2649         ixNet setMultiAttrs $sg_field \
2650          -singleValue {68} \
2651          -seed {1} \
2652          -optionalEnabled False \
2653          -fullMesh False \
2654          -valueList {{68}} \
2655          -stepValue {68} \
2656          -fixedBits {68} \
2657          -fieldValue {68} \
2658          -auto False \
2659          -randomMask {68} \
2660          -trackingEnabled False \
2661          -valueType singleValue \
2662          -activeFieldChoice False \
2663          -startValue {68} \
2664          -countValue {1}
2665         sg_commit
2666         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2667
2668         #
2669         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.length-48"
2670         #
2671         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.length-48"
2672         ixNet setMultiAttrs $sg_field \
2673          -singleValue {12} \
2674          -seed {1} \
2675          -optionalEnabled False \
2676          -fullMesh False \
2677          -valueList {{12}} \
2678          -stepValue {12} \
2679          -fixedBits {12} \
2680          -fieldValue {12} \
2681          -auto False \
2682          -randomMask {12} \
2683          -trackingEnabled False \
2684          -valueType singleValue \
2685          -activeFieldChoice False \
2686          -startValue {12} \
2687          -countValue {1}
2688         sg_commit
2689         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2690
2691         #
2692         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.pointer-49"
2693         #
2694         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.pointer-49"
2695         ixNet setMultiAttrs $sg_field \
2696          -singleValue {5} \
2697          -seed {1} \
2698          -optionalEnabled False \
2699          -fullMesh False \
2700          -valueList {{5}} \
2701          -stepValue {5} \
2702          -fixedBits {5} \
2703          -fieldValue {5} \
2704          -auto False \
2705          -randomMask {5} \
2706          -trackingEnabled False \
2707          -valueType singleValue \
2708          -activeFieldChoice False \
2709          -startValue {5} \
2710          -countValue {1}
2711         sg_commit
2712         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2713
2714         #
2715         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.overflow-50"
2716         #
2717         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.overflow-50"
2718         ixNet setMultiAttrs $sg_field \
2719          -singleValue {0} \
2720          -seed {1} \
2721          -optionalEnabled False \
2722          -fullMesh False \
2723          -valueList {{0}} \
2724          -stepValue {0} \
2725          -fixedBits {0} \
2726          -fieldValue {0} \
2727          -auto False \
2728          -randomMask {0} \
2729          -trackingEnabled False \
2730          -valueType singleValue \
2731          -activeFieldChoice False \
2732          -startValue {0} \
2733          -countValue {1}
2734         sg_commit
2735         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2736
2737         #
2738         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.flags-51"
2739         #
2740         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.flags-51"
2741         ixNet setMultiAttrs $sg_field \
2742          -singleValue {0} \
2743          -seed {1} \
2744          -optionalEnabled False \
2745          -fullMesh False \
2746          -valueList {{0}} \
2747          -stepValue {0} \
2748          -fixedBits {0} \
2749          -fieldValue {Timestamps only, in consecutive 32-bit words} \
2750          -auto False \
2751          -randomMask {0} \
2752          -trackingEnabled False \
2753          -valueType singleValue \
2754          -activeFieldChoice False \
2755          -startValue {0} \
2756          -countValue {1}
2757         sg_commit
2758         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2759
2760         #
2761         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.pair.address-52"
2762         #
2763         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.pair.address-52"
2764         ixNet setMultiAttrs $sg_field \
2765          -singleValue {0} \
2766          -seed {1} \
2767          -optionalEnabled False \
2768          -fullMesh False \
2769          -valueList {{0}} \
2770          -stepValue {0} \
2771          -fixedBits {0} \
2772          -fieldValue {0} \
2773          -auto False \
2774          -randomMask {0} \
2775          -trackingEnabled False \
2776          -valueType singleValue \
2777          -activeFieldChoice False \
2778          -startValue {0} \
2779          -countValue {1}
2780         sg_commit
2781         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2782
2783         #
2784         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.pair.timestamp-53"
2785         #
2786         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.pair.timestamp-53"
2787         ixNet setMultiAttrs $sg_field \
2788          -singleValue {0} \
2789          -seed {1} \
2790          -optionalEnabled False \
2791          -fullMesh False \
2792          -valueList {{0}} \
2793          -stepValue {0} \
2794          -fixedBits {0} \
2795          -fieldValue {0} \
2796          -auto False \
2797          -randomMask {0} \
2798          -trackingEnabled False \
2799          -valueType singleValue \
2800          -activeFieldChoice False \
2801          -startValue {0} \
2802          -countValue {1}
2803         sg_commit
2804         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2805
2806         #
2807         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.last-54"
2808         #
2809         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.last-54"
2810         ixNet setMultiAttrs $sg_field \
2811          -singleValue {0} \
2812          -seed {1} \
2813          -optionalEnabled False \
2814          -fullMesh False \
2815          -valueList {{0}} \
2816          -stepValue {0} \
2817          -fixedBits {0} \
2818          -fieldValue {0} \
2819          -auto False \
2820          -randomMask {0} \
2821          -trackingEnabled False \
2822          -valueType singleValue \
2823          -activeFieldChoice False \
2824          -startValue {0} \
2825          -countValue {1}
2826         sg_commit
2827         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2828
2829         #
2830         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.routerAlert.type-55"
2831         #
2832         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.routerAlert.type-55"
2833         ixNet setMultiAttrs $sg_field \
2834          -singleValue {94} \
2835          -seed {1} \
2836          -optionalEnabled False \
2837          -fullMesh False \
2838          -valueList {{0x94}} \
2839          -stepValue {0x94} \
2840          -fixedBits {0x94} \
2841          -fieldValue {94} \
2842          -auto False \
2843          -randomMask {0x94} \
2844          -trackingEnabled False \
2845          -valueType singleValue \
2846          -activeFieldChoice False \
2847          -startValue {0x94} \
2848          -countValue {1}
2849         sg_commit
2850         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2851
2852         #
2853         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.routerAlert.length-56"
2854         #
2855         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.routerAlert.length-56"
2856         ixNet setMultiAttrs $sg_field \
2857          -singleValue {4} \
2858          -seed {1} \
2859          -optionalEnabled False \
2860          -fullMesh False \
2861          -valueList {{0x04}} \
2862          -stepValue {0x04} \
2863          -fixedBits {0x04} \
2864          -fieldValue {4} \
2865          -auto False \
2866          -randomMask {0x04} \
2867          -trackingEnabled False \
2868          -valueType singleValue \
2869          -activeFieldChoice False \
2870          -startValue {0x04} \
2871          -countValue {1}
2872         sg_commit
2873         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2874
2875         #
2876         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.routerAlert.value-57"
2877         #
2878         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.routerAlert.value-57"
2879         ixNet setMultiAttrs $sg_field \
2880          -singleValue {0} \
2881          -seed {1} \
2882          -optionalEnabled False \
2883          -fullMesh False \
2884          -valueList {{0}} \
2885          -stepValue {0} \
2886          -fixedBits {0} \
2887          -fieldValue {Router shall examine packet} \
2888          -auto False \
2889          -randomMask {0} \
2890          -trackingEnabled False \
2891          -valueType singleValue \
2892          -activeFieldChoice False \
2893          -startValue {0} \
2894          -countValue {1}
2895         sg_commit
2896         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2897
2898         #
2899         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"ipv4-2"/field:"ipv4.header.options.pad-58"
2900         #
2901         set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.pad-58"
2902         ixNet setMultiAttrs $sg_field \
2903          -singleValue {0} \
2904          -seed {1} \
2905          -optionalEnabled False \
2906          -fullMesh False \
2907          -valueList {{0}} \
2908          -stepValue {0} \
2909          -fixedBits {0} \
2910          -fieldValue {0} \
2911          -auto True \
2912          -randomMask {0} \
2913          -trackingEnabled False \
2914          -valueType singleValue \
2915          -activeFieldChoice False \
2916          -startValue {0} \
2917          -countValue {1}
2918         sg_commit
2919         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2920     }
2921
2922     if {$l4Enabled == 1 } {
2923         #
2924         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"udp-3"
2925         #
2926         set sg_stack $ixNetSG_Stack(2)/stack:"udp-$stack_number"
2927         sg_commit
2928         set sg_stack [lindex [ixNet remapIds $sg_stack] 0]
2929         set ixNetSG_Stack(3) $sg_stack
2930         incr stack_number
2931
2932         #
2933         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"udp-3"/field:"udp.header.srcPort-1"
2934         #
2935         set sg_field $ixNetSG_Stack(3)/field:"udp.header.srcPort-1"
2936         ixNet setMultiAttrs $sg_field \
2937          -singleValue $srcPort \
2938          -seed {1} \
2939          -optionalEnabled True \
2940          -fullMesh False \
2941          -valueList {{63}} \
2942          -stepValue {63} \
2943          -fixedBits {63} \
2944          -fieldValue $srcPort \
2945          -auto False \
2946          -randomMask {63} \
2947          -trackingEnabled False \
2948          -valueType singleValue \
2949          -activeFieldChoice False \
2950          -startValue $srcPort \
2951          -countValue {1}
2952         sg_commit
2953         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2954
2955         #
2956         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"udp-3"/field:"udp.header.dstPort-2"
2957         #
2958         set sg_field $ixNetSG_Stack(3)/field:"udp.header.dstPort-2"
2959         ixNet setMultiAttrs $sg_field \
2960          -singleValue $dstPort \
2961          -seed {1} \
2962          -optionalEnabled True \
2963          -fullMesh False \
2964          -valueList {{63}} \
2965          -stepValue {1} \
2966          -fixedBits {63} \
2967          -fieldValue $dstPort \
2968          -auto False \
2969          -randomMask {63} \
2970          -trackingEnabled False \
2971          -valueType $L4ValueType \
2972          -activeFieldChoice False \
2973          -startValue {0} \
2974          -countValue $L4CountValue
2975         sg_commit
2976         set sg_field [lindex [ixNet remapIds $sg_field] 0]
2977
2978         #
2979         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"udp-3"/field:"udp.header.length-3"
2980         #
2981         set sg_field $ixNetSG_Stack(3)/field:"udp.header.length-3"
2982         ixNet setMultiAttrs $sg_field \
2983          -singleValue {26} \
2984          -seed {1} \
2985          -optionalEnabled True \
2986          -fullMesh False \
2987          -valueList {{8}} \
2988          -stepValue {8} \
2989          -fixedBits {8} \
2990          -fieldValue {26} \
2991          -auto True \
2992          -randomMask {8} \
2993          -trackingEnabled False \
2994          -valueType singleValue \
2995          -activeFieldChoice False \
2996          -startValue {8} \
2997          -countValue {1}
2998         sg_commit
2999         set sg_field [lindex [ixNet remapIds $sg_field] 0]
3000
3001         #
3002         # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"udp-3"/field:"udp.header.checksum-4"
3003         #
3004         set sg_field $ixNetSG_Stack(3)/field:"udp.header.checksum-4"
3005         ixNet setMultiAttrs $sg_field \
3006          -singleValue {0} \
3007          -seed {1} \
3008          -optionalEnabled True \
3009          -fullMesh False \
3010          -valueList {{0}} \
3011          -stepValue {0} \
3012          -fixedBits {0} \
3013          -fieldValue {0} \
3014          -auto True \
3015          -randomMask {0} \
3016          -trackingEnabled False \
3017          -valueType singleValue \
3018          -activeFieldChoice False \
3019          -startValue {0} \
3020          -countValue {1}
3021         sg_commit
3022         set sg_field [lindex [ixNet remapIds $sg_field] 0]
3023     }
3024
3025     #
3026     # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"fcs-4"
3027     #
3028     set sg_stack $ixNetSG_Stack(2)/stack:"fcs-$stack_number"
3029     sg_commit
3030     set sg_stack [lindex [ixNet remapIds $sg_stack] 0]
3031     set ixNetSG_Stack(3) $sg_stack
3032     incr stack_number
3033
3034     #
3035     # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/stack:"fcs-4"/field:"ethernet.fcs-1"
3036     #
3037     set sg_field $ixNetSG_Stack(3)/field:"ethernet.fcs-1"
3038     ixNet setMultiAttrs $sg_field \
3039      -singleValue {0} \
3040      -seed {1} \
3041      -optionalEnabled True \
3042      -fullMesh False \
3043      -valueList {{0}} \
3044      -stepValue {0} \
3045      -fixedBits {0} \
3046      -fieldValue {0} \
3047      -auto True \
3048      -randomMask {0} \
3049      -trackingEnabled False \
3050      -valueType singleValue \
3051      -activeFieldChoice False \
3052      -startValue {0} \
3053      -countValue {1}
3054     sg_commit
3055     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3056
3057     #
3058     # configuring the object that corresponds to /traffic/trafficItem:1/configElement:1/transmissionDistribution
3059     #
3060     set sg_transmissionDistribution $ixNetSG_Stack(2)/transmissionDistribution
3061     ixNet setMultiAttrs $sg_transmissionDistribution \
3062      -distributions {}
3063     sg_commit
3064     set sg_transmissionDistribution [lindex [ixNet remapIds $sg_transmissionDistribution] 0]
3065
3066     #
3067     # configuring the object that corresponds to /traffic/trafficItem:1/transmissionDistribution
3068     #
3069     set sg_transmissionDistribution $ixNetSG_Stack(1)/transmissionDistribution
3070     ixNet setMultiAttrs $sg_transmissionDistribution \
3071      -distributions {}
3072     sg_commit
3073     set sg_transmissionDistribution [lindex [ixNet remapIds $sg_transmissionDistribution] 0]
3074
3075     #
3076     # configuring the object that corresponds to /traffic/trafficItem:1/tracking
3077     #
3078     set sg_tracking $ixNetSG_Stack(1)/tracking
3079     ixNet setMultiAttrs $sg_tracking \
3080      -offset 0 \
3081      -oneToOneMesh False \
3082      -trackBy {} \
3083      -values {} \
3084      -fieldWidth thirtyTwoBits \
3085      -protocolOffset {Root.0}
3086     ixNet setMultiAttrs $sg_tracking/egress \
3087      -offset {Outer VLAN Priority (3 bits)} \
3088      -enabled False \
3089      -customOffsetBits 0 \
3090      -encapsulation {Ethernet} \
3091      -customWidthBits 0
3092     ixNet setMultiAttrs $sg_tracking/latencyBin \
3093      -enabled False \
3094      -binLimits {1 1.42 2 2.82 4 5.66 8 11.32} \
3095      -numberOfBins 8
3096     sg_commit
3097     set sg_tracking [lindex [ixNet remapIds $sg_tracking] 0]
3098     set ixNetSG_Stack(2) $sg_tracking
3099
3100     #
3101     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ethernet-1"
3102     #
3103     set sg_stack $ixNetSG_Stack(2)/egress/fieldOffset/stack:"ethernet-1"
3104     sg_commit
3105     set sg_stack [lindex [ixNet remapIds $sg_stack] 0]
3106     set ixNetSG_Stack(3) $sg_stack
3107
3108     #
3109     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ethernet-1"/field:"ethernet.header.destinationAddress-1"
3110     #
3111     set sg_field $ixNetSG_Stack(3)/field:"ethernet.header.destinationAddress-1"
3112     ixNet setMultiAttrs $sg_field \
3113      -singleValue {00:00:00:00:00:00} \
3114      -seed {1} \
3115      -optionalEnabled True \
3116      -fullMesh False \
3117      -valueList {{00:00:00:00:00:00}} \
3118      -stepValue {00:00:00:00:00:00} \
3119      -fixedBits {00:00:00:00:00:00} \
3120      -fieldValue {00:00:00:00:00:00} \
3121      -auto False \
3122      -randomMask {00:00:00:00:00:00} \
3123      -trackingEnabled True \
3124      -valueType singleValue \
3125      -activeFieldChoice False \
3126      -startValue {00:00:00:00:00:00} \
3127      -countValue {1}
3128     sg_commit
3129     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3130
3131     #
3132     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ethernet-1"/field:"ethernet.header.sourceAddress-2"
3133     #
3134     set sg_field $ixNetSG_Stack(3)/field:"ethernet.header.sourceAddress-2"
3135     ixNet setMultiAttrs $sg_field \
3136      -singleValue {00:00:00:00:00:00} \
3137      -seed {1} \
3138      -optionalEnabled True \
3139      -fullMesh False \
3140      -valueList {{00:00:00:00:00:00}} \
3141      -stepValue {00:00:00:00:00:00} \
3142      -fixedBits {00:00:00:00:00:00} \
3143      -fieldValue {00:00:00:00:00:00} \
3144      -auto False \
3145      -randomMask {00:00:00:00:00:00} \
3146      -trackingEnabled False \
3147      -valueType singleValue \
3148      -activeFieldChoice False \
3149      -startValue {00:00:00:00:00:00} \
3150      -countValue {1}
3151     sg_commit
3152     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3153
3154     #
3155     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ethernet-1"/field:"ethernet.header.etherType-3"
3156     #
3157     set sg_field $ixNetSG_Stack(3)/field:"ethernet.header.etherType-3"
3158     ixNet setMultiAttrs $sg_field \
3159      -singleValue {800} \
3160      -seed {1} \
3161      -optionalEnabled True \
3162      -fullMesh False \
3163      -valueList {{0xFFFF}} \
3164      -stepValue {0xFFFF} \
3165      -fixedBits {0xFFFF} \
3166      -fieldValue {800} \
3167      -auto True \
3168      -randomMask {0xFFFF} \
3169      -trackingEnabled False \
3170      -valueType singleValue \
3171      -activeFieldChoice False \
3172      -startValue {0xFFFF} \
3173      -countValue {1}
3174     sg_commit
3175     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3176
3177     #
3178     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ethernet-1"/field:"ethernet.header.pfcQueue-4"
3179     #
3180     set sg_field $ixNetSG_Stack(3)/field:"ethernet.header.pfcQueue-4"
3181     ixNet setMultiAttrs $sg_field \
3182      -singleValue {0} \
3183      -seed {1} \
3184      -optionalEnabled True \
3185      -fullMesh False \
3186      -valueList {{0}} \
3187      -stepValue {0} \
3188      -fixedBits {0} \
3189      -fieldValue {0} \
3190      -auto False \
3191      -randomMask {0} \
3192      -trackingEnabled False \
3193      -valueType singleValue \
3194      -activeFieldChoice False \
3195      -startValue {0} \
3196      -countValue {1}
3197     sg_commit
3198     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3199
3200     #
3201     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"
3202     #
3203     set sg_stack $ixNetSG_Stack(2)/egress/fieldOffset/stack:"ipv4-2"
3204     sg_commit
3205     set sg_stack [lindex [ixNet remapIds $sg_stack] 0]
3206     set ixNetSG_Stack(3) $sg_stack
3207
3208     #
3209     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.version-1"
3210     #
3211     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.version-1"
3212     ixNet setMultiAttrs $sg_field \
3213      -singleValue {4} \
3214      -seed {1} \
3215      -optionalEnabled True \
3216      -fullMesh False \
3217      -valueList {{4}} \
3218      -stepValue {4} \
3219      -fixedBits {4} \
3220      -fieldValue {4} \
3221      -auto False \
3222      -randomMask {4} \
3223      -trackingEnabled False \
3224      -valueType singleValue \
3225      -activeFieldChoice False \
3226      -startValue {4} \
3227      -countValue {1}
3228     sg_commit
3229     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3230
3231     #
3232     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.headerLength-2"
3233     #
3234     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.headerLength-2"
3235     ixNet setMultiAttrs $sg_field \
3236      -singleValue {5} \
3237      -seed {1} \
3238      -optionalEnabled True \
3239      -fullMesh False \
3240      -valueList {{0}} \
3241      -stepValue {0} \
3242      -fixedBits {0} \
3243      -fieldValue {5} \
3244      -auto True \
3245      -randomMask {0} \
3246      -trackingEnabled False \
3247      -valueType singleValue \
3248      -activeFieldChoice False \
3249      -startValue {0} \
3250      -countValue {1}
3251     sg_commit
3252     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3253
3254     #
3255     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.raw-3"
3256     #
3257     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.raw-3"
3258     ixNet setMultiAttrs $sg_field \
3259      -singleValue {0} \
3260      -seed {1} \
3261      -optionalEnabled True \
3262      -fullMesh False \
3263      -valueList {{0}} \
3264      -stepValue {0} \
3265      -fixedBits {0} \
3266      -fieldValue {0} \
3267      -auto False \
3268      -randomMask {0} \
3269      -trackingEnabled False \
3270      -valueType singleValue \
3271      -activeFieldChoice False \
3272      -startValue {0} \
3273      -countValue {1}
3274     sg_commit
3275     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3276
3277     #
3278     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.tos.precedence-4"
3279     #
3280     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.tos.precedence-4"
3281     ixNet setMultiAttrs $sg_field \
3282      -singleValue {0} \
3283      -seed {1} \
3284      -optionalEnabled True \
3285      -fullMesh False \
3286      -valueList {{0}} \
3287      -stepValue {0} \
3288      -fixedBits {0} \
3289      -fieldValue {000 Routine} \
3290      -auto False \
3291      -randomMask {0} \
3292      -trackingEnabled False \
3293      -valueType singleValue \
3294      -activeFieldChoice True \
3295      -startValue {0} \
3296      -countValue {1}
3297     sg_commit
3298     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3299
3300     #
3301     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.tos.delay-5"
3302     #
3303     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.tos.delay-5"
3304     ixNet setMultiAttrs $sg_field \
3305      -singleValue {0} \
3306      -seed {1} \
3307      -optionalEnabled True \
3308      -fullMesh False \
3309      -valueList {{0}} \
3310      -stepValue {0} \
3311      -fixedBits {0} \
3312      -fieldValue {Normal} \
3313      -auto False \
3314      -randomMask {0} \
3315      -trackingEnabled False \
3316      -valueType singleValue \
3317      -activeFieldChoice True \
3318      -startValue {0} \
3319      -countValue {1}
3320     sg_commit
3321     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3322
3323     #
3324     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.tos.throughput-6"
3325     #
3326     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.tos.throughput-6"
3327     ixNet setMultiAttrs $sg_field \
3328      -singleValue {0} \
3329      -seed {1} \
3330      -optionalEnabled True \
3331      -fullMesh False \
3332      -valueList {{0}} \
3333      -stepValue {0} \
3334      -fixedBits {0} \
3335      -fieldValue {Normal} \
3336      -auto False \
3337      -randomMask {0} \
3338      -trackingEnabled False \
3339      -valueType singleValue \
3340      -activeFieldChoice True \
3341      -startValue {0} \
3342      -countValue {1}
3343     sg_commit
3344     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3345
3346     #
3347     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.tos.reliability-7"
3348     #
3349     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.tos.reliability-7"
3350     ixNet setMultiAttrs $sg_field \
3351      -singleValue {0} \
3352      -seed {1} \
3353      -optionalEnabled True \
3354      -fullMesh False \
3355      -valueList {{0}} \
3356      -stepValue {0} \
3357      -fixedBits {0} \
3358      -fieldValue {Normal} \
3359      -auto False \
3360      -randomMask {0} \
3361      -trackingEnabled False \
3362      -valueType singleValue \
3363      -activeFieldChoice True \
3364      -startValue {0} \
3365      -countValue {1}
3366     sg_commit
3367     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3368
3369     #
3370     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.tos.monetary-8"
3371     #
3372     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.tos.monetary-8"
3373     ixNet setMultiAttrs $sg_field \
3374      -singleValue {0} \
3375      -seed {1} \
3376      -optionalEnabled True \
3377      -fullMesh False \
3378      -valueList {{0}} \
3379      -stepValue {0} \
3380      -fixedBits {0} \
3381      -fieldValue {Normal} \
3382      -auto False \
3383      -randomMask {0} \
3384      -trackingEnabled False \
3385      -valueType singleValue \
3386      -activeFieldChoice True \
3387      -startValue {0} \
3388      -countValue {1}
3389     sg_commit
3390     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3391
3392     #
3393     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.tos.unused-9"
3394     #
3395     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.tos.unused-9"
3396     ixNet setMultiAttrs $sg_field \
3397      -singleValue {0} \
3398      -seed {1} \
3399      -optionalEnabled True \
3400      -fullMesh False \
3401      -valueList {{0}} \
3402      -stepValue {0} \
3403      -fixedBits {0} \
3404      -fieldValue {0} \
3405      -auto False \
3406      -randomMask {0} \
3407      -trackingEnabled False \
3408      -valueType singleValue \
3409      -activeFieldChoice True \
3410      -startValue {0} \
3411      -countValue {1}
3412     sg_commit
3413     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3414
3415     #
3416     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.defaultPHB.defaultPHB-10"
3417     #
3418     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.defaultPHB.defaultPHB-10"
3419     ixNet setMultiAttrs $sg_field \
3420      -singleValue {0} \
3421      -seed {1} \
3422      -optionalEnabled True \
3423      -fullMesh False \
3424      -valueList {{0}} \
3425      -stepValue {0} \
3426      -fixedBits {0} \
3427      -fieldValue {0} \
3428      -auto False \
3429      -randomMask {0} \
3430      -trackingEnabled False \
3431      -valueType singleValue \
3432      -activeFieldChoice False \
3433      -startValue {0} \
3434      -countValue {1}
3435     sg_commit
3436     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3437
3438     #
3439     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.defaultPHB.unused-11"
3440     #
3441     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.defaultPHB.unused-11"
3442     ixNet setMultiAttrs $sg_field \
3443      -singleValue {0} \
3444      -seed {1} \
3445      -optionalEnabled True \
3446      -fullMesh False \
3447      -valueList {{0}} \
3448      -stepValue {0} \
3449      -fixedBits {0} \
3450      -fieldValue {0} \
3451      -auto False \
3452      -randomMask {0} \
3453      -trackingEnabled False \
3454      -valueType singleValue \
3455      -activeFieldChoice False \
3456      -startValue {0} \
3457      -countValue {1}
3458     sg_commit
3459     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3460
3461     #
3462     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.classSelectorPHB.classSelectorPHB-12"
3463     #
3464     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.classSelectorPHB.classSelectorPHB-12"
3465     ixNet setMultiAttrs $sg_field \
3466      -singleValue {8} \
3467      -seed {1} \
3468      -optionalEnabled True \
3469      -fullMesh False \
3470      -valueList {{8}} \
3471      -stepValue {8} \
3472      -fixedBits {8} \
3473      -fieldValue {Precedence 1} \
3474      -auto False \
3475      -randomMask {8} \
3476      -trackingEnabled False \
3477      -valueType singleValue \
3478      -activeFieldChoice False \
3479      -startValue {8} \
3480      -countValue {1}
3481     sg_commit
3482     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3483
3484     #
3485     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.classSelectorPHB.unused-13"
3486     #
3487     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.classSelectorPHB.unused-13"
3488     ixNet setMultiAttrs $sg_field \
3489      -singleValue {0} \
3490      -seed {1} \
3491      -optionalEnabled True \
3492      -fullMesh False \
3493      -valueList {{0}} \
3494      -stepValue {0} \
3495      -fixedBits {0} \
3496      -fieldValue {0} \
3497      -auto False \
3498      -randomMask {0} \
3499      -trackingEnabled False \
3500      -valueType singleValue \
3501      -activeFieldChoice False \
3502      -startValue {0} \
3503      -countValue {1}
3504     sg_commit
3505     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3506
3507     #
3508     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.assuredForwardingPHB.assuredForwardingPHB-14"
3509     #
3510     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.assuredForwardingPHB.assuredForwardingPHB-14"
3511     ixNet setMultiAttrs $sg_field \
3512      -singleValue {10} \
3513      -seed {1} \
3514      -optionalEnabled True \
3515      -fullMesh False \
3516      -valueList {{10}} \
3517      -stepValue {10} \
3518      -fixedBits {10} \
3519      -fieldValue {Class 1, Low drop precedence} \
3520      -auto False \
3521      -randomMask {10} \
3522      -trackingEnabled False \
3523      -valueType singleValue \
3524      -activeFieldChoice False \
3525      -startValue {10} \
3526      -countValue {1}
3527     sg_commit
3528     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3529
3530     #
3531     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.assuredForwardingPHB.unused-15"
3532     #
3533     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.assuredForwardingPHB.unused-15"
3534     ixNet setMultiAttrs $sg_field \
3535      -singleValue {0} \
3536      -seed {1} \
3537      -optionalEnabled True \
3538      -fullMesh False \
3539      -valueList {{0}} \
3540      -stepValue {0} \
3541      -fixedBits {0} \
3542      -fieldValue {0} \
3543      -auto False \
3544      -randomMask {0} \
3545      -trackingEnabled False \
3546      -valueType singleValue \
3547      -activeFieldChoice False \
3548      -startValue {0} \
3549      -countValue {1}
3550     sg_commit
3551     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3552
3553     #
3554     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.expeditedForwardingPHB.expeditedForwardingPHB-16"
3555     #
3556     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.expeditedForwardingPHB.expeditedForwardingPHB-16"
3557     ixNet setMultiAttrs $sg_field \
3558      -singleValue {46} \
3559      -seed {1} \
3560      -optionalEnabled True \
3561      -fullMesh False \
3562      -valueList {{46}} \
3563      -stepValue {46} \
3564      -fixedBits {46} \
3565      -fieldValue {46} \
3566      -auto False \
3567      -randomMask {46} \
3568      -trackingEnabled False \
3569      -valueType singleValue \
3570      -activeFieldChoice False \
3571      -startValue {46} \
3572      -countValue {1}
3573     sg_commit
3574     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3575
3576     #
3577     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.expeditedForwardingPHB.unused-17"
3578     #
3579     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.expeditedForwardingPHB.unused-17"
3580     ixNet setMultiAttrs $sg_field \
3581      -singleValue {0} \
3582      -seed {1} \
3583      -optionalEnabled True \
3584      -fullMesh False \
3585      -valueList {{0}} \
3586      -stepValue {0} \
3587      -fixedBits {0} \
3588      -fieldValue {0} \
3589      -auto False \
3590      -randomMask {0} \
3591      -trackingEnabled False \
3592      -valueType singleValue \
3593      -activeFieldChoice False \
3594      -startValue {0} \
3595      -countValue {1}
3596     sg_commit
3597     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3598
3599     #
3600     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.totalLength-18"
3601     #
3602     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.totalLength-18"
3603     ixNet setMultiAttrs $sg_field \
3604      -singleValue {92} \
3605      -seed {1} \
3606      -optionalEnabled True \
3607      -fullMesh False \
3608      -valueList {{20}} \
3609      -stepValue {20} \
3610      -fixedBits {20} \
3611      -fieldValue {92} \
3612      -auto True \
3613      -randomMask {20} \
3614      -trackingEnabled False \
3615      -valueType singleValue \
3616      -activeFieldChoice False \
3617      -startValue {20} \
3618      -countValue {1}
3619     sg_commit
3620     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3621
3622     #
3623     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.identification-19"
3624     #
3625     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.identification-19"
3626     ixNet setMultiAttrs $sg_field \
3627      -singleValue {0} \
3628      -seed {1} \
3629      -optionalEnabled True \
3630      -fullMesh False \
3631      -valueList {{0}} \
3632      -stepValue {0} \
3633      -fixedBits {0} \
3634      -fieldValue {0} \
3635      -auto False \
3636      -randomMask {0} \
3637      -trackingEnabled False \
3638      -valueType singleValue \
3639      -activeFieldChoice False \
3640      -startValue {0} \
3641      -countValue {1}
3642     sg_commit
3643     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3644
3645     #
3646     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.flags.reserved-20"
3647     #
3648     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.flags.reserved-20"
3649     ixNet setMultiAttrs $sg_field \
3650      -singleValue {0} \
3651      -seed {1} \
3652      -optionalEnabled True \
3653      -fullMesh False \
3654      -valueList {{0}} \
3655      -stepValue {0} \
3656      -fixedBits {0} \
3657      -fieldValue {0} \
3658      -auto False \
3659      -randomMask {0} \
3660      -trackingEnabled False \
3661      -valueType singleValue \
3662      -activeFieldChoice False \
3663      -startValue {0} \
3664      -countValue {1}
3665     sg_commit
3666     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3667
3668     #
3669     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.flags.fragment-21"
3670     #
3671     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.flags.fragment-21"
3672     ixNet setMultiAttrs $sg_field \
3673      -singleValue {0} \
3674      -seed {1} \
3675      -optionalEnabled True \
3676      -fullMesh False \
3677      -valueList {{0}} \
3678      -stepValue {0} \
3679      -fixedBits {0} \
3680      -fieldValue {May fragment} \
3681      -auto False \
3682      -randomMask {0} \
3683      -trackingEnabled False \
3684      -valueType singleValue \
3685      -activeFieldChoice False \
3686      -startValue {0} \
3687      -countValue {1}
3688     sg_commit
3689     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3690
3691     #
3692     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.flags.lastFragment-22"
3693     #
3694     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.flags.lastFragment-22"
3695     ixNet setMultiAttrs $sg_field \
3696      -singleValue {0} \
3697      -seed {1} \
3698      -optionalEnabled True \
3699      -fullMesh False \
3700      -valueList {{0}} \
3701      -stepValue {0} \
3702      -fixedBits {0} \
3703      -fieldValue {Last fragment} \
3704      -auto False \
3705      -randomMask {0} \
3706      -trackingEnabled False \
3707      -valueType singleValue \
3708      -activeFieldChoice False \
3709      -startValue {0} \
3710      -countValue {1}
3711     sg_commit
3712     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3713
3714     #
3715     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.fragmentOffset-23"
3716     #
3717     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.fragmentOffset-23"
3718     ixNet setMultiAttrs $sg_field \
3719      -singleValue {0} \
3720      -seed {1} \
3721      -optionalEnabled True \
3722      -fullMesh False \
3723      -valueList {{0}} \
3724      -stepValue {0} \
3725      -fixedBits {0} \
3726      -fieldValue {0} \
3727      -auto False \
3728      -randomMask {0} \
3729      -trackingEnabled False \
3730      -valueType singleValue \
3731      -activeFieldChoice False \
3732      -startValue {0} \
3733      -countValue {1}
3734     sg_commit
3735     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3736
3737     #
3738     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.ttl-24"
3739     #
3740     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.ttl-24"
3741     ixNet setMultiAttrs $sg_field \
3742      -singleValue {64} \
3743      -seed {1} \
3744      -optionalEnabled True \
3745      -fullMesh False \
3746      -valueList {{64}} \
3747      -stepValue {64} \
3748      -fixedBits {64} \
3749      -fieldValue {64} \
3750      -auto False \
3751      -randomMask {64} \
3752      -trackingEnabled False \
3753      -valueType singleValue \
3754      -activeFieldChoice False \
3755      -startValue {64} \
3756      -countValue {1}
3757     sg_commit
3758     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3759
3760     #
3761     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.protocol-25"
3762     #
3763     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.protocol-25"
3764     ixNet setMultiAttrs $sg_field \
3765      -singleValue {17} \
3766      -seed {1} \
3767      -optionalEnabled True \
3768      -fullMesh False \
3769      -valueList {{61}} \
3770      -stepValue {61} \
3771      -fixedBits {61} \
3772      -fieldValue {UDP} \
3773      -auto True \
3774      -randomMask {61} \
3775      -trackingEnabled False \
3776      -valueType singleValue \
3777      -activeFieldChoice False \
3778      -startValue {61} \
3779      -countValue {1}
3780     sg_commit
3781     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3782
3783     #
3784     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.checksum-26"
3785     #
3786     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.checksum-26"
3787     ixNet setMultiAttrs $sg_field \
3788      -singleValue {0} \
3789      -seed {1} \
3790      -optionalEnabled True \
3791      -fullMesh False \
3792      -valueList {{0}} \
3793      -stepValue {0} \
3794      -fixedBits {0} \
3795      -fieldValue {0} \
3796      -auto True \
3797      -randomMask {0} \
3798      -trackingEnabled False \
3799      -valueType singleValue \
3800      -activeFieldChoice False \
3801      -startValue {0} \
3802      -countValue {1}
3803     sg_commit
3804     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3805
3806     #
3807     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.srcIp-27"
3808     #
3809     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.srcIp-27"
3810     ixNet setMultiAttrs $sg_field \
3811      -singleValue {0.0.0.0} \
3812      -seed {1} \
3813      -optionalEnabled True \
3814      -fullMesh False \
3815      -valueList {{0.0.0.0}} \
3816      -stepValue {0.0.0.0} \
3817      -fixedBits {0.0.0.0} \
3818      -fieldValue {0.0.0.0} \
3819      -auto False \
3820      -randomMask {0.0.0.0} \
3821      -trackingEnabled False \
3822      -valueType singleValue \
3823      -activeFieldChoice False \
3824      -startValue {0.0.0.0} \
3825      -countValue {1}
3826     sg_commit
3827     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3828
3829     #
3830     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.dstIp-28"
3831     #
3832     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.dstIp-28"
3833     ixNet setMultiAttrs $sg_field \
3834      -singleValue {0.0.0.0} \
3835      -seed {1} \
3836      -optionalEnabled True \
3837      -fullMesh False \
3838      -valueList {{0.0.0.0}} \
3839      -stepValue {0.0.0.0} \
3840      -fixedBits {0.0.0.0} \
3841      -fieldValue {0.0.0.0} \
3842      -auto False \
3843      -randomMask {0.0.0.0} \
3844      -trackingEnabled False \
3845      -valueType singleValue \
3846      -activeFieldChoice False \
3847      -startValue {0.0.0.0} \
3848      -countValue {1}
3849     sg_commit
3850     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3851
3852     #
3853     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.nop-29"
3854     #
3855     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.nop-29"
3856     ixNet setMultiAttrs $sg_field \
3857      -singleValue {1} \
3858      -seed {1} \
3859      -optionalEnabled False \
3860      -fullMesh False \
3861      -valueList {{1}} \
3862      -stepValue {1} \
3863      -fixedBits {1} \
3864      -fieldValue {1} \
3865      -auto False \
3866      -randomMask {1} \
3867      -trackingEnabled False \
3868      -valueType singleValue \
3869      -activeFieldChoice True \
3870      -startValue {1} \
3871      -countValue {1}
3872     sg_commit
3873     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3874
3875     #
3876     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.security.type-30"
3877     #
3878     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.security.type-30"
3879     ixNet setMultiAttrs $sg_field \
3880      -singleValue {130} \
3881      -seed {1} \
3882      -optionalEnabled False \
3883      -fullMesh False \
3884      -valueList {{130}} \
3885      -stepValue {130} \
3886      -fixedBits {130} \
3887      -fieldValue {130} \
3888      -auto False \
3889      -randomMask {130} \
3890      -trackingEnabled False \
3891      -valueType singleValue \
3892      -activeFieldChoice False \
3893      -startValue {130} \
3894      -countValue {1}
3895     sg_commit
3896     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3897
3898     #
3899     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.security.length-31"
3900     #
3901     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.security.length-31"
3902     ixNet setMultiAttrs $sg_field \
3903      -singleValue {11} \
3904      -seed {1} \
3905      -optionalEnabled False \
3906      -fullMesh False \
3907      -valueList {{11}} \
3908      -stepValue {11} \
3909      -fixedBits {11} \
3910      -fieldValue {11} \
3911      -auto False \
3912      -randomMask {11} \
3913      -trackingEnabled False \
3914      -valueType singleValue \
3915      -activeFieldChoice False \
3916      -startValue {11} \
3917      -countValue {1}
3918     sg_commit
3919     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3920
3921     #
3922     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.security.security-32"
3923     #
3924     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.security.security-32"
3925     ixNet setMultiAttrs $sg_field \
3926      -singleValue {0} \
3927      -seed {1} \
3928      -optionalEnabled False \
3929      -fullMesh False \
3930      -valueList {{0}} \
3931      -stepValue {0} \
3932      -fixedBits {0} \
3933      -fieldValue {Unclassified} \
3934      -auto False \
3935      -randomMask {0} \
3936      -trackingEnabled False \
3937      -valueType singleValue \
3938      -activeFieldChoice False \
3939      -startValue {0} \
3940      -countValue {1}
3941     sg_commit
3942     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3943
3944     #
3945     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.security.compartments-33"
3946     #
3947     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.security.compartments-33"
3948     ixNet setMultiAttrs $sg_field \
3949      -singleValue {0} \
3950      -seed {1} \
3951      -optionalEnabled False \
3952      -fullMesh False \
3953      -valueList {{0}} \
3954      -stepValue {0} \
3955      -fixedBits {0} \
3956      -fieldValue {0} \
3957      -auto False \
3958      -randomMask {0} \
3959      -trackingEnabled False \
3960      -valueType singleValue \
3961      -activeFieldChoice False \
3962      -startValue {0} \
3963      -countValue {1}
3964     sg_commit
3965     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3966
3967     #
3968     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.security.handling-34"
3969     #
3970     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.security.handling-34"
3971     ixNet setMultiAttrs $sg_field \
3972      -singleValue {0} \
3973      -seed {1} \
3974      -optionalEnabled False \
3975      -fullMesh False \
3976      -valueList {{0}} \
3977      -stepValue {0} \
3978      -fixedBits {0} \
3979      -fieldValue {0} \
3980      -auto False \
3981      -randomMask {0} \
3982      -trackingEnabled False \
3983      -valueType singleValue \
3984      -activeFieldChoice False \
3985      -startValue {0} \
3986      -countValue {1}
3987     sg_commit
3988     set sg_field [lindex [ixNet remapIds $sg_field] 0]
3989
3990     #
3991     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.security.tcc-35"
3992     #
3993     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.security.tcc-35"
3994     ixNet setMultiAttrs $sg_field \
3995      -singleValue {0} \
3996      -seed {1} \
3997      -optionalEnabled False \
3998      -fullMesh False \
3999      -valueList {{0}} \
4000      -stepValue {0} \
4001      -fixedBits {0} \
4002      -fieldValue {0} \
4003      -auto False \
4004      -randomMask {0} \
4005      -trackingEnabled False \
4006      -valueType singleValue \
4007      -activeFieldChoice False \
4008      -startValue {0} \
4009      -countValue {1}
4010     sg_commit
4011     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4012
4013     #
4014     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.lsrr.type-36"
4015     #
4016     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.lsrr.type-36"
4017     ixNet setMultiAttrs $sg_field \
4018      -singleValue {131} \
4019      -seed {1} \
4020      -optionalEnabled False \
4021      -fullMesh False \
4022      -valueList {{131}} \
4023      -stepValue {131} \
4024      -fixedBits {131} \
4025      -fieldValue {131} \
4026      -auto False \
4027      -randomMask {131} \
4028      -trackingEnabled False \
4029      -valueType singleValue \
4030      -activeFieldChoice False \
4031      -startValue {131} \
4032      -countValue {1}
4033     sg_commit
4034     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4035
4036     #
4037     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.lsrr.length-37"
4038     #
4039     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.lsrr.length-37"
4040     ixNet setMultiAttrs $sg_field \
4041      -singleValue {8} \
4042      -seed {1} \
4043      -optionalEnabled False \
4044      -fullMesh False \
4045      -valueList {{8}} \
4046      -stepValue {8} \
4047      -fixedBits {8} \
4048      -fieldValue {8} \
4049      -auto False \
4050      -randomMask {8} \
4051      -trackingEnabled False \
4052      -valueType singleValue \
4053      -activeFieldChoice False \
4054      -startValue {8} \
4055      -countValue {1}
4056     sg_commit
4057     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4058
4059     #
4060     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.pointer-38"
4061     #
4062     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.pointer-38"
4063     ixNet setMultiAttrs $sg_field \
4064      -singleValue {4} \
4065      -seed {1} \
4066      -optionalEnabled False \
4067      -fullMesh False \
4068      -valueList {{4}} \
4069      -stepValue {4} \
4070      -fixedBits {4} \
4071      -fieldValue {4} \
4072      -auto False \
4073      -randomMask {4} \
4074      -trackingEnabled False \
4075      -valueType singleValue \
4076      -activeFieldChoice False \
4077      -startValue {4} \
4078      -countValue {1}
4079     sg_commit
4080     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4081
4082     #
4083     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.routeData-39"
4084     #
4085     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.routeData-39"
4086     ixNet setMultiAttrs $sg_field \
4087      -singleValue {0} \
4088      -seed {1} \
4089      -optionalEnabled False \
4090      -fullMesh False \
4091      -valueList {{0}} \
4092      -stepValue {0} \
4093      -fixedBits {0} \
4094      -fieldValue {0} \
4095      -auto False \
4096      -randomMask {0} \
4097      -trackingEnabled False \
4098      -valueType singleValue \
4099      -activeFieldChoice False \
4100      -startValue {0} \
4101      -countValue {1}
4102     sg_commit
4103     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4104
4105     #
4106     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.ssrr.type-40"
4107     #
4108     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.ssrr.type-40"
4109     ixNet setMultiAttrs $sg_field \
4110      -singleValue {137} \
4111      -seed {1} \
4112      -optionalEnabled False \
4113      -fullMesh False \
4114      -valueList {{137}} \
4115      -stepValue {137} \
4116      -fixedBits {137} \
4117      -fieldValue {137} \
4118      -auto False \
4119      -randomMask {137} \
4120      -trackingEnabled False \
4121      -valueType singleValue \
4122      -activeFieldChoice False \
4123      -startValue {137} \
4124      -countValue {1}
4125     sg_commit
4126     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4127
4128     #
4129     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.ssrr.length-41"
4130     #
4131     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.ssrr.length-41"
4132     ixNet setMultiAttrs $sg_field \
4133      -singleValue {8} \
4134      -seed {1} \
4135      -optionalEnabled False \
4136      -fullMesh False \
4137      -valueList {{8}} \
4138      -stepValue {8} \
4139      -fixedBits {8} \
4140      -fieldValue {8} \
4141      -auto False \
4142      -randomMask {8} \
4143      -trackingEnabled False \
4144      -valueType singleValue \
4145      -activeFieldChoice False \
4146      -startValue {8} \
4147      -countValue {1}
4148     sg_commit
4149     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4150
4151     #
4152     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.recordRoute.type-42"
4153     #
4154     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.recordRoute.type-42"
4155     ixNet setMultiAttrs $sg_field \
4156      -singleValue {7} \
4157      -seed {1} \
4158      -optionalEnabled False \
4159      -fullMesh False \
4160      -valueList {{7}} \
4161      -stepValue {7} \
4162      -fixedBits {7} \
4163      -fieldValue {7} \
4164      -auto False \
4165      -randomMask {7} \
4166      -trackingEnabled False \
4167      -valueType singleValue \
4168      -activeFieldChoice False \
4169      -startValue {7} \
4170      -countValue {1}
4171     sg_commit
4172     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4173
4174     #
4175     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.recordRoute.length-43"
4176     #
4177     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.recordRoute.length-43"
4178     ixNet setMultiAttrs $sg_field \
4179      -singleValue {8} \
4180      -seed {1} \
4181      -optionalEnabled False \
4182      -fullMesh False \
4183      -valueList {{8}} \
4184      -stepValue {8} \
4185      -fixedBits {8} \
4186      -fieldValue {8} \
4187      -auto False \
4188      -randomMask {8} \
4189      -trackingEnabled False \
4190      -valueType singleValue \
4191      -activeFieldChoice False \
4192      -startValue {8} \
4193      -countValue {1}
4194     sg_commit
4195     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4196
4197     #
4198     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.streamId.type-44"
4199     #
4200     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.streamId.type-44"
4201     ixNet setMultiAttrs $sg_field \
4202      -singleValue {136} \
4203      -seed {1} \
4204      -optionalEnabled False \
4205      -fullMesh False \
4206      -valueList {{136}} \
4207      -stepValue {136} \
4208      -fixedBits {136} \
4209      -fieldValue {136} \
4210      -auto False \
4211      -randomMask {136} \
4212      -trackingEnabled False \
4213      -valueType singleValue \
4214      -activeFieldChoice False \
4215      -startValue {136} \
4216      -countValue {1}
4217     sg_commit
4218     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4219
4220     #
4221     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.streamId.length-45"
4222     #
4223     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.streamId.length-45"
4224     ixNet setMultiAttrs $sg_field \
4225      -singleValue {4} \
4226      -seed {1} \
4227      -optionalEnabled False \
4228      -fullMesh False \
4229      -valueList {{4}} \
4230      -stepValue {4} \
4231      -fixedBits {4} \
4232      -fieldValue {4} \
4233      -auto False \
4234      -randomMask {4} \
4235      -trackingEnabled False \
4236      -valueType singleValue \
4237      -activeFieldChoice False \
4238      -startValue {4} \
4239      -countValue {1}
4240     sg_commit
4241     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4242
4243     #
4244     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.streamId.id-46"
4245     #
4246     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.streamId.id-46"
4247     ixNet setMultiAttrs $sg_field \
4248      -singleValue {0} \
4249      -seed {1} \
4250      -optionalEnabled False \
4251      -fullMesh False \
4252      -valueList {{0}} \
4253      -stepValue {0} \
4254      -fixedBits {0} \
4255      -fieldValue {0} \
4256      -auto False \
4257      -randomMask {0} \
4258      -trackingEnabled False \
4259      -valueType singleValue \
4260      -activeFieldChoice False \
4261      -startValue {0} \
4262      -countValue {1}
4263     sg_commit
4264     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4265
4266     #
4267     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.type-47"
4268     #
4269     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.type-47"
4270     ixNet setMultiAttrs $sg_field \
4271      -singleValue {68} \
4272      -seed {1} \
4273      -optionalEnabled False \
4274      -fullMesh False \
4275      -valueList {{68}} \
4276      -stepValue {68} \
4277      -fixedBits {68} \
4278      -fieldValue {68} \
4279      -auto False \
4280      -randomMask {68} \
4281      -trackingEnabled False \
4282      -valueType singleValue \
4283      -activeFieldChoice False \
4284      -startValue {68} \
4285      -countValue {1}
4286     sg_commit
4287     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4288
4289     #
4290     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.length-48"
4291     #
4292     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.length-48"
4293     ixNet setMultiAttrs $sg_field \
4294      -singleValue {12} \
4295      -seed {1} \
4296      -optionalEnabled False \
4297      -fullMesh False \
4298      -valueList {{12}} \
4299      -stepValue {12} \
4300      -fixedBits {12} \
4301      -fieldValue {12} \
4302      -auto False \
4303      -randomMask {12} \
4304      -trackingEnabled False \
4305      -valueType singleValue \
4306      -activeFieldChoice False \
4307      -startValue {12} \
4308      -countValue {1}
4309     sg_commit
4310     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4311
4312     #
4313     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.pointer-49"
4314     #
4315     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.pointer-49"
4316     ixNet setMultiAttrs $sg_field \
4317      -singleValue {5} \
4318      -seed {1} \
4319      -optionalEnabled False \
4320      -fullMesh False \
4321      -valueList {{5}} \
4322      -stepValue {5} \
4323      -fixedBits {5} \
4324      -fieldValue {5} \
4325      -auto False \
4326      -randomMask {5} \
4327      -trackingEnabled False \
4328      -valueType singleValue \
4329      -activeFieldChoice False \
4330      -startValue {5} \
4331      -countValue {1}
4332     sg_commit
4333     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4334
4335     #
4336     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.overflow-50"
4337     #
4338     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.overflow-50"
4339     ixNet setMultiAttrs $sg_field \
4340      -singleValue {0} \
4341      -seed {1} \
4342      -optionalEnabled False \
4343      -fullMesh False \
4344      -valueList {{0}} \
4345      -stepValue {0} \
4346      -fixedBits {0} \
4347      -fieldValue {0} \
4348      -auto False \
4349      -randomMask {0} \
4350      -trackingEnabled False \
4351      -valueType singleValue \
4352      -activeFieldChoice False \
4353      -startValue {0} \
4354      -countValue {1}
4355     sg_commit
4356     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4357
4358     #
4359     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.flags-51"
4360     #
4361     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.flags-51"
4362     ixNet setMultiAttrs $sg_field \
4363      -singleValue {0} \
4364      -seed {1} \
4365      -optionalEnabled False \
4366      -fullMesh False \
4367      -valueList {{0}} \
4368      -stepValue {0} \
4369      -fixedBits {0} \
4370      -fieldValue {Timestamps only, in consecutive 32-bit words} \
4371      -auto False \
4372      -randomMask {0} \
4373      -trackingEnabled False \
4374      -valueType singleValue \
4375      -activeFieldChoice False \
4376      -startValue {0} \
4377      -countValue {1}
4378     sg_commit
4379     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4380
4381     #
4382     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.pair.address-52"
4383     #
4384     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.pair.address-52"
4385     ixNet setMultiAttrs $sg_field \
4386      -singleValue {0} \
4387      -seed {1} \
4388      -optionalEnabled False \
4389      -fullMesh False \
4390      -valueList {{0}} \
4391      -stepValue {0} \
4392      -fixedBits {0} \
4393      -fieldValue {0} \
4394      -auto False \
4395      -randomMask {0} \
4396      -trackingEnabled False \
4397      -valueType singleValue \
4398      -activeFieldChoice False \
4399      -startValue {0} \
4400      -countValue {1}
4401     sg_commit
4402     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4403
4404     #
4405     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.pair.timestamp-53"
4406     #
4407     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.pair.timestamp-53"
4408     ixNet setMultiAttrs $sg_field \
4409      -singleValue {0} \
4410      -seed {1} \
4411      -optionalEnabled False \
4412      -fullMesh False \
4413      -valueList {{0}} \
4414      -stepValue {0} \
4415      -fixedBits {0} \
4416      -fieldValue {0} \
4417      -auto False \
4418      -randomMask {0} \
4419      -trackingEnabled False \
4420      -valueType singleValue \
4421      -activeFieldChoice False \
4422      -startValue {0} \
4423      -countValue {1}
4424     sg_commit
4425     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4426
4427     #
4428     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.last-54"
4429     #
4430     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.last-54"
4431     ixNet setMultiAttrs $sg_field \
4432      -singleValue {0} \
4433      -seed {1} \
4434      -optionalEnabled False \
4435      -fullMesh False \
4436      -valueList {{0}} \
4437      -stepValue {0} \
4438      -fixedBits {0} \
4439      -fieldValue {0} \
4440      -auto False \
4441      -randomMask {0} \
4442      -trackingEnabled False \
4443      -valueType singleValue \
4444      -activeFieldChoice False \
4445      -startValue {0} \
4446      -countValue {1}
4447     sg_commit
4448     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4449
4450     #
4451     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.routerAlert.type-55"
4452     #
4453     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.routerAlert.type-55"
4454     ixNet setMultiAttrs $sg_field \
4455      -singleValue {94} \
4456      -seed {1} \
4457      -optionalEnabled False \
4458      -fullMesh False \
4459      -valueList {{0x94}} \
4460      -stepValue {0x94} \
4461      -fixedBits {0x94} \
4462      -fieldValue {94} \
4463      -auto False \
4464      -randomMask {0x94} \
4465      -trackingEnabled False \
4466      -valueType singleValue \
4467      -activeFieldChoice False \
4468      -startValue {0x94} \
4469      -countValue {1}
4470     sg_commit
4471     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4472
4473     #
4474     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.routerAlert.length-56"
4475     #
4476     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.routerAlert.length-56"
4477     ixNet setMultiAttrs $sg_field \
4478      -singleValue {4} \
4479      -seed {1} \
4480      -optionalEnabled False \
4481      -fullMesh False \
4482      -valueList {{0x04}} \
4483      -stepValue {0x04} \
4484      -fixedBits {0x04} \
4485      -fieldValue {4} \
4486      -auto False \
4487      -randomMask {0x04} \
4488      -trackingEnabled False \
4489      -valueType singleValue \
4490      -activeFieldChoice False \
4491      -startValue {0x04} \
4492      -countValue {1}
4493     sg_commit
4494     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4495
4496     #
4497     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.routerAlert.value-57"
4498     #
4499     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.routerAlert.value-57"
4500     ixNet setMultiAttrs $sg_field \
4501      -singleValue {0} \
4502      -seed {1} \
4503      -optionalEnabled False \
4504      -fullMesh False \
4505      -valueList {{0}} \
4506      -stepValue {0} \
4507      -fixedBits {0} \
4508      -fieldValue {Router shall examine packet} \
4509      -auto False \
4510      -randomMask {0} \
4511      -trackingEnabled False \
4512      -valueType singleValue \
4513      -activeFieldChoice False \
4514      -startValue {0} \
4515      -countValue {1}
4516     sg_commit
4517     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4518
4519     #
4520     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.pad-58"
4521     #
4522     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.pad-58"
4523     ixNet setMultiAttrs $sg_field \
4524      -singleValue {0} \
4525      -seed {1} \
4526      -optionalEnabled False \
4527      -fullMesh False \
4528      -valueList {{0}} \
4529      -stepValue {0} \
4530      -fixedBits {0} \
4531      -fieldValue {0} \
4532      -auto True \
4533      -randomMask {0} \
4534      -trackingEnabled False \
4535      -valueType singleValue \
4536      -activeFieldChoice False \
4537      -startValue {0} \
4538      -countValue {1}
4539     sg_commit
4540     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4541
4542     #
4543     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"udp-3"
4544     #
4545     set sg_stack $ixNetSG_Stack(2)/egress/fieldOffset/stack:"udp-3"
4546     sg_commit
4547     set sg_stack [lindex [ixNet remapIds $sg_stack] 0]
4548     set ixNetSG_Stack(3) $sg_stack
4549
4550     #
4551     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"udp-3"/field:"udp.header.srcPort-1"
4552     #
4553     set sg_field $ixNetSG_Stack(3)/field:"udp.header.srcPort-1"
4554     ixNet setMultiAttrs $sg_field \
4555      -singleValue {63} \
4556      -seed {1} \
4557      -optionalEnabled True \
4558      -fullMesh False \
4559      -valueList {{63}} \
4560      -stepValue {63} \
4561      -fixedBits {63} \
4562      -fieldValue {Default} \
4563      -auto True \
4564      -randomMask {63} \
4565      -trackingEnabled False \
4566      -valueType singleValue \
4567      -activeFieldChoice False \
4568      -startValue {63} \
4569      -countValue {1}
4570     sg_commit
4571     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4572
4573     #
4574     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"udp-3"/field:"udp.header.dstPort-2"
4575     #
4576     set sg_field $ixNetSG_Stack(3)/field:"udp.header.dstPort-2"
4577     ixNet setMultiAttrs $sg_field \
4578      -singleValue {63} \
4579      -seed {1} \
4580      -optionalEnabled True \
4581      -fullMesh False \
4582      -valueList {{63}} \
4583      -stepValue {63} \
4584      -fixedBits {63} \
4585      -fieldValue {Default} \
4586      -auto True \
4587      -randomMask {63} \
4588      -trackingEnabled False \
4589      -valueType singleValue \
4590      -activeFieldChoice False \
4591      -startValue {63} \
4592      -countValue {1}
4593     sg_commit
4594     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4595
4596     #
4597     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"udp-3"/field:"udp.header.length-3"
4598     #
4599     set sg_field $ixNetSG_Stack(3)/field:"udp.header.length-3"
4600     ixNet setMultiAttrs $sg_field \
4601      -singleValue {72} \
4602      -seed {1} \
4603      -optionalEnabled True \
4604      -fullMesh False \
4605      -valueList {{8}} \
4606      -stepValue {8} \
4607      -fixedBits {8} \
4608      -fieldValue {72} \
4609      -auto True \
4610      -randomMask {8} \
4611      -trackingEnabled False \
4612      -valueType singleValue \
4613      -activeFieldChoice False \
4614      -startValue {8} \
4615      -countValue {1}
4616     sg_commit
4617     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4618
4619     #
4620     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"udp-3"/field:"udp.header.checksum-4"
4621     #
4622     set sg_field $ixNetSG_Stack(3)/field:"udp.header.checksum-4"
4623     ixNet setMultiAttrs $sg_field \
4624      -singleValue {0} \
4625      -seed {1} \
4626      -optionalEnabled True \
4627      -fullMesh False \
4628      -valueList {{0}} \
4629      -stepValue {0} \
4630      -fixedBits {0} \
4631      -fieldValue {0} \
4632      -auto True \
4633      -randomMask {0} \
4634      -trackingEnabled False \
4635      -valueType singleValue \
4636      -activeFieldChoice False \
4637      -startValue {0} \
4638      -countValue {1}
4639     sg_commit
4640     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4641
4642     #
4643     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"fcs-4"
4644     #
4645     set sg_stack $ixNetSG_Stack(2)/egress/fieldOffset/stack:"fcs-4"
4646     sg_commit
4647     set sg_stack [lindex [ixNet remapIds $sg_stack] 0]
4648     set ixNetSG_Stack(3) $sg_stack
4649
4650     #
4651     # configuring the object that corresponds to /traffic/trafficItem:1/tracking/egress/fieldOffset/stack:"fcs-4"/field:"ethernet.fcs-1"
4652     #
4653     set sg_field $ixNetSG_Stack(3)/field:"ethernet.fcs-1"
4654     ixNet setMultiAttrs $sg_field \
4655      -singleValue {0} \
4656      -seed {1} \
4657      -optionalEnabled True \
4658      -fullMesh False \
4659      -valueList {{0}} \
4660      -stepValue {0} \
4661      -fixedBits {0} \
4662      -fieldValue {0} \
4663      -auto True \
4664      -randomMask {0} \
4665      -trackingEnabled False \
4666      -valueType singleValue \
4667      -activeFieldChoice False \
4668      -startValue {0} \
4669      -countValue {1}
4670     sg_commit
4671     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4672
4673     #
4674     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1
4675     #
4676     set sg_egressTracking [ixNet add $ixNetSG_Stack(1) egressTracking]
4677     ixNet setMultiAttrs $sg_egressTracking \
4678      -offset {Outer VLAN Priority (3 bits)} \
4679      -customOffsetBits 0 \
4680      -encapsulation {Ethernet} \
4681      -customWidthBits 0
4682     sg_commit
4683     set sg_egressTracking [lindex [ixNet remapIds $sg_egressTracking] 0]
4684     set ixNetSG_Stack(2) $sg_egressTracking
4685
4686     #
4687     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ethernet-1"
4688     #
4689     set sg_stack $ixNetSG_Stack(2)/fieldOffset/stack:"ethernet-1"
4690     sg_commit
4691     set sg_stack [lindex [ixNet remapIds $sg_stack] 0]
4692     set ixNetSG_Stack(3) $sg_stack
4693
4694     #
4695     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ethernet-1"/field:"ethernet.header.destinationAddress-1"
4696     #
4697     set sg_field $ixNetSG_Stack(3)/field:"ethernet.header.destinationAddress-1"
4698     ixNet setMultiAttrs $sg_field \
4699      -singleValue {00:00:00:00:00:00} \
4700      -seed {1} \
4701      -optionalEnabled True \
4702      -fullMesh False \
4703      -valueList {{00:00:00:00:00:00}} \
4704      -stepValue {00:00:00:00:00:00} \
4705      -fixedBits {00:00:00:00:00:00} \
4706      -fieldValue {00:00:00:00:00:00} \
4707      -auto False \
4708      -randomMask {00:00:00:00:00:00} \
4709      -trackingEnabled True \
4710      -valueType singleValue \
4711      -activeFieldChoice False \
4712      -startValue {00:00:00:00:00:00} \
4713      -countValue {1}
4714     sg_commit
4715     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4716
4717     #
4718     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ethernet-1"/field:"ethernet.header.sourceAddress-2"
4719     #
4720     set sg_field $ixNetSG_Stack(3)/field:"ethernet.header.sourceAddress-2"
4721     ixNet setMultiAttrs $sg_field \
4722      -singleValue {00:00:00:00:00:00} \
4723      -seed {1} \
4724      -optionalEnabled True \
4725      -fullMesh False \
4726      -valueList {{00:00:00:00:00:00}} \
4727      -stepValue {00:00:00:00:00:00} \
4728      -fixedBits {00:00:00:00:00:00} \
4729      -fieldValue {00:00:00:00:00:00} \
4730      -auto False \
4731      -randomMask {00:00:00:00:00:00} \
4732      -trackingEnabled False \
4733      -valueType singleValue \
4734      -activeFieldChoice False \
4735      -startValue {00:00:00:00:00:00} \
4736      -countValue {1}
4737     sg_commit
4738     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4739
4740     #
4741     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ethernet-1"/field:"ethernet.header.etherType-3"
4742     #
4743     set sg_field $ixNetSG_Stack(3)/field:"ethernet.header.etherType-3"
4744     ixNet setMultiAttrs $sg_field \
4745      -singleValue {800} \
4746      -seed {1} \
4747      -optionalEnabled True \
4748      -fullMesh False \
4749      -valueList {{0xFFFF}} \
4750      -stepValue {0xFFFF} \
4751      -fixedBits {0xFFFF} \
4752      -fieldValue {800} \
4753      -auto True \
4754      -randomMask {0xFFFF} \
4755      -trackingEnabled False \
4756      -valueType singleValue \
4757      -activeFieldChoice False \
4758      -startValue {0xFFFF} \
4759      -countValue {1}
4760     sg_commit
4761     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4762
4763     #
4764     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ethernet-1"/field:"ethernet.header.pfcQueue-4"
4765     #
4766     set sg_field $ixNetSG_Stack(3)/field:"ethernet.header.pfcQueue-4"
4767     ixNet setMultiAttrs $sg_field \
4768      -singleValue {0} \
4769      -seed {1} \
4770      -optionalEnabled True \
4771      -fullMesh False \
4772      -valueList {{0}} \
4773      -stepValue {0} \
4774      -fixedBits {0} \
4775      -fieldValue {0} \
4776      -auto False \
4777      -randomMask {0} \
4778      -trackingEnabled False \
4779      -valueType singleValue \
4780      -activeFieldChoice False \
4781      -startValue {0} \
4782      -countValue {1}
4783     sg_commit
4784     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4785
4786     #
4787     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"
4788     #
4789     set sg_stack $ixNetSG_Stack(2)/fieldOffset/stack:"ipv4-2"
4790     sg_commit
4791     set sg_stack [lindex [ixNet remapIds $sg_stack] 0]
4792     set ixNetSG_Stack(3) $sg_stack
4793
4794     #
4795     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.version-1"
4796     #
4797     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.version-1"
4798     ixNet setMultiAttrs $sg_field \
4799      -singleValue {4} \
4800      -seed {1} \
4801      -optionalEnabled True \
4802      -fullMesh False \
4803      -valueList {{4}} \
4804      -stepValue {4} \
4805      -fixedBits {4} \
4806      -fieldValue {4} \
4807      -auto False \
4808      -randomMask {4} \
4809      -trackingEnabled False \
4810      -valueType singleValue \
4811      -activeFieldChoice False \
4812      -startValue {4} \
4813      -countValue {1}
4814     sg_commit
4815     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4816
4817     #
4818     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.headerLength-2"
4819     #
4820     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.headerLength-2"
4821     ixNet setMultiAttrs $sg_field \
4822      -singleValue {5} \
4823      -seed {1} \
4824      -optionalEnabled True \
4825      -fullMesh False \
4826      -valueList {{0}} \
4827      -stepValue {0} \
4828      -fixedBits {0} \
4829      -fieldValue {5} \
4830      -auto True \
4831      -randomMask {0} \
4832      -trackingEnabled False \
4833      -valueType singleValue \
4834      -activeFieldChoice False \
4835      -startValue {0} \
4836      -countValue {1}
4837     sg_commit
4838     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4839
4840     #
4841     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.raw-3"
4842     #
4843     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.raw-3"
4844     ixNet setMultiAttrs $sg_field \
4845      -singleValue {0} \
4846      -seed {1} \
4847      -optionalEnabled True \
4848      -fullMesh False \
4849      -valueList {{0}} \
4850      -stepValue {0} \
4851      -fixedBits {0} \
4852      -fieldValue {0} \
4853      -auto False \
4854      -randomMask {0} \
4855      -trackingEnabled False \
4856      -valueType singleValue \
4857      -activeFieldChoice False \
4858      -startValue {0} \
4859      -countValue {1}
4860     sg_commit
4861     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4862
4863     #
4864     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.tos.precedence-4"
4865     #
4866     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.tos.precedence-4"
4867     ixNet setMultiAttrs $sg_field \
4868      -singleValue {0} \
4869      -seed {1} \
4870      -optionalEnabled True \
4871      -fullMesh False \
4872      -valueList {{0}} \
4873      -stepValue {0} \
4874      -fixedBits {0} \
4875      -fieldValue {000 Routine} \
4876      -auto False \
4877      -randomMask {0} \
4878      -trackingEnabled False \
4879      -valueType singleValue \
4880      -activeFieldChoice True \
4881      -startValue {0} \
4882      -countValue {1}
4883     sg_commit
4884     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4885
4886     #
4887     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.tos.delay-5"
4888     #
4889     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.tos.delay-5"
4890     ixNet setMultiAttrs $sg_field \
4891      -singleValue {0} \
4892      -seed {1} \
4893      -optionalEnabled True \
4894      -fullMesh False \
4895      -valueList {{0}} \
4896      -stepValue {0} \
4897      -fixedBits {0} \
4898      -fieldValue {Normal} \
4899      -auto False \
4900      -randomMask {0} \
4901      -trackingEnabled False \
4902      -valueType singleValue \
4903      -activeFieldChoice True \
4904      -startValue {0} \
4905      -countValue {1}
4906     sg_commit
4907     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4908
4909     #
4910     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.tos.throughput-6"
4911     #
4912     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.tos.throughput-6"
4913     ixNet setMultiAttrs $sg_field \
4914      -singleValue {0} \
4915      -seed {1} \
4916      -optionalEnabled True \
4917      -fullMesh False \
4918      -valueList {{0}} \
4919      -stepValue {0} \
4920      -fixedBits {0} \
4921      -fieldValue {Normal} \
4922      -auto False \
4923      -randomMask {0} \
4924      -trackingEnabled False \
4925      -valueType singleValue \
4926      -activeFieldChoice True \
4927      -startValue {0} \
4928      -countValue {1}
4929     sg_commit
4930     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4931
4932     #
4933     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.tos.reliability-7"
4934     #
4935     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.tos.reliability-7"
4936     ixNet setMultiAttrs $sg_field \
4937      -singleValue {0} \
4938      -seed {1} \
4939      -optionalEnabled True \
4940      -fullMesh False \
4941      -valueList {{0}} \
4942      -stepValue {0} \
4943      -fixedBits {0} \
4944      -fieldValue {Normal} \
4945      -auto False \
4946      -randomMask {0} \
4947      -trackingEnabled False \
4948      -valueType singleValue \
4949      -activeFieldChoice True \
4950      -startValue {0} \
4951      -countValue {1}
4952     sg_commit
4953     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4954
4955     #
4956     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.tos.monetary-8"
4957     #
4958     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.tos.monetary-8"
4959     ixNet setMultiAttrs $sg_field \
4960      -singleValue {0} \
4961      -seed {1} \
4962      -optionalEnabled True \
4963      -fullMesh False \
4964      -valueList {{0}} \
4965      -stepValue {0} \
4966      -fixedBits {0} \
4967      -fieldValue {Normal} \
4968      -auto False \
4969      -randomMask {0} \
4970      -trackingEnabled False \
4971      -valueType singleValue \
4972      -activeFieldChoice True \
4973      -startValue {0} \
4974      -countValue {1}
4975     sg_commit
4976     set sg_field [lindex [ixNet remapIds $sg_field] 0]
4977
4978     #
4979     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.tos.unused-9"
4980     #
4981     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.tos.unused-9"
4982     ixNet setMultiAttrs $sg_field \
4983      -singleValue {0} \
4984      -seed {1} \
4985      -optionalEnabled True \
4986      -fullMesh False \
4987      -valueList {{0}} \
4988      -stepValue {0} \
4989      -fixedBits {0} \
4990      -fieldValue {0} \
4991      -auto False \
4992      -randomMask {0} \
4993      -trackingEnabled False \
4994      -valueType singleValue \
4995      -activeFieldChoice True \
4996      -startValue {0} \
4997      -countValue {1}
4998     sg_commit
4999     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5000
5001     #
5002     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.defaultPHB.defaultPHB-10"
5003     #
5004     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.defaultPHB.defaultPHB-10"
5005     ixNet setMultiAttrs $sg_field \
5006      -singleValue {0} \
5007      -seed {1} \
5008      -optionalEnabled True \
5009      -fullMesh False \
5010      -valueList {{0}} \
5011      -stepValue {0} \
5012      -fixedBits {0} \
5013      -fieldValue {0} \
5014      -auto False \
5015      -randomMask {0} \
5016      -trackingEnabled False \
5017      -valueType singleValue \
5018      -activeFieldChoice False \
5019      -startValue {0} \
5020      -countValue {1}
5021     sg_commit
5022     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5023
5024     #
5025     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.defaultPHB.unused-11"
5026     #
5027     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.defaultPHB.unused-11"
5028     ixNet setMultiAttrs $sg_field \
5029      -singleValue {0} \
5030      -seed {1} \
5031      -optionalEnabled True \
5032      -fullMesh False \
5033      -valueList {{0}} \
5034      -stepValue {0} \
5035      -fixedBits {0} \
5036      -fieldValue {0} \
5037      -auto False \
5038      -randomMask {0} \
5039      -trackingEnabled False \
5040      -valueType singleValue \
5041      -activeFieldChoice False \
5042      -startValue {0} \
5043      -countValue {1}
5044     sg_commit
5045     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5046
5047     #
5048     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.classSelectorPHB.classSelectorPHB-12"
5049     #
5050     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.classSelectorPHB.classSelectorPHB-12"
5051     ixNet setMultiAttrs $sg_field \
5052      -singleValue {8} \
5053      -seed {1} \
5054      -optionalEnabled True \
5055      -fullMesh False \
5056      -valueList {{8}} \
5057      -stepValue {8} \
5058      -fixedBits {8} \
5059      -fieldValue {Precedence 1} \
5060      -auto False \
5061      -randomMask {8} \
5062      -trackingEnabled False \
5063      -valueType singleValue \
5064      -activeFieldChoice False \
5065      -startValue {8} \
5066      -countValue {1}
5067     sg_commit
5068     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5069
5070     #
5071     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.classSelectorPHB.unused-13"
5072     #
5073     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.classSelectorPHB.unused-13"
5074     ixNet setMultiAttrs $sg_field \
5075      -singleValue {0} \
5076      -seed {1} \
5077      -optionalEnabled True \
5078      -fullMesh False \
5079      -valueList {{0}} \
5080      -stepValue {0} \
5081      -fixedBits {0} \
5082      -fieldValue {0} \
5083      -auto False \
5084      -randomMask {0} \
5085      -trackingEnabled False \
5086      -valueType singleValue \
5087      -activeFieldChoice False \
5088      -startValue {0} \
5089      -countValue {1}
5090     sg_commit
5091     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5092
5093     #
5094     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.assuredForwardingPHB.assuredForwardingPHB-14"
5095     #
5096     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.assuredForwardingPHB.assuredForwardingPHB-14"
5097     ixNet setMultiAttrs $sg_field \
5098      -singleValue {10} \
5099      -seed {1} \
5100      -optionalEnabled True \
5101      -fullMesh False \
5102      -valueList {{10}} \
5103      -stepValue {10} \
5104      -fixedBits {10} \
5105      -fieldValue {Class 1, Low drop precedence} \
5106      -auto False \
5107      -randomMask {10} \
5108      -trackingEnabled False \
5109      -valueType singleValue \
5110      -activeFieldChoice False \
5111      -startValue {10} \
5112      -countValue {1}
5113     sg_commit
5114     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5115
5116     #
5117     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.assuredForwardingPHB.unused-15"
5118     #
5119     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.assuredForwardingPHB.unused-15"
5120     ixNet setMultiAttrs $sg_field \
5121      -singleValue {0} \
5122      -seed {1} \
5123      -optionalEnabled True \
5124      -fullMesh False \
5125      -valueList {{0}} \
5126      -stepValue {0} \
5127      -fixedBits {0} \
5128      -fieldValue {0} \
5129      -auto False \
5130      -randomMask {0} \
5131      -trackingEnabled False \
5132      -valueType singleValue \
5133      -activeFieldChoice False \
5134      -startValue {0} \
5135      -countValue {1}
5136     sg_commit
5137     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5138
5139     #
5140     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.expeditedForwardingPHB.expeditedForwardingPHB-16"
5141     #
5142     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.expeditedForwardingPHB.expeditedForwardingPHB-16"
5143     ixNet setMultiAttrs $sg_field \
5144      -singleValue {46} \
5145      -seed {1} \
5146      -optionalEnabled True \
5147      -fullMesh False \
5148      -valueList {{46}} \
5149      -stepValue {46} \
5150      -fixedBits {46} \
5151      -fieldValue {46} \
5152      -auto False \
5153      -randomMask {46} \
5154      -trackingEnabled False \
5155      -valueType singleValue \
5156      -activeFieldChoice False \
5157      -startValue {46} \
5158      -countValue {1}
5159     sg_commit
5160     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5161
5162     #
5163     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.priority.ds.phb.expeditedForwardingPHB.unused-17"
5164     #
5165     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.priority.ds.phb.expeditedForwardingPHB.unused-17"
5166     ixNet setMultiAttrs $sg_field \
5167      -singleValue {0} \
5168      -seed {1} \
5169      -optionalEnabled True \
5170      -fullMesh False \
5171      -valueList {{0}} \
5172      -stepValue {0} \
5173      -fixedBits {0} \
5174      -fieldValue {0} \
5175      -auto False \
5176      -randomMask {0} \
5177      -trackingEnabled False \
5178      -valueType singleValue \
5179      -activeFieldChoice False \
5180      -startValue {0} \
5181      -countValue {1}
5182     sg_commit
5183     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5184
5185     #
5186     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.totalLength-18"
5187     #
5188     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.totalLength-18"
5189     ixNet setMultiAttrs $sg_field \
5190      -singleValue {92} \
5191      -seed {1} \
5192      -optionalEnabled True \
5193      -fullMesh False \
5194      -valueList {{20}} \
5195      -stepValue {20} \
5196      -fixedBits {20} \
5197      -fieldValue {92} \
5198      -auto True \
5199      -randomMask {20} \
5200      -trackingEnabled False \
5201      -valueType singleValue \
5202      -activeFieldChoice False \
5203      -startValue {20} \
5204      -countValue {1}
5205     sg_commit
5206     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5207
5208     #
5209     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.identification-19"
5210     #
5211     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.identification-19"
5212     ixNet setMultiAttrs $sg_field \
5213      -singleValue {0} \
5214      -seed {1} \
5215      -optionalEnabled True \
5216      -fullMesh False \
5217      -valueList {{0}} \
5218      -stepValue {0} \
5219      -fixedBits {0} \
5220      -fieldValue {0} \
5221      -auto False \
5222      -randomMask {0} \
5223      -trackingEnabled False \
5224      -valueType singleValue \
5225      -activeFieldChoice False \
5226      -startValue {0} \
5227      -countValue {1}
5228     sg_commit
5229     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5230
5231     #
5232     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.flags.reserved-20"
5233     #
5234     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.flags.reserved-20"
5235     ixNet setMultiAttrs $sg_field \
5236      -singleValue {0} \
5237      -seed {1} \
5238      -optionalEnabled True \
5239      -fullMesh False \
5240      -valueList {{0}} \
5241      -stepValue {0} \
5242      -fixedBits {0} \
5243      -fieldValue {0} \
5244      -auto False \
5245      -randomMask {0} \
5246      -trackingEnabled False \
5247      -valueType singleValue \
5248      -activeFieldChoice False \
5249      -startValue {0} \
5250      -countValue {1}
5251     sg_commit
5252     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5253
5254     #
5255     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.flags.fragment-21"
5256     #
5257     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.flags.fragment-21"
5258     ixNet setMultiAttrs $sg_field \
5259      -singleValue {0} \
5260      -seed {1} \
5261      -optionalEnabled True \
5262      -fullMesh False \
5263      -valueList {{0}} \
5264      -stepValue {0} \
5265      -fixedBits {0} \
5266      -fieldValue {May fragment} \
5267      -auto False \
5268      -randomMask {0} \
5269      -trackingEnabled False \
5270      -valueType singleValue \
5271      -activeFieldChoice False \
5272      -startValue {0} \
5273      -countValue {1}
5274     sg_commit
5275     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5276
5277     #
5278     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.flags.lastFragment-22"
5279     #
5280     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.flags.lastFragment-22"
5281     ixNet setMultiAttrs $sg_field \
5282      -singleValue {0} \
5283      -seed {1} \
5284      -optionalEnabled True \
5285      -fullMesh False \
5286      -valueList {{0}} \
5287      -stepValue {0} \
5288      -fixedBits {0} \
5289      -fieldValue {Last fragment} \
5290      -auto False \
5291      -randomMask {0} \
5292      -trackingEnabled False \
5293      -valueType singleValue \
5294      -activeFieldChoice False \
5295      -startValue {0} \
5296      -countValue {1}
5297     sg_commit
5298     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5299
5300     #
5301     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.fragmentOffset-23"
5302     #
5303     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.fragmentOffset-23"
5304     ixNet setMultiAttrs $sg_field \
5305      -singleValue {0} \
5306      -seed {1} \
5307      -optionalEnabled True \
5308      -fullMesh False \
5309      -valueList {{0}} \
5310      -stepValue {0} \
5311      -fixedBits {0} \
5312      -fieldValue {0} \
5313      -auto False \
5314      -randomMask {0} \
5315      -trackingEnabled False \
5316      -valueType singleValue \
5317      -activeFieldChoice False \
5318      -startValue {0} \
5319      -countValue {1}
5320     sg_commit
5321     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5322
5323     #
5324     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.ttl-24"
5325     #
5326     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.ttl-24"
5327     ixNet setMultiAttrs $sg_field \
5328      -singleValue {64} \
5329      -seed {1} \
5330      -optionalEnabled True \
5331      -fullMesh False \
5332      -valueList {{64}} \
5333      -stepValue {64} \
5334      -fixedBits {64} \
5335      -fieldValue {64} \
5336      -auto False \
5337      -randomMask {64} \
5338      -trackingEnabled False \
5339      -valueType singleValue \
5340      -activeFieldChoice False \
5341      -startValue {64} \
5342      -countValue {1}
5343     sg_commit
5344     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5345
5346     #
5347     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.protocol-25"
5348     #
5349     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.protocol-25"
5350     ixNet setMultiAttrs $sg_field \
5351      -singleValue {17} \
5352      -seed {1} \
5353      -optionalEnabled True \
5354      -fullMesh False \
5355      -valueList {{61}} \
5356      -stepValue {61} \
5357      -fixedBits {61} \
5358      -fieldValue {UDP} \
5359      -auto True \
5360      -randomMask {61} \
5361      -trackingEnabled False \
5362      -valueType singleValue \
5363      -activeFieldChoice False \
5364      -startValue {61} \
5365      -countValue {1}
5366     sg_commit
5367     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5368
5369     #
5370     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.checksum-26"
5371     #
5372     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.checksum-26"
5373     ixNet setMultiAttrs $sg_field \
5374      -singleValue {0} \
5375      -seed {1} \
5376      -optionalEnabled True \
5377      -fullMesh False \
5378      -valueList {{0}} \
5379      -stepValue {0} \
5380      -fixedBits {0} \
5381      -fieldValue {0} \
5382      -auto True \
5383      -randomMask {0} \
5384      -trackingEnabled False \
5385      -valueType singleValue \
5386      -activeFieldChoice False \
5387      -startValue {0} \
5388      -countValue {1}
5389     sg_commit
5390     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5391
5392     #
5393     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.srcIp-27"
5394     #
5395     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.srcIp-27"
5396     ixNet setMultiAttrs $sg_field \
5397      -singleValue {0.0.0.0} \
5398      -seed {1} \
5399      -optionalEnabled True \
5400      -fullMesh False \
5401      -valueList {{0.0.0.0}} \
5402      -stepValue {0.0.0.0} \
5403      -fixedBits {0.0.0.0} \
5404      -fieldValue {0.0.0.0} \
5405      -auto False \
5406      -randomMask {0.0.0.0} \
5407      -trackingEnabled False \
5408      -valueType singleValue \
5409      -activeFieldChoice False \
5410      -startValue {0.0.0.0} \
5411      -countValue {1}
5412     sg_commit
5413     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5414
5415     #
5416     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.dstIp-28"
5417     #
5418     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.dstIp-28"
5419     ixNet setMultiAttrs $sg_field \
5420      -singleValue {0.0.0.0} \
5421      -seed {1} \
5422      -optionalEnabled True \
5423      -fullMesh False \
5424      -valueList {{0.0.0.0}} \
5425      -stepValue {0.0.0.0} \
5426      -fixedBits {0.0.0.0} \
5427      -fieldValue {0.0.0.0} \
5428      -auto False \
5429      -randomMask {0.0.0.0} \
5430      -trackingEnabled False \
5431      -valueType singleValue \
5432      -activeFieldChoice False \
5433      -startValue {0.0.0.0} \
5434      -countValue {1}
5435     sg_commit
5436     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5437
5438     #
5439     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.nop-29"
5440     #
5441     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.nop-29"
5442     ixNet setMultiAttrs $sg_field \
5443      -singleValue {1} \
5444      -seed {1} \
5445      -optionalEnabled False \
5446      -fullMesh False \
5447      -valueList {{1}} \
5448      -stepValue {1} \
5449      -fixedBits {1} \
5450      -fieldValue {1} \
5451      -auto False \
5452      -randomMask {1} \
5453      -trackingEnabled False \
5454      -valueType singleValue \
5455      -activeFieldChoice True \
5456      -startValue {1} \
5457      -countValue {1}
5458     sg_commit
5459     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5460
5461     #
5462     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.security.type-30"
5463     #
5464     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.security.type-30"
5465     ixNet setMultiAttrs $sg_field \
5466      -singleValue {130} \
5467      -seed {1} \
5468      -optionalEnabled False \
5469      -fullMesh False \
5470      -valueList {{130}} \
5471      -stepValue {130} \
5472      -fixedBits {130} \
5473      -fieldValue {130} \
5474      -auto False \
5475      -randomMask {130} \
5476      -trackingEnabled False \
5477      -valueType singleValue \
5478      -activeFieldChoice False \
5479      -startValue {130} \
5480      -countValue {1}
5481     sg_commit
5482     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5483
5484     #
5485     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.security.length-31"
5486     #
5487     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.security.length-31"
5488     ixNet setMultiAttrs $sg_field \
5489      -singleValue {11} \
5490      -seed {1} \
5491      -optionalEnabled False \
5492      -fullMesh False \
5493      -valueList {{11}} \
5494      -stepValue {11} \
5495      -fixedBits {11} \
5496      -fieldValue {11} \
5497      -auto False \
5498      -randomMask {11} \
5499      -trackingEnabled False \
5500      -valueType singleValue \
5501      -activeFieldChoice False \
5502      -startValue {11} \
5503      -countValue {1}
5504     sg_commit
5505     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5506
5507     #
5508     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.security.security-32"
5509     #
5510     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.security.security-32"
5511     ixNet setMultiAttrs $sg_field \
5512      -singleValue {0} \
5513      -seed {1} \
5514      -optionalEnabled False \
5515      -fullMesh False \
5516      -valueList {{0}} \
5517      -stepValue {0} \
5518      -fixedBits {0} \
5519      -fieldValue {Unclassified} \
5520      -auto False \
5521      -randomMask {0} \
5522      -trackingEnabled False \
5523      -valueType singleValue \
5524      -activeFieldChoice False \
5525      -startValue {0} \
5526      -countValue {1}
5527     sg_commit
5528     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5529
5530     #
5531     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.security.compartments-33"
5532     #
5533     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.security.compartments-33"
5534     ixNet setMultiAttrs $sg_field \
5535      -singleValue {0} \
5536      -seed {1} \
5537      -optionalEnabled False \
5538      -fullMesh False \
5539      -valueList {{0}} \
5540      -stepValue {0} \
5541      -fixedBits {0} \
5542      -fieldValue {0} \
5543      -auto False \
5544      -randomMask {0} \
5545      -trackingEnabled False \
5546      -valueType singleValue \
5547      -activeFieldChoice False \
5548      -startValue {0} \
5549      -countValue {1}
5550     sg_commit
5551     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5552
5553     #
5554     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.security.handling-34"
5555     #
5556     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.security.handling-34"
5557     ixNet setMultiAttrs $sg_field \
5558      -singleValue {0} \
5559      -seed {1} \
5560      -optionalEnabled False \
5561      -fullMesh False \
5562      -valueList {{0}} \
5563      -stepValue {0} \
5564      -fixedBits {0} \
5565      -fieldValue {0} \
5566      -auto False \
5567      -randomMask {0} \
5568      -trackingEnabled False \
5569      -valueType singleValue \
5570      -activeFieldChoice False \
5571      -startValue {0} \
5572      -countValue {1}
5573     sg_commit
5574     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5575
5576     #
5577     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.security.tcc-35"
5578     #
5579     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.security.tcc-35"
5580     ixNet setMultiAttrs $sg_field \
5581      -singleValue {0} \
5582      -seed {1} \
5583      -optionalEnabled False \
5584      -fullMesh False \
5585      -valueList {{0}} \
5586      -stepValue {0} \
5587      -fixedBits {0} \
5588      -fieldValue {0} \
5589      -auto False \
5590      -randomMask {0} \
5591      -trackingEnabled False \
5592      -valueType singleValue \
5593      -activeFieldChoice False \
5594      -startValue {0} \
5595      -countValue {1}
5596     sg_commit
5597     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5598
5599     #
5600     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.lsrr.type-36"
5601     #
5602     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.lsrr.type-36"
5603     ixNet setMultiAttrs $sg_field \
5604      -singleValue {131} \
5605      -seed {1} \
5606      -optionalEnabled False \
5607      -fullMesh False \
5608      -valueList {{131}} \
5609      -stepValue {131} \
5610      -fixedBits {131} \
5611      -fieldValue {131} \
5612      -auto False \
5613      -randomMask {131} \
5614      -trackingEnabled False \
5615      -valueType singleValue \
5616      -activeFieldChoice False \
5617      -startValue {131} \
5618      -countValue {1}
5619     sg_commit
5620     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5621
5622     #
5623     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.lsrr.length-37"
5624     #
5625     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.lsrr.length-37"
5626     ixNet setMultiAttrs $sg_field \
5627      -singleValue {8} \
5628      -seed {1} \
5629      -optionalEnabled False \
5630      -fullMesh False \
5631      -valueList {{8}} \
5632      -stepValue {8} \
5633      -fixedBits {8} \
5634      -fieldValue {8} \
5635      -auto False \
5636      -randomMask {8} \
5637      -trackingEnabled False \
5638      -valueType singleValue \
5639      -activeFieldChoice False \
5640      -startValue {8} \
5641      -countValue {1}
5642     sg_commit
5643     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5644
5645     #
5646     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.pointer-38"
5647     #
5648     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.pointer-38"
5649     ixNet setMultiAttrs $sg_field \
5650      -singleValue {4} \
5651      -seed {1} \
5652      -optionalEnabled False \
5653      -fullMesh False \
5654      -valueList {{4}} \
5655      -stepValue {4} \
5656      -fixedBits {4} \
5657      -fieldValue {4} \
5658      -auto False \
5659      -randomMask {4} \
5660      -trackingEnabled False \
5661      -valueType singleValue \
5662      -activeFieldChoice False \
5663      -startValue {4} \
5664      -countValue {1}
5665     sg_commit
5666     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5667
5668     #
5669     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.routeData-39"
5670     #
5671     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.routeData-39"
5672     ixNet setMultiAttrs $sg_field \
5673      -singleValue {0} \
5674      -seed {1} \
5675      -optionalEnabled False \
5676      -fullMesh False \
5677      -valueList {{0}} \
5678      -stepValue {0} \
5679      -fixedBits {0} \
5680      -fieldValue {0} \
5681      -auto False \
5682      -randomMask {0} \
5683      -trackingEnabled False \
5684      -valueType singleValue \
5685      -activeFieldChoice False \
5686      -startValue {0} \
5687      -countValue {1}
5688     sg_commit
5689     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5690
5691     #
5692     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.ssrr.type-40"
5693     #
5694     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.ssrr.type-40"
5695     ixNet setMultiAttrs $sg_field \
5696      -singleValue {137} \
5697      -seed {1} \
5698      -optionalEnabled False \
5699      -fullMesh False \
5700      -valueList {{137}} \
5701      -stepValue {137} \
5702      -fixedBits {137} \
5703      -fieldValue {137} \
5704      -auto False \
5705      -randomMask {137} \
5706      -trackingEnabled False \
5707      -valueType singleValue \
5708      -activeFieldChoice False \
5709      -startValue {137} \
5710      -countValue {1}
5711     sg_commit
5712     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5713
5714     #
5715     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.ssrr.length-41"
5716     #
5717     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.ssrr.length-41"
5718     ixNet setMultiAttrs $sg_field \
5719      -singleValue {8} \
5720      -seed {1} \
5721      -optionalEnabled False \
5722      -fullMesh False \
5723      -valueList {{8}} \
5724      -stepValue {8} \
5725      -fixedBits {8} \
5726      -fieldValue {8} \
5727      -auto False \
5728      -randomMask {8} \
5729      -trackingEnabled False \
5730      -valueType singleValue \
5731      -activeFieldChoice False \
5732      -startValue {8} \
5733      -countValue {1}
5734     sg_commit
5735     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5736
5737     #
5738     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.recordRoute.type-42"
5739     #
5740     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.recordRoute.type-42"
5741     ixNet setMultiAttrs $sg_field \
5742      -singleValue {7} \
5743      -seed {1} \
5744      -optionalEnabled False \
5745      -fullMesh False \
5746      -valueList {{7}} \
5747      -stepValue {7} \
5748      -fixedBits {7} \
5749      -fieldValue {7} \
5750      -auto False \
5751      -randomMask {7} \
5752      -trackingEnabled False \
5753      -valueType singleValue \
5754      -activeFieldChoice False \
5755      -startValue {7} \
5756      -countValue {1}
5757     sg_commit
5758     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5759
5760     #
5761     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.recordRoute.length-43"
5762     #
5763     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.recordRoute.length-43"
5764     ixNet setMultiAttrs $sg_field \
5765      -singleValue {8} \
5766      -seed {1} \
5767      -optionalEnabled False \
5768      -fullMesh False \
5769      -valueList {{8}} \
5770      -stepValue {8} \
5771      -fixedBits {8} \
5772      -fieldValue {8} \
5773      -auto False \
5774      -randomMask {8} \
5775      -trackingEnabled False \
5776      -valueType singleValue \
5777      -activeFieldChoice False \
5778      -startValue {8} \
5779      -countValue {1}
5780     sg_commit
5781     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5782
5783     #
5784     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.streamId.type-44"
5785     #
5786     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.streamId.type-44"
5787     ixNet setMultiAttrs $sg_field \
5788      -singleValue {136} \
5789      -seed {1} \
5790      -optionalEnabled False \
5791      -fullMesh False \
5792      -valueList {{136}} \
5793      -stepValue {136} \
5794      -fixedBits {136} \
5795      -fieldValue {136} \
5796      -auto False \
5797      -randomMask {136} \
5798      -trackingEnabled False \
5799      -valueType singleValue \
5800      -activeFieldChoice False \
5801      -startValue {136} \
5802      -countValue {1}
5803     sg_commit
5804     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5805
5806     #
5807     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.streamId.length-45"
5808     #
5809     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.streamId.length-45"
5810     ixNet setMultiAttrs $sg_field \
5811      -singleValue {4} \
5812      -seed {1} \
5813      -optionalEnabled False \
5814      -fullMesh False \
5815      -valueList {{4}} \
5816      -stepValue {4} \
5817      -fixedBits {4} \
5818      -fieldValue {4} \
5819      -auto False \
5820      -randomMask {4} \
5821      -trackingEnabled False \
5822      -valueType singleValue \
5823      -activeFieldChoice False \
5824      -startValue {4} \
5825      -countValue {1}
5826     sg_commit
5827     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5828
5829     #
5830     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.streamId.id-46"
5831     #
5832     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.streamId.id-46"
5833     ixNet setMultiAttrs $sg_field \
5834      -singleValue {0} \
5835      -seed {1} \
5836      -optionalEnabled False \
5837      -fullMesh False \
5838      -valueList {{0}} \
5839      -stepValue {0} \
5840      -fixedBits {0} \
5841      -fieldValue {0} \
5842      -auto False \
5843      -randomMask {0} \
5844      -trackingEnabled False \
5845      -valueType singleValue \
5846      -activeFieldChoice False \
5847      -startValue {0} \
5848      -countValue {1}
5849     sg_commit
5850     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5851
5852     #
5853     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.type-47"
5854     #
5855     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.type-47"
5856     ixNet setMultiAttrs $sg_field \
5857      -singleValue {68} \
5858      -seed {1} \
5859      -optionalEnabled False \
5860      -fullMesh False \
5861      -valueList {{68}} \
5862      -stepValue {68} \
5863      -fixedBits {68} \
5864      -fieldValue {68} \
5865      -auto False \
5866      -randomMask {68} \
5867      -trackingEnabled False \
5868      -valueType singleValue \
5869      -activeFieldChoice False \
5870      -startValue {68} \
5871      -countValue {1}
5872     sg_commit
5873     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5874
5875     #
5876     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.length-48"
5877     #
5878     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.length-48"
5879     ixNet setMultiAttrs $sg_field \
5880      -singleValue {12} \
5881      -seed {1} \
5882      -optionalEnabled False \
5883      -fullMesh False \
5884      -valueList {{12}} \
5885      -stepValue {12} \
5886      -fixedBits {12} \
5887      -fieldValue {12} \
5888      -auto False \
5889      -randomMask {12} \
5890      -trackingEnabled False \
5891      -valueType singleValue \
5892      -activeFieldChoice False \
5893      -startValue {12} \
5894      -countValue {1}
5895     sg_commit
5896     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5897
5898     #
5899     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.pointer-49"
5900     #
5901     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.pointer-49"
5902     ixNet setMultiAttrs $sg_field \
5903      -singleValue {5} \
5904      -seed {1} \
5905      -optionalEnabled False \
5906      -fullMesh False \
5907      -valueList {{5}} \
5908      -stepValue {5} \
5909      -fixedBits {5} \
5910      -fieldValue {5} \
5911      -auto False \
5912      -randomMask {5} \
5913      -trackingEnabled False \
5914      -valueType singleValue \
5915      -activeFieldChoice False \
5916      -startValue {5} \
5917      -countValue {1}
5918     sg_commit
5919     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5920
5921     #
5922     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.overflow-50"
5923     #
5924     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.overflow-50"
5925     ixNet setMultiAttrs $sg_field \
5926      -singleValue {0} \
5927      -seed {1} \
5928      -optionalEnabled False \
5929      -fullMesh False \
5930      -valueList {{0}} \
5931      -stepValue {0} \
5932      -fixedBits {0} \
5933      -fieldValue {0} \
5934      -auto False \
5935      -randomMask {0} \
5936      -trackingEnabled False \
5937      -valueType singleValue \
5938      -activeFieldChoice False \
5939      -startValue {0} \
5940      -countValue {1}
5941     sg_commit
5942     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5943
5944     #
5945     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.flags-51"
5946     #
5947     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.flags-51"
5948     ixNet setMultiAttrs $sg_field \
5949      -singleValue {0} \
5950      -seed {1} \
5951      -optionalEnabled False \
5952      -fullMesh False \
5953      -valueList {{0}} \
5954      -stepValue {0} \
5955      -fixedBits {0} \
5956      -fieldValue {Timestamps only, in consecutive 32-bit words} \
5957      -auto False \
5958      -randomMask {0} \
5959      -trackingEnabled False \
5960      -valueType singleValue \
5961      -activeFieldChoice False \
5962      -startValue {0} \
5963      -countValue {1}
5964     sg_commit
5965     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5966
5967     #
5968     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.pair.address-52"
5969     #
5970     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.pair.address-52"
5971     ixNet setMultiAttrs $sg_field \
5972      -singleValue {0} \
5973      -seed {1} \
5974      -optionalEnabled False \
5975      -fullMesh False \
5976      -valueList {{0}} \
5977      -stepValue {0} \
5978      -fixedBits {0} \
5979      -fieldValue {0} \
5980      -auto False \
5981      -randomMask {0} \
5982      -trackingEnabled False \
5983      -valueType singleValue \
5984      -activeFieldChoice False \
5985      -startValue {0} \
5986      -countValue {1}
5987     sg_commit
5988     set sg_field [lindex [ixNet remapIds $sg_field] 0]
5989
5990     #
5991     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.timestamp.pair.timestamp-53"
5992     #
5993     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.timestamp.pair.timestamp-53"
5994     ixNet setMultiAttrs $sg_field \
5995      -singleValue {0} \
5996      -seed {1} \
5997      -optionalEnabled False \
5998      -fullMesh False \
5999      -valueList {{0}} \
6000      -stepValue {0} \
6001      -fixedBits {0} \
6002      -fieldValue {0} \
6003      -auto False \
6004      -randomMask {0} \
6005      -trackingEnabled False \
6006      -valueType singleValue \
6007      -activeFieldChoice False \
6008      -startValue {0} \
6009      -countValue {1}
6010     sg_commit
6011     set sg_field [lindex [ixNet remapIds $sg_field] 0]
6012
6013     #
6014     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.last-54"
6015     #
6016     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.last-54"
6017     ixNet setMultiAttrs $sg_field \
6018      -singleValue {0} \
6019      -seed {1} \
6020      -optionalEnabled False \
6021      -fullMesh False \
6022      -valueList {{0}} \
6023      -stepValue {0} \
6024      -fixedBits {0} \
6025      -fieldValue {0} \
6026      -auto False \
6027      -randomMask {0} \
6028      -trackingEnabled False \
6029      -valueType singleValue \
6030      -activeFieldChoice False \
6031      -startValue {0} \
6032      -countValue {1}
6033     sg_commit
6034     set sg_field [lindex [ixNet remapIds $sg_field] 0]
6035
6036     #
6037     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.routerAlert.type-55"
6038     #
6039     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.routerAlert.type-55"
6040     ixNet setMultiAttrs $sg_field \
6041      -singleValue {94} \
6042      -seed {1} \
6043      -optionalEnabled False \
6044      -fullMesh False \
6045      -valueList {{0x94}} \
6046      -stepValue {0x94} \
6047      -fixedBits {0x94} \
6048      -fieldValue {94} \
6049      -auto False \
6050      -randomMask {0x94} \
6051      -trackingEnabled False \
6052      -valueType singleValue \
6053      -activeFieldChoice False \
6054      -startValue {0x94} \
6055      -countValue {1}
6056     sg_commit
6057     set sg_field [lindex [ixNet remapIds $sg_field] 0]
6058
6059     #
6060     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.routerAlert.length-56"
6061     #
6062     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.routerAlert.length-56"
6063     ixNet setMultiAttrs $sg_field \
6064      -singleValue {4} \
6065      -seed {1} \
6066      -optionalEnabled False \
6067      -fullMesh False \
6068      -valueList {{0x04}} \
6069      -stepValue {0x04} \
6070      -fixedBits {0x04} \
6071      -fieldValue {4} \
6072      -auto False \
6073      -randomMask {0x04} \
6074      -trackingEnabled False \
6075      -valueType singleValue \
6076      -activeFieldChoice False \
6077      -startValue {0x04} \
6078      -countValue {1}
6079     sg_commit
6080     set sg_field [lindex [ixNet remapIds $sg_field] 0]
6081
6082     #
6083     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.nextOption.option.routerAlert.value-57"
6084     #
6085     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.nextOption.option.routerAlert.value-57"
6086     ixNet setMultiAttrs $sg_field \
6087      -singleValue {0} \
6088      -seed {1} \
6089      -optionalEnabled False \
6090      -fullMesh False \
6091      -valueList {{0}} \
6092      -stepValue {0} \
6093      -fixedBits {0} \
6094      -fieldValue {Router shall examine packet} \
6095      -auto False \
6096      -randomMask {0} \
6097      -trackingEnabled False \
6098      -valueType singleValue \
6099      -activeFieldChoice False \
6100      -startValue {0} \
6101      -countValue {1}
6102     sg_commit
6103     set sg_field [lindex [ixNet remapIds $sg_field] 0]
6104
6105     #
6106     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"ipv4-2"/field:"ipv4.header.options.pad-58"
6107     #
6108     set sg_field $ixNetSG_Stack(3)/field:"ipv4.header.options.pad-58"
6109     ixNet setMultiAttrs $sg_field \
6110      -singleValue {0} \
6111      -seed {1} \
6112      -optionalEnabled False \
6113      -fullMesh False \
6114      -valueList {{0}} \
6115      -stepValue {0} \
6116      -fixedBits {0} \
6117      -fieldValue {0} \
6118      -auto True \
6119      -randomMask {0} \
6120      -trackingEnabled False \
6121      -valueType singleValue \
6122      -activeFieldChoice False \
6123      -startValue {0} \
6124      -countValue {1}
6125     sg_commit
6126     set sg_field [lindex [ixNet remapIds $sg_field] 0]
6127
6128     #
6129     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"udp-3"
6130     #
6131     set sg_stack $ixNetSG_Stack(2)/fieldOffset/stack:"udp-3"
6132     sg_commit
6133     set sg_stack [lindex [ixNet remapIds $sg_stack] 0]
6134     set ixNetSG_Stack(3) $sg_stack
6135
6136     #
6137     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"udp-3"/field:"udp.header.srcPort-1"
6138     #
6139     set sg_field $ixNetSG_Stack(3)/field:"udp.header.srcPort-1"
6140     ixNet setMultiAttrs $sg_field \
6141      -singleValue {63} \
6142      -seed {1} \
6143      -optionalEnabled True \
6144      -fullMesh False \
6145      -valueList {{63}} \
6146      -stepValue {63} \
6147      -fixedBits {63} \
6148      -fieldValue {Default} \
6149      -auto True \
6150      -randomMask {63} \
6151      -trackingEnabled False \
6152      -valueType singleValue \
6153      -activeFieldChoice False \
6154      -startValue {63} \
6155      -countValue {1}
6156     sg_commit
6157     set sg_field [lindex [ixNet remapIds $sg_field] 0]
6158
6159     #
6160     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"udp-3"/field:"udp.header.dstPort-2"
6161     #
6162     set sg_field $ixNetSG_Stack(3)/field:"udp.header.dstPort-2"
6163     ixNet setMultiAttrs $sg_field \
6164      -singleValue {63} \
6165      -seed {1} \
6166      -optionalEnabled True \
6167      -fullMesh False \
6168      -valueList {{63}} \
6169      -stepValue {63} \
6170      -fixedBits {63} \
6171      -fieldValue {Default} \
6172      -auto True \
6173      -randomMask {63} \
6174      -trackingEnabled False \
6175      -valueType singleValue \
6176      -activeFieldChoice False \
6177      -startValue {63} \
6178      -countValue {1}
6179     sg_commit
6180     set sg_field [lindex [ixNet remapIds $sg_field] 0]
6181
6182     #
6183     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"udp-3"/field:"udp.header.length-3"
6184     #
6185     set sg_field $ixNetSG_Stack(3)/field:"udp.header.length-3"
6186     ixNet setMultiAttrs $sg_field \
6187      -singleValue {72} \
6188      -seed {1} \
6189      -optionalEnabled True \
6190      -fullMesh False \
6191      -valueList {{8}} \
6192      -stepValue {8} \
6193      -fixedBits {8} \
6194      -fieldValue {72} \
6195      -auto True \
6196      -randomMask {8} \
6197      -trackingEnabled False \
6198      -valueType singleValue \
6199      -activeFieldChoice False \
6200      -startValue {8} \
6201      -countValue {1}
6202     sg_commit
6203     set sg_field [lindex [ixNet remapIds $sg_field] 0]
6204
6205     #
6206     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"udp-3"/field:"udp.header.checksum-4"
6207     #
6208     set sg_field $ixNetSG_Stack(3)/field:"udp.header.checksum-4"
6209     ixNet setMultiAttrs $sg_field \
6210      -singleValue {0} \
6211      -seed {1} \
6212      -optionalEnabled True \
6213      -fullMesh False \
6214      -valueList {{0}} \
6215      -stepValue {0} \
6216      -fixedBits {0} \
6217      -fieldValue {0} \
6218      -auto True \
6219      -randomMask {0} \
6220      -trackingEnabled False \
6221      -valueType singleValue \
6222      -activeFieldChoice False \
6223      -startValue {0} \
6224      -countValue {1}
6225     sg_commit
6226     set sg_field [lindex [ixNet remapIds $sg_field] 0]
6227
6228     #
6229     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"fcs-4"
6230     #
6231     set sg_stack $ixNetSG_Stack(2)/fieldOffset/stack:"fcs-4"
6232     sg_commit
6233     set sg_stack [lindex [ixNet remapIds $sg_stack] 0]
6234     set ixNetSG_Stack(3) $sg_stack
6235
6236     #
6237     # configuring the object that corresponds to /traffic/trafficItem:1/egressTracking:1/fieldOffset/stack:"fcs-4"/field:"ethernet.fcs-1"
6238     #
6239     set sg_field $ixNetSG_Stack(3)/field:"ethernet.fcs-1"
6240     ixNet setMultiAttrs $sg_field \
6241      -singleValue {0} \
6242      -seed {1} \
6243      -optionalEnabled True \
6244      -fullMesh False \
6245      -valueList {{0}} \
6246      -stepValue {0} \
6247      -fixedBits {0} \
6248      -fieldValue {0} \
6249      -auto True \
6250      -randomMask {0} \
6251      -trackingEnabled False \
6252      -valueType singleValue \
6253      -activeFieldChoice False \
6254      -startValue {0} \
6255      -countValue {1}
6256     sg_commit
6257     set sg_field [lindex [ixNet remapIds $sg_field] 0]
6258
6259     #
6260     # configuring the object that corresponds to /traffic/trafficItem:1/dynamicUpdate
6261     #
6262     set sg_dynamicUpdate $ixNetSG_Stack(1)/dynamicUpdate
6263     ixNet setMultiAttrs $sg_dynamicUpdate \
6264      -enabledSessionAwareTrafficFields {} \
6265      -enabledDynamicUpdateFields {}
6266     sg_commit
6267     set sg_dynamicUpdate [lindex [ixNet remapIds $sg_dynamicUpdate] 0]
6268
6269     ###
6270     ### /quickTest area
6271     ###
6272
6273     #
6274     # configuring the object that corresponds to /quickTest/rfc2544throughput:1
6275     #
6276     if {$rfc2544TestType == "throughput"} {
6277         set sg_rfc2544throughput [ixNet add $ixNetSG_Stack(0)/quickTest rfc2544throughput]
6278         ixNet setMultiAttrs $sg_rfc2544throughput \
6279          -name {QuickTest1} \
6280          -mode existingMode \
6281          -inputParameters {{}}
6282         ixNet setMultiAttrs $sg_rfc2544throughput/testConfig \
6283          -protocolItem {} \
6284          -enableMinFrameSize True \
6285          -framesize $frameSize \
6286          -reportTputRateUnit mbps \
6287          -duration $duration \
6288          -numtrials $numTests \
6289          -trafficType constantLoading \
6290          -burstSize 1 \
6291          -framesPerBurstGap 1 \
6292          -tolerance 0 \
6293          -frameLossUnit {0} \
6294          -staggeredStart False \
6295          -framesizeList $frameSize \
6296          -frameSizeMode custom \
6297          -rateSelect percentMaxRate \
6298          -percentMaxRate 100 \
6299          -resolution 0.01 \
6300          -forceRegenerate False \
6301          -reportSequenceError False \
6302          -ipv4rate 50 \
6303          -ipv6rate 50 \
6304          -loadRateList $frameRate \
6305          -fixedLoadUnit percentMaxRate \
6306          -loadRateValue 80 \
6307          -incrementLoadUnit percentMaxRate \
6308          -initialIncrementLoadRate 10 \
6309          -stepIncrementLoadRate 10 \
6310          -maxIncrementLoadRate 100 \
6311           -randomLoadUnit percentMaxRate \
6312          -minRandomLoadRate 10 \
6313          -maxRandomLoadRate 80 \
6314          -countRandomLoadRate 1 \
6315          -minFpsRate 1000 \
6316          -minKbpsRate 64 \
6317          -txDelay 2 \
6318          -delayAfterTransmit 2 \
6319          -minRandomFrameSize 64 \
6320          -maxRandomFrameSize 1518 \
6321          -countRandomFrameSize 1 \
6322          -minIncrementFrameSize 64 \
6323          -stepIncrementFrameSize 64 \
6324          -maxIncrementFrameSize 1518 \
6325          -calculateLatency True \
6326          -latencyType storeForward \
6327          -calculateJitter False \
6328          -enableDataIntegrity False \
6329          -enableBackoffIteration False \
6330          -enableSaturationIteration False \
6331          -enableStopTestOnHighLoss False \
6332          -enableBackoffUseAs% False \
6333          -backoffIteration 1 \
6334          -saturationIteration 1 \
6335          -stopTestOnHighLoss 0 \
6336          -loadType $loadType \
6337          -stepLoadUnit percentMaxRate \
6338          -customLoadUnit percentMaxRate \
6339          -comboLoadUnit percentMaxRate \
6340          -binaryLoadUnit percentMaxRate \
6341          -initialBinaryLoadRate 100 \
6342          -minBinaryLoadRate 1 \
6343          -maxBinaryLoadRate 100 \
6344          -binaryResolution 1 \
6345          -binaryBackoff 50 \
6346          -binaryTolerance $tolerance \
6347          -binaryFrameLossUnit % \
6348          -comboFrameLossUnit % \
6349          -stepFrameLossUnit % \
6350          -initialStepLoadRate 10 \
6351          -maxStepLoadRate 100 \
6352          -stepStepLoadRate 10 \
6353          -stepTolerance 0 \
6354          -initialComboLoadRate 10 \
6355          -maxComboLoadRate 100 \
6356          -minComboLoadRate 10 \
6357          -stepComboLoadRate 10 \
6358          -comboResolution 1 \
6359          -comboBackoff 50 \
6360          -comboTolerance 0 \
6361          -binarySearchType linear \
6362          -unchangedValueList {0} \
6363          -enableFastConvergence $fastConvergence \
6364          -fastConvergenceDuration $convergenceDuration \
6365          -fastConvergenceThreshold 10 \
6366          -framesizeFixedValue $frameSize \
6367          -gap 3 \
6368          -unchangedInitial False \
6369          -generateTrackingOptionAggregationFiles False \
6370          -enableExtraIterations False \
6371          -extraIterationOffsets {10, -10} \
6372          -usePercentOffsets False \
6373          -imixDistribution weight \
6374          -imixAdd {0} \
6375          -imixDelete {0} \
6376          -imixData {{{{64}{{TOS S:0 S:0 S:0 S:0 S:0} S:0}{1 40}}{{128}{{TOS S:0 S:0 S:0 S:0 S:0} S:0}{1 30}}{{256}{{TOS S:0 S:0 S:0 S:0 S:0} S:0}{1 30}}}} \
6377          -imixEnabled False \
6378          -imixTemplates none \
6379          -framesizeImixList $frameSize \
6380          -imixTrafficType {UNCHNAGED} \
6381          -mapType {oneToOne} \
6382          -supportedTrafficTypes {mac,ipv4,ipv6,ipmix}
6383         ixNet setMultiAttrs $sg_rfc2544throughput/learnFrames \
6384          -learnFrequency $learningFrequency \
6385          -learnNumFrames 10 \
6386          -learnRate 100 \
6387          -learnWaitTime 1000 \
6388          -learnFrameSize $frameSize \
6389          -fastPathLearnFrameSize $frameSize \
6390          -learnWaitTimeBeforeTransmit 0 \
6391          -learnSendMacOnly False \
6392          -learnSendRouterSolicitation False \
6393          -fastPathEnable $fastPathEnable \
6394          -fastPathRate 100 \
6395          -fastPathNumFrames 10
6396         ixNet setMultiAttrs $sg_rfc2544throughput/passCriteria \
6397          -passCriteriaLoadRateMode average \
6398          -passCriteriaLoadRateValue 100 \
6399          -passCriteriaLoadRateScale mbps \
6400          -enablePassFail False \
6401          -enableRatePassFail False \
6402          -enableLatencyPassFail False \
6403          -enableStandardDeviationPassFail False \
6404          -latencyThresholdValue 10 \
6405          -latencyThresholdScale us \
6406          -latencyThresholdMode average \
6407          -latencyVariationThresholdValue 0 \
6408          -latencyVariationThresholdScale us \
6409          -latencyVarThresholdMode average \
6410          -enableSequenceErrorsPassFail False \
6411          -seqErrorsThresholdValue 0 \
6412          -seqErrorsThresholdMode average \
6413          -enableDataIntegrityPassFail False \
6414          -dataErrorThresholdValue 0 \
6415          -dataErrorThresholdMode average
6416         sg_commit
6417         set sg_rfc2544throughput [lindex [ixNet remapIds $sg_rfc2544throughput] 0]
6418         set ixNetSG_Stack(1) $sg_rfc2544throughput
6419
6420         #
6421         # configuring the object that corresponds to /quickTest/rfc2544throughput:1/protocols
6422         #
6423         set sg_protocols $ixNetSG_Stack(1)/protocols
6424         ixNet setMultiAttrs $sg_protocols \
6425          -protocolState default \
6426          -waitAfterStart 120 \
6427          -waitAfterStop 30
6428         sg_commit
6429         set sg_protocols [lindex [ixNet remapIds $sg_protocols] 0]
6430
6431         #
6432         # configuring the object that corresponds to /quickTest/rfc2544throughput:1/trafficSelection:1
6433         #
6434         set sg_trafficSelection [ixNet add $ixNetSG_Stack(1) trafficSelection]
6435         ixNet setMultiAttrs $sg_trafficSelection \
6436          -id $ixNetSG_ref(26) \
6437          -includeMode inTest \
6438          -itemType trafficItem
6439         sg_commit
6440         set sg_trafficSelection [lindex [ixNet remapIds $sg_trafficSelection] 0]
6441         ixNet commit
6442
6443     } elseif {$rfc2544TestType == "back2back"} {
6444         #
6445         # configuring the object that corresponds to /quickTest/rfc2544back2back:2
6446         #
6447         set sg_rfc2544back2back [ixNet add $ixNetSG_Stack(0)/quickTest rfc2544back2back]
6448         ixNet setMultiAttrs $sg_rfc2544back2back \
6449          -name {B2B} \
6450          -mode existingMode \
6451          -inputParameters {{}}
6452         ixNet setMultiAttrs $sg_rfc2544back2back/testConfig \
6453          -protocolItem {} \
6454          -framesize $frameSize \
6455          -reportTputRateUnit mbps \
6456          -rfc2544ImixDataQoS False \
6457          -detailedResultsEnabled True \
6458          -rfc2889ordering noOrdering \
6459          -floodedFramesEnabled False \
6460          -duration $duration \
6461          -numtrials $numTests \
6462          -trafficType constantLoading \
6463          -burstSize 1 \
6464          -framesPerBurstGap 1 \
6465          -tolerance 0 \
6466          -frameLossUnit {0} \
6467          -staggeredStart False \
6468          -framesizeList $frameSize \
6469          -frameSizeMode custom \
6470          -rateSelect percentMaxRate \
6471          -percentMaxRate 100 \
6472          -resolution 0.01 \
6473          -forceRegenerate False \
6474          -reportSequenceError False \
6475          -ipv4rate 50 \
6476          -ipv6rate 50 \
6477          -loadRateList $frameRate \
6478          -minFpsRate 1000 \
6479          -minKbpsRate 64 \
6480          -txDelay 2 \
6481          -delayAfterTransmit 2 \
6482          -minRandomFrameSize 64 \
6483          -maxRandomFrameSize 1518 \
6484          -countRandomFrameSize 1 \
6485          -minIncrementFrameSize 64 \
6486          -stepIncrementFrameSize 64 \
6487          -maxIncrementFrameSize 1518 \
6488          -calculateLatency False \
6489          -calibrateLatency False \
6490          -latencyType cutThrough \
6491          -calculateJitter False \
6492          -enableDataIntegrity False \
6493          -loadType $loadType \
6494          -binaryFrameLossUnit % \
6495          -loadUnit percentMaxRate \
6496          -customLoadUnit percentMaxRate \
6497          -randomLoadUnit percentMaxRate \
6498          -incrementLoadUnit percentMaxRate \
6499          -binaryResolution 1000 \
6500          -binaryBackoff 50 \
6501          -binaryTolerance $tolerance \
6502          -initialIncrementLoadRate 100 \
6503          -stepIncrementLoadRate 10 \
6504          -maxIncrementLoadRate 100 \
6505          -minRandomLoadRate 10 \
6506          -maxRandomLoadRate 80 \
6507          -countRandomLoadRate 1 \
6508          -numFrames {100000} \
6509          -loadRate 100 \
6510          -enableMinFrameSize True \
6511          -gap 3 \
6512          -generateTrackingOptionAggregationFiles False \
6513          -sendFullyMeshed False \
6514          -imixDistribution weight \
6515          -imixAdd {0} \
6516          -imixDelete {0} \
6517          -imixData {{{{64}{{TOS S:0 S:0 S:0 S:0 S:0} S:0}{1 40}}{{128}{{TOS S:0 S:0 S:0 S:0 S:0} S:0}{1 30}}{{256}{{TOS S:0 S:0 S:0 S:0 S:0} S:0}{1 30}}}} \
6518          -imixEnabled False \
6519          -imixTemplates none \
6520          -framesizeImixList $frameSize \
6521          -imixTrafficType {UNCHNAGED} \
6522          -ipRatioMode fixed \
6523          -ipv4RatioList {10,25,50,75,90} \
6524          -ipv6RatioList {90,75,50,25,10} \
6525          -minIncrementIpv4Ratio {10} \
6526          -stepIncrementIpv4Ratio {10} \
6527          -maxIncrementIpv4Ratio {90} \
6528          -minIncrementIpv6Ratio {90} \
6529          -stepIncrementIpv6Ratio {-10} \
6530          -maxIncrementIpv6Ratio {10} \
6531          -minRandomIpv4Ratio {10} \
6532          -maxRandomIpv4Ratio {90} \
6533          -minRandomIpv6Ratio {90} \
6534          -maxRandomIpv6Ratio {10} \
6535          -countRandomIpRatio 1 \
6536          -mapType {oneToOne|manyToMany|fullMesh} \
6537          -supportedTrafficTypes {mac,ipv4,ipv6,ipmix}
6538         ixNet setMultiAttrs $sg_rfc2544back2back/learnFrames \
6539          -learnFrequency $learningFrequency \
6540          -learnNumFrames 10 \
6541          -learnRate 100 \
6542          -learnWaitTime 1000 \
6543          -learnFrameSize 64 \
6544          -fastPathLearnFrameSize 64 \
6545          -learnWaitTimeBeforeTransmit 0 \
6546          -learnSendMacOnly False \
6547          -learnSendRouterSolicitation False \
6548          -fastPathEnable $fastPathEnable \
6549          -fastPathRate 100 \
6550          -fastPathNumFrames 10
6551         ixNet setMultiAttrs $sg_rfc2544back2back/passCriteria \
6552          -passCriteriaLoadRateMode average \
6553          -passCriteriaLoadRateValue 100 \
6554          -passCriteriaLoadRateScale mbps \
6555          -enablePassFail False \
6556          -enableRatePassFail False \
6557          -enableLatencyPassFail False \
6558          -enableStandardDeviationPassFail False \
6559          -latencyThresholdValue 10 \
6560          -latencyThresholdScale us \
6561          -latencyThresholdMode average \
6562          -latencyVariationThresholdValue 0 \
6563          -latencyVariationThresholdScale us \
6564          -latencyVarThresholdMode average \
6565          -enableSequenceErrorsPassFail False \
6566          -seqErrorsThresholdValue 0 \
6567          -seqErrorsThresholdMode average \
6568          -enableDataIntegrityPassFail False \
6569          -dataErrorThresholdValue 0 \
6570          -dataErrorThresholdMode average \
6571          -enableFrameCountPassFail False \
6572          -passCriteriaFrameCountValue 100 \
6573          -passCriteriaFrameCountMode average
6574         sg_commit
6575         set sg_rfc2544back2back [lindex [ixNet remapIds $sg_rfc2544back2back] 0]
6576         set ixNetSG_Stack(1) $sg_rfc2544back2back
6577
6578         #
6579         # configuring the object that corresponds to /quickTest/rfc2544back2back:2/protocols
6580         #
6581         set sg_protocols $ixNetSG_Stack(1)/protocols
6582         ixNet setMultiAttrs $sg_protocols \
6583          -protocolState default \
6584          -waitAfterStart 120 \
6585          -waitAfterStop 30
6586         sg_commit
6587         set sg_protocols [lindex [ixNet remapIds $sg_protocols] 0]
6588
6589         #
6590         # configuring the object that corresponds to /quickTest/rfc2544back2back:2/trafficSelection:1
6591         #
6592         set sg_trafficSelection [ixNet add $ixNetSG_Stack(1) trafficSelection]
6593         ixNet setMultiAttrs $sg_trafficSelection \
6594          -id $ixNetSG_ref(26) \
6595          -includeMode inTest \
6596          -itemType trafficItem
6597         sg_commit
6598         set sg_trafficSelection [lindex [ixNet remapIds $sg_trafficSelection] 0]
6599         ixNet commit
6600     }
6601     #
6602     # getting and applying the RFC2544 test
6603     #
6604     set root [ixNet getRoot]
6605     set qt [ixNet getList $root quickTest]
6606     if {$rfc2544TestType == "throughput"} {
6607         set rfc2544test [ixNet getList $qt rfc2544throughput]
6608     } elseif {$rfc2544TestType == "back2back"} {
6609         set rfc2544test [ixNet getList $qt rfc2544back2back]
6610     }
6611     ixNet exec apply $rfc2544test
6612     after 5000
6613
6614     #
6615     # starting the RFC2544 Throughput test
6616     #
6617     puts "Starting test..."
6618     ixNet exec start $rfc2544test
6619 }
6620
6621 proc waitForRfc2544Test { } {
6622     # Wait for- and return results of- RFC2544 quicktest.
6623
6624     global rfc2544test
6625
6626     puts "Waiting for test to complete..."
6627     set result [ixNet exec waitForTest $rfc2544test]
6628     puts "Finished Test"
6629
6630     return "$result"
6631 }