⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node274.html

📁 相关搜索: ns2仿真结果分析 all-awk ns2 ns2 无限网络中awk文件 ... [2.tcl.rar] - 在ns2平台上实现对AODV协议的模拟
💻 HTML
字号:
<html><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><!--Converted with jLaTeX2HTML 2002 (1.62) JA patch-1.4patched version by:  Kenshi Muto, Debian Project.LaTeX2HTML 2002 (1.62),original version by:  Nikos Drakos, CBLU, University of Leeds* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan* with significant contributions from:  Jens Lippmann, Marek Rouchal, Martin Wilck and others --><HTML><HEAD><TITLE>23.7.1 The Flow Monitor</TITLE><META NAME="description" CONTENT="23.7.1 The Flow Monitor"><META NAME="keywords" CONTENT="everything"><META NAME="resource-type" CONTENT="document"><META NAME="distribution" CONTENT="global"><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><META NAME="Generator" CONTENT="jLaTeX2HTML v2002 JA patch-1.4"><META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"><LINK REL="STYLESHEET" HREF="everything.css" tppabs="http://www.isi.edu/nsnam/ns/doc/everything.css"><LINK REL="next" HREF="node275.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node275.html"><LINK REL="previous" HREF="node273.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node273.html"><LINK REL="up" HREF="node273.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node273.html"><LINK REL="next" HREF="node275.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node275.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html5502"  HREF="node275.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node275.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html5496"  HREF="node273.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node273.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html5490"  HREF="node273.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node273.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html5498"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html"><IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="file:/usr/share/latex2html/icons/contents.png"></A> <A NAME="tex2html5500"  HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html"><IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="file:/usr/share/latex2html/icons/index.png"></A> <BR><B> Next:</B> <A NAME="tex2html5503"  HREF="node275.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node275.html">23.7.2 Flow Monitor Trace</A><B> Up:</B> <A NAME="tex2html5497"  HREF="node273.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node273.html">23.7 Per-Flow Monitoring</A><B> Previous:</B> <A NAME="tex2html5491"  HREF="node273.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node273.html">23.7 Per-Flow Monitoring</A> &nbsp <B>  <A NAME="tex2html5499"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html5501"  HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <BR><BR><!--End of Navigation Panel--><H2><A NAME="SECTION04371000000000000000"></A><A NAME="sec:flowmonitor"></A><BR>23.7.1 The Flow Monitor</H2><P>The <TT>QueueMonitor/ED/Flowmon</TT> class is responsible for managingthe creation of new flow objects when packets arrive on previouslyunknown flows and for updating existing flow objects.Because it is a subclass of <TT>QueueMonitor</TT>, each flow monitorcontains an aggregate count of packet and byte arrivals, departures, anddrops.Thus, it is not necessary to create a separate queue monitor to recordaggregate statistics.It provides the following OTcl interface:<BLOCKQUOTE><TABLE CELLPADDING=3 WIDTH="100%"><TR><TD ALIGN="RIGHT">classifier</TD><TD ALIGN="LEFT">get(set) classifier to map packets to flows</TD></TR><TR><TD ALIGN="RIGHT">attach</TD><TD ALIGN="LEFT">attach a Tcl I/O channel to this monitor</TD></TR><TR><TD ALIGN="RIGHT">dump</TD><TD ALIGN="LEFT">dump contents of flow monitor to Tcl channel</TD></TR><TR><TD ALIGN="RIGHT">flows</TD><TD ALIGN="LEFT">return string of flow object names known to this monitor</TD></TR></TABLE></BLOCKQUOTE><P>The <TT>classifier</TT> function sets or gets the name of the previously-allocatedobject which will perform packet-to-flow mapping for the flow monitor.Typically, the type of classifier used will have to do with the notion of``flow'' held by the user.One of the hash based classifiers that inspect various IP-level headerfields is typically used here (e.g. fid, src/dst, src/dst/fid).Note that while classifiers usually receive packets and forward themon to downstream objects, the flow monitor uses the classifier only forits packet mapping capability, so the flow monitor acts as a passivemonitor only and does not actively forward packets.<P>The <TT>attach</TT> and <TT>dump</TT> functions are used toassociate a Tcl I/O stream with theflow monitor, and dump its contents on-demand.The file format used by the <TT>dump</TT> command is described below.<P>The <TT>flows</TT> function returns a list of the names of flows knownby the flow monitor in a way understandable to Tcl.This allows tcl code to interrogate a flow monitor in orderto obtain handles to the individual flows it maintains.<P><HR><!--Navigation Panel--><A NAME="tex2html5502"  HREF="node275.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node275.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html5496"  HREF="node273.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node273.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html5490"  HREF="node273.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node273.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html5498"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html"><IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="file:/usr/share/latex2html/icons/contents.png"></A> <A NAME="tex2html5500"  HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html"><IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="file:/usr/share/latex2html/icons/index.png"></A> <BR><B> Next:</B> <A NAME="tex2html5503"  HREF="node275.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node275.html">23.7.2 Flow Monitor Trace</A><B> Up:</B> <A NAME="tex2html5497"  HREF="node273.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node273.html">23.7 Per-Flow Monitoring</A><B> Previous:</B> <A NAME="tex2html5491"  HREF="node273.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node273.html">23.7 Per-Flow Monitoring</A> &nbsp <B>  <A NAME="tex2html5499"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html5501"  HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <!--End of Navigation Panel--><ADDRESS>2003-09-23</ADDRESS></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -