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

📄 ns-default.tcl.svn-base

📁 diff serve for ns-2, work for version 2.29
💻 SVN-BASE
📖 第 1 页 / 共 4 页
字号:
Agent/TFRC set packetSize_ 1000 Agent/TFRC set rate_ 0 Agent/TFRC set df_ 0.95 ;	# decay factor for accurate RTT estimateAgent/TFRC set tcp_tick_ 0.1 ;	Agent/TFRC set ndatapack_ 0 ;	# Number of packets sentAgent/TFRC set ndatabytes_ 0 ;	# Number of bytes sentAgent/TFRC set srtt_init_ 0 ;	# Variables for tracking RTT	Agent/TFRC set rttvar_init_ 12  Agent/TFRC set rtxcur_init_ 6.0	Agent/TFRC set rttvar_exp_ 2	Agent/TFRC set T_SRTT_BITS 3	Agent/TFRC set T_RTTVAR_BITS 2	Agent/TFRC set InitRate_ 300 ;	# Initial send rate	Agent/TFRC set overhead_ 0 ;	# If > 0, dither outgoing packetsAgent/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_ 0 Agent/TFRC set maxHeavyRounds_ 1; # Number of rounds for sending rate allowed				  #  to be greater than twice receiving rate.Agent/TFRC set conservative_ 0 ;  # Set to true for a conservative 				  # response to heavy congestion.Agent/TFRC set scmult_ 1.5 ;	# self clocking parameter for conservative_Agent/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-producing applications                                #   such as FTP.Agent/TFRC set oldCode_ false ; # Set to 1 to use old code for datalimited				#   applications.				# Parameter added on 12/18/02.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 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 ;	# Added on 10/21//2004. 				# Set to 0 for backward compatibility. 				# Set to 1 for slow-start changes to 				#  accomodate higher initial rates.				# Default changed on 10/22/2004.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 voip mode.Agent/TFRC set fsize_ 1460 ;	# Default size for large TCP packets. 				# Used for VoIP mode.Agent/TFRC set headersize_ 32 ; # Size for packet headers.Agent/TFRC set useHeaders_ true ;	# Added on 2005/06/24. Agent/TFRC set true_loss_rate_ 0.0 ; # For statistics only.Agent/TFRCSink set packetSize_ 40Agent/TFRCSink set InitHistorySize_ 100000Agent/TFRCSink set NumFeedback_ 1 Agent/TFRCSink set AdjustHistoryAfterSS_ 1Agent/TFRCSink set NumSamples_ -1Agent/TFRCSink set discount_ 1;	# History DiscountingAgent/TFRCSink set printLoss_ 0Agent/TFRCSink set smooth_ 1 ;	# smoother Average Loss IntervalAgent/TFRCSink set ShortIntervals_ 0 ; #  For calculating loss event rates                         	# for short loss intervals differentlyAgent/TFRCSink set minlc_ 4Agent/TFRCSink set algo_ 1 ;  	# 1: algo from sigcomm paper 2: ewma 				# 3: fixed windowAgent/TFRCSink set maxint_ 1000 ;     # max loss interval history Agent/TFRCSink set history_ 0.75 ;    # loss history for EWMAAgent/TFRCSink set PreciseLoss_ 1 ;   # 1 for more precise loss events				      # Introduced on 12/11/02, default 1.				      # No change in performance.Agent/TFRCSink set numPkts_ 1;	# Num non-sequential packets before 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 frequency	Agent/TCP/FullTcp set spa_thresh_ 0; # below do 1 seg per ack [0:disable]	Agent/TCP/FullTcp set segsize_ 536; # segment size	Agent/TCP/FullTcp set tcprexmtthresh_ 3; # num dupacks to enter recov	Agent/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 peer	Agent/TCP/FullTcp set dupack_reset_ false; # exit recov on ack < highest	Agent/TCP/FullTcp set interval_ 0.1 ; # delayed ACK interval 100ms 	Agent/TCP/FullTcp set close_on_empty_ false; # close conn if sent all	Agent/TCP/FullTcp set signal_on_empty_ false; # signal if sent all	Agent/TCP/FullTcp set ts_option_size_ 10; # in bytes	Agent/TCP/FullTcp set reno_fastrecov_ true; # fast recov true by default	Agent/TCP/FullTcp set pipectrl_ false; # use "pipe" ctrl	Agent/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 prediction code?	Agent/TCP/FullTcp/Newreno set recov_maxburst_ 2; # max burst dur recov	Agent/TCP/FullTcp/Sack set sack_block_size_ 8; # bytes in a SACK block	Agent/TCP/FullTcp/Sack set sack_option_size_ 2; # bytes in opt hdr	Agent/TCP/FullTcp/Sack set max_sack_blocks_ 3; # max # of sack blks	Agent/TCP/FullTcp/Sack set clear_on_timeout_ true; # clear sq at sender on timeout?	Agent/TCP/FullTcp/Sack set sack_rtx_cthresh_ 1; # dup cnt to trigger rtx	Agent/TCP/FullTcp/Sack set sack_rtx_bthresh_ 1; # dup bcnt to trigger rtx	Agent/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_ false		set 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 size	Agent/TCP/BayFullTcp set tcprexmtthresh_ 3; # num dupacks to enter recov	Agent/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 peer	Agent/TCP/BayFullTcp set dupack_reset_ false; # exit recov on ack < highest	Agent/TCP/BayFullTcp set interval_ 0.1 ; # delayed ACK interval 100ms 	Agent/TCP/BayFullTcp set close_on_empty_ false; # close conn if sent all	Agent/TCP/BayFullTcp set ts_option_size_ 10; # in bytes	Agent/TCP/BayFullTcp set reno_fastrecov_ true; # fast recov true by default	Agent/TCP/BayFullTcp set pipectrl_ false; # use "pipe" ctrl	Agent/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 a SACK block	Agent/TCP/BayFullTcp/Sack set sack_option_size_ 2; # bytes in opt hdr	Agent/TCP/BayFullTcp/Sack set max_sack_blocks_ 3; # max # of sack blks}# Default values used by wireless simulationsAgent/Null set sport_           0Agent/Null set dport_           0Agent/CBR set sport_            0Agent/CBR set dport_            0# Http invalidation agentAgent/HttpInval set inval_hdr_size_ 40Agent/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_ 0Agent/Message set packetSize_ 180Agent/MessagePassing set packetSize_ 1500Agent/LossMonitor set nlost_ 0Agent/LossMonitor set npkts_ 0Agent/LossMonitor set bytes_ 0Agent/LossMonitor set lastPktTime_ 0Agent/LossMonitor set expected_ 0Agent/LossMonitor set flowid_ 0Agent/LossMonitor set npktsFlowid_ 0Agent/LossMonitor set sumIpdv_ 0Agent/LossMonitor set sumOwd_ 0Agent/LossMonitor set owd_ 0Agent/LossMonitor set ipdv_ 0Agent/LossMonitor set minOwd_ 100000000# RAPAgent/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.01Agent/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 default preferenceAgent/rtProto/Direct set preference_ 100Agent/rtProto/DV set preference_	120Agent/rtProto/DV set INFINITY		 [Agent set ttl_]Agent/rtProto/DV set advertInterval	  2Agent/Encapsulator set status_ 1Agent/Encapsulator set overhead_ 20Agent/DSRAgent set sport_ 255Agent/DSRAgent set dport_ 255Agent/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 agentAgent/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#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_ 0set lmsPacketSize 1024set lsize [Application/Traffic/CBR set packetSize_]RtModule/LMS set node_	""Agent/LMS set lms_enabled_	1Agent/LMS set packetSize_	$lmsPacketSizeAgent/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_ 0Agent/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/TCP/Newreno/QS set rbp_scale_ 0.75Agent/TCP/Newreno/QS set rbp_segs_actually_paced_ 0Agent/TCP/Newreno/QS set rbp_inter_pace_delay_ 0Agent/TCP/Newreno/QS set rate_request_ 128Agent/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.Agent/TCPSink/QS set sport_        0Agent/TCPSink/QS set dport_        0         Agent/TCPSink/QS set packetSize_ 40Agent/TCPSink/QS set maxSackBlocks_ 3Agent/TCPSink/QS set ts_echo_bugfix_ falseAgent/TCPSink/QS set generateDSacks_ falseAgent/TCPSink/QS set RFC2581_immediate_ack_ trueQueue 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 hereDelayer set debug_ false

⌨️ 快捷键说明

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