?? ns-default.tcl
字號:
# -*- Mode:tcl; tcl-indent-level:8; tab-width:8; indent-tabs-mode:t -*-# Modified and extended by Sandeep Kumar, Kopparapu Suman and Richa# Jain, Indian Institute of Technology, Bombay.# June, 2001. # Copyright (c) 2001 Indian Insitute of Technology, Bombay. # 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 and binary code must contain # the above copyright notice, this list of conditions and the following # disclaimer. # # 2. All advertising materials mentioning features or use of this software # must display the following acknowledgement: # This product includes software developed at Indian Insitute of # Technology, Bombay. # # 3. The name of the Institute may not be used to endorse or promote # products derived from this software without specific prior written # permission. # INDIAN INSTITUTE OF TECHNOLOGY, BOMBAY, MAKES NO REPRESENTATIONS # CONCERNING EITHER THE MERCHANTABILITY OF THIS SOFTWARE OR THE # SUITABILITY OF THIS SOFTWARE FOR ANY PARTICULAR PURPOSE. The software # is provided "as is" without express or implied warranty of any kind.# Time-stamp: <2000-09-13 13:48:04 haoboy>## 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: /nfs/jade/vint/CVSROOT/ns-2/tcl/lib/ns-default.tcl,v 1.223 2000/10/11 19:19:34 kclan 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)########################################################## Increased Floating Point Precisionset tcl_precision 17Connector set debug_ falseTTLChecker set debug_ falseTrace set src_ -1Trace set dst_ -1Trace set callback_ 0Trace set show_tcphdr_ 0Trace set debug_ falseCMUTrace set debug_ falseScheduler/RealTime set maxslop_ 0.010; # max allowed slop b4 error (sec)## Queues and associated#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 set interleave_ falseQueue set acksfirst_ falseQueue set ackfromfront_ falseQueue set debug_ falseQueue/SFQ set maxqueue_ 40Queue/SFQ set buckets_ 16Queue/FQ set secsPerByte_ 0# change DropTail to RED for RED on individual queuesFQLink set queueManagement_ DropTailQueue/DropTail set drop_front_ falseQueue/DropTail/PriQueue set Prefer_Routing_Protocols 1Queue/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 gentle_ falseQueue/RED set drop_tail_ trueQueue/RED set drop_front_ falseQueue/RED set drop_rand_ falseQueue/RED set doubleq_ falseQueue/RED set ns1_compat_ falseQueue/RED set dqthresh_ 50Queue/RED set ave_ 0.0Queue/RED set prob1_ 0.0Queue/RED set curq_ 0Queue/RED/RIO set bytes_ falseQueue/RED/RIO set queue_in_bytes_ falseQueue/RED/RIO set thresh_ 5Queue/RED/RIO set maxthresh_ 15Queue/RED/RIO set in_thresh_ 15Queue/RED/RIO set in_maxthresh_ 30Queue/RED/RIO set out_thresh_ 5Queue/RED/RIO set out_maxthresh_ 15Queue/RED/RIO set mean_pktsize_ 500Queue/RED/RIO set q_weight_ 0.002Queue/RED/RIO set wait_ trueQueue/RED/RIO set linterm_ 10Queue/RED/RIO set in_linterm_ 50Queue/RED/RIO set out_linterm_ 5Queue/RED/RIO set setbit_ falseQueue/RED/RIO set gentle_ falseQueue/RED/RIO set in_gentle_ falseQueue/RED/RIO set out_gentle_ falseQueue/RED/RIO set drop_tail_ trueQueue/RED/RIO set drop_front_ falseQueue/RED/RIO set drop_rand_ falseQueue/RED/RIO set doubleq_ falseQueue/RED/RIO set ns1_compat_ falseQueue/RED/RIO set dqthresh_ 50Queue/RED/RIO set ave_ 0.0Queue/RED/RIO set in_ave_ 0.0Queue/RED/RIO set out_ave_ 0.0Queue/RED/RIO set prob1_ 0.0Queue/RED/RIO set in_prob1_ 0.0Queue/RED/RIO set out_prob1_ 0.0Queue/RED/RIO set curq_ 0Queue/RED/RIO set priority_method_ 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.9375CBQClass set debug_ falseSnoopQueue/In set debug_ falseSnoopQueue/Out set debug_ falseSnoopQueue/Drop set debug_ falseSnoopQueue/EDrop set debug_ falseSnoopQueue/Tagger set debug_ falsePacketQueue/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_ falsePacketQueue/Semantic set random_ecn_ falseQueueMonitor 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_ -1QueueMonitor/ED/Flow/TB set target_rate_ 128000 QueueMonitor/ED/Flow/TB set bucket_depth_ 10000QueueMonitor/ED/Flow/TB set tbucket_ 10000QueueMonitor/ED/Flow/TSW set target_rate_ 0QueueMonitor/ED/Flow/TSW set win_len_ 10QueueMonitor/ED/Flow/TSW set wait_ trueDelayLink set bandwidth_ 1.5MbDelayLink set delay_ 100msDelayLink set debug_ falseDynamicLink set status_ 1DynamicLink set debug_ falseFilter set debug_ falseFilter/Field set offset_ 0Filter/Field set match_ -1# these are assigned when createdClassifier set offset_ 0Classifier set shift_ 0Classifier set mask_ 0xffffffffClassifier set debug_ falseClassifier/Hash set default_ -1; # noneClassifier/Replicator set ignore_ 0# MPLS ClassifierClassifier/Addr/MPLS set ttl_ 32Classifier/Addr/MPLS set trace_mpls_ 0Classifier/Addr/MPLS set label_ -1Classifier/Addr/MPLS set enable_reroute_ 0Classifier/Addr/MPLS set reroute_option_ 0Classifier/Addr/MPLS set control_driven_ 0Classifier/Addr/MPLS set data_driven_ 0## Error models#ErrorModule set debug_ falseErrorModel set enable_ 1ErrorModel set markecn_ falseErrorModel set rate_ 0ErrorModel set bandwidth_ 2MbErrorModel set debug_ falseErrorModel/Trace set good_ 123456789ErrorModel/Trace set loss_ 0ErrorModel/Periodic set period_ 1.0ErrorModel/Periodic set offset_ 0.0ErrorModel/Periodic set burstlen_ 0.0ErrorModel/MultiState set curperiod_ 0.0ErrorModel/MultiState set sttype_ pktErrorModel/MultiState set texpired_ 0SelectErrorModel set enable_ 1SelectErrorModel set markecn_ falseSelectErrorModel set rate_ 0SelectErrorModel set bandwidth_ 2MbSelectErrorModel set pkt_type_ 2SelectErrorModel set drop_cycle_ 10SelectErrorModel set drop_offset_ 1SelectErrorModel set debug_ falseSRMErrorModel set enable_ 1SRMErrorModel set markecn_ falseSRMErrorModel set rate_ 0SRMErrorModel set bandwidth_ 2MbSRMErrorModel set pkt_type_ 2SRMErrorModel set drop_cycle_ 10SRMErrorModel set drop_offset_ 1SRMErrorModel set debug_ false#MrouteErrorModel set enable_ 1#MrouteErrorModel set rate_ 0#MrouteErrorModel set bandwidth_ 2Mb#MrouteErrorModel set pkt_type_ 2#MrouteErrorModel set drop_cycle_ 10#MrouteErrorModel set drop_offset_ 1#MrouteErrorModel set good_ 99999999#MrouteErrorModel set loss_ 0rtModel 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## Application#Application/Traffic/CBR_PP set rate_ 448Kb ;# corresponds to interval of 3.75msApplication/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.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_ 255Node/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 mobileIPSimulator set routingAgent_ ""Simulator set addressType_ ""Simulator set MovementTrace_ 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
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -