📄 flowmon.tcl
字号:
# make a flow monitorproc makeflowmon {} { global ns set flowmon [new QueueMonitor/ED/Flowmon] set cl [new Classifier/Hash/SrcDestFid 33] $cl proc unknown-flow { src dst fid } { set fdesc [new QueueMonitor/ED/Flow] set slot [$self installNext $fdesc] $self set-hash auto $src $dst $fid $slot } $cl proc no-slot slotnum { } $flowmon classifier $cl return $flowmon}# attach a flow monitor to a linkproc attach-fmon {lnk fm} { global ns set isnoop [new SnoopQueue/In] set osnoop [new SnoopQueue/Out] set dsnoop [new SnoopQueue/Drop] $lnk attach-monitors $isnoop $osnoop $dsnoop $fm set edsnoop [new SnoopQueue/EDrop] $edsnoop set-monitor $fm [$lnk queue] early-drop-target $edsnoop $edsnoop target [$ns set nullAgent_]}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -