freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

ns的網(wǎng)絡(luò)功能實(shí)體結(jié)構(gòu)及類結(jié)構(gòu)(存儲(chǔ)版)

  

【正文】 s at exit 0 2 % 進(jìn)入 _o1 _o3 _o2 _o4 _o5 _o6 _o7 _o8 _o9 _o10 _o11 _o14 _o12 _o13 _o15 _o16 _o17 _o18 _o19 _o20 _o21 _o22 RNG Import Simulator PacketHeaderManager Scheduler/Calender Agent/Null AllocAddrBits AllocAddr Address Node RtModule/Base Classifier/Hash/Dest Node Classifier/Hash/Dest RtModule/Base _o28 _o27 _o26 _o25 _o24 _o23 Queue/DropTail Connector SimpleLink DelayLink TTL_Checker Connector Queue/DropTail Connector SimpleLink DelayLink TTL_Checker Connector _o29 _o31 _o30 Agent/TCP Application/FTP Agent/TCPSink _o32 Classifier/Port _o33 Classifier/Port Agent/TCP Agent SplitObject TclObject Agent TcpAgent Agent/TCP 的實(shí)例 new Agent/TCP 全局函數(shù) new{} 對(duì)應(yīng)類的 create{},分配內(nèi)存。是否應(yīng)該是dmux_的映射表? RtModule instproc attach { agent port } { $agent target [[$self node] entry] [[$self node] demux] install $port $agent } RtModule instproc addroute { dst target } { $self instvar next_rtm_ [$self set classifier_] install $dst $target if {$next_rtm_ != } { $next_rtm_ addroute $dst $target }} Node instproc addroute { dst target } { $self instvar rtnotif_ if {$rtnotif_ != } { $rtnotif_ addroute $dst $target } $self incrrtgtablesize } Classifier instproc install {slot val} { $self set slots_($slot) $val $self cmd install $slot $val } 進(jìn)入 classifier的 c++代碼 有兩個(gè)變量要引起注意: rtnotif_和前面提到的ptnotif_;我覺(jué)得 rtnotif_是路由模塊, ptnotif_是端口映射模塊。因?yàn)檫@一步完成了 – 路由模塊的加載 – Agent和 node的連接 tcl/lib/ Simulator instproc attachagent { node agent } { $node attach $agent …… } % _o33 info class Classifier/Port % _o32 info class Classifier/Port % _o34 info class invalid mand name _o34 這兩步創(chuàng)建了兩個(gè)對(duì)象 tcl/lib/ Node instproc attach { agent { port } } { $self instvar agents_ address_ dmux_ lappend agents_ $agent $agent set node_ $self $agent set agent_addr_ [AddrParams addr2id $address_] if { $dmux_ == ―‖ } {會(huì)進(jìn)入這里,因?yàn)檫€沒(méi)有給 dmux賦過(guò)值 Use the default mask_ and port_ values set dmux_ [new Classifier/Port] point the node39。 一個(gè)仿真例子的操作過(guò)程 1. 寫(xiě)場(chǎng)景 tcl腳本 , 2. 運(yùn)行 ns 3. 察看仿真過(guò)程,是否有錯(cuò)或者是否與預(yù)想中的大致相似 nam 4. 分析仿真數(shù)據(jù) ,可以用各種工具 set ns [new Simulator] set tracefd [ open w] set namfd [open w] $ns traceall $tracefd $ns namtraceall $namfd set n0 [$ns node] set n1 [$ns node] $ns duplexlink $n0 $n1 1Mb 10ms DropTail set tcp [new Agent/TCP] set snk [new Agent/TCPSink] $ns attachagent $n0 $tcp $ns attachagent $n1 $snk set ftp [new Application/FTP] $ftp attachagent $tcp $ns connect $tcp $snk $ns at $ftp start $ns at ―exit 0 $ns run 例子的仿真結(jié)果 + 0 1 tcp 1040 0 7 14 0 1 tcp 1040 0 7 14 + 0 1 tcp 1040 0 8 15 r 1 0 ack 40 0 4 11 + 0 1 tcp 1040 0 9 16 V t * v a 0 A t * n 1 p 0 o 0xffffffff c 31 a 1 A t * h 1 m 2147483647 s 0 n t * a 0 s 0 S UP
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1