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

📄 ns-default.tcl

📁 在Linux下做的QuadTree的程序
💻 TCL
字号:
## 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 above copyright#    notice, this list of conditions and the following disclaimer in the#    documentation and/or other materials provided with the distribution.# 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 may be#    used to endorse or promote products derived from this software without#    specific prior written permission.# # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF# SUCH DAMAGE.## @(#) $Header: /home/am6/jinyang/cvs/our-ns/tcl/lib/ns-default.tcl,v 1.1.1.1 2000/08/28 18:40:39 jinyang Exp $### 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)#Trace set src_ -1Trace set dst_ -1Trace set callback_ 0Trace set show_tcphdr_ 0Agent set fid_ 0Agent set prio_ 0Agent set addr_ 0Agent set dst_ 0Agent set flags_ 0Agent set ttl_ 32 ; # arbitrary choice here##Agent set seqno_ 0 now is gone##Agent set class_ 0 now is goneAgent/TCP set seqno_ 0Agent/TCP set t_seqno_ 0Agent/TCP set maxburst_ 0Agent/TCP set maxcwnd_ 0Agent/TCP set window_ 20Agent/TCP set windowInit_ 1Agent/TCP set windowOption_ 1Agent/TCP set windowConstant_ 4Agent/TCP set windowThresh_ 0.002Agent/TCP set overhead_ 0Agent/TCP set ecn_ 0Agent/TCP set packetSize_ 1000Agent/TCP set bugFix_ trueAgent/TCP set timestamps_ falseAgent/TCP set slow_start_restart_ trueAgent/TCP set restart_bugfix_ trueAgent/TCP set tcpTick_ 0.1Agent/TCP set maxrto_ 100000Agent/TCP set srtt_init_ 0Agent/TCP set rttvar_init_ 12Agent/TCP set rtxcur_init_ 6.0Agent/TCP instproc done {} { }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_ 0Agent/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 trace_all_oneline_ falseAgent/TCP/Fack set ss-div4_ falseAgent/TCP/Fack set rampdown_ false# setting this 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_ 0Agent/TCP/Vegas set v_alpha_ 1Agent/TCP/Vegas set v_beta_ 3Agent/TCP/Vegas set v_gamma_ 1Agent/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/Reno/RBP set rbp_scale_ 0.75# Reno/RBP supports only RBP_CWND_ALGORITHM # Agent/TCP/Reno/RBP set rbp_rate_algorithm_ 2Agent/TCP/Asym set g_ 0.125Agent/TCP/Asym set damp_ 0if [TclObject is-class Agent/TCP/FullTcp] {	Agent/TCP/FullTcp set segsperack_ 1	Agent/TCP/FullTcp set segsize_ 536	Agent/TCP/FullTcp set tcprexmtthresh_ 3	Agent/TCP/FullTcp set iss_ 0	Agent/TCP/FullTcp set nodelay_ false	Agent/TCP/FullTcp set data_on_syn_ false	Agent/TCP/FullTcp set dupseg_fix_ true 	Agent/TCP/FullTcp set dupack_reset_ false	Agent/TCP/FullTcp set interval_ 0.1 ; # 100ms 	Agent/TCP/FullTcp set close_on_empty_ false	Agent/TCP/FullTcp set delay_growth_ false}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_ trueQueue/SFQ set maxqueue_ 40Queue/SFQ set buckets_ 16Queue/FQ set secsPerByte_ 0Queue set interleave_ falseQueue set acksfirst_ falseQueue set ackfromfront_ falseQueue/DropTail set drop-front_ falseQueue/RED set bytes_ falseQueue/RED set queue-in-bytes_ falseQueue/RED set thresh_ 5Queue/RED set maxthresh_ 15Queue/RED set mean_pktsize_ 500Queue/RED set q_weight_ 0.002Queue/RED set wait_ trueQueue/RED set linterm_ 10Queue/RED set setbit_ falseQueue/RED set drop-tail_ trueQueue/RED set drop-front_ falseQueue/RED set drop-rand_ falseQueue/RED set doubleq_ falseQueue/RED set dqthresh_ 50Queue/RED set ave_ 0.0Queue/RED set prob1_ 0.0Queue/RED set curq_ 0Queue/DRR set buckets_ 10Queue/DRR set blimit_ 25000Queue/DRR set quantum_ 250Queue/DRR set mask_ 0Queue/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_ trueCBQClass set automaxidle_gain_ 0.9375PacketQueue/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_ false#XXX other kinds of sinks -> should reparentAgent/TCPSink set packetSize_ 40Agent/TCPSink set maxSackBlocks_ 3Agent/TCPSink/DelAck set interval_ 100mscatch {    Agent/TCPSink/Asym set interval_ 100ms    Agent/TCPSink/Asym set maxdelack_ 5}Agent/TCPSink/Sack1/DelAck set interval_ 100msAgent/CBR set interval_ 3.75msAgent/CBR set random_ 0Agent/CBR set packetSize_ 210Agent/CBR set maxpkts_ 0x10000000Agent/CBR/RTP set seqno_ 0Agent/RTCP set seqno_ 0Agent/Message set packetSize_ 180DelayLink set bandwidth_ 1.5MbDelayLink set delay_ 100msDynamicLink set status_ 1Classifier set offset_ 0Classifier set shift_ 0Classifier set mask_ 0xffffffffClassifier/Addr set shift_ 12Classifier/Addr set mask_ 0xffffffffClassifier/Flow set shift_ 0Classifier/Flow set mask_ 0xffffffffClassifier/Hash set shift_ 0Classifier/Hash set mask_ 0xffffffffClassifier/Hash set default_ -1Agent/LossMonitor set nlost_ 0Agent/LossMonitor set npkts_ 0Agent/LossMonitor set bytes_ 0Agent/LossMonitor set lastPktTime_ 0Agent/LossMonitor set expected_ 0QueueMonitor set size_ 0QueueMonitor set pkts_ 0QueueMonitor set parrivals_ 0QueueMonitor set barrivals_ 0QueueMonitor set pdepartures_ 0QueueMonitor set bdepartures_ 0QueueMonitor set pdrops_ 0QueueMonitor set bdrops_ 0QueueMonitor/ED set epdrops_ 0QueueMonitor/ED set ebdrops_ 0QueueMonitor/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/Flow set src_ -1QueueMonitor/ED/Flow set dst_ -1QueueMonitor/ED/Flow set flowid_ -1Agent set class_ 0Traffic/Expoo set burst-time .5Traffic/Expoo set idle-time .5Traffic/Expoo set rate 64KbTraffic/Expoo set packet-size 210Traffic/Pareto set burst-time 500msTraffic/Pareto set idle-time 500msTraffic/Pareto set rate 64KbTraffic/Pareto set packet-size 210Traffic/Pareto set shape 1.5Agent/Mcast/Prune set packetSize_ 80RandomVariable/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/Constant set val_ 1.0RandomVariable/HyperExponential set avg_ 1.0RandomVariable/HyperExponential set cov_ 4.0ErrorModel set rate_ 0.0SelectErrorModel set rate_ 0.0                  ;# just to eliminate warningsSRMErrorModel set rate_ 0.0                  ;# just to eliminate warningsSource/Telnet set interval_ 1.0networkinterface set intf_label_ -1## The following are defautls for objects that are not necessarily TclObjects#Simulator set NumberInterfaces_ 0		;# to get intfs for mcastNode set multiPath_ 0Simulator set EnableMcast_ 0                    ;# to enable mcast# Defaults for multicast addressesSimulator set McastShift_ 15Simulator set McastAddr_ 0x8000# Dynamic routing defaultsrtObject set maxpref_   255Agent/rtProto set preference_ 200		;# global default preferenceAgent/rtProto/Direct set preference_ 100Agent/rtProto/DV set preference_	120Agent/rtProto/DV set INFINITY		 32Agent/rtProto/DV set advertInterval	  2rtModel 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## SRM Agent defaults are in ../tcl/mcast/srm.tcl and ../mcast/srm-adaptive.tcl#

⌨️ 快捷键说明

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