📄 ns-default.tcl
字号:
Application/Traffic/CBR_PP set packetSize_ 210Application/Traffic/CBR_PP set random_ 0Application/Traffic/CBR_PP set maxpkts_ 268435456; # 0x10000000Application/Traffic/CBR_PP set PBM_ 2Application/Traffic/Exponential set burst_time_ .5Application/Traffic/Exponential set idle_time_ .5Application/Traffic/Exponential set rate_ 64KbApplication/Traffic/Exponential set packetSize_ 210Application/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.5Application/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_ 32Application/Traffic/CBR set rate_ 448Kb ;# corresponds to interval of 3.75msApplication/Traffic/CBR set packetSize_ 210Application/Traffic/CBR set random_ 0Application/Traffic/CBR set maxpkts_ 268435456; # 0x10000000Application/Telnet set interval_ 1.0# Default config based on data for slammer wormApplication/Worm set ScanRate 4000Application/Worm set ScanPort 1434Application/Worm set ScanPacketSize 404Application/Worm/An set TimeStep 1Application/SctpApp1 set interval_ 1.0Application/SctpApp1 set numStreams_ 1Application/SctpApp1 set numUnreliable_ 0Application/SctpApp1 set reliability_ 0RandomVariable/Uniform set min_ 0.0RandomVariable/Uniform set max_ 1.0RandomVariable/Exponential set avg_ 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.0RandomVariable/Normal set std_ 1.0RandomVariable/LogNormal set avg_ 1.0RandomVariable/LogNormal set std_ 1.0ADC/MS set debug_ falseADC/HB set debug_ falseADC/Param set debug_ falseADC/ACTP set debug_ falseADC/ACTO set debug_ falseEst/Null set debug_ falseEst/TimeWindow set debug_ falseEst/ExpAvg set debug_ falseEst/PointSample set debug_ falseMeasureMod 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 254Node/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 usedNode/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_ 1AddrParams set def_clusters 4AddrParams set def_nodes 5#### Default and Maximum Address space - leaving the MSB as signed bitAllocAddrBits set DEFADDRSIZE_ 32AllocAddrBits set MAXADDRSIZE_ 32 ;# leaving the signed bitSimulator 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? (to turn 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 or OFF# by Simulator::create-wireless-node{}. Simulator set IMEPFlag_ ""Simulator set WirelessNewTrace_ 0Simulator 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_ OFF# use tagged traces or positional traces?Simulator set TaggedTrace_ OFFSessionHelper set rc_ 0 ;# just to eliminate warningsSessionHelper set debug_ falseNetworkInterface 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 tbfTBF 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_ falseARPTable set avoidReordering_ false ; #not usedGod set debug_ falseMac/Tdma set slot_packet_len_ 1500Mac/Tdma set max_node_num_ 64LL 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# # 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 above itAntenna/OmniAntenna set X_ 0Antenna/OmniAntenna set Y_ 0Antenna/OmniAntenna set Z_ 1.5 Antenna/OmniAntenna set Gt_ 1.0Antenna/OmniAntenna set Gr_ 1.0# 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/WirelessPhy set debug_ falsePhy/WiredPhy set bandwidth_ 10e6Phy/WiredPhy set debug_ falsePhy/Repeater set debug_ falseLanRouter set debug_ falsePhy/Sat set debug_ falseMac/Sat set debug_ falseLL/Sat set debug_ false# Shadowing propagation modelPropagation/Shadowing set pathlossExp_ 2.0Propagation/Shadowing set std_db_ 4.0Propagation/Shadowing set dist0_ 1.0Propagation/Shadowing set seed_ 0# 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 goneAgent/Ping set packetSize_ 64Agent/UDP set packetSize_ 1000Agent/UDP instproc done {} { }Agent/UDP instproc process_data {from data} { }Agent/SCTP set debugMask_ 0 ;# all debugging off by defaultAgent/SCTP set debugFileIndex_ -1 ;# default outputs to stderrAgent/SCTP set associationMaxRetrans_ 10;# 10 attemptsAgent/SCTP set pathMaxRetrans_ 5 ;# 5 attempts (per destination)Agent/SCTP set maxInitRetransmits_ 8 ;# 8 attemptsAgent/SCTP set oneHeartbeatTimer_ 1 ;# single heartbeat timer for all destsAgent/SCTP set heartbeatInterval_ 30 ;# 30 secsAgent/SCTP set mtu_ 1500 ;# MTU of ethernet (most common)Agent/SCTP set initialRwnd_ 65536 ;# default inital receiver windowAgent/SCTP set initialSsthresh_ 65536 ;# default inital ssthresh valueAgent/SCTP set initialCwnd_ 2 ;# default cwnd = 2 * MTUAgent/SCTP set numOutStreams_ 1 ;# single stream defaultAgent/SCTP set numUnrelStreams_ 0 ;# by default all streams are reliableAgent/SCTP set reliability_ 0 ;# by default unrel streams have 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 byte boundariesAgent/SCTP set useDelayedSacks_ 1 ;# rfc2960 says SHOULD use delayed sacksAgent/SCTP set useMaxBurst_ 1 ;# sctp implementors guide adds this varAgent/SCTP set rtxToAlt_ 1 ;# by default rtxs go to alternate destAgent/SCTP set trace_all_ 0 ;# trace all vars ?## These variables are set because they have to be bound to be traceable.## This default does not matter to us at all.Agent/SCTP set cwnd_ 0 ; Agent/SCTP set rto_ 0 ;Agent/SCTP set errorCount_ 0 ;Agent/TCP set seqno_ 0Agent/TCP set t_seqno_ 0Agent/TCP set maxburst_ 0Agent/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_ 100 ; # Added 2002/10/18. # Set to 100000 for this to have # no effect even for large windows.Agent/TCP set exitFastRetrans_ true ; # Added 2003/7/28. # For clean exits of Fast Retransmit. # False for old buggy behavior.Agent/TCP set window_ 20# Agent/TCP set windowInit_ 1Agent/TCP set windowInit_ 2 ; # default changed on 2001/5/26.Agent/TCP set windowInitOption_ 1# Agent/TCP set syn_ falseAgent/TCP set syn_ true ; # default changed on 2001/5/17.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_ 0Agent/TCP set ecn_ 0Agent/TCP set old_ecn_ 0Agent/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 on 2003/08/13 # To allow some multiple Fast RetransmitsAgent/TCP set bugFix_ts_ false ; # Variable added on 2003/08/13 # To allow some 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. # Set to true to un-back-off RTO # after any valid RTT measurement.Agent/TCP set slow_start_restart_ trueAgent/TCP set restart_bugfix_ true# Agent/TCP set tcpTick_ 0.1Agent/TCP set tcpTick_ 0.01 ; # default changed on 2002/03/07 # to reflect a changing reality.Agent/TCP set maxrto_ 100000#Agent/TCP set minrto_ 0 ; # Variable added on 2001/05/10#Agent/TCP set minrto_ 1 ; # Default set to 1 on 2001/05/14.Agent/TCP set minrto_ 0.2 ; # Default changed to 200ms on # 2004/10/14, to match values # used by many implementations. # Default set to 1 on 2001/05/14. # Set to "0" to give old behavior.Agent/TCP set srtt_init_ 0Agent/TCP set rttvar_init_ 12Agent/TCP set rtxcur_init_ 6.0Agent/TCP set T_SRTT_BITS 3Agent/TCP set T_RTTVAR_BITS 2Agent/TCP set rttvar_exp_ 2Agent/TCP set timerfix_ true ; # Variable added on 2001/05/11 # Set to "false" to give the old # behavior. # Agent/TCP set rfc2988_ false ; # Variable added on 2002/03/07.Agent/TCP set rfc2988_ true ; # Default set to "true" on 2002/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_ 0Agent/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_ 0# Agent/TCP set singledup_ 0Agent/TCP set singledup_ 1 ; # default changed on 2001/11/28.Agent/TCP set LimTransmitFix_ false ; # added on 2003/03/31.#Agent/TCP set LimTransmitFix_ true Agent/TCP set precisionReduce_ falseAgent/TCP set oldCode_ falseAgent/TCP set useHeaders_ true ; # default changed on 2001/11/28. # These are all variables for experimental high-speed TCP.# Agent/TCP set low_window_ 31Agent/TCP set low_window_ 38# low_window_ was changed on 2002/8/12 from 31 to 38, for low_p_ of 0.001.# This should be an undetectable change in performance.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, by Pasi.Agent/TCP set qs_request_mode_ 1Agent/TCP set qs_rtt_ 50Agent/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_ 0 Agent/TCP set trace_all_oneline_ false
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -