12.07.2015 Views

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

$<strong>ns</strong> add-isl $ltype $node1 $node2 $bw $qtype $qlimThis cre<strong>at</strong>es two channels (of type Channel/S<strong>at</strong>), <strong>and</strong> appropri<strong>at</strong>e network interfaces on both nodes, <strong>and</strong> <strong>at</strong>taches thechannels to the network interfaces. <strong>The</strong> b<strong>and</strong>width of the link is set to bw. <strong>The</strong> linktype (ltype) must be specified as eitherintraplane, interplane, or crossseam.A GSL involves adding network interfaces <strong>and</strong> a channel on board the s<strong>at</strong>ellite (this is typically done using the wrappermethods described in the next paragraph), <strong>and</strong> then defining the correct interfaces on the terrestrial node <strong>and</strong> <strong>at</strong>taching themto the s<strong>at</strong>ellite link, as follows:$node add-gsl $type $ll $qtype $qlim $mac $bw_up $phy \[$node_s<strong>at</strong>ellite set downlink_] [$node_s<strong>at</strong>ellite set uplink_]Here, the type must be either geo or polar, <strong>and</strong> we make use of the downlink_ <strong>and</strong> uplink_ i<strong>ns</strong>tvars of the s<strong>at</strong>ellite;therefore, the s<strong>at</strong>ellite’s uplink <strong>and</strong> downlink must be cre<strong>at</strong>ed before this i<strong>ns</strong>tproc is called.By default, the node gener<strong>at</strong>or for s<strong>at</strong>ellite nodes (described in Section 5.3) will cre<strong>at</strong>e nodes of a given type, give them anuplink <strong>and</strong> downlink interface, <strong>and</strong> cre<strong>at</strong>e <strong>and</strong> <strong>at</strong>tach an (initial) uplink <strong>and</strong> downlink channel, based on the interface optio<strong>ns</strong>specified.17.2.3 H<strong>and</strong>offsS<strong>at</strong>ellite h<strong>and</strong>off modelling is a key component of LEO s<strong>at</strong>ellite network simul<strong>at</strong>io<strong>ns</strong>. It is difficult to predict exactly howh<strong>and</strong>offs will occur in future LEO systems because the subject is not well tre<strong>at</strong>ed in the liter<strong>at</strong>ure. In these s<strong>at</strong>ellite exte<strong>ns</strong>io<strong>ns</strong>,we establish certain criteria for h<strong>and</strong>offs, <strong>and</strong> allow nodes to independently monitor for situ<strong>at</strong>io<strong>ns</strong> th<strong>at</strong> require a h<strong>and</strong>off. Analtern<strong>at</strong>ive would be to have all h<strong>and</strong>off events synchronized across the entire simul<strong>at</strong>ion– it would not be difficult to changethe simul<strong>at</strong>or to work in such a manner.<strong>The</strong>re are no link h<strong>and</strong>offs involving geost<strong>at</strong>ionary s<strong>at</strong>ellites, but there are two types of links to polar orbiting s<strong>at</strong>ellites th<strong>at</strong>must be h<strong>and</strong>ed off: GSLs to polar s<strong>at</strong>ellites, <strong>and</strong> crossseam ISLs. A third type of link, interplane ISLs, are not h<strong>and</strong>ed off butare deactiv<strong>at</strong>ed <strong>at</strong> high l<strong>at</strong>itudes as we describe below.Each terminal connected to a polar orbiting s<strong>at</strong>ellite ru<strong>ns</strong> a timer th<strong>at</strong>, upon expiry, causes the H<strong>and</strong>offManager to checkwhether the current s<strong>at</strong>ellite has fallen below the elev<strong>at</strong>ion mask of the terminal. If so, the h<strong>and</strong>off manager detaches theterminal from th<strong>at</strong> s<strong>at</strong>ellite’s up <strong>and</strong> down links, <strong>and</strong> searches through the linked list of s<strong>at</strong>ellite nodes for another possibles<strong>at</strong>ellite. First, the “next” s<strong>at</strong>ellite in the current orbital plane is checked– a pointer to this s<strong>at</strong>ellite is stored in the Positionobject of each polar s<strong>at</strong>ellite node <strong>and</strong> is set during simul<strong>at</strong>ion configur<strong>at</strong>ion using the Node/S<strong>at</strong>Node i<strong>ns</strong>tproc “$nodeset_next $next_node.” If the next s<strong>at</strong>ellite is not suitable, the h<strong>and</strong>off manager searches through the remaining s<strong>at</strong>ellites.If it finds a suitable polar s<strong>at</strong>elite, it connects its network interfaces to th<strong>at</strong> s<strong>at</strong>ellite’s uplink <strong>and</strong> downlink channels, <strong>and</strong>restarts the h<strong>and</strong>off timer. If it does not find a suitable s<strong>at</strong>ellite, it restarts the timer <strong>and</strong> tries again l<strong>at</strong>er. If any link changesoccur, the routing agent is notified.<strong>The</strong> elev<strong>at</strong>ion mask <strong>and</strong> h<strong>and</strong>off timer interval are settable via OTcl:H<strong>and</strong>offManager/Term set elev<strong>at</strong>ion_mask_ 10; # degreesH<strong>and</strong>offManager/Term set term_h<strong>and</strong>off_int_ 10; # secondsIn addition, h<strong>and</strong>offs may be r<strong>and</strong>omized to avoid phase effects by setting the following variable:H<strong>and</strong>offManager set h<strong>and</strong>off_r<strong>and</strong>omiz<strong>at</strong>ion_ 0; # 0 is false, 1 is true176

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!