📄 node359.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>29.5 Commands at a glance</TITLE><META NAME="description" CONTENT="29.5 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="node358.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node358.html"><LINK REL="up" HREF="node354.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node354.html"><LINK REL="next" HREF="node360.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node360.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html6827" HREF="node360.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node360.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html6821" HREF="node354.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node354.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html6817" HREF="node358.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node358.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html6823" 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="tex2html6825" 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="tex2html6828" HREF="node360.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node360.html">5 Transport</A><B> Up:</B> <A NAME="tex2html6822" HREF="node354.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node354.html">29. Hierarchical Routing</A><B> Previous:</B> <A NAME="tex2html6818" HREF="node358.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node358.html">29.4 Hierarchical Routing with</A>   <B> <A NAME="tex2html6824" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html6826" 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="SECTION05450000000000000000">29.5 Commands at a glance</A></H1><P>Following is a list of hierarchical routing/addressing related commandsused in simulation scripts:<DIV ALIGN="LEFT"><TT>$ns_ set-address-format hierarchical</TT><BR>This command was used to setup hierarchical addressing in . However withthe recent changes in node APIs, this command has been replaced by<BR><TT>ns_ node-config -addressType hierarchical</TT><BR>This creates a default topology of 3 levels of hierarchy, assigning 8 bitsto each level.</DIV><P><DIV ALIGN="LEFT"><TT>$ns_ set-address-format hierarchical nlevels #bits in level1....#bits in level n</TT><BR>This command creates a hierarchy of <nlevels> and assigns the bits in each levelas specified in the arguments.</DIV><P><DIV ALIGN="LEFT"></DIV><PRE>AddrParams set domain\_num\_ \<n\_domains\>AddrParams set cluster\_num\_ \<n\_clusters\>AddrParams set nodes\_num\_ \<n\_nodes\></PRE><DIV ALIGN="LEFT">The above APIs are used to specify the hierarchical topology, i.e the number ofdomains, clusters and nodes present in the topology. Default values used byAddrParams (i.e if nothing is specified) provide a topology with a singledomain with 4 clusters, with each cluster consisting of 5 nodes.</DIV><P><DIV ALIGN="LEFT">Internal procedures:<BR></DIV><P><DIV ALIGN="LEFT"><TT>$Node add-route dst target</TT><BR>This procedure is used to add next-hop entries of a destination <dst> for a given <target>. </DIV><P><DIV ALIGN="LEFT"><TT>$hiernode_ split-addrstr str</TT><BR>This splits up a hierarchical adrress string (say a.b.c) into a list ofthe addresses at each level (i.e, a,b and c).</DIV><P><DIV ALIGN="LEFT"></DIV><P><HR><!--Navigation Panel--><A NAME="tex2html6827" HREF="node360.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node360.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html6821" HREF="node354.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node354.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html6817" HREF="node358.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node358.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html6823" 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="tex2html6825" 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="tex2html6828" HREF="node360.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node360.html">5 Transport</A><B> Up:</B> <A NAME="tex2html6822" HREF="node354.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node354.html">29. Hierarchical Routing</A><B> Previous:</B> <A NAME="tex2html6818" HREF="node358.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node358.html">29.4 Hierarchical Routing with</A>   <B> <A NAME="tex2html6824" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html6826" 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 + -