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

📄 node170.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>15.6 Commands at a glance</TITLE><META NAME="description" CONTENT="15.6 Commands at a glance"><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="previous" HREF="node169.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node169.html"><LINK REL="up" HREF="node162.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node162.html"><LINK REL="next" HREF="node171.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node171.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html3876"  HREF="node171.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node171.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html3870"  HREF="node162.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node162.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html3866"  HREF="node169.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node169.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html3872"  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="tex2html3874"  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="tex2html3877"  HREF="node171.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node171.html">16. Mobile Networking in</A><B> Up:</B> <A NAME="tex2html3871"  HREF="node162.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node162.html">15. The (Revised) Addressing</A><B> Previous:</B> <A NAME="tex2html3867"  HREF="node169.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node169.html">15.5 Errors in setting</A> &nbsp <B>  <A NAME="tex2html3873"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html3875"  HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <BR><BR><!--End of Navigation Panel--><H1><A NAME="SECTION031260000000000000000"></A><A NAME="sec:addresscommand"></A><BR>15.6 Commands at a glance</H1><P>The following is a list of address-format related commands used in simulationscripts:<DIV ALIGN="LEFT"><TT>$ns_ set-address-format def</TT><BR>This command is used internally to set the address format to its default valueof 32 lower bits for port-id, 1 higher bit for mcast and the rest 31 higher bitsfor node-id. However this API has been replaced by the new node API<BR><TT>$ns_ node-config -addressType flat</TT>.</DIV><P><DIV ALIGN="LEFT"><TT>$ns_ set-address-format hierarchical</TT><BR>This command is used to set the address format to the hierarchical configurationthat consists of 3 levels with 8bits assigned to each level and 32 lower bitsfor port-id. However this API has been replaced by the new node API<BR><TT>$ns_ node-config -addressType hierarchical</TT>.</DIV><P><DIV ALIGN="LEFT"><TT>$ns_ set-address-format hierarchical levels args</TT><BR>This command is used to set the address format to a specific hierarchicalsetting. The &lt;levels&gt; indicate the number of levels of hierarchy in the addressingstructure, while the args define number of bits for each level. An examplewould be <TT>$ns_ set-address-format hierachical 3 4 4 16</TT> , where 4, 4 and16 defines the number of bits to be used for the address space in level 1 , 2and 3 respectively.</DIV><P><DIV ALIGN="LEFT"><TT>$ns_ set-address-format expanded</TT><BR>THIS COMMAND IS NOW OBSOLETEThis command was used to expand the address space to 30 bits, allocating22 higher bits for node-id and lower 8 bits for port-id. However this commandis obsoleted now by 32 bit addressing, i.e node-id field is 32 bit wide.</DIV><P><DIV ALIGN="LEFT"><TT>expand-port-field-bits bits-for-portid</TT><BR>THIS COMMAND IS NOW OBSOLETESimilar to the command above, this was used to expand the address space forthe port-id field to &lt;bits-for-portid&gt; number of bits. However this commandis obsolete now that the ports are 32 bit wide.</DIV><P><DIV ALIGN="LEFT"></DIV><HR><!--Navigation Panel--><A NAME="tex2html3876"  HREF="node171.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node171.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html3870"  HREF="node162.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node162.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html3866"  HREF="node169.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node169.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html3872"  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="tex2html3874"  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="tex2html3877"  HREF="node171.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node171.html">16. Mobile Networking in</A><B> Up:</B> <A NAME="tex2html3871"  HREF="node162.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node162.html">15. The (Revised) Addressing</A><B> Previous:</B> <A NAME="tex2html3867"  HREF="node169.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node169.html">15.5 Errors in setting</A> &nbsp <B>  <A NAME="tex2html3873"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html3875"  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 + -