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

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

?? l2handover.tcl

?? Ns2下Wimax的代碼
?? TCL
字號:
# Script showing a layer 2 handover in 802.16# @author rouil# Scenario: Communication between MN and Sink Node with MN attached to BS.# Notes:- In order to perform layer 2 handover, the BSs must share the same channel#       - Additional mechanisms are required in order to continue a communication after a layer 2 handover#         This is achieved by updating the MN address to simulate layer 3 handovers and traffic redirection.#         We will provide the code as part of our implementation of IEEE 802.21.## @version 1.1 12-26-06 : added support for handover on link going down## Topology scenario:###	        |-----|          #	        | MN0 |                 ; 1.0.1 #	        |-----|        ###		  (^)                         (^)#		   |                           |#	    |--------------|            |--------------|#           | Base Station | ; 1.0.0    | Base Station |#           |--------------|            |--------------|#	    	   |                           |#	    	   |                           |#	     |-----------|                     |#            | Sink node |---------------------| 		#            |-----------|  ; 0.0.0### Explanations of scenario/information to follow the code:# 1- Upon link going down (i.e power level decreased and crossed a# threshold), the MS sends a scan request to its serving BS # 2- when the WimaxCtrlAgent located in the BS receives the scan# request, it needs to respond to the SS. In case of no association or# association without coordination, the BS handles the request locally# and can respond right away. When there is coordination with other# neighboring BSs, it cannot do that since it has to consult these# BSs. That's why the code is commented in case 2, but you will see# that it is sending synchronization request to the neighbor BSs. Case# 3 as not been implemented.# 3- When the MS receives the response, there is a delay as defined in the# standard (note that the scanning does not start but it is set to# PENDING). Also it checks for Association with coordination. If there# is coordination, there are rendez-vous time that were defined by the# serving BS (in the WimaxCtrlAgent) and we need to schedule timers so# that we switch to the right channel at the right time.  # After few frames the scanning will start then a serie of# start/pause/resume/stop scanning depending on the number of scan# iterations.# 4- Handover: SS will send MSHO-REQ message to the serving BS:# message type = MAC_MOB_MSHO_REQ. The data includes, id and mean RSSI# of current serving BS; id and mean RSSI of neighbor BSs that where# detected during scanning. The serving BS will response with MSHO-RSP# to the SS: message type =MAC_MOB_BSHO_RSP, with a recommended target# BS (the one with the strongest RSSI).# 5- SS receives the response from serving BS and starts to HO# with the recommended BS. If the recommended BS is# different from the current serving BS, it will send a message to# serving BS. #check input parametersif {$argc != 0} {	puts ""	puts "Wrong Number of Arguments! No arguments in this topology"	puts ""	exit }# set global variablesset output_dir .set traffic_start 5set traffic_stop  15set simulation_stop 60#define debug valuesMac/802_16 set debug_ 1Mac/802_16 set print_stats_ 1Mac/802_16 set t21_timeout_          20 #Fix: instead of using the send-scan manually, use a link going down triggerMac/802_16 set lgd_factor_        1.8 ;#note: the higher the value the earlier the trigger Mac/802_16 set client_timeout_ 60 ;#to avoid BS disconnecting the SSAgent/WimaxCtrl set adv_interval_ 1.0Agent/WimaxCtrl set default_association_level_ 0Agent/WimaxCtrl set synch_frame_delay_ 0.5Agent/WimaxCtrl set debug_ 1#define coverage area for base station: 20m coverage Phy/WirelessPhy set Pt_ 0.025Phy/WirelessPhy set RXThresh_ 2.90781e-09Phy/WirelessPhy set CSThresh_ [expr 0.9 *[Phy/WirelessPhy set RXThresh_]]# Parameter for wireless nodesset opt(chan)           Channel/WirelessChannel    ;# channel typeset opt(prop)           Propagation/TwoRayGround   ;# radio-propagation modelset opt(netif)          Phy/WirelessPhy/OFDM       ;# network interface typeset opt(mac)            Mac/802_16                 ;# MAC typeset opt(ifq)            Queue/DropTail/PriQueue    ;# interface queue typeset opt(ll)             LL                         ;# link layer typeset opt(ant)            Antenna/OmniAntenna        ;# antenna modelset opt(ifqlen)         50              	   ;# max packet in ifqset opt(adhocRouting)   DSDV                       ;# routing protocolset opt(x)		670			   ;# X dimension of the topographyset opt(y)		670			   ;# Y dimension of the topography#defines function for flushing and closing filesproc finish {} {        global ns tf output_dir nb_mn        $ns flush-trace        close $tf	exit 0}#create the simulatorset ns [new Simulator]$ns use-newtrace#create the topographyset topo [new Topography]$topo load_flatgrid $opt(x) $opt(y)#open file for traceset tf [open $output_dir/out.res w]$ns trace-all $tf# set up for hierarchical routing (needed for routing over a basestation)$ns node-config -addressType hierarchicalAddrParams set domain_num_ 3          			;# domain numberlappend cluster_num 1 1 1           			;# cluster number for each domain AddrParams set cluster_num_ $cluster_numlappend eilastlevel 1 2 2 ;# number of nodes for each cluster AddrParams set nodes_num_ $eilastlevelputs "Configuration of hierarchical addressing done"# Create Godcreate-god 3				;# nb_mn + 2 (base station and sink node)#creates the sink node in first addressing space.set sinkNode [$ns node 0.0.0]puts "sink node created"#create common channelset channel [new $opt(chan)]#creates the Access Point (Base station)$ns node-config -adhocRouting $opt(adhocRouting) \                 -llType $opt(ll) \                 -macType Mac/802_16/BS \                 -ifqType $opt(ifq) \                 -ifqLen $opt(ifqlen) \                 -antType $opt(ant) \                 -propType $opt(prop)    \                 -phyType $opt(netif) \                 -channel $channel \                 -topoInstance $topo \                 -wiredRouting ON \                 -agentTrace ON \                 -routerTrace ON \                 -macTrace ON  \                 -movementTrace OFF#puts "Configuration of base station"set bstation [$ns node 1.0.0]  $bstation random-motion 0#provide some co-ord (fixed) to base station node$bstation set X_ 50.0$bstation set Y_ 50.0$bstation set Z_ 0.0[$bstation set mac_(0)] set-channel 0#Fix: add MOB_SCN handlerset wimaxctrl [new Agent/WimaxCtrl]$wimaxctrl set-mac [$bstation set mac_(0)]$ns attach-agent $bstation $wimaxctrlputs "Base Station 1 created"set bstation2 [$ns node 2.0.0]  $bstation2 random-motion 0#provide some co-ord (fixed) to base station node$bstation2 set X_ 65.0$bstation2 set Y_ 50.0$bstation2 set Z_ 0.0[$bstation2 set mac_(0)] set-channel 1#Fix: add MOB_SCN handlerset wimaxctrl2 [new Agent/WimaxCtrl]$wimaxctrl2 set-mac [$bstation2 set mac_(0)]$ns attach-agent $bstation2 $wimaxctrl2puts "Base Station 2 created"#Fix: Add neighbor information to the BSs$wimaxctrl add-neighbor [$bstation2 set mac_(0)] $bstation2$wimaxctrl2 add-neighbor [$bstation set mac_(0)] $bstation# creation of the mobile nodes$ns node-config -macType Mac/802_16/SS \                -wiredRouting OFF \                -macTrace ON  				;# Mobile nodes cannot do routing.set wl_node [$ns node 1.0.1] 	;# create the node with given @.	$wl_node random-motion 0			;# disable random motion$wl_node base-station [AddrParams addr2id [$bstation node-addr]] ;#attach mn to basestation$wl_node set X_ 45.0$wl_node set Y_ 50.0$wl_node set Z_ 0.0$ns at 0.0 "$wl_node setdest 70.0 50.0 2.0"[$wl_node set mac_(0)] set-channel 0puts "wireless node created ..."			;# debug info#create source traffic#Create a UDP agent and attach it to node n0set udp [new Agent/UDP]$udp set packetSize_ 1500$ns attach-agent $wl_node $udp# Create a CBR traffic source and attach it to udp0set cbr [new Application/Traffic/CBR]$cbr set packetSize_ 1000$cbr set interval_ 0.1$cbr attach-agent $udp#create an sink into the sink node# Create the Null agent to sink trafficset null [new Agent/Null] $ns attach-agent $sinkNode $null# Attach the 2 agents$ns connect $udp $null# create the link between sink node and base station$ns duplex-link $sinkNode $bstation 100Mb 1ms DropTail#Fix: add missing link $ns duplex-link $sinkNode $bstation2 100Mb 1ms DropTail# Traffic scenario: here the all start talking at the same time$ns at $traffic_start "$cbr start"$ns at $traffic_stop "$cbr stop"$ns at $simulation_stop "finish"puts "Running simulation"$ns runputs "Simulation done."

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
青青草原综合久久大伊人精品优势| 欧美肥妇bbw| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 久久久天堂av| 久久不见久久见免费视频7| 欧美一区二区三区人| 精品一区二区三区日韩| 久久亚洲综合av| 国产91对白在线观看九色| 中文字幕综合网| 欧美色区777第一页| 日本亚洲视频在线| 久久久久青草大香线综合精品| 成人网在线播放| 亚洲综合视频网| 欧美成人精品二区三区99精品| 一区二区高清视频在线观看| 6080yy午夜一二三区久久| 久久成人羞羞网站| 国产精品麻豆欧美日韩ww| 日本精品视频一区二区| 日韩avvvv在线播放| 久久久www成人免费无遮挡大片 | 丝袜亚洲另类欧美| 精品国产乱码久久久久久蜜臀| 粉嫩嫩av羞羞动漫久久久| 一区二区三区在线看| 欧美一区二区久久久| 成人精品电影在线观看| 午夜精品一区二区三区免费视频| 精品乱人伦小说| 一本色道久久加勒比精品| 亚洲国产精品久久人人爱| 亚洲精品一区二区三区99| 91麻豆国产福利精品| 免费观看在线综合色| 亚洲日本一区二区| 337p粉嫩大胆色噜噜噜噜亚洲| 91美女福利视频| 国产乱码精品一品二品| 亚洲一区在线观看免费| 国产三级一区二区| 欧美一区二区三区白人| 色嗨嗨av一区二区三区| 国产一区二区0| 天天爽夜夜爽夜夜爽精品视频| 国产精品丝袜一区| 欧美电视剧在线观看完整版| 色婷婷狠狠综合| 成人免费毛片高清视频| 日韩av中文字幕一区二区三区| 国产精品久久久久四虎| 精品女同一区二区| 欧美美女网站色| 色8久久人人97超碰香蕉987| 国产99久久久国产精品免费看| 日韩精品成人一区二区三区| 亚洲精品一二三| 国产精品国产三级国产普通话三级| 日韩视频一区二区三区在线播放 | 欧美日韩国产高清一区| 成人h精品动漫一区二区三区| 国产嫩草影院久久久久| 亚洲国产精品影院| 一本到不卡免费一区二区| 国产一区二区三区电影在线观看| 日韩精品久久理论片| 亚洲一区免费视频| 成人免费在线观看入口| 国产精品午夜在线| 精品福利视频一区二区三区| 欧美一区二区三区公司| 欧美精品在欧美一区二区少妇| 色欧美片视频在线观看| 一本色道久久加勒比精品| 99在线热播精品免费| 成人美女视频在线观看18| 国产69精品久久99不卡| 成人在线综合网| 成人97人人超碰人人99| 成人av网在线| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 亚洲美腿欧美偷拍| 亚洲天堂免费看| 亚洲三级在线播放| 一区2区3区在线看| 亚洲国产视频在线| 亚洲电影视频在线| 免费成人av在线| 精品一区二区综合| 国产成人精品综合在线观看 | 欧美一区二区日韩一区二区| 6080国产精品一区二区| 日韩欧美亚洲国产精品字幕久久久| 91麻豆精品国产91久久久久 | 精品国产乱码久久久久久牛牛 | 丰满少妇久久久久久久| 9久草视频在线视频精品| 色婷婷综合久色| 精品视频1区2区3区| 91精品国产乱码| www欧美成人18+| 自拍偷在线精品自拍偷无码专区| 亚洲精品亚洲人成人网| 五月激情综合网| 极品少妇xxxx精品少妇| jlzzjlzz亚洲女人18| 欧美午夜一区二区| 日韩欧美国产成人一区二区| 久久精品一区二区三区av| 中文字幕在线观看不卡视频| 精品系列免费在线观看| 国产一区在线视频| 一本到不卡免费一区二区| 欧美日韩国产影片| 久久精品一区二区三区不卡| 亚洲欧美日韩在线| 免费成人av在线播放| 成人av一区二区三区| 制服丝袜亚洲网站| 国产精品欧美极品| 日韩精品亚洲一区二区三区免费| 国产真实乱对白精彩久久| 91在线免费看| 欧美sm极限捆绑bd| 亚洲免费视频成人| 精品一区在线看| 欧美专区亚洲专区| 日本一区二区视频在线| 亚洲无人区一区| 粉嫩高潮美女一区二区三区| 欧美色倩网站大全免费| 中文字幕免费在线观看视频一区| 视频在线观看91| 91丝袜呻吟高潮美腿白嫩在线观看| 日韩一区二区麻豆国产| 亚洲卡通动漫在线| 国产一区二区三区免费看| 欧美男男青年gay1069videost| 国产欧美日韩在线看| 日韩av不卡一区二区| 色综合天天在线| 欧美国产丝袜视频| 老司机免费视频一区二区| 欧美午夜不卡在线观看免费| 中文在线资源观看网站视频免费不卡| 亚洲韩国精品一区| 91在线视频播放地址| 国产日本欧美一区二区| 免费av成人在线| 欧美日韩成人综合| 亚洲三级电影网站| 成人综合婷婷国产精品久久免费| 精品久久久久99| 日韩成人精品在线观看| 欧美日韩国产综合草草| 亚洲综合在线免费观看| 不卡视频免费播放| 久久精品人人做人人综合| 美美哒免费高清在线观看视频一区二区| 在线视频综合导航| 国产精品福利av| 国产 欧美在线| 久久久国产精品不卡| 国产麻豆视频一区二区| 久久综合色之久久综合| 国产制服丝袜一区| 精品国产伦一区二区三区免费| 青青草伊人久久| 日韩区在线观看| 久久福利资源站| 欧美精品一区二区三区在线播放| 麻豆精品一区二区av白丝在线| 日韩一区二区三区四区| 青青草97国产精品免费观看无弹窗版| 欧美女孩性生活视频| 首页国产欧美日韩丝袜| 欧美一区二区三区免费在线看| 日日摸夜夜添夜夜添精品视频 | 欧美一区二区三区视频在线| 麻豆久久一区二区| 精品久久久久久久久久久久包黑料| 美女精品自拍一二三四| 日韩免费成人网| 国产伦精品一区二区三区视频青涩| 中文字幕一区二区三区四区不卡| jlzzjlzz亚洲日本少妇| 亚洲韩国精品一区| 日韩午夜在线影院| 国产suv精品一区二区6| 自拍偷拍欧美精品| 欧洲视频一区二区| 日韩有码一区二区三区| 欧美大黄免费观看| 懂色av一区二区三区蜜臀| 亚洲图片欧美激情| 91精品婷婷国产综合久久| 国产一级精品在线| 亚洲欧美另类在线| 欧美丰满美乳xxx高潮www|