⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ns-default.tcl.svn-base

📁 diff serve for ns-2, work for version 2.29
💻 SVN-BASE
📖 第 1 页 / 共 4 页
字号:
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.0Phy 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/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# 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 changePrimaryThresh_ -1  ;# infinite (ie, never change primaryAgent/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 initialRto_ 3.0          ;# default initial RTO = 3 secs       Agent/SCTP set minRto_ 1.0              ;# default min RTO = 1 sec            Agent/SCTP set maxRto_ 60.0             ;# default max RTO = 60 secs          Agent/SCTP set fastRtxTrigger_ 4        ;# 4 missing reports trigger fast rtxAgent/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 sackDelay_ 0.200         ;# rfc2960 recommends 200 msAgent/SCTP set useMaxBurst_ 1           ;# sctp implementors guide adds this varAgent/SCTP set rtxToAlt_ 1              ;# by default rtxs go to alternate destAgent/SCTP set dormantAction_ 0		;# 0 = change dest, 1 = use primary, 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 cache lifetime ## by default is just slightly larger than the default min RTO to avoid a "cache                                                                             ## miss" after a single timeout event.Agent/SCTP set routeCalcDelay_ 0        ;# time to calculate a route          Agent/SCTP set routeCacheLifetime_ 1.2  ;# how long a route remains cached  Agent/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/SCTP set frCount_ 0              ;                                      Agent/SCTP set timeoutCount_ 0         ;                                      Agent/SCTP set rcdCount_ 0             ;# total count of route calc delays    Agent/SCTP/MultipleFastRtx set mfrCount_ 0                                    Agent/SCTP/MfrTimestamp set mfrCount_ 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 ncwndcuts1_ 0Agent/TCP set trace_all_oneline_ falseAgent/TCP set QOption_ 0 Agent/TCP set EnblRTTCtr_ 0Agent/TCP set control_increase_ 0Agent/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_ falseAgent/TCP/Fack set ss-div4_ falseAgent/TCP/Fack set rampdown_ falseAgent/TCP/Reno/XCP set timestamps_ trueAgent/TCP/Reno/XCP set xcp_sparse_ falseAgent/TCP/Reno/XCP set tcpTick_	0.01Agent/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_      0Agent/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 for F-RTOAgent/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/XCPSink set packetSize_ 40Agent/XCPSink set ts_echo_bugfix_ trueAgent/XCPSink set bytes_ 0Agent/XCPSink set RFC2581_immediate_ack_ trueAgent/XCPSink set ts_echo_rfc1323_ falseAgent/TCPSink/DelAck set interval_ 100mscatch {	Agent/TCPSink/Asym set interval_ 100ms	Agent/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 to expire 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 changed to 1						    # on 5/5/03, to reflect						    # RFC 2582.Agent/TCP/Newreno set exit_recovery_fix_ 0Agent/TCP/Vegas set v_alpha_ 1Agent/TCP/Vegas set v_beta_ 3Agent/TCP/Vegas set v_gamma_ 1Agent/TCP/Vegas set v_rtt_ 0Agent/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_ 0Agent/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_ 2Agent/TCP/Asym set g_ 0.125Agent/TCP/Reno/Asym set g_ 0.125Agent/TCP/Newreno/Asym set g_ 0.125# RFC793eduTcp -- 19990820, fcela@acm.orgAgent/TCP/RFC793edu set add793expbackoff_  true Agent/TCP/RFC793edu set add793jacobsonrtt_ falseAgent/TCP/RFC793edu set add793fastrtx_     falseAgent/TCP/RFC793edu set add793slowstart_   falseAgent/TCP/RFC793edu set add793additiveinc_ falseAgent/TCP/RFC793edu set add793karnrtt_     true Agent/TCP/RFC793edu set rto_               60Agent/TCP/RFC793edu set syn_               trueAgent/TCP/RFC793edu set add793exponinc_    falseAgent/TCP/FullTcp instproc done_data {} { }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -