ns default

Upload: vsalaiselvam

Post on 07-Aug-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/20/2019 Ns Default

    1/26

    # -*- Mode:tcl; tcl-indent-level:8; tab-width:8; indent-tabs-mode:t -*-## Time-stamp: ## Copyright (c) 1996-1997 Regents of the University of California.# All rights reserved.## Redistribution and use in source and binary forms, with or without# modification, are permitted provided that the following conditions# are met:# 1. Redistributions of source code must retain the above copyright# notice, this list of conditions and the following disclaimer.# 2. Redistributions in binary form must reproduce the abovecopyright# notice, this list of conditions and the following disclaimer inthe# documentation and/or other materials provided with thedistribution.# 3. All advertising materials mentioning features or use of this

    software# must display the following acknowledgement:# This product includes software developed by the MASH Research# Group at the University of California Berkeley.# 4. Neither the name of the University nor of the Research Group maybe# used to endorse or promote products derived from this softwarewithout# specific prior written permission.#

    # @(#) $Header: /cvsroot/nsnam/ns-2/tcl/lib/ns-default.tcl,v 1.3802008/02/18 03:39:02 tom_henderson Exp $

    # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``ASIS'' AND# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,THE# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULARPURPOSE# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BELIABLE# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORCONSEQUENTIAL# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTEGOODS# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSINTERRUPTION)

    # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING INANY WAY# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITYOF# SUCH DAMAGE.#### Set up all the default paramters. Each default parameter# is stored in the OTcl class template and copied from the# class into the instance when the object is created# (this happens in the Tcl/tcl-object.tcl helper library)#

  • 8/20/2019 Ns Default

    2/26

    ########################################################

    # Debojyoti added thisSimulator set useasim_ 1Asim set debug_ false

    set MAXSEQ 1073741824# Increased Floating Point Precisionset tcl_precision 17

    Connector set debug_ falseTTLChecker set debug_ false

    Trace set src_ -1Trace set dst_ -1Trace set callback_ 0Trace set show_tcphdr_ 0Trace set show_sctphdr_ 0Trace set debug_ false

    CMUTrace set debug_ falseCMUTrace set show_sctphdr_ 0CMUTrace set radius_scaling_factor_ 1.0CMUTrace set duration_scaling_factor_ 3.0e4

    Scheduler/RealTime set maxslop_ 0.010; # max allowed slop b4 error(sec)

    Scheduler/Calendar set adjust_new_width_interval_ 10; # the interval(in unit of resize times) we recalculate bin width. 0 means disabledynamic adjustmentScheduler/Calendar set min_bin_width_ 1e-18; # the lowerbound for the bin_width

    ## Queues and associated#Integrator set lastx_ 0.0Integrator set lasty_ 0.0Integrator set sum_ 0.0

    # 10->50 to be like ns-1Queue set limit_ 50Queue set blocked_ falseQueue set unblock_on_resume_ true

    Queue set interleave_ false

    Queue set acksfirst_ falseQueue set ackfromfront_ falseQueue set debug_ false

    Queue/SFQ set maxqueue_ 40Queue/SFQ set buckets_ 16

    Queue/FQ set secsPerByte_ 0# change DropTail to RED for RED on individual queuesFQLink set queueManagement_ DropTail

    Queue/DropTail set drop_front_ falseQueue/DropTail set summarystats_ falseQueue/DropTail set queue_in_bytes_ falseQueue/DropTail set mean_pktsize_ 500

  • 8/20/2019 Ns Default

    3/26

    Queue/DropTail/PriQueue set Prefer_Routing_Protocols 1

    # special cmu implemented priority queue used by DSRCMUPriQueue set qlen_logthresh_ 10CMUPriQueue set fw_logthresh_ 25CMUPriQueue set debug_ false

    #notel's diffserv moduleQueue/dsRED set numQueues_ 4Queue/dsRED set ecn_ 0

    # XXX Temporary fix XXX# support only xcp flows; set to 1 when supporting both tcp and xcpflows; temporary fix for allocating link BW between xcp and tcpqueues until dynamic queue weights come into effect. This fix shouldthen go awayQueue/XCP set tcp_xcp_on_ 0 ;

    Queue/RED set bytes_ true ; # default changed on 10/11/2004.Queue/RED set queue_in_bytes_ true ; # default changed on

    10/11/2004.# Queue/RED set thresh_ 5Queue/RED set thresh_ 0# Queue/RED/thresh_ was changed on 12/29/01, for automaticconfiguration.# Queue/RED set maxthresh_ 15Queue/RED set maxthresh_ 0# Queue/RED/maxthresh_ was changed on 12/29/01, for automaticconfiguration.Queue/RED set thresh_queue_ [Queue set limit_]# Note from Sally: I don't see that thresh_queue_ is used foranything.Queue/RED set maxthresh_queue_ [Queue set limit_]# Note from Sally: I don't see that maxthresh_queue_ is used for

    anything.Queue/RED set mean_pktsize_ 500Queue/RED set idle_pktsize_ 100# Queue/RED set q_weight_ 0.002Queue/RED set q_weight_ -1# Queue/RED/q_weight_ was changed on 12/29/01, for automaticconfiguration.Queue/RED set wait_ trueQueue/RED set linterm_ 10Queue/RED set mark_p_ 0.1Queue/RED set use_mark_p_ true# Queue/RED/use_mark_p_ was added on 11/23/05.# Queue/RED/use_mark_p_ was changed to true on 12/22/05.Queue/RED set setbit_ false

    Queue/RED set gentle_ true### Queue/RED/gentle_ was changed from false to true on Apr 23, 2001.Queue/RED set drop_tail_ trueQueue/RED set drop_front_ falseQueue/RED set drop_rand_ falseQueue/RED set doubleq_ falseQueue/RED set ns1_compat_ falseQueue/RED set dqthresh_ 50Queue/RED set ave_ 0.0Queue/RED set prob1_ 0.0Queue/RED set curq_ 0Queue/RED set cur_max_p_ 0Queue/RED set summarystats_ false### Adaptive RED.Queue/RED set alpha_ 0.01Queue/RED set beta_ 0.9

  • 8/20/2019 Ns Default

    4/26

    Queue/RED set adaptive_ 0Queue/RED set interval_ 0.5Queue/RED set targetdelay_ 0.005Queue/RED set top_ 0.5Queue/RED set bottom_ 0### Queue/RED/bottom_ was changed from 0.01 to 0 on June 23, 2004,### for automatic configuration.Queue/RED set cautious_ 0Queue/RED set feng_adaptive_ 0

    Queue/RED/RIO set bytes_ falseQueue/RED/RIO set queue_in_bytes_ falseQueue/RED/RIO set thresh_ 5Queue/RED/RIO set maxthresh_ 15Queue/RED/RIO set in_thresh_ 15Queue/RED/RIO set in_maxthresh_ 30Queue/RED/RIO set out_thresh_ 5Queue/RED/RIO set out_maxthresh_ 15Queue/RED/RIO set mean_pktsize_ 500Queue/RED/RIO set q_weight_ 0.002

    Queue/RED/RIO set wait_ trueQueue/RED/RIO set linterm_ 10Queue/RED/RIO set in_linterm_ 50Queue/RED/RIO set out_linterm_ 5Queue/RED/RIO set setbit_ falseQueue/RED/RIO set gentle_ falseQueue/RED/RIO set in_gentle_ falseQueue/RED/RIO set out_gentle_ falseQueue/RED/RIO set drop_tail_ trueQueue/RED/RIO set drop_front_ falseQueue/RED/RIO set drop_rand_ falseQueue/RED/RIO set doubleq_ falseQueue/RED/RIO set ns1_compat_ falseQueue/RED/RIO set dqthresh_ 50

    Queue/RED/RIO set ave_ 0.0Queue/RED/RIO set in_ave_ 0.0Queue/RED/RIO set out_ave_ 0.0Queue/RED/RIO set prob1_ 0.0Queue/RED/RIO set in_prob1_ 0.0Queue/RED/RIO set out_prob1_ 0.0Queue/RED/RIO set curq_ 0Queue/RED/RIO set priority_method_ 0

    #for RedPDQueue - ratulQueue/RED/PD set auto_ falseQueue/RED/PD set global_target_ falseQueue/RED/PD set noMonitored_ 0Queue/RED/PD set targetBW_ 0

    Queue/RED/PD set unresponsive_penalty_ 1Queue/RED/PD set P_testFRp_ -1Queue/RED/PD set noidle_ false

    Queue/PI set bytes_ falseQueue/PI set queue_in_bytes_ falseQueue/PI set a_ 0.00001822Queue/PI set b_ 0.00001816Queue/PI set w_ 170Queue/PI set qref_ 50Queue/PI set mean_pktsize_ 500Queue/PI set setbit_ falseQueue/PI set prob_ 0Queue/PI set curq_ 0

    # Queue/Vq set queue_in_bytes_ false

  • 8/20/2019 Ns Default

    5/26

    Queue/Vq set queue_in_bytes_ true# Default for queue_in_bytes_ changed to true on 4/28/2002.Queue/Vq set markpkts_ falseQueue/Vq set ecnlim_ 0.8Queue/Vq set buflim_ 1.0# Queue/Vq set gamma_ 0.895Queue/Vq set gamma_ 0.98# Default for gamma_ changed to 0.98 on 4/28/2002.Queue/Vq set mean_pktsize_ 1000Queue/Vq set curq_ 0Queue/Vq set drop_front_ 0Queue/Vq set markfront_ 0

    Queue/REM set gamma_ 0.001Queue/REM set phi_ 1.001Queue/REM set inw_ 1Queue/REM set mean_pktsize_ 1000Queue/REM set pupdtime_ 0.002Queue/REM set pbo_ 20.0Queue/REM set prob_ 0.0

    Queue/REM set curq_ 0.0Queue/REM set pmark_ 0.0Queue/REM set markpkts_ falseQueue/REM set qib_ false

    Queue/GK set ecnlim_ 0.95Queue/GK set mean_pktsize_ 1000Queue/GK set curq_ 0Queue/GK set drop_front_ 0

    Queue/DRR set buckets_ 10Queue/DRR set blimit_ 25000Queue/DRR set quantum_ 250Queue/DRR set mask_ 0

    # Integrated SRR (1/20/2002, xuanc)Queue/SRR set maxqueuenumber_ 16Queue/SRR set mtu_ 1000Queue/SRR set granularity_ 1000Queue/SRR set blimit_ 25000

    Queue/CBQ set algorithm_ 0 ;# used by compat only, not boundQueue/CBQ set maxpkt_ 1024CBQClass set priority_ 0CBQClass set level_ 1CBQClass set extradelay_ 0.0CBQClass set def_qtype_ DropTailCBQClass set okborrow_ true

    CBQClass set automaxidle_gain_ 0.9375CBQClass set debug_ false

    SnoopQueue/In set debug_ falseSnoopQueue/Out set debug_ falseSnoopQueue/Drop set debug_ falseSnoopQueue/EDrop set debug_ falseSnoopQueue/Tagger set debug_ false

    PacketQueue/Semantic set acksfirst_ falsePacketQueue/Semantic set filteracks_ falsePacketQueue/Semantic set replace_head_ falsePacketQueue/Semantic set priority_drop_ falsePacketQueue/Semantic set random_drop_ falsePacketQueue/Semantic set reconsAcks_ falsePacketQueue/Semantic set random_ecn_ false

  • 8/20/2019 Ns Default

    6/26

    QueueMonitor set size_ 0QueueMonitor set pkts_ 0QueueMonitor set parrivals_ 0QueueMonitor set barrivals_ 0QueueMonitor set pdepartures_ 0QueueMonitor set bdepartures_ 0QueueMonitor set pdrops_ 0QueueMonitor set pmarks_ 0QueueMonitor set bdrops_ 0

    QueueMonitor set qs_pkts_ 0QueueMonitor set qs_bytes_ 0QueueMonitor set qs_drops_ 0

    QueueMonitor set first_pkt_ 0QueueMonitor set last_pkt_ 0

    #added for keeping RTT statsQueueMonitor set keepRTTstats_ 0

    QueueMonitor set maxRTT_ 5QueueMonitor set binsPerSec_ 100

    #added for keeping Seqno statsQueueMonitor set keepSeqnoStats_ 0QueueMonitor set maxSeqno_ 1000QueueMonitor set SeqnoBinSize_ 10

    #added for online rate monitoring - ratulQueueMonitor set k_ 0.1QueueMonitor set prevTime_ 0QueueMonitor set startTime_ 0QueueMonitor set estRate_ 0QueueMonitor set estimate_rate_ 0

    QueueMonitor/ED set epdrops_ 0QueueMonitor/ED set ebdrops_ 0

    #mon stuff added for RedPD and Pushback - ratulQueueMonitor/ED set mon_epdrops_ 0QueueMonitor/ED set mon_ebdrops_ 0

    QueueMonitor/ED/Flowmon set enable_in_ trueQueueMonitor/ED/Flowmon set enable_out_ trueQueueMonitor/ED/Flowmon set enable_drop_ trueQueueMonitor/ED/Flowmon set enable_edrop_ trueQueueMonitor/ED/Flowmon set enable_mon_edrop_ true

    QueueMonitor/ED/Flow set src_ -1QueueMonitor/ED/Flow set dst_ -1QueueMonitor/ED/Flow set flowid_ -1

    QueueMonitor/ED/Flow/TB set target_rate_ 128000QueueMonitor/ED/Flow/TB set bucket_depth_ 10000QueueMonitor/ED/Flow/TB set tbucket_ 10000QueueMonitor/ED/Flow/TSW set target_rate_ 0QueueMonitor/ED/Flow/TSW set win_len_ 10QueueMonitor/ED/Flow/TSW set wait_ true

    #RedPDFlow - ratulQueueMonitor/ED/Flow/RedPD set targetBW_ 0QueueMonitor/ED/Flow/RedPD set currentBW_ 0QueueMonitor/ED/Flow/RedPD set monitored_ 0QueueMonitor/ED/Flow/RedPD set unresponsive_ 0

  • 8/20/2019 Ns Default

    7/26

    QueueMonitor/ED/Flow/RedPD set monitorStartTime_ 0QueueMonitor/ED/Flow/RedPD set unresponsiveStartTime_ 0QueueMonitor/ED/Flow/RedPD set lastDropTime_ 0QueueMonitor/ED/Flow/RedPD set auto_ 0

    DelayLink set bandwidth_ 1.5MbDelayLink set delay_ 100msDelayLink set debug_ falseDelayLink set avoidReordering_ false ; # Added 3/27/2003.

    # Set to true to avoid reordering when# changing link bandwidth or delay.

    DynamicLink set status_ 1DynamicLink set debug_ false

    Filter set debug_ falseFilter/Field set offset_ 0Filter/Field set match_ -1

    # these are assigned when createdClassifier set offset_ 0Classifier set shift_ 0Classifier set mask_ 0xffffffffClassifier set debug_ false

    Classifier/Hash set default_ -1; # noneClassifier/Replicator set ignore_ 0

    # MPLS ClassifierClassifier/Addr/MPLS set ttl_ 32Classifier/Addr/MPLS set trace_mpls_ 0Classifier/Addr/MPLS set label_ -1Classifier/Addr/MPLS set enable_reroute_ 0

    Classifier/Addr/MPLS set reroute_option_ 0Classifier/Addr/MPLS set control_driven_ 0Classifier/Addr/MPLS set data_driven_ 0

    ## FEC models#

    FECModel set debug_ false

    ## Error models#

    ErrorModule set debug_ false

    ErrorModel set enable_ 1ErrorModel set markecn_ falseErrorModel set delay_pkt_ falseErrorModel set delay_ 0ErrorModel set rate_ 0ErrorModel set bandwidth_ 2MbErrorModel set debug_ false

    ErrorModel/Trace set good_ 123456789ErrorModel/Trace set loss_ 0ErrorModel/Periodic set period_ 1.0ErrorModel/Periodic set offset_ 0.0ErrorModel/Periodic set burstlen_ 0.0ErrorModel/Periodic set default_drop_ 0 ; # set to 1 for default-

  • 8/20/2019 Ns Default

    8/26

    drop,# to drop all but last pkt# in period_

    ErrorModel/MultiState set curperiod_ 0.0ErrorModel/MultiState set sttype_ pktErrorModel/MultiState set texpired_ 0

    SelectErrorModel set enable_ 1SelectErrorModel set markecn_ falseSelectErrorModel set rate_ 0SelectErrorModel set bandwidth_ 2MbSelectErrorModel set pkt_type_ 2SelectErrorModel set drop_cycle_ 10SelectErrorModel set drop_offset_ 1SelectErrorModel set debug_ falseSelectErrorModel set delay_pkt_ falseSelectErrorModel set delay_ 0SRMErrorModel set enable_ 1SRMErrorModel set markecn_ falseSRMErrorModel set rate_ 0

    SRMErrorModel set bandwidth_ 2MbSRMErrorModel set pkt_type_ 2SRMErrorModel set drop_cycle_ 10SRMErrorModel set drop_offset_ 1SRMErrorModel set debug_ falseSRMErrorModel set delay_pkt_ falseSRMErrorModel set delay_ 0#MrouteErrorModel set enable_ 1#MrouteErrorModel set rate_ 0#MrouteErrorModel set bandwidth_ 2Mb#MrouteErrorModel set pkt_type_ 2#MrouteErrorModel set drop_cycle_ 10#MrouteErrorModel set drop_offset_ 1#MrouteErrorModel set good_ 99999999

    #MrouteErrorModel set loss_ 0

    rtModel set startTime_ 0.5rtModel set finishTime_ "-"rtModel/Exponential set upInterval_ 10.0rtModel/Exponential set downInterval_ 1.0rtModel/Deterministic set upInterval_ 2.0rtModel/Deterministic set downInterval_ 1.0

    ## Application#

    Application/Traffic/CBR_PP set rate_ 448Kb ;# corresponds to interval

    of 3.75msApplication/Traffic/CBR_PP set packetSize_ 210Application/Traffic/CBR_PP set random_ 0Application/Traffic/CBR_PP set maxpkts_ 268435456; # 0x10000000Application/Traffic/CBR_PP set PBM_ 2

    Application/Traffic/Exponential set burst_time_ .5Application/Traffic/Exponential set idle_time_ .5Application/Traffic/Exponential set rate_ 64KbApplication/Traffic/Exponential set packetSize_ 210

    Application/Traffic/Pareto set burst_time_ 500msApplication/Traffic/Pareto set idle_time_ 500msApplication/Traffic/Pareto set rate_ 64KbApplication/Traffic/Pareto set packetSize_ 210Application/Traffic/Pareto set shape_ 1.5

  • 8/20/2019 Ns Default

    9/26

    Application/Traffic/RealAudio set burst_time_ 0.05msApplication/Traffic/RealAudio set idle_time_ 1800msApplication/Traffic/RealAudio set rate_ 2KbApplication/Traffic/RealAudio set packetSize_ 240Application/Traffic/RealAudio set minCDF_ 0Application/Traffic/RealAudio set maxCDF_ 1Application/Traffic/RealAudio set interpolation_ 0Application/Traffic/RealAudio set maxEntry_ 32

    Application/Traffic/CBR set rate_ 448Kb ;# corresponds to intervalof 3.75msApplication/Traffic/CBR set packetSize_ 210Application/Traffic/CBR set random_ 0Application/Traffic/CBR set maxpkts_ 268435456; # 0x10000000

    Application/Telnet set interval_ 1.0

    # Default config based on data for slammer wormApplication/Worm set ScanRate 4000

    Application/Worm set ScanPort 1434Application/Worm set ScanPacketSize 404Application/Worm/An set TimeStep 1

    Application/SctpApp1 set interval_ 1.0Application/SctpApp1 set numStreams_ 1Application/SctpApp1 set numUnreliable_ 0Application/SctpApp1 set reliability_ 0

    RandomVariable/Uniform set min_ 0.0RandomVariable/Uniform set max_ 1.0RandomVariable/Exponential set avg_ 1.0RandomVariable/Erlang set lambda_ 1.0RandomVariable/Erlang set k_ 1.0

    RandomVariable/Gamma set alpha_ 1.0RandomVariable/Gamma set beta_ 1.0RandomVariable/Pareto set avg_ 1.0RandomVariable/Pareto set shape_ 1.5RandomVariable/ParetoII set avg_ 10.0RandomVariable/ParetoII set shape_ 1.2RandomVariable/Constant set val_ 1.0RandomVariable/HyperExponential set avg_ 1.0RandomVariable/HyperExponential set cov_ 4.0RandomVariable/Empirical set minCDF_ 0RandomVariable/Empirical set maxCDF_ 1RandomVariable/Empirical set interpolation_ 0RandomVariable/Empirical set maxEntry_ 32RandomVariable/Normal set avg_ 0.0

    RandomVariable/Normal set std_ 1.0RandomVariable/LogNormal set avg_ 1.0RandomVariable/LogNormal set std_ 1.0RandomVariable/Weibull set scale_ 1.0RandomVariable/Weibull set shape_ 1.0

    ADC/MS set debug_ falseADC/HB set debug_ falseADC/Param set debug_ falseADC/ACTP set debug_ falseADC/ACTO set debug_ false

    Est/Null set debug_ falseEst/TimeWindow set debug_ falseEst/ExpAvg set debug_ falseEst/PointSample set debug_ false

  • 8/20/2019 Ns Default

    10/26

    MeasureMod set debug_ falseSALink set debug_ false

    ## Node#

    Node set multiPath_ 0Node set rtagent_port_ 255

    # setting port for diffusion application agentNode set DIFFUSION_APP_PORT 254

    Node/MobileNode set X_ 0Node/MobileNode set Y_ 0Node/MobileNode set Z_ 0Node/MobileNode set speed_ 0Node/MobileNode set position_update_interval_ 0Node/MobileNode set bandwidth_ 0 ;# not used

    Node/MobileNode set delay_ 0 ;# not usedNode/MobileNode set REGAGENT_PORT 0Node/MobileNode set DECAP_PORT 1

    # Default settings for Hierarchical topology## Bits are allocated for different fields like port, nodeid, mcast,# hierarchical-levels.# All Mask and Shift values are stored in Class AddrParams.AddrParams set ALL_BITS_SET 0xffffffffAddrParams PortShift 0AddrParams PortMask [AddrParams set ALL_BITS_SET]AddrParams set domain_num_ 1

    AddrParams set def_clusters 4AddrParams set def_nodes 5

    #### Default and Maximum Address space - leaving the MSB as signedbitAllocAddrBits set DEFADDRSIZE_ 32AllocAddrBits set MAXADDRSIZE_ 32 ;# leaving thesigned bit

    Simulator set node_factory_ NodeSimulator set nsv1flag 0Simulator set mobile_ip_ 0 ;# flag for mobileIP

    #this was commented out - ratul

    #Simulator set EnableHierRt_ 0 ;# is hierarchical routing on? (toturn it on, call set-hieraddress)

    Simulator set routingAgent_ ""Simulator set addressType_ ""Simulator set MovementTrace_ OFF

    # change wrt Mike's codeSimulator set EotTrace_ OFF

    # This flag should be initially empty. It will be set to either ON orOFF# by Simulator::create-wireless-node{}.Simulator set IMEPFlag_ ""Simulator set WirelessNewTrace_ 0

  • 8/20/2019 Ns Default

    11/26

    Simulator set propInstCreated_ 0

    # Enable packet reference countSessionSim set rc_ 0

    # Defaults for multicast addressesSimulator set McastBaseAddr_ 0x80000000Simulator set McastAddr_ 0x80000000

    # Default values used for wireless simulationsSimulator set AgentTrace_ ONSimulator set RouterTrace_ OFFSimulator set MacTrace_ OFFSimulator set PhyTrace_ OFF

    # use tagged traces or positional traces?Simulator set TaggedTrace_ OFF

    # this can be set to use custom Routing Agents implemented withindynamic libraries

    Simulator set rtAgentFunction_ ""

    SessionHelper set rc_ 0 ;# just to eliminatewarningsSessionHelper set debug_ false

    NetworkInterface set debug_ false

    # SRM Agent defaults are in ../tcl/mcast/srm.tcl and ../mcast/srm-adaptive.tcl

    # IntServ Object specific defaults are in ../tcl/lib/ns-intserv.tcl

    # defaults for tbf

    TBF set rate_ 64kTBF set bucket_ 1024TBF set qlen_ 0

    ## mobile Ip#MIPEncapsulator set addr_ 0MIPEncapsulator set port_ 0MIPEncapsulator set shift_ 0MIPEncapsulator set mask_ [AddrParams set ALL_BITS_SET]MIPEncapsulator set ttl_ 32MIPEncapsulator set debug_ false

    # GAF GAFPartner set addr_ 0GAFPartner set port_ 254GAFPartner set shift_ 0GAFPartner set mask_ [AddrParams set ALL_BITS_SET]GAFPartner set debug_ false

    # HTTP-related defaults are in ../tcl/webcache/http-agent.tcl

    ## Wireless simulation support#

    Mac set debug_ falseARPTable set debug_ false

  • 8/20/2019 Ns Default

    12/26

    ARPTable set avoidReordering_ false ; #not usedGod set debug_ false

    Mac/Tdma set slot_packet_len_ 1500Mac/Tdma set max_node_num_ 64

    LL set mindelay_ 50usLL set delay_ 25usLL set bandwidth_ 0 ;# not usedLL set debug_ falseLL set avoidReordering_ false ; #not used

    Snoop set debug_ false

    #change wrt Mike's code # 802.11 MIB parameters #

     Mac/802_11 set CWMin_ 31 Mac/802_11 set CWMax_ 1023 Mac/802_11 set SlotTime_ 0.000020 ;# 20us Mac/802_11 set SIFS_ 0.000010 ;# 10us Mac/802_11 set PreambleLength_ 144 ;# 144 bit Mac/802_11 set PLCPHeaderLength_ 48 ;# 48 bits Mac/802_11 set PLCPDataRate_ 1.0e6 ;# 1Mbps Mac/802_11 set RTSThreshold_ 0 ;# bytes Mac/802_11 set ShortRetryLimit_ 7 ;#retransmittions Mac/802_11 set LongRetryLimit_ 4 ;#retransmissions

    Mac/802_11 set bugFix_timer_ true; # fix for when RTS/CTS not

    used# details at http://www.dei.unipd.it/wdyn/?IDsezione=2435

     Mac/802_11 set BeaconInterval_ 0.1 ;# 100ms Mac/802_11 set ScanType_ PASSIVE Mac/802_11 set ProbeDelay_ 0.0001 ;# 0.1 ms Mac/802_11 set MaxChannelTime_ 0.011 ;# 11 ms Mac/802_11 set MinChannelTime_ 0.005 ; # 5 ms Mac/802_11 set ChannelTime_ 0.12 ;# 120 ms

    Mac/802_11Ext set HeaderDuration_ 0.000020 ;# (SERVICE) 16bitslast of PLCP header are not included

    Mac/802_11Ext set SymbolDuration_ 0.000004 ;# (SERVICE) 16bitslast of PLCP header are not includedMac/802_11Ext set BasicModulationScheme_ 0 ;# BPSK and coding rate1/2 is the basic modulation scheme for header and ctrl packetsMac/802_11Ext set use_802_11a_flag_ true

    Mac/802_11Ext set CWMin_ 15Mac/802_11Ext set CWMax_ 1023Mac/802_11Ext set SlotTime_ 0.000009Mac/802_11Ext set SIFS_ 0.000016

    Mac/802_11Ext set RTSThreshold_ 3000Mac/802_11Ext set ShortRetryLimit_ 7Mac/802_11Ext set LongRetryLimit_ 4

    Mac/802_11Ext set MAC_DBG 0

    http://www.dei.unipd.it/wdyn/?IDsezione=2435http://www.dei.unipd.it/wdyn/?IDsezione=2435

  • 8/20/2019 Ns Default

    13/26

    ## Support for Abstract LAN#

    Classifier/Replicator set direction_ falseMac set abstract_ false

    ## Support for MAC Level trace#Mac/802_3 set trace_ false

    # Turning on/off sleep-wakeup cycles for SMACMac/SMAC set syncFlag_ 1 # Nodes synchronize their schedules in SMACMac/SMAC set selfConfigFlag_ 1

    # Default duty cycle in SMACMac/SMAC set dutyCycle_ 10## Unity gain, omni-directional antennas# Set up the antennas to be centered in the node and 1.5 meters aboveitAntenna/OmniAntenna set X_ 0Antenna/OmniAntenna set Y_ 0Antenna/OmniAntenna set Z_ 1.5Antenna/OmniAntenna set Gt_ 1.0Antenna/OmniAntenna set Gr_ 1.0

    Phy set debug_ false

    # Initialize the SharedMedia interface with parameters to make# it work like the 914MHz Lucent WaveLAN DSSS radio interfacePhy/WirelessPhy set CPThresh_ 10.0Phy/WirelessPhy set CSThresh_ 1.559e-11Phy/WirelessPhy set RXThresh_ 3.652e-10Phy/WirelessPhy set bandwidth_ 2e6Phy/WirelessPhy set Pt_ 0.28183815Phy/WirelessPhy set freq_ 914e+6Phy/WirelessPhy set L_ 1.0

    Phy/WirelessPhyExt set CSThresh_ 6.30957e-12 ;#-82 dBmPhy/WirelessPhyExt set noise_floor_ 7.96159e-14 ;#-101 dBmPhy/WirelessPhyExt set PowerMonitorThresh_ 2.653e-14 ;#-105.7 dBm(noise_floor_ / 3)

    Phy/WirelessPhyExt set Pt_ 0.1Phy/WirelessPhyExt set freq_ 5.18e+9 ;#5.18 GHzPhy/WirelessPhyExt set HeaderDuration_ 0.000020 ;#20 usPhy/WirelessPhyExt set BasicModulationScheme_ 0 ;# BPSKPhy/WirelessPhyExt set L_ 1.0 ;#defaultPhy/WirelessPhyExt set PreambleCaptureSwitch_ 1Phy/WirelessPhyExt set DataCaptureSwitch_ 0Phy/WirelessPhyExt set SINR_PreambleCapture_ 2.5118; ;# 4 dBPhy/WirelessPhyExt set SINR_DataCapture_ 100.0; ;# 10 dBPhy/WirelessPhyExt set trace_dist_ 1e6 ;# trace untildistance of 1 Mio. km ("infinty")Phy/WirelessPhyExt set PHY_DBG_ 0Phy/WirelessPhyExt set CPThresh_ 0 ;# not used by WirelessPhyExt, butavailable to be compabile with WirelessPhyPhy/WirelessPhyExt set RXThresh_ 0 ;# not used by WirelessPhyExt, butavailable to be compabile with WirelessPhy

  • 8/20/2019 Ns Default

    14/26

    Phy/WiredPhy set bandwidth_ 10e6

    # Shadowing propagation modelPropagation/Shadowing set pathlossExp_ 2.0Propagation/Shadowing set std_db_ 4.0Propagation/Shadowing set dist0_ 1.0Propagation/Shadowing set seed_ 0

    Propagation/Nakagami set gamma0_ 1.9Propagation/Nakagami set gamma1_ 3.8Propagation/Nakagami set gamma2_ 3.8

    Propagation/Nakagami set d0_gamma_ 200Propagation/Nakagami set d1_gamma_ 500

    Propagation/Nakagami set use_nakagami_dist_ false

    Propagation/Nakagami set m0_ 1.5Propagation/Nakagami set m1_ 0.75

    Propagation/Nakagami set m2_ 0.75

    Propagation/Nakagami set d0_m_ 80Propagation/Nakagami set d1_m_ 200

    # Turning on/off sleep-wakeup cycles for SMACMac/SMAC set syncFlag_ 0

    # variables of the link state module is moved to ns-rtProtoLS.tcl

    ## Agents

    #Agent set fid_ 0Agent set prio_ 0Agent set agent_addr_ -1Agent set agent_port_ -1Agent set dst_addr_ -1Agent set dst_port_ -1Agent set flags_ 0Agent set ttl_ 32 ; # arbitrary choice hereAgent set debug_ falseAgent set class_ 0

    ##Agent set seqno_ 0 now is gone##Agent set class_ 0 now is gone

    Agent/Ping set packetSize_ 64

    Agent/UDP set packetSize_ 1000Agent/UDP instproc done {} { }Agent/UDP instproc process_data {from data} { }

    Agent/SCTP set debugMask_ 0 ;# all debugging off bydefaultAgent/SCTP set debugFileIndex_ -1 ;# default outputs to stderrAgent/SCTP set associationMaxRetrans_ 10;# 10 attemptsAgent/SCTP set pathMaxRetrans_ 5 ;# 5 attempts (perdestination)Agent/SCTP set changePrimaryThresh_ -1 ;# infinite (ie, never changeprimaryAgent/SCTP set maxInitRetransmits_ 8 ;# 8 attempts

  • 8/20/2019 Ns Default

    15/26

    Agent/SCTP set heartbeatInterval_ 30 ;# 30 secsAgent/SCTP set mtu_ 1500 ;# MTU of ethernet (mostcommon)Agent/SCTP set initialRwnd_ 65536 ;# default inital receiverwindowAgent/SCTP set initialSsthresh_ 65536 ;# default inital ssthreshvalueAgent/SCTP set initialCwnd_ 2 ;# default cwnd = 2 * MTUAgent/SCTP set initialRto_ 3.0 ;# default initial RTO = 3secsAgent/SCTP set minRto_ 1.0 ;# default min RTO = 1 secAgent/SCTP set maxRto_ 60.0 ;# default max RTO = 60 secsAgent/SCTP set fastRtxTrigger_ 4 ;# 4 missing reports triggerfast rtxAgent/SCTP set numOutStreams_ 1 ;# single stream defaultAgent/SCTP set numUnrelStreams_ 0 ;# by default all streams arereliableAgent/SCTP set reliability_ 0 ;# by default unrel streamshave 0 rtx'sAgent/SCTP set unordered_ 0 ;# by default all chunks are

    orderedAgent/SCTP set ipHeaderSize_ 20 ;# default is IPv4Agent/SCTP set dataChunkSize_ 1468 ;# restricted to 4 byteboundariesAgent/SCTP set useDelayedSacks_ 1 ;# rfc2960 says SHOULD usedelayed sacksAgent/SCTP set sackDelay_ 0.200 ;# rfc2960 recommends 200 msAgent/SCTP set useMaxBurst_ 1 ;# sctp implementors guideadds this varAgent/SCTP set rtxToAlt_ 1 ;# by default rtxs go toalternate destAgent/SCTP set dormantAction_ 0 ;# 0 = change dest, 1 = useprimary, 2 = use last dest before dormant; 

    ## These variables are for simulating reactive routing overheads (for## MANETs, etc). This feature is turned off is delay is 0. The cachelifetime## by default is just slightly larger than the default min RTO toavoid a "cache## miss" after a single timeout event.Agent/SCTP set routeCalcDelay_ 0 ;# time to calculate a routeAgent/SCTP set routeCacheLifetime_ 1.2 ;# how long a route remainscached

    Agent/SCTP set trace_all_ 0 ;# trace all vars ?

    ## These variables are set because they have to be bound to betraceable.

    ## This default does not matter to us at all.Agent/SCTP set cwnd_ 0 ;Agent/SCTP set rwnd_ 0 ;Agent/SCTP set rto_ 0 ;Agent/SCTP set errorCount_ 0 ;Agent/SCTP set frCount_ 0 ;Agent/SCTP set timeoutCount_ 0 ;Agent/SCTP set rcdCount_ 0 ;# total count of route calcdelays

    Agent/SCTP/MultipleFastRtx set mfrCount_ 0Agent/SCTP/MfrTimestamp set mfrCount_ 0

    ## CMT variablesAgent/SCTP/CMT set useCmtReordering_ 1 ;# Turn ON CMT Reorderingalgo

  • 8/20/2019 Ns Default

    16/26

    Agent/SCTP/CMT set useCmtCwnd_ 1 ;# Turn ON CMT cwnd growthalgoAgent/SCTP/CMT set useCmtDelAck_ 1 ;# Turn ON CMT delayed ackalgoAgent/SCTP/CMT set eCmtRtxPolicy_ 4 ;# Default policy = RTX_CWND## CMT-PF variablesAgent/SCTP/CMT set useCmtPF_ 0 ;# CMT-PF turned offAgent/SCTP/CMT set cmtPFCwnd_ 2 ;# Cwnd in MTUs after HB-ACK (1 or 2)## CMT-PF trace variablesAgent/SCTP/CMT set countPFToActiveNewData_ 0 ;# count of PF->Activechanges  # for new data transferAgent/SCTP/CMT set countPFToActiveRtxms_ 0; # count of PF->Activechanges  # for retransmissions

    Agent/TCP set seqno_ 0Agent/TCP set t_seqno_ 0Agent/TCP set maxburst_ 0

    Agent/TCP set aggressive_maxburst_ 1 ; # Added 2003/6/2.# No change to default behavior.Agent/TCP set maxcwnd_ 0Agent/TCP set numdupacks_ 3Agent/TCP set numdupacksFrac_ -1 ; # Added 2002/10/18.

    # Set to -1 for this to have# no effect even for large windows.# Default changed to -1 on 2006/09/27.

      # Set to 100 to havenumdupacks_  # up to 1/100-th of cwnd.Agent/TCP set exitFastRetrans_ true ; # Added 2003/7/28.

    # For clean exits of Fast Retransmit.# False for old buggy behavior.

    Agent/TCP set window_ 20Agent/TCP set windowInit_ 2 ; # default changed on 2001/5/26.Agent/TCP set windowInitOption_ 1Agent/TCP set syn_ true ; # default changed on 2001/5/17.Agent/TCP set max_connects_ -1 ; # Variable added on 2007/9/25.

    # Set to -1 for a no-op, 2007/9/28.Agent/TCP set windowOption_ 1Agent/TCP set windowConstant_ 4Agent/TCP set windowThresh_ 0.002Agent/TCP set decrease_num_ 0.5Agent/TCP set increase_num_ 1.0Agent/TCP set k_parameter_ 0.0 ; # for binomial congestion controlAgent/TCP set l_parameter_ 1.0 ; # for binomial congestion controlAgent/TCP set overhead_ 0

    Agent/TCP set ecn_ 0Agent/TCP set old_ecn_ 0Agent/TCP set bugfix_ss_ 1 ; # Variable added on 2006/06/13Agent/TCP set packetSize_ 1000Agent/TCP set tcpip_base_hdr_size_ 40Agent/TCP set ts_option_size_ 10; # in bytesAgent/TCP set bugFix_ trueAgent/TCP set bugFix_ack_ false ; # Variable added on2003/08/13

    # To allow multiple Fast RetransmitsAgent/TCP set bugFix_ts_ false ; # Variable added on 2003/08/13

    # To allow multiple Fast RetransmitsAgent/TCP set lessCareful_ false ; # for the Less Careful variant of

    # bugFix_, just for illustration.Agent/TCP set timestamps_ falseAgent/TCP set ts_resetRTO_ false ; # Added 2003/07/24.

  • 8/20/2019 Ns Default

    17/26

    # Set to true to un-back-off RTO# after any valid RTT measurement.

    Agent/TCP set slow_start_restart_ trueAgent/TCP set restart_bugfix_ trueAgent/TCP set tcpTick_ 0.01 ; # default changed on 2002/03/07

    # to reflect a changing reality.Agent/TCP set maxrto_ 60 ; # default changed on 2007/03/28

    # to reflect RFC2988.Agent/TCP set minrto_ 0.2 ; # Default changed to 200ms on

    # 2004/10/14, to match values# used by many implementations.

    Agent/TCP set srtt_init_ 0Agent/TCP set rttvar_init_ 12Agent/TCP set rtxcur_init_ 3.0 ; # Default changed on 2006/01/21

    Agent/TCP set T_SRTT_BITS 3Agent/TCP set T_RTTVAR_BITS 2Agent/TCP set rttvar_exp_ 2Agent/TCP set updated_rttvar_ true ; # Variable added on2006/1/21

    Agent/TCP set timerfix_ true ; # Variable added on2001/05/11  # Set to "false" to give the old

    # behavior.Agent/TCP set rfc2988_ true ; # Default set to "true" on2002/03/07.

    # Set rfc2988_ "true" to give RFC2988-# compliant behavior for timers.

    Agent/TCP instproc done {} { }Agent/TCP set noFastRetrans_ falseAgent/TCP set partial_ack_ false ; # Variable added on 2002/12/28.

    # Set to "true" to ensure sending# a packet on a partial ACK.

    Agent/TCP set dupacks_ 0

    Agent/TCP set ack_ 0Agent/TCP set cwnd_ 0Agent/TCP set awnd_ 0Agent/TCP set ssthresh_ 0Agent/TCP set rtt_ 0Agent/TCP set srtt_ 0Agent/TCP set rttvar_ 0Agent/TCP set backoff_ 0Agent/TCP set maxseq_ 0Agent/TCP set singledup_ 1 ; # default changed on 2001/11/28.Agent/TCP set LimTransmitFix_ false ; # added on 2003/03/31.Agent/TCP set precisionReduce_ true ; # default changed on2006/1/24.Agent/TCP set oldCode_ false

    Agent/TCP set useHeaders_ true ; # default changed on 2001/11/28.

    # These are all used for high-speed TCP.Agent/TCP set low_window_ 38 ; # default changed on2002/8/12.Agent/TCP set high_window_ 83000Agent/TCP set high_p_ 0.0000001Agent/TCP set high_decrease_ 0.1Agent/TCP set max_ssthresh_ 0Agent/TCP set cwnd_range_ 0 ; # cwnd_frac_ deleted on 6/6/04,

    # replaced by cwnd_range_# For Quick-Start:Agent/TCP set rate_request_ 0Agent/TCP set qs_enabled_ falseAgent/TCP set tcp_qs_recovery_ true ; # Added on 2004/09/21, byPasi.

  • 8/20/2019 Ns Default

    18/26

    Agent/TCP set qs_request_mode_ 1Agent/TCP set qs_rtt_ 50Agent/TCP set print_request_ falseAgent/TCP set qs_thresh_ 4

    # These are all variables for tracing information.Agent/TCP set ndatapack_ 0Agent/TCP set ndatabytes_ 0Agent/TCP set nackpack_ 0Agent/TCP set nrexmit_ 0Agent/TCP set nrexmitpack_ 0Agent/TCP set nrexmitbytes_ 0Agent/TCP set necnresponses_ 0Agent/TCP set ncwndcuts_ 0Agent/TCP set ncwndcuts1_ 0

    Agent/TCP set trace_all_oneline_ false

    Agent/TCP set QOption_ 0Agent/TCP set EnblRTTCtr_ 0

    Agent/TCP set control_increase_ 0

    Agent/TCP set SetCWRonRetransmit_ false ; # added on 2005/06/19.

    # XXX Generate nam trace or plain old text trace for variables.# When it's true, generate nam trace.Agent/TCP set nam_tracevar_ false

    Agent/TCP/Fack set ss-div4_ falseAgent/TCP/Fack set rampdown_ false

    Agent/TCP/Reno/XCP set timestamps_ trueAgent/TCP/FullTcp/Newreno/XCP set timestamps_ true

    Agent/TCP set eln_ 0Agent/TCP set eln_rxmit_thresh_ 1# Agent/TCP set delay_growth_ falseAgent/TCP set delay_growth_ true ; # default changed on 2001/5/17.

    Agent/TCP set CoarseTimer_ 0

    Agent/TCP set frto_enabled_ 0 ; # Added on 2004/10/26 for F-RTOAgent/TCP set sfrto_enabled_ 0 ; # Added on 2004/10/26 for F-RTOAgent/TCP set spurious_response_ 1 ; # Added on 2004/10/26 forF-RTO

    Agent/TCPSink set sport_ 0Agent/TCPSink set dport_ 0

    #XXX other kinds of sinks -> should reparentAgent/TCPSink set packetSize_ 40Agent/TCPSink set maxSackBlocks_ 3Agent/TCPSink set ts_echo_bugfix_ true ; # default changed,2003/8/13Agent/TCPSink set ts_echo_rfc1323_ false ; # default added,2003/8/13Agent/TCPSink set generateDSacks_ falseAgent/TCPSink set qs_enabled_ falseAgent/TCPSink set RFC2581_immediate_ack_ trueAgent/TCPSink set bytes_ 0Agent/TCPSink set ecn_syn_ false ; # Added 2005/11/21 for SYN/ACKpkts.

    Agent/TCPSink/DelAck set interval_ 100ms

  • 8/20/2019 Ns Default

    19/26

    catch {Agent/TCPSink/Asym set interval_ 100msAgent/TCPSink/Asym set maxdelack_ 5

    }Agent/TCPSink/Sack1/DelAck set interval_ 100ms

     # setting newreno_changes_ to 1 implements some changes to reno# proposed by Janey Hoe (other than fixing reno's # unnecessary retransmit timeouts)Agent/TCP/Newreno set newreno_changes_ 0 # setting newreno_changes1_ to 1 allows the retransmit timer toexpire for # a window with many packet drops # Default changed to 1 on 5/5/03, to reflect RFC 2582.Agent/TCP/Newreno set newreno_changes1_ 1Agent/TCP/Newreno set partial_window_deflation_ 1 ; # Default changedto 1

      # on 5/5/03, to reflect  # RFC 2582.

    Agent/TCP/Newreno set exit_recovery_fix_ 0

    Agent/TCP/Vegas set v_alpha_ 1Agent/TCP/Vegas set v_beta_ 3Agent/TCP/Vegas set v_gamma_ 1Agent/TCP/Vegas set v_rtt_ 0

    Agent/TCP/Vegas/RBP set rbp_scale_ 0.75# rbp_rate_algorithm_'s are defined in tcp-rbp.cc.# 1=RBP_VEGAS_RATE_ALGORITHM (default),# 2=RBP_CWND_ALGORITHMAgent/TCP/Vegas/RBP set rbp_rate_algorithm_ 1Agent/TCP/Vegas/RBP set rbp_segs_actually_paced_ 0Agent/TCP/Vegas/RBP set rbp_inter_pace_delay_ 0

    Agent/TCP/Reno/RBP set rbp_scale_ 0.75Agent/TCP/Reno/RBP set rbp_segs_actually_paced_ 0Agent/TCP/Reno/RBP set rbp_inter_pace_delay_ 0# Reno/RBP supports only RBP_CWND_ALGORITHM# Agent/TCP/Reno/RBP set rbp_rate_algorithm_ 2

    Agent/TCP/Asym set g_ 0.125Agent/TCP/Reno/Asym set g_ 0.125Agent/TCP/Newreno/Asym set g_ 0.125

    # RFC793eduTcp -- 19990820, [email protected]/TCP/RFC793edu set add793expbackoff_ trueAgent/TCP/RFC793edu set add793jacobsonrtt_ falseAgent/TCP/RFC793edu set add793fastrtx_ false

    Agent/TCP/RFC793edu set add793slowstart_ falseAgent/TCP/RFC793edu set add793additiveinc_ falseAgent/TCP/RFC793edu set add793karnrtt_ trueAgent/TCP/RFC793edu set rto_ 60Agent/TCP/RFC793edu set syn_ trueAgent/TCP/RFC793edu set add793exponinc_ false

    Agent/TCP/FullTcp instproc done_data {} { }

    # Dynamic state:Agent/TFRC set rate_ 0Agent/TFRC set ndatapack_ 0 ; # Number of packets sentAgent/TFRC set ndatabytes_ 0 ; # Number of bytes sentAgent/TFRC set true_loss_rate_ 0.0 ; # For statistics only.# RTT:Agent/TFRC set srtt_init_ 0 ; # Variables for tracking RTT

    mailto:[email protected]:[email protected]

  • 8/20/2019 Ns Default

    20/26

    Agent/TFRC set rttvar_init_ 12Agent/TFRC set rtxcur_init_ 6.0Agent/TFRC set rttvar_exp_ 2Agent/TFRC set T_SRTT_BITS 3Agent/TFRC set T_RTTVAR_BITS 2# VoIP mode:Agent/TFRC set voip_ 0 ; # Added on 10/23/2004

    # 1 for voip mode.Agent/TFRC set voip_max_pkt_rate_ 100 ; # Max rate in pps, for voipmode.Agent/TFRC set fsize_ 1460 ; # Default size for large TCP packets.

    # Used for VoIP mode.Agent/TFRC set headersize_ 32 ; # Size for packet headers.# End of VoIP mode.# Variants in the TFRC algorithms:# Agent/TFRC set standard_ 0 ; # Added on 4/19/2007

    # Set to 1 for RFC 3448 algorithms.# Set to 2 for RFC 4342 algorithms.# Set to 3 for RFC 3448bis algorithms.

    Agent/TFRC set rate_init_option_ 2 ; # Added on 10/20/2004

    # Set to 1 for backward compatibility.# Set to 2 for RFC 3390 initial rates# Default changed on 10/21/2004.

    Agent/TFRC set slow_increase_ 1 ; # Added on 10/20//2004# Set to 1 for gradual rate changes.# This also gives backward compatibility.

    # Agent/TFRC set ss_changes_ 1 ; # Deleted on 3/14//2006.Agent/TFRC set maxHeavyRounds_ 0; # Number of rounds for sending rateallowed

      # to be greater than twice receiving rate.  # Default changed on 3/27/2007, to conform  # to RFC3448 and CCID 3.

    Agent/TFRC set conservative_ 0 ; # Set to true for a conservative# response to heavy congestion.

    Agent/TFRC set scmult_ 1.5 ; # self clocking parameter forconservative_Agent/TFRC set oldCode_ false ; # Set to 1 to use old code fordatalimited

    # applications.# Parameter added on 12/18/02.

    # End of Variands.# Parameters:Agent/TFRC set packetSize_ 1000Agent/TFRC set df_ 0.95 ; # decay factor for accurate RTTestimateAgent/TFRC set tcp_tick_ 0.1 ;Agent/TFRC set InitRate_ 300 ; # Initial send rateAgent/TFRC set overhead_ 0 ; # If > 0, dither outgoing packets

    Agent/TFRC set ssmult_ 2 ; # Rate of increase during slow-start:Agent/TFRC set bval_ 1 ; # Value of B for TCP formulaAgent/TFRC set ca_ 1 ; # Enable Sqrt(RTT) congestion avoidanceAgent/TFRC set printStatus_ 0Agent/TFRC set ecn_ 0 ; # Set to 1 for ECN-capable connection.Agent/TFRC set minrto_ 0.0 ; # Minimum RTO, for use in TCP equation.

    # The default is not to use minrto_.Agent/TFRC set SndrType_ 0 ; # Set to 1 to use data-producingapplications  # such as FTP.Agent/TFRC set maxqueue_ MAXSEQ ; # queue from application.Agent/TFRC set rate_init_ 2 ; # Added on 10/20/2004

    # Set to 1 for backward compatibility.# Default changed on 10/21/2004.

    Agent/TFRC set useHeaders_ true ; # Added on 2005/06/24.Agent/TFRC set idleFix_ true ; # Added on 2006/03/12.

  • 8/20/2019 Ns Default

    21/26

    Agent/TFRCSink set packetSize_ 40Agent/TFRCSink set InitHistorySize_ 100000Agent/TFRCSink set NumFeedback_ 1Agent/TFRCSink set AdjustHistoryAfterSS_ 1Agent/TFRCSink set NumSamples_ -1Agent/TFRCSink set discount_ 1; # History DiscountingAgent/TFRCSink set minDiscountRatio_ 0.5; # Minimum for historydiscounting.Agent/TFRCSink set printLoss_ 0Agent/TFRCSink set smooth_ 1 ; # smoother Average Loss IntervalAgent/TFRCSink set ShortIntervals_ 0 ; # For calculating loss eventrates

    # for short loss intervals differentlyAgent/TFRCSink set ShortRtts_ 2 ; # Max num of RTTs in a shortinterval.Agent/TFRCSink set minlc_ 4Agent/TFRCSink set algo_ 1 ; # 1: algo from sigcomm paper 2:ewma

    # 3: fixed window

    Agent/TFRCSink set maxint_ 1000 ; # max loss interval historyAgent/TFRCSink set history_ 0.75 ; # loss history for EWMAAgent/TFRCSink set PreciseLoss_ 1 ; # 1 for more precise lossevents

      # Introduced on 12/11/02, default 1.  # No change in performance.

    Agent/TFRCSink set numPkts_ 1; # Num non-sequential packetsbefore loss

    # Introduced on 12/12/02, with default 1.# Default changed to 3 on 12/16/02.# Default changed to 1 on 10/28/03 due# to a major bug.

    Agent/TFRCSink set bytes_ 0 ; # For counting bytes received.

    if [TclObject is-class Agent/TCP/FullTcp] {Agent/TCP/FullTcp set segsperack_ 1; # ACK frequencyAgent/TCP/FullTcp set spa_thresh_ 0; # below do 1 seg per ack

    [0:disable]Agent/TCP/FullTcp set segsize_ 536; # segment sizeAgent/TCP/FullTcp set tcprexmtthresh_ 3; # num dupacks to enter

    recovAgent/TCP/FullTcp set iss_ 0; # Initial send seq#Agent/TCP/FullTcp set nodelay_ false; # Nagle disable?Agent/TCP/FullTcp set data_on_syn_ false; # allow data on 1st

    SYN?Agent/TCP/FullTcp set dupseg_fix_ true ; # no rexmt w/dup segs

    from peerAgent/TCP/FullTcp set dupack_reset_ false; # exit recov on ack

    < highestAgent/TCP/FullTcp set interval_ 0.1 ; # delayed ACK interval

    100msAgent/TCP/FullTcp set close_on_empty_ false; # close conn if

    sent allAgent/TCP/FullTcp set signal_on_empty_ false; # signal if sent

    allAgent/TCP/FullTcp set ts_option_size_ 10; # in bytesAgent/TCP/FullTcp set reno_fastrecov_ true; # fast recov true

    by defaultAgent/TCP/FullTcp set pipectrl_ false; # use "pipe" ctrlAgent/TCP/FullTcp set open_cwnd_on_pack_ true; # ^ win on

    partial acks?Agent/TCP/FullTcp set halfclose_ false; # do simplex closes

    (shutdown)?Agent/TCP/FullTcp set nopredict_ false; # disable header

  • 8/20/2019 Ns Default

    22/26

    prediction code?  Agent/TCP/FullTcp set ecn_syn_ false; # Make SYN/ACK packetECN-Capable?  Agent/TCP/FullTcp set ecn_syn_wait_ false; # Wait aftermarked SYN/ACK?

    Agent/TCP/FullTcp set debug_ false; # Added Sept. 16, 2007.

    Agent/TCP/FullTcp/Newreno set recov_maxburst_ 2; # max burstdur recov

    Agent/TCP/FullTcp/Sack set sack_block_size_ 8; # bytes in aSACK block

    Agent/TCP/FullTcp/Sack set sack_option_size_ 2; # bytes in opthdr

    Agent/TCP/FullTcp/Sack set max_sack_blocks_ 3; # max # of sackblks

    Agent/TCP/FullTcp/Sack set clear_on_timeout_ true; # clear sqat sender on timeout?

    Agent/TCP/FullTcp/Sack set sack_rtx_cthresh_ 1; # dup cnt totrigger rtx

    Agent/TCP/FullTcp/Sack set sack_rtx_bthresh_ 1; # dup bcnt totrigger rtxAgent/TCP/FullTcp/Sack set sack_rtx_threshmode_ 1; # 1 = cnt

    only

    Agent/TCP/FullTcp/Tahoe instproc init {} {$self next$self instvar reno_fastrecov_set reno_fastrecov_ false

    }

    Agent/TCP/FullTcp/Sack instproc init {} {$self next$self instvar reno_fastrecov_ open_cwnd_on_pack_

    set reno_fastrecov_ falseset open_cwnd_on_pack_ false

    }

    Agent/TCP/FullTcp/Newreno instproc init {} {$self next$self instvar open_cwnd_on_pack_set open_cwnd_on_pack_ false

    }

    }

    if [TclObject is-class Agent/TCP/BayFullTcp] {Agent/TCP/BayFullTcp set segsperack_ 1; # ACK frequency

    Agent/TCP/BayFullTcp set segsize_ 536; # segment sizeAgent/TCP/BayFullTcp set tcprexmtthresh_ 3; # num dupacks to

    enter recovAgent/TCP/BayFullTcp set iss_ 0; # Initial send seq#Agent/TCP/BayFullTcp set nodelay_ false; # Nagle disable?Agent/TCP/BayFullTcp set data_on_syn_ false; # allow data on

    1st SYN?Agent/TCP/BayFullTcp set dupseg_fix_ true ; # no rexmt w/dup

    segs from peerAgent/TCP/BayFullTcp set dupack_reset_ false; # exit recov on

    ack < highestAgent/TCP/BayFullTcp set interval_ 0.1 ; # delayed ACK interval

    100msAgent/TCP/BayFullTcp set close_on_empty_ false; # close conn if

    sent allAgent/TCP/BayFullTcp set ts_option_size_ 10; # in bytes

  • 8/20/2019 Ns Default

    23/26

    Agent/TCP/BayFullTcp set reno_fastrecov_ true; # fast recovtrue by default

    Agent/TCP/BayFullTcp set pipectrl_ false; # use "pipe" ctrlAgent/TCP/BayFullTcp set open_cwnd_on_pack_ true; # ^ win on

    partial acks?Agent/TCP/BayFullTcp set halfclose_ false; # do simplex closes

    (shutdown)?Agent/TCP/BayFullTcp/Newreno set recov_maxburst_ 2; # max burst

    dur recov

    Agent/TCP/BayFullTcp/Sack set sack_block_size_ 8; # bytes in aSACK block

    Agent/TCP/BayFullTcp/Sack set sack_option_size_ 2; # bytes inopt hdr

    Agent/TCP/BayFullTcp/Sack set max_sack_blocks_ 3; # max # ofsack blks}

    # Default values used by wireless simulationsAgent/Null set sport_ 0

    Agent/Null set dport_ 0

    Agent/CBR set sport_ 0Agent/CBR set dport_ 0

    # Http invalidation agentAgent/HttpInval set inval_hdr_size_ 40

    Agent/RTP set seqno_ 0Agent/RTP set interval_ 3.75msAgent/RTP set random_ 0Agent/RTP set packetSize_ 210Agent/RTP set maxpkts_ 0x10000000Agent/RTP instproc done {} { }

    Agent/RTCP set seqno_ 0

    Agent/Message set packetSize_ 180

    Agent/MessagePassing set packetSize_ 1500

    Agent/LossMonitor set nlost_ 0Agent/LossMonitor set npkts_ 0Agent/LossMonitor set bytes_ 0Agent/LossMonitor set lastPktTime_ 0Agent/LossMonitor set expected_ 0

    # RAP

    Agent/RAP set packetSize_ 512Agent/RAP set seqno_ 0Agent/RAP set sessionLossCount_ 0Agent/RAP set ipg_ 2.0Agent/RAP set alpha_ 1.0Agent/RAP set beta_ 0.5Agent/RAP set srtt_ 2.0Agent/RAP set variance_ 0.0Agent/RAP set delta_ 0.5Agent/RAP set mu_ 1.2Agent/RAP set phi_ 4.0Agent/RAP set timeout_ 2.0Agent/RAP set overhead_ 0Agent/RAP set useFineGrain_ 0Agent/RAP set kfrtt_ 0.9Agent/RAP set kxrtt_ 0.01

  • 8/20/2019 Ns Default

    24/26

    Agent/RAP set debugEnable_ 0Agent/RAP set rap_base_hdr_size_ 44Agent/RAP set dpthresh_ 50Agent/RAP instproc done {} { }

    # Routing protocol agentsAgent/Mcast/Control set packetSize_ 80

    # Dynamic routing defaultsAgent/rtProto set preference_ 200 ;# global defaultpreferenceAgent/rtProto/Direct set preference_ 100Agent/rtProto/DV set preference_ 120Agent/rtProto/DV set INFINITY [Agent set ttl_]Agent/rtProto/DV set advertInterval 2

    Agent/Encapsulator set status_ 1Agent/Encapsulator set overhead_ 20

    Agent/DSRAgent set sport_ 255

    Agent/DSRAgent set dport_ 255

    Agent/MIPBS set adSize_ 48Agent/MIPBS set shift_ 0Agent/MIPBS set mask_ [AddrParams set ALL_BITS_SET]Agent/MIPBS set ad_lifetime_ 2 Agent/MIPMH set home_agent_ 0Agent/MIPMH set rreqSize_ 52Agent/MIPMH set reg_rtx_ 0.5Agent/MIPMH set shift_ 0Agent/MIPMH set mask_ [AddrParams set ALL_BITS_SET]Agent/MIPMH set reg_lifetime_ 2 

    # Intitialization for directed diffusion : ChalermekAgent/Diff_Sink set packetSize_ 512Agent/Diff_Sink set interval_ 0.5Agent/Diff_Sink set random_ 1Agent/Diff_Sink set maxpkts_ 10000Agent/Diff_Sink set data_type_ 0

    # PLM contributed by Arnaud Legout at EURECOMAgent/LossMonitor/PLM set flag_PP_ 0Agent/LossMonitor/PLM set packet_time_PP_ 0Agent/LossMonitor/PLM set fid_PP_ 0Agent/LossMonitor/PLM set seqno_ 0

    # MPLS Label Distribution Protocol agent

    Agent/LDP set trace_ldp_ 0

    # Default to NOT nix-vector routingSimulator set nix-routing 0#Node/NixNode set id_ 0

    #Routing Module variable settingRtModule set classifier_ ""RtModule/Base set classifier_ ""#RtModule/Hier set classifier_ [new Classifier/Hier]#RtModule/Manual set classifier_ [new Classifier/Hash/Dest 2]#RtModule/VC set classifier_ [new Classifier/Virtual]

    ## LMS initializations#

  • 8/20/2019 Ns Default

    25/26

    LMSErrorModel set rate_ 0.0 ;# just to eliminate warningsLMSErrorModel set errPkt_ 0LMSErrorModel set errByte_ 0LMSErrorModel set errTime_ 0.0LMSErrorModel set onlink_ 0LMSErrorModel set enable_ 0LMSErrorModel set ndrops_ 0LMSErrorModel set bandwidth_ 2MbLMSErrorModel set markecn_ falseLMSErrorModel set debug_ falseLMSErrorModel set delay_pkt_ falseLMSErrorModel set delay_ 0

    set lmsPacketSize 1024set lsize [Application/Traffic/CBR set packetSize_]

    RtModule/LMS set node_ ""

    Agent/LMS set lms_enabled_ 1Agent/LMS set packetSize_ $lmsPacketSize

    Agent/LMS/Sender set interval_ 4.0msAgent/LMS/Sender set packetSize_ $lsizeAgent/LMS/Sender set lmsPacketSize_ $lmsPacketSizeAgent/LMS/Sender set random_ 0Agent/LMS/Sender set maxpkts_ 0x10000000Agent/LMS/Sender set odat_ 0Agent/LMS/Sender instproc done {} { }

    Agent/LMS/Receiver set lmsPacketSize_ $lmsPacketSizeAgent/LMS/Receiver set bytes_ 0Agent/LMS/Receiver set nlost_ 0Agent/LMS/Receiver set npkts_ 0Agent/LMS/Receiver set expected_ 0

    Agent/LMS/Receiver set lastPktTime_ 0.0Agent/LMS/Receiver instproc done {} { }Agent/LMS/Receiver set packetSize_ $lsize

    # Following defaults defined for TCP Quick Start# http://www.icir.org/floyd/quickstart.htmlAgent/QSAgent set qs_enabled_ 1Agent/QSAgent set old_classifier_ 0Agent/QSAgent set state_delay_ 0.2 ; # Changed from 0.25 to 0.2,2/25/05.Agent/QSAgent set alloc_rate_ 0.85 ; # Changed from 0.6 to 0.85,2/25/05.Agent/QSAgent set threshold_ 0.85 ; # Changed from 0.4 to 0.85,2/25/05.

    Agent/QSAgent set max_rate_ 256Agent/QSAgent set mss_ [Agent/TCP set packetSize_]Agent/QSAgent set rate_function_ 2Agent/QSAgent set algorithm_ 3 ; # Changed from 2 to 3,2/25/05.

    Queue set util_weight_ 0.8Queue set util_check_intv_ 0.2 ; # Changed from 1 to 0.2, 2/25/05.Queue set util_records_ 5 ; # Changed from 0 to 5, 2/25/05.

    # Quick Start definitions end here

    Delayer set debug_ false

    Agent/TCP/Linux set rtxcur_init_ 3Agent/TCP/Linux set maxrto_ 120

    http://www.icir.org/floyd/quickstart.htmlhttp://www.icir.org/floyd/quickstart.html

  • 8/20/2019 Ns Default

    26/26

    Agent/TCP/Linux set minrto_ 0.2Agent/TCP/Linux set ts_resetRTO_ trueAgent/TCP/Linux set next_pkts_in_flight_ 0Agent/TCP/Linux set delay_growth_ false

    Agent/PBC set payloadSize 200Agent/PBC set periodicBroadcastInterval 1Agent/PBC set periodicBroadcastVariance 0.1Agent/PBC set modulationScheme 0