📄 ns-default.tcl
字号:
Agent/TCP set QOption_ 0 Agent/TCP set EnblRTTCtr_ 0Agent/TCP set control_increase_ 0# 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 {} { }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 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/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 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_ 0# 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/papers/draft-amit-quick-start-02.psAgent/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.25Agent/QSAgent set alloc_rate_ 0.6Agent/QSAgent set threshold_ 0.4Agent/QSAgent set max_rate_ 256Agent/QSAgent set mss_ [Agent/TCP set packetSize_]Agent/QSAgent set rate_function_ 2Agent/QSAgent set algorithm_ 2Agent/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_ 1Queue set util_records_ 0# Quick Start definitions end hereDelayer set debug_ false# DSR-UU configuration values. NOTE, these values are overridden with# the values in dsr.h when nodes are created. Do not change these# values. See the DSR-UU README how to set these values at runtime.Agent/DSRUU set PrintDebug_ 0Agent/DSRUU set FlushLinkCache_ 1Agent/DSRUU set PromiscOperation_ 1 Agent/DSRUU set BroadCastJitter_ 20Agent/DSRUU set RouteCacheTimeout_ 300Agent/DSRUU set SendBufferTimeout_ 30Agent/DSRUU set SendBufferSize_ 100Agent/DSRUU set RequestTableSize_ 64Agent/DSRUU set RequestTableIds_ 16Agent/DSRUU set MaxRequestRexmt_ 16Agent/DSRUU set MaxRequestPeriod_ 10Agent/DSRUU set RequestPeriod_ 500Agent/DSRUU set NonpropRequestTimeout_ 30Agent/DSRUU set RexmtBufferSize_ 50Agent/DSRUU set MaintHoldoffTime_ 250Agent/DSRUU set MaxMaintRexmt_ 2 Agent/DSRUU set UseNetworkLayerAck_ 0Agent/DSRUU set TryPassiveAcks_ 1Agent/DSRUU set PassiveAckTimeout_ 100Agent/DSRUU set GratReplyHoldOff_ 1Agent/DSRUU set MAX_SALVAGE_COUNT_ 15
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -