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

📄 no ad-hoc routing agent (noah).htm

📁 无线模拟仿真中
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0046)http://icapeople.epfl.ch/widmer/uwb/ns-2/noah/ -->
<HTML><HEAD><TITLE>NO Ad-Hoc Routing Agent (NOAH)</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="NO Ad-Hoc Routing Agent" name=description>
<META content="MSHTML 6.00.2900.2627" name=GENERATOR></HEAD>
<BODY text=#000000 vLink=#008040 aLink=#ff0000 link=#006060 bgColor=#ffffff 
topMargin=0 marginheight="0"><FONT face="Helvetica, Arial, sans-serif" 
color=#000099>
<H2>NO Ad-Hoc Routing Agent (NOAH)</H2></FONT><FONT 
face="Helvetica, Arial, sans-serif">NOAH is a wireless routing agent that (in 
contrast to DSDV, DSR, ...) only supports direct communication between wireless 
nodes or between base stations and mobile nodes in case Mobile IP is used. This 
allows to simulate scenarios where multi-hop wireless routing is undesired. NOAH 
does not send any routing related packets.
<P>
<UL>
  <LI>It has been updated (November 2003) to work with ns-2.26 and with 
  non-Mobile IP scenarios. (For older versions of ns-2, take a look at <A 
  href="http://www.informatik.uni-mannheim.de/informatik/pi4/projects/MobileIP/ns-extension/">http://www.informatik.uni-mannheim.de/informatik/pi4/projects/MobileIP/ns-extension/</A> 
  but this version does not contain the bugfixes for non-Mobile IP scenarios.)
  <P></P>
  <LI>Further update (April 2004) to allow static multi-hop routes. The routes 
  can be set up using the <TT>routing</TT> command which takes as parameters the 
  number of destinations and then as many tuples of destination and next hop 
  address. The following example sets up static routing for a line of nodes: 
<TT><PRE># setup static routing for line of nodes
for {set i 0} {$i &lt; $val(nn) } {incr i} {
    set cmd "[$node_($i) set ragent_] routing $val(nn)"
    for {set to 0} {$to &lt; $val(nn) } {incr to} {
	if {$to &lt; $i} {
	    set hop [expr $i - 1]
	} elseif {$to &gt; $i} {
	    set hop [expr $i + 1]
	} else {
	    set hop $i
	}
	set cmd "$cmd $to $hop"
    }
    eval $cmd
}
</PRE></TT></LI></UL><FONT face="Helvetica, Arial, sans-serif" color=#000099>
<H3>Step-by-step installation instructions for ns-2.26</H3></FONT><FONT 
face="Helvetica, Arial, sans-serif">
<TABLE cellSpacing=0 cellPadding=10 bgColor=white border=0><!-- <tr valign="top" align="left"><th>file</th><th>changes</th> -->
  <TBODY>
  <TR vAlign=top align=left>
    <TH>Makefile.in</TH>
    <TD>add <TT>noah/noah.o \</TT> to OBJ_CC and <TT>tcl/mobility/noah.tcl 
      \</TT> to NS_TCL_LIB </TD></TR>
  <TR vAlign=top align=left>
    <TH>noah/noah.{h,cc}</TH>
    <TD>add <A 
      href="http://icapeople.epfl.ch/widmer/uwb/ns-2/noah/noah.h"><TT>noah.h</TT></A> 
      and <A 
      href="http://icapeople.epfl.ch/widmer/uwb/ns-2/noah/noah.cc"><TT>noah.cc</TT></A> 
      to a new subdirectory noah/</TD></TR>
  <TR vAlign=top align=left>
    <TH>tcl/mobility/noah.tcl</TH>
    <TD>add <A 
      href="http://icapeople.epfl.ch/widmer/uwb/ns-2/noah/noah.tcl"><TT>noah.tcl</TT></A> 
      to tcl/mobility/</TD></TR>
  <TR vAlign=top align=left>
    <TH>tcl/lib/ns-lib.tcl.h</TH>
    <TD>line 191: add <TT>source ../mobility/noah.tcl</TT><BR>line 603ff: add <PRE>	    NOAH {
		    set ragent [$self create-noah-agent $node]
	    }
</PRE>line 768ff: add <PRE>Simulator instproc create-noah-agent { node } {
    # Create a noah routing agent for this node
    set ragent [new Agent/NOAH]

    ## setup address (supports hier-addr) for noah agent
    ## and mobilenode
    set addr [$node node-addr]

    $ragent addr $addr
    $ragent node $node

    if [Simulator set mobile_ip_] {
        $ragent port-dmux [$node demux]
    }
    $node addr $addr
    $node set ragent_ $ragent
    return $ragent
}
</PRE></TD></TR></TBODY></TABLE></FONT></FONT></BODY></HTML>

⌨️ 快捷键说明

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