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

📄 node425.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>32.5.1 Singled Homed Example</TITLE><META NAME="description" CONTENT="32.5.1 Singled Homed Example"><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="node426.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node426.html"><LINK REL="previous" HREF="node424.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node424.html"><LINK REL="up" HREF="node424.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node424.html"><LINK REL="next" HREF="node426.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node426.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html7909"  HREF="node426.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node426.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html7903"  HREF="node424.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node424.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html7897"  HREF="node424.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node424.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html7905"  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="tex2html7907"  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="tex2html7910"  HREF="node426.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node426.html">32.5.2 Multihomed Example</A><B> Up:</B> <A NAME="tex2html7904"  HREF="node424.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node424.html">32.5 Example Scripts</A><B> Previous:</B> <A NAME="tex2html7898"  HREF="node424.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node424.html">32.5 Example Scripts</A> &nbsp <B>  <A NAME="tex2html7906"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html7908"  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="SECTION06351000000000000000">32.5.1 Singled Homed Example</A></H2><P><PRE>	 Trace set show_sctphdr_ 1 # this needs to be set for tracing SCTP packets;	 set ns [new Simulator]	 set allchan [open all.tr w]	 $ns trace-all $allchan	 proc finish {} {	    exit 0	 }	 set n0 [$ns node]	 set n1 [$ns node]	 $ns duplex-link $n0 $n1 .5Mb 200ms DropTail	 # NOTE: The debug files (in this example, they would be debug.SctpAgent.0	 #       and debug.SctpAgent.1) contain a lot of useful info. They can be 	 #       used to trace every packet sent, received, and processed.	 #	 set sctp0 [new Agent/SCTP]	 $ns attach-agent $n0 $sctp0	 $sctp0 set debugMask_ 0x00303000 # refer to sctpDebug.h for mask mappings;	 $sctp0 set debugFileIndex_ 0	 set trace_ch [open trace.sctp w]	 $sctp0 set trace_all_ 0 # do not trace all variables on one line;	 $sctp0 trace cwnd_      # trace cwnd for all destinations;	 $sctp0 attach $trace_ch	 set sctp1 [new Agent/SCTP]	 $ns attach-agent $n1 $sctp1	 $sctp1 set debugMask_ -1         # use -1 to turn on all debugging;	 $sctp1 set debugFileIndex_ 1	 $ns connect $sctp0 $sctp1	 set ftp0 [new Application/FTP]	 $ftp0 attach-agent $sctp0	 $ns at 0.5 "$ftp0 start"	 $ns at 4.5 "$ftp0 stop"	 $ns at 5.0 "finish"	 $ns run</PRE><P><BR><HR><ADDRESS>2003-09-23</ADDRESS></BODY></HTML>

⌨️ 快捷键说明

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