亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? ns-trafficgen.tcl

?? 這個軟件的功能是實現(xiàn)多播協(xié)議
?? TCL
?? 第 1 頁 / 共 2 頁
字號:
## Copyright (c) 1996 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.##Maintainer: Padma Haldar (haldar@isi.edu)# This class shall hold different traffic modelsClass TrafficGen/ManyTCPTrafficGen/ManyTCP instproc set_raw_opt {} {    $self instvar raw_opt_info_    set raw_opt_info_ {	# how long to run the sim?	duration 30		# initilization: just start n clients at time 0	# NEEDSWORK:  a more realistic ramp-up model	# or some kind of autodetection on when we've reached	# steady state would be nice.	initial-client-count 10	#	# BASIC TOPOLOGY:	# TOPO1 :	# (The basic n clients on the left and right going through a	# bottleneck.)	#	# cl_1                                                   cr_1	# ...     ---- bottleneck_left ---- bottleneck_right --- ...	# cl_n                                                   cr_n	#	# node-number 0 specifies a new pair of nodes	# on the left and right for each new client	node-number 0	# NEEDSWORK:	# The number of agents attached to a node cannot exceed	# the port-field length (255 bits).  There is currently	# no check or warning message for this.	#	# Currently all data traffic flows left-to-right.	# NEEDSWORK: relax this assumption (but Poduri and Nichols	# I-D suggests that relaxing it won't change things much).	#	client-nodes-l -1	client-nodes-r -1	#NEEDSWORK :	# TOPO2: connect client nodes from a set A to set B	# TOPO3: N% nodes from stubs or total nodes in topology.--this	# has been implemented already in the topology generator and 	# needs to be hooked here.	#	#Bottleneck link	bottle_link_l -1	bottle_link_r -1	#	#	# CLIENT TRAFFIC MODEL:	#	# arrival rate per second (arrival is poisson)	client-arrival-rate 1	# Currently clients are either mice or elephants.	# NEEDSWORK:  should better model http-like traffic patterns.	# In particular, netscape's 4-connection model makes	# a *big* difference in traffic patterns	# and is not currently modeled at all.	client-mouse-chance 90	client-mouse-packets 10	client-elephant-packets 100	# For traffic in the reverse direction.	client-reverse-chance 0	# Pkt size in bytes.	# NEEDSWORK:  should check that everything is uniformly	# specified (router queues are in packets of 1000B length?).	client-pkt-size 576	#	# CLIENT NETWORK CONNECTION:	#	client-bw 56kb	# client-server rtt is uniform over this range (currently)	# NEEDSWORK:  does this need to be modeled more accurately?	client-delay random	client-delay-range 100ms	client-queue-method DropTail	# Insure that client routers are never a bottleneck.	client-queue-length 100	#	# CLIENT/SERVER TCP IMPLEMENTATION:	#	# NEEDSWORK: should add HTTP model over TCP.	source-tcp-method TCP/Reno	sink-ack-method TCPSink/DelAck	# Set init-win to 1 for initial windows of size 1.	# Set init-win to 10 for initial windows of 10 packets.	# Set init-win to 0 for initial windows per internet-draft.	init-win 1	#	# BOTTLENECK LINK MODEL:	#	bottle-bw 10Mb	bottle-delay 4ms	bottle-queue-method RED	# bottle-queue-length is either in packets or	# is "bw-delay-product" which does the currently	# expected thing.	bottle-queue-length bw-delay-product	#	# OUTPUT OPTIONS:	#	graph-results 0	# Set graph-scale to 2 for "rows" for each flow.	graph-scale 1	graph-join-queueing 1	gen-map 0	mem-trace 0	print-drop-rate 0	title none	# set test-suite to write the graph to opts_(test-suite-file)	test-suite 0	test-suite-file temp.rands		   	# Random number seed; default is 0, so ns will give a 	# diff. one on each invocation.	ns-random-seed 0		# Animation options; complete traces are useful	# for nam only, so do those only when a tracefile	# is being used for nam	# Set trace-filename to "none" for no tracefile.	trace-filename out	trace-all 0	namtrace-some 0	namtrace-all 0		# Switch to generate the nam tcl file from here	# itself	nam-generate-cmdfile 0    }}TrafficGen/ManyTCP instproc default_options {} {    $self instvar opts_ opt_wants_arg_ raw_opt_info_    set cooked_opt_info $raw_opt_info_    while {$cooked_opt_info != ""} {	if {![regexp "^\[^\n\]*\n" $cooked_opt_info line]} {	    break	}	regsub "^\[^\n\]*\n" $cooked_opt_info {} cooked_opt_info	set line [string trim $line]	if {[regexp "^\[ \t\]*#" $line]} {	    continue	}	if {$line == ""} {	    continue	} elseif [regexp {^([^ ]+)[ ]+([^ ]+)$} $line dummy key value] {	    set opts_($key) $value	    set opt_wants_arg_($key) 1	} else {	    set opt_wants_arg_($key) 0	    # die "unknown stuff in raw_opt_info_\n"	}    }}TrafficGen/ManyTCP instproc process_args {av} {    $self instvar opts_ opt_wants_arg_    $self default_options    for {set i 0} {$i < [llength $av]} {incr i} {	set key [lindex $av $i]	if {$key == "-?" || $key == "--help" || $key == "-help" || $key == "-h"} {	    usage	}	regsub {^-} $key {} key	if {![info exists opt_wants_arg_($key)]} {	    puts stderr "unknown option $key";	    usage	}		if {$opt_wants_arg_($key)} {	    incr i	    set opts_($key) [lindex $av $i]	} else {	    set opts_($key) [expr !opts_($key)]	}    }}TrafficGen/ManyTCP instproc get_list {list name} {    $self instvar opts_    for {set i 0} {$i < [llength $list]} {incr i} {	set $opts_($name:$i) [lindex $list $i]    }}TrafficGen/ManyTCP instproc readin_client_nodes {} {    $self instvar opts_    if {$opts_(client-nodes-l) != -1} {	set temp [split $opts_(client-nodes-l) ,]	$self get_list $temp client-nodes-l    }    if {$opts_(client-nodes-r) != -1} {	set temp [split $opts_(client-nodes-r) ,]	$self get_list $temp client-nodes-r    }}proc my-duplex-link {ns n1 n2 bw delay queue_method queue_length} {        $ns duplex-link $n1 $n2 $bw $delay $queue_method    $ns queue-limit $n1 $n2 $queue_length    $ns queue-limit $n2 $n1 $queue_length}TrafficGen/ManyTCP instproc init_network {} {    $self instvar opts_ fmon_ bottle_l_ bottle_r_ cs_l_ cs_r_ ns_ \	    cs_count_ ns_ clients_started_ clients_finished_        #    # Figure supported load.    #    set expected_load_per_client_in_bps [expr ($opts_(client-mouse-chance)/100.0)*$opts_(client-mouse-packets)*$opts_(client-pkt-size)*8 + (1.0-$opts_(client-mouse-chance)/100.0)*$opts_(client-elephant-packets)*$opts_(client-pkt-size)*8]    if {$opts_(debug)} {	set max_clients_per_second [expr [bw_parse $opts_(bottle-bw)]/$expected_load_per_client_in_bps]	puts [format "maximum clients per second: %.3f" $max_clients_per_second]    }        # Compute optimal (?) bottleneck queue size    # as the bw-delay product.    if {$opts_(bottle-queue-length) == "bw-delay-product"} {	set opts_(bottle-queue-length) [expr ([bw_parse $opts_(bottle-bw)] * ([time_parse $opts_(bottle-delay)] + [time_parse $opts_(client-delay-range)]) + $opts_(client-pkt-size)*8 - 1)/ ($opts_(client-pkt-size) * 8)]	puts "optimal bw queue size: $opts_(bottle-queue-length)"    }        # Do our own routing with expanded addresses (21 bits nodes).    # (Basic routing limits us to 128 nodes == 64 clients).    # $ns_ rtproto Manual    # $ns_ set-address-format expanded    # set up the bottleneck    if {$opts_(bottle_link_l) != -1 || $opts_(bottle_link_r) != -1} {	set bottle_l_ $opts_(bottle_link_l)	set bottle_r_ $opts_(bottle_link_r)    } else {	$ns_ rtproto Manual	$ns_ set-address-format expanded	set bottle_l_ [$ns_ node]	set bottle_r_ [$ns_ node]    }    my-duplex-link $ns_ $bottle_l_ $bottle_r_ $opts_(bottle-bw) $opts_(bottle-delay) $opts_(bottle-queue-method) $opts_(bottle-queue-length)    if {$opts_(print-drop-rate)} {	set slink [$ns_ link $bottle_l_ $bottle_r_]	set fmon_ [$ns_ makeflowmon Fid]	$ns_ attach-fmon $slink $fmon_    }	    # Bottlenecks need large routing tables.    # [$bottle_l_ set classifier_] resize 511    # [$bottle_r_ set classifier_] resize 511        # Default routes to the other.    $bottle_l_ add-route-to-adj-node -default $bottle_r_    $bottle_r_ add-route-to-adj-node -default $bottle_l_        # Clients are built dynamically.    set cs_count_ 0    set clients_started_ 0    set clients_finished_ 0}TrafficGen/ManyTCP instproc init {args} {    $self instvar opts_ ns_ rng_    set ns_ [Simulator instance]    $self set_raw_opt    $self process_args $args        # Seed random no. generator; ns-random with arg of 0 heuristically    # chooses a random number that changes on each invocation.    $self instvar rng_    set rng_ [new RNG]    $rng_ seed $opts_(ns-random-seed)    $rng_ next-random    $self init_network}# create a new pair of end nodesTrafficGen/ManyTCP instproc create_client_nodes {node} {    $self instvar opts_ bottle_l_ bottle_r_ cs_l_ cs_r_ sources_ \	    cs_count_ ns_ rng_    set now [$ns_ now]    if {![info exists opts_(client-nodes-l:$node)]} {	set cs_l_($node) [$ns_ node]    } else {	set cs_l_($node) $opts(client-nodes-l:$node)

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本系列欧美系列| 欧美日韩亚洲综合一区 | 亚洲视频免费看| 99在线热播精品免费| 亚洲欧美日韩电影| 欧美亚洲一区二区三区四区| 亚洲bt欧美bt精品| 日韩天堂在线观看| 国产揄拍国内精品对白| 欧美激情资源网| 91一区二区三区在线观看| 亚洲一区免费视频| 欧美一区二区三区在线观看视频| 精品一二三四在线| 国产精品看片你懂得| 色94色欧美sute亚洲线路二| 亚洲不卡av一区二区三区| 精品日韩欧美一区二区| 国产91富婆露脸刺激对白| 亚洲视频在线观看三级| 6080日韩午夜伦伦午夜伦| 精品一区二区三区影院在线午夜 | 麻豆精品一区二区三区| 国产亚洲精品超碰| 91猫先生在线| 久久99九九99精品| 中文字幕色av一区二区三区| 4438成人网| 不卡av免费在线观看| 亚洲国产精品久久人人爱| 精品国产乱码久久久久久老虎| 福利91精品一区二区三区| 亚洲福利一区二区| 久久综合av免费| 欧美视频精品在线| 国产传媒一区在线| 天堂资源在线中文精品| 中文文精品字幕一区二区| 欧美精品v国产精品v日韩精品| 国产一本一道久久香蕉| 亚洲成av人片观看| 欧美激情一区二区三区在线| 欧美猛男超大videosgay| 成人丝袜高跟foot| 免费视频一区二区| 亚洲精品福利视频网站| 久久久噜噜噜久噜久久综合| 欧美精品色综合| www.成人在线| 国产精品88av| 美女在线一区二区| 亚洲资源中文字幕| 最新国产の精品合集bt伙计| 欧美mv日韩mv亚洲| 91麻豆精品国产自产在线观看一区 | 中文字幕中文字幕中文字幕亚洲无线| 欧美精品乱码久久久久久按摩| 盗摄精品av一区二区三区| 看电视剧不卡顿的网站| 亚洲电影在线免费观看| 国产精品久久一级| 国产色综合一区| 精品精品国产高清a毛片牛牛 | 国产一区不卡视频| 免费观看日韩av| 视频在线在亚洲| 亚洲一区av在线| 免费观看久久久4p| 日韩精品一区二区三区在线播放 | 欧美一区二区三区免费| 在线精品视频小说1| www.日韩在线| 日韩毛片精品高清免费| 国产欧美一区二区精品性| 欧美v亚洲v综合ⅴ国产v| 91精品国产综合久久福利软件 | 秋霞电影网一区二区| 视频在线在亚洲| 日韩电影在线观看电影| 亚洲福利视频一区| 日韩av中文在线观看| 视频一区国产视频| 日产国产欧美视频一区精品| 日韩主播视频在线| 日韩av不卡在线观看| 三级影片在线观看欧美日韩一区二区| 亚洲国产精品久久久久秋霞影院| 一卡二卡欧美日韩| 亚洲图片欧美综合| 日韩精品一卡二卡三卡四卡无卡| 五月婷婷综合在线| 久久精品国产亚洲5555| 国产精品1024久久| www.亚洲激情.com| 在线观看亚洲精品视频| 欧美日韩成人综合| 精品国产乱码久久久久久牛牛| 国产喂奶挤奶一区二区三区| 国产精品国产三级国产有无不卡| 亚洲视频狠狠干| 亚洲大片免费看| 麻豆精品一二三| 国产福利电影一区二区三区| av高清久久久| 91麻豆精品国产91久久久久久| 日韩免费在线观看| 中文字幕精品一区| 亚洲高清免费一级二级三级| 美女视频网站久久| 99久久99精品久久久久久| 欧美视频自拍偷拍| 精品国产露脸精彩对白| 国产精品免费aⅴ片在线观看| 亚洲伊人色欲综合网| 久久国产剧场电影| 99re热这里只有精品视频| 91精品国产综合久久久久久 | 99视频有精品| 6080yy午夜一二三区久久| 欧美国产亚洲另类动漫| 午夜精品久久久久久久久久| 国产精品一区二区视频| 欧美在线免费播放| 久久久久久黄色| 一区二区欧美视频| 国产一区二区三区久久悠悠色av| 91在线视频网址| 精品久久久久av影院| 亚洲综合在线电影| 国产高清亚洲一区| 7777精品伊人久久久大香线蕉经典版下载| 国产午夜精品一区二区| 三级久久三级久久| av动漫一区二区| 精品捆绑美女sm三区| 亚洲成人一二三| av在线这里只有精品| 欧美不卡视频一区| 亚洲va国产天堂va久久en| 成人高清视频在线| 日韩欧美中文字幕一区| 亚洲已满18点击进入久久| 成人亚洲一区二区一| 精品99999| 日韩精品每日更新| 日本韩国一区二区三区| 中文字幕高清一区| 国产精品综合在线视频| 日韩你懂的电影在线观看| 亚洲成人午夜影院| 色婷婷激情久久| 亚洲欧洲国产日韩| 懂色中文一区二区在线播放| 日韩免费在线观看| 久久99精品国产91久久来源| 欧美日韩一区成人| 一区二区三区四区国产精品| 岛国一区二区三区| 欧美经典三级视频一区二区三区| 久久狠狠亚洲综合| 欧美电影免费观看完整版| 午夜欧美2019年伦理| 在线观看区一区二| 一区二区三区国产精华| 91久久精品网| 亚洲国产综合91精品麻豆| 在线国产亚洲欧美| 亚洲高清中文字幕| 欧美日韩国产综合视频在线观看 | 99精品久久免费看蜜臀剧情介绍| 中文字幕高清不卡| 精彩视频一区二区三区| 久久影院午夜片一区| 久久99久久久欧美国产| 精品国产1区二区| 国产91丝袜在线观看| 欧美视频一区二区三区| 一区二区高清视频在线观看| 欧美日韩国产片| 免费成人结看片| 久久久美女艺术照精彩视频福利播放| 国产乱码字幕精品高清av | 国产亚洲欧美中文| 国产成人午夜精品5599| 中文字幕高清一区| 在线免费一区三区| 日欧美一区二区| 精品国产91洋老外米糕| 国产aⅴ综合色| 亚洲欧美另类小说视频| 欧美日韩一区二区三区视频| 麻豆精品在线播放| 欧美国产日韩一二三区| 91精品福利视频| 奇米888四色在线精品| 久久精品日韩一区二区三区| 91一区二区在线| 欧美a一区二区| 国产精品毛片久久久久久| 日本道精品一区二区三区|