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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dynamics.tex

?? 柯老師網站上找到的
?? TEX
?? 第 1 頁 / 共 2 頁
字號:
\chapter{Network Dynamics}\label{chap:net-dynamics}This chapter describes the capabilities in \ns\to make the simulation topologies dynamic.We start with the instance procedures to the class Simulatorthat are \href{useful to a simulation script}{Section}{sec:userAPI}.The next section describes\href{the internal architecture}{Section}{sec:nd-internal-arch},including the different classes and instance variables and procedures;the following section describes\href{the interaction with unicast routing}{Section}{sec:unicast-int}.This aspect of network dynamics is still somewhat experimental in \ns.The last section of this chapter outlines some of\href{the deficiencies in the current realization}{Section}{sec:deficiencies}of network dynamics, some one or whichmay be fixed in the future.The procedures and functions described in this chapter can be found in\nsf{tcl/rtglib/dynamics.tcl} and \nsf{tcl/lib/route-proto.tcl}.\section{The user level API}\label{sec:userAPI}The user level interface to network dynamics is a collection of instance procedures in the class Simulator,and one procedure to trace and log the dynamics activity.Reflecting a rather poor choice of names,these procedures are\code{rtmodel}, \code{rtmodel-delete}, and \code{rtmodel-at}.There is one other procedure, \code{rtmodel-configure},that is used internally by the class Simulator to configurethe rtmodels just prior to simulation start.We describe this method \href{later}{Section}{sec:nd-internal-arch}.\begin{list}{---}{}\item The instance procedure\fcnref{\proc[]{rtmodel}}{../ns-2/dynamics.tcl}{Simulator::rtmodel}defines a model to be applied to the nodes and links in the topology.Some examples of this command as it would be used in a simulation script are:\begin{program}        $ns rtmodel Exponential {0.8 1.0 1.0} $n1        $ns rtmodel Trace dynamics.trc  $n2 $n3        $ns rtmodel Deterministic {20.0 20.0} $node(1) $node(5)\end{program}The procedure requires at least three arguments:\begin{itemize}\item % the model definitionThe first two arguments define the model that will be used, and theparameters to configure the model.The currently implemented models in \ns\ areExponential (On/Off), Deterministic (On/Off), Trace (driven), orManual (one-shot) models.\item % the parametersThe number, format, and interpretation of the configuration parametersis specific to the particular model.\begin{enumerate}\itemsep0pt\item The exponential on/off model takes four parameters:\tup{[start time], up interval, down interval, [finish time]}.\tup{start time} defaults to $0.5s.$ from the start of the simulation,\tup{finish time} defaults to the end of the simulation.\tup{up interval} and \tup{down interval} specifythe mean of the exponential distribution defining the timethat the node or link will be up and down respectively.The default up and down interval values are $10s.$ and $1s.$ respectively.Any of these values can be specified as ``$-$'' to default to theoriginal value.The following are example specifications of parameters to this model:\begin{program}      0.8 1.0 1.0       \; start at \(0.8s.\), up/down = \(1.0s.\), finish is default;      5.0 0.5           \; start is default, up/down = \(5.0s, 0.5s.\), finish is default;      - 0.7             \; start, up interval are default, down = \(0.7s.\), finish is default;      - - - 10          \; start, up, down are default, finish at \(10s.\);\end{program}\item The deterministic on/off modelis similar to the exponential model above, and  takes four parameters:\tup{[start time], up interval, down interval, [finish time]}.\tup{start time} defaults to the start of the simulation,\tup{finish time} defaults to the end of the simulation.Only the interpretation of the up and down interval is different;\tup{up interval} and \tup{down interval} specify the exact durationthat the node or link will be up and down respectively.The default values for these parameters are:\tup{start time} is $0.5s.$ from start of simulation,\tup{up interval} is $2.0s.$,\tup{down interval} is $1.0s.$, and\tup{finish time} is the duration of the simulation.\item The trace driven model takes one parameter:the name of the trace file.The format of the input trace file is identical to that output by the dynamics trace modules, \viz,\code{v \tup{time} link-\tup{operation} \tup{node1} \tup{node2}}.Lines that do not correspond to the node or link specified are ignored.{\small\begin{verbatim}        v 0.8123 link-up 3 5        v 3.5124 link-down 3 5\end{verbatim}}\item The manual one-shot model takes two parameters:the operation to be performed, and the time that it is to beperformed.\end{enumerate}\item % the elementsThe rest of the arguments to the \proc[]{rtmodel} proceduredefine the node or link that the model will be applied to.If only one node is specified,it is assumed that the node will fail.This is modeled by making the links incident on the node fail.If two nodes are specified, then the command assumes thatthe two are adjacent to each other, and the model is applied to thelink incident on the two nodes.If more than two nodes are specified, only the first is considered,the subsequent arguments are ignored.\item % \proc[]{rtmodel} will also enable tracing if the Simulator  instance variable, \code{traceAllFile_} is set.\end{itemize}The command returns the handle to the model that was created in this call.Internally, \proc[]{rtmodel} stores the list of route models createdin the class Simulator instance variable, \code{rtModel_}.\item The instance procedure\fcnref{\proc[]{rtmodel-delete}}{../ns-2/dynamics.tcl}{Simulator::rtmodel-delete}takes the handle of a route model as argument, removes it from the\code{rtModel_} list, and deletes the route model.\item The instance procedure\fcnref{\proc[]{rtmodel-at}}{../ns-2/dynamics.tcl}{Simulator::rtmodel-at}is a special interface to the Manual model of network dynamics.The command takes the time, operation, and node or link as arguments,and applies the operation to the node or link at the specified time.Example uses of this command are:\begin{program}        $ns rtmodel-at 3.5 up $n0        $ns rtmodel-at 3.9 up $n(3) $n(5)        $ns rtmodel-at 40  down  $n4\end{program}\end{list}Finally, the instance procedure \proc[]{trace-dynamics} of the class rtModelenables tracing of the dynamics effected by this model.It is used as:\begin{program}        set fh [open "dyn.tr" w]        $rtmodel1 trace-dynamics $fh        $rtmodel2 trace-dynamics $fh        $rtmodel1 trace-dynamics stdout\end{program}In this example, \code{$rtmodel1} writes out trace entries to bothdyn.tr and stdout; \code{$rtmodel2} only writes out trace entries to dyn.tr.A typical sequence of trace entries written out by either model might be:{\small\begin{verbatim}        v 0.8123 link-up 3 5        v 0.8123 link-up 5 3        v 3.5124 link-down 3 5        v 3.5124 link-down 5 3\end{verbatim}}These lines above indicate that Link~\tup{3, 5} failed at $0.8123s.$,and recovered at time $3.5124s.$\section{The Internal Architecture}\label{sec:nd-internal-arch}Each model of network dynamics is implemented as a separate class,derived from the base \clsref{rtModel}{../ns-2/dynamics.tcl}.We begin by describing\href{the base class rtModel and the derived classes}{Section}{sec:rtmodel}.The network dynamics models use an internal queuing structureto ensure that simultaneous events are correctly handled,the \clsref{rtQueue}{../ns-2/dynamics.tcl}.\href{The next subsection}{Section}{sec:rtqueue}describes the internals of this structure.Finally, we describe\href{the extensions to the existing classes}{Section}{sec:nd-extensions}:the Node, Link, and others.\subsection{The class rtModel}\label{sec:rtmodel}To use a new route model, the routine \proc[]{rtmodel}creates an instance of the appropriate type,defines the node or link that the model will operate upon,configures the model,and possibly enables tracing;The individual instance procedures that accomplish this in pieces are:\begin{list}{}{}\item The   \fcnref{constructor for the base class}{../ns-2/dynamics.tcl}{rtModel::init}  stores a reference to the Simulator in its instance variable, \code{ns_}.  It also initializes the \code{startTime_} and \code{finishTime_}  from the class variables of the same name.\item The instance procedure   \fcnref{set-elements}{../ns-2/dynamics.tcl}{rtModel::set-elements}  identifies the node or link that the model will operate upon.  The command stores two arrays: \code{links_}, of the links that the  model will act upon; \code{nodes_}, of the incident nodes  that will be affected by the link failure or recovery caused by the model.\item The default procedure in the base class   to set the model configuration parameters is  \fcnref{set-parms}{../ns-2/dynamics.tcl}{rtModel::set-parms}.  It assumes a well defined  start time, up interval, down interval, and a finish time,  and sets up configuration parameters for some class of models.  It stores these values in the instance variables:  \code{startTime_}, \code{upInterval_}, \code{downInterval_},  \code{finishTime_}.    The exponential and deterministic models use this default routine,  the trace based and manual models define their own procedures.\item % trace  The instance procedure  \fcnref{\proc[]{trace}}{../ns-2/dynamics.tcl}{rtModel::trace}  enables \proc[]{trace-dynamics} on each of the links that it affects.  Additional details on \proc[]{trace-dynamics} is discussed in the  \href{section on extensions to the class Link}{Section}{sec:nd-extensions}.\end{list}The next sequence of configuration steps are taken just prior tothe start of the simulator.\ns\ invokes \fcnref{\proc[]{rtmodel-configure}}{../ns-2/dynamics.tcl}{Simulator::rtmodel-configure}just before starting the simulation.This instance procedure first acquires an instance of the class rtQueue,and then invokes \proc[]{configure} for each route model in its list,\code{rtModel_}.\begin{list}{}{}\item The instance procedure  \fcnref{\proc[]{configure}}{../ns-2/dynamics.tcl}{rtModel::configure}  makes each link that is is applied to dynamic;  this is the set of links stored in its instance variable array,  \code{links_}.  Then the procedure schedules its first event.\item The default instance procedure  \fcnref{\proc[]{set-first-event}}{../ns-w/dynamics.tcl}{rtModel::set-first-event}  schedules the first event to take all the links ``down'' at \\  \code{$startTime_} + \code{upInterval_}.  Individual types of route models derived from this base class should  redefine tihs function.\item Two instance procedures in the base class ,  \fcnref{\proc[]{set-event}}{../ns-2/dynamics.tcl}{rtModel::set-event} and  \fcnref{\proc[]{set-event-exact}}{../ns-2/dynamics.tcl}{rtModel::set-event-exact},  can be used to schedule events in the route queue.  \proc[interval, operation]{set-event} schedules \code{operation}  after \code{interval} seconds from the current time; it uses the  procedure \proc[]{set-event-exact} below.  \proc[fireTime, operation]{set-event-exact} schedules \code{operation}  to execute at \code{fireTime}.  If the time for execution is greater than the \code{finishTime_},  then the only possible action is to take a failed link ``up''.\item  Finally, the base class provides the methods to take the links  \fcnref{\proc[]{up}}{../ns-2/dynamics.tcl}{rtModel::up} or  \fcnref{\proc[]{down}}{../ns-2/dynamics.tcl}{rtModel::down}.  Each method invokes the appropriate procedure on each of the links  in the instance variable, \code{links_}.\end{list}\paragraph{Exponential}The model schedules its first event to take the links downat \code{startTime_} + E(\code{upInterval_});It also defines the procedures, \proc[]{up} and \proc[]{down};each procedure invokes the base class procedure to perform the actual operation.This routine then reschedules the next event atE(\code{upInterval}) or E(\code{downInterval_}) respectively.\paragraph{Deterministic}The model defines the procedures, \proc[]{up} and \proc[]{down};each procedure invokes the base class procedure to perform the actual operation.This routine then reschedules the next event at\code{upInterval} or \code{downInterval_} respectively.\paragraph{Trace}The model redefines the instance procedure\fcnref{\proc[]{set-parms}}{../ns-2/dynamics.tcl}{rtModel/Trace::set-parms}to operan a trace file, and set events based on that input.The instance procedure\fcnref{\proc[]{get-next-event}}{../ns-2/dynamics.tcl}{rtModel/Trace::get-next-event}returns the next valid event from the trace file.A valid event is an event that is applicable to one of the links in this object's \code{links_} variable.The instance procedure\fcnref{\proc[]{set-trace-events}}{../ns-2/dynamics.tcl}{rtModel/Trace::set-trace-events}uses \proc[]{get-next-event}to schedule the next valid event.The model redefines\fcnref{\proc[]{set-first-event}}{../ns-2/dynamics.tcl}{rtModel/Trace::set-first-event},\fcnref{\proc[]{up}}{../ns-2/dynamics.tcl}{rtModel/Trace::up}, and

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产激情一区二区三区四区 | 精品国产91洋老外米糕| 精品美女一区二区三区| 亚洲品质自拍视频| 精品一区二区免费看| 欧美吻胸吃奶大尺度电影| 久久久久久麻豆| 日韩av午夜在线观看| 99在线热播精品免费| 久久久久久久综合色一本| 天堂va蜜桃一区二区三区| 99国产精品99久久久久久| 2021国产精品久久精品| 日韩1区2区日韩1区2区| 色美美综合视频| 国产日韩三级在线| 国产精品一区二区在线观看不卡| 欧美精品日韩精品| 亚洲国产精品影院| 日本黄色一区二区| 亚洲精品国产成人久久av盗摄| jlzzjlzz亚洲日本少妇| 国产欧美日韩在线看| 国产精品中文有码| 国产免费久久精品| 成人网在线免费视频| 国产偷国产偷精品高清尤物| 久久www免费人成看片高清| 欧美r级电影在线观看| 久久国产视频网| 日韩精品一区二区三区四区| 久久精品av麻豆的观看方式| 精品少妇一区二区三区视频免付费| 石原莉奈在线亚洲三区| 91精品在线麻豆| 免费成人深夜小野草| 久久综合久久综合久久综合| 国产在线精品视频| 欧美高清在线一区二区| 色综合一区二区三区| 亚洲最色的网站| 6080午夜不卡| 国产真实乱子伦精品视频| 国产三级一区二区| av综合在线播放| 一区二区日韩电影| 欧美久久久一区| 黑人巨大精品欧美一区| 国产性做久久久久久| 91麻豆免费看| 青青草成人在线观看| 2020国产成人综合网| 972aa.com艺术欧美| 亚洲一区免费视频| 日韩欧美国产一区二区在线播放 | 成人在线综合网| 亚洲欧美色综合| 欧美丰满美乳xxx高潮www| 韩国一区二区在线观看| 国产精品成人免费在线| 欧美日韩综合不卡| 激情欧美日韩一区二区| 国产精品久久一卡二卡| 欧美色图一区二区三区| 久久99精品久久久久久国产越南 | 337p日本欧洲亚洲大胆精品| 成人免费视频免费观看| 午夜国产精品一区| 国产精品午夜免费| 制服丝袜一区二区三区| 高清久久久久久| 婷婷国产v国产偷v亚洲高清| 久久久久高清精品| 欧美日韩在线一区二区| 国产麻豆精品久久一二三| 亚洲视频图片小说| 欧美变态口味重另类| 在线视频亚洲一区| 国产麻豆日韩欧美久久| 亚洲一区二区欧美日韩| 久久久精品免费观看| 91麻豆精品国产91久久久资源速度 | 中文字幕亚洲一区二区av在线| 欧美三区免费完整视频在线观看| 粉嫩一区二区三区在线看| 毛片av中文字幕一区二区| 亚洲精品写真福利| 亚洲国产成人午夜在线一区| 91精品国产入口| 色先锋aa成人| 丁香啪啪综合成人亚洲小说| 麻豆精品精品国产自在97香蕉| 亚洲精品一二三| 亚洲欧洲99久久| 国产日产欧美一区| 亚洲精品一区二区三区在线观看 | 97se亚洲国产综合自在线不卡 | 免费成人美女在线观看.| 夜夜嗨av一区二区三区| 中文字幕一区二| 国产精品色哟哟网站| 久久综合国产精品| 国产视频在线观看一区二区三区| 911精品国产一区二区在线| 在线观看视频91| 色哦色哦哦色天天综合| 色综合久久久久久久久| 91在线一区二区三区| 成人av电影在线| 不卡视频免费播放| 99免费精品视频| www.99精品| 欧洲av一区二区嗯嗯嗯啊| 色噜噜夜夜夜综合网| 欧美系列在线观看| 色婷婷精品久久二区二区蜜臀av| 91在线观看一区二区| 99久久精品99国产精品| 色综合天天综合在线视频| 99这里只有久久精品视频| 91香蕉视频黄| 91成人免费电影| 欧美三电影在线| 欧美一区二区三区在线视频| 日韩一级完整毛片| 久久夜色精品一区| 亚洲国产电影在线观看| 亚洲视频在线一区二区| 亚洲午夜视频在线观看| 日韩不卡免费视频| 国产激情一区二区三区| 91在线视频官网| 欧美日韩视频在线一区二区| 欧美一卡二卡三卡四卡| 久久众筹精品私拍模特| 中文字幕日韩欧美一区二区三区| 综合在线观看色| 亚洲gay无套男同| 精品影院一区二区久久久| 成人爽a毛片一区二区免费| 91在线国内视频| 欧美一区二区福利在线| 国产欧美日韩亚州综合| 亚洲国产日韩a在线播放性色| 婷婷中文字幕一区三区| 国产v综合v亚洲欧| 欧美亚洲综合网| 久久久三级国产网站| 日韩欧美激情一区| 国产精品国产a级| 日本va欧美va精品| 成人国产视频在线观看| 欧洲av一区二区嗯嗯嗯啊| 久久色成人在线| 亚洲美女在线一区| 精品影视av免费| 色哟哟在线观看一区二区三区| 欧美一区二区三区公司| 中文字幕一区在线观看| 天天综合色天天| eeuss鲁一区二区三区| 欧美一区二区高清| 亚洲久本草在线中文字幕| 国产一区二区三区免费播放| 欧美色精品天天在线观看视频| 久久九九影视网| 日本在线观看不卡视频| 9l国产精品久久久久麻豆| www国产亚洲精品久久麻豆| 婷婷久久综合九色国产成人 | 久久国产精品免费| 色呦呦国产精品| 日本一区二区免费在线观看视频| 亚洲电影一级黄| 色婷婷精品大在线视频| 中文字幕第一区第二区| 久久福利资源站| 欧美日本在线视频| 亚洲精品久久久久久国产精华液| 国产成人综合自拍| 日韩一级免费观看| 亚洲高清不卡在线| 一本在线高清不卡dvd| 中文字幕不卡在线观看| 国产成人自拍高清视频在线免费播放| 欧美精品v日韩精品v韩国精品v| 亚洲免费在线看| 一本一道波多野结衣一区二区| 国产日韩欧美综合一区| 国产精品 欧美精品| 久久久亚洲欧洲日产国码αv| 免费在线成人网| 91精品国产综合久久久久久漫画| 一区二区三区中文字幕电影 | 欧美一区中文字幕| 午夜精品福利一区二区蜜股av| 欧美性色黄大片手机版| 亚洲国产精品久久人人爱| 在线精品视频免费观看| 一区二区三区在线视频免费观看|