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

📄 ns-default.tcl

📁 对ns2软件进行UMTS扩展
💻 TCL
📖 第 1 页 / 共 3 页
字号:
# FEC models#FECModel set debug_ false## Error models#ErrorModule set debug_ falseErrorModel set enable_ 1ErrorModel set markecn_ falseErrorModel set delay_pkt_ falseErrorModel set delay_ 0ErrorModel 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_ falseSelectErrorModel set delay_pkt_ falseSelectErrorModel set delay_ 0SRMErrorModel 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_ falseSRMErrorModel set delay_pkt_ falseSRMErrorModel set delay_ 0#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_ 255# P.M. & P.B. modificationsNode set update_ 0# setting port for diffusion application agentNode set DIFFUSION_APP_PORT 254Node/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 mobileIP#this was commented out - ratul#Simulator set EnableHierRt_ 0   ;# is hierarchical routing on?  (to turn it on, call set-hieraddress)Simulator 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# Defaults for multicast addressesSimulator set McastBaseAddr_ 0x80000000Simulator set McastAddr_ 0x80000000# Default values used for wireless simulationsSimulator set AgentTrace_ ONSimulator set RouterTrace_ OFFSimulator set MacTrace_   OFF# P.M. & P.B. modificationsSimulator set PhyTrace_   OFF# use tagged traces or positional traces?Simulator set TaggedTrace_ OFF# P.M. & P.B. modificationsSimulator set umts-routing 0SessionHelper set rc_ 0                      ;# just to eliminate warningsSessionHelper set debug_ falseNetworkInterface set debug_ false# SRM Agent defaults are in ../tcl/mcast/srm.tcl and ../mcast/srm-adaptive.tcl# IntServ Object specific defaults are in ../tcl/lib/ns-intserv.tcl# defaults for tbfTBF set rate_ 64kTBF set bucket_ 1024TBF set qlen_ 0## mobile Ip#MIPEncapsulator set addr_ 0MIPEncapsulator set port_ 0MIPEncapsulator set shift_ 0MIPEncapsulator set mask_ [AddrParams set ALL_BITS_SET]MIPEncapsulator set ttl_ 32MIPEncapsulator set debug_ false# GAFGAFPartner set addr_ 0GAFPartner set port_ 254GAFPartner set shift_ 0GAFPartner set mask_ [AddrParams set ALL_BITS_SET]GAFPartner set debug_ false# HTTP-related defaults are in ../tcl/webcache/http-agent.tcl## Wireless simulation support#Mac set debug_ falseARPTable set debug_ falseGod set debug_ falseMac/Tdma set slot_packet_len_	1500Mac/Tdma set max_node_num_	64# P.M. & P.B. modificationsPhy/Umts set verbose_ 0Phy/Umts set error_rate_ 0Phy/Umts set phy_error_ 0Phy/Umts set delay_ 0Phy/Umts set bandwidth_ 0Phy/Umts set debug_ 0Phy/Umts set max_num_ms_ 100Phy/UmtsNodeB set verbose_ 0Phy/UmtsNodeB set error_rate_ 0Phy/UmtsNodeB set phy_error_ 0Phy/UmtsNodeB set delay_ 0Phy/UmtsNodeB set bandwidth_ 0Phy/UmtsNodeB set debug_ 0# P.M. & P.B. modificationsMac/Umts set verbose_ 0Mac/UmtsNodeb set verbose_ 0# P.M. & P.B. modificationsRlc/Umts set rlcverbose_ 0Rlc/Umts set delay_ 0Rlc/Umts set bandwidth_ 0Rlc/Umts set rlcfragsz_  20; # rlc frag sizeRlc/Umts set debug_ 0Rlc/UmtsNodeB set rlcverbose_ 0Rlc/UmtsNodeB set delay_ 0Rlc/UmtsNodeB set rlcfragsz_  20; # rlc frag sizeRlc/UmtsNodeB set bandwidth_ 0Rlc/UmtsNodeB set debug_ 0# P.M. & P.B. modificationsLL/Nodeb set verbose_ 0LL/UE set verbose_ 0LL set mindelay_                50usLL set delay_                   25usLL set bandwidth_               0       ;# not usedLL set debug_ falseSnoop set debug_ false## Support for Abstract LAN#Classifier/Replicator set direction_ falseMac set abstract_ false## Support for MAC Level trace#Mac/802_3 set trace_ false## 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.5Antenna/OmniAntenna set Gt_ 1.0Antenna/OmniAntenna set Gr_ 1.0# 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.0Phy/WirelessPhy set debug_ falsePhy/WiredPhy set bandwidth_ 10e6Phy/WiredPhy set debug_ falsePhy/Repeater set debug_ falseLanRouter set debug_ falsePhy/Sat set debug_ falseMac/Sat set debug_ falseLL/Sat set debug_ false# Shadowing propagation modelPropagation/Shadowing set pathlossExp_ 2.0Propagation/Shadowing set std_db_ 4.0Propagation/Shadowing set dist0_ 1.0Propagation/Shadowing set seed_ 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/TCP set seqno_ 0Agent/TCP set t_seqno_ 0Agent/TCP set maxburst_ 0Agent/TCP set maxcwnd_ 0Agent/TCP set numdupacks_ 3Agent/TCP set numdupacksFrac_ 100 ;	# Added 2002/10/18.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 timestamps_ falseAgent/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

⌨️ 快捷键说明

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