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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• Position/S<strong>at</strong>/Geo A geost<strong>at</strong>ionary s<strong>at</strong>ellite is specified by its longitude above the equ<strong>at</strong>or. As simul<strong>at</strong>ion timeevolves, the geost<strong>at</strong>ionary s<strong>at</strong>ellite moves through the coordin<strong>at</strong>e system with the same orbital period as th<strong>at</strong> of theEarth’s rot<strong>at</strong>ion. <strong>The</strong> longitude ranges from [−180, 180] degrees. As we describe further below, two flavors of geost<strong>at</strong>ionarynodes exist: “geo” (for processing s<strong>at</strong>ellites) <strong>and</strong> “geo-repe<strong>at</strong>er” (for bent-pipe s<strong>at</strong>ellites). <strong>The</strong> node gener<strong>at</strong>orcan be used to cre<strong>at</strong>e a geost<strong>at</strong>ionary s<strong>at</strong>ellite with an <strong>at</strong>tached position object as follows:$<strong>ns</strong> node-config -s<strong>at</strong>NodeType geo (or ‘‘geo-repe<strong>at</strong>er’’) \(other node config comm<strong>and</strong>s go here...)set n1 [$<strong>ns</strong> node]$n1 set-position $lon; # in decimal degrees• Position/S<strong>at</strong>/Polar A polar orbiting s<strong>at</strong>ellite has a purely circular orbit along a fixed plane in the coordin<strong>at</strong>esystem; the Earth rot<strong>at</strong>es underne<strong>at</strong>h this orbital plane, so there is both an east-west <strong>and</strong> a north-south component tothe track of a polar s<strong>at</strong>ellite’s footprint on the Earth’s surface. Strictly speaking, the polar position object can be usedto model the movement of any circular orbit in a fixed plane; we use the term “polar” here because we l<strong>at</strong>er use suchs<strong>at</strong>ellites to model polar-orbiting co<strong>ns</strong>tell<strong>at</strong>io<strong>ns</strong>.S<strong>at</strong>ellite orbits are usually specified by six parameters: altitude, semi-major axis, eccentricity, right asce<strong>ns</strong>ion of ascendingnode, inclin<strong>at</strong>ion, <strong>and</strong> time of perigee passage. <strong>The</strong> polar orbiting s<strong>at</strong>ellites in <strong>ns</strong> have purely circular orbits, sowe simplify the specific<strong>at</strong>ion of the orbits to include only three parameters: altitude, inclin<strong>at</strong>ion, <strong>and</strong> longitude, with afourth parameter alpha specifying initial position of the s<strong>at</strong>ellite in the orbit, as described below. Altitude is specifiedin kilometers above the Earth’s surface, <strong>and</strong> inclin<strong>at</strong>ion can range from [0, 180] degrees, with 90 corresponding to purepolar orbits <strong>and</strong> angles gre<strong>at</strong>er than 90 degrees corresponding to “retrograde” orbits. <strong>The</strong> ascending node refers to thepoint where the footprint of the s<strong>at</strong>ellite orbital track crosses the equ<strong>at</strong>or moving from south to north. In this simul<strong>at</strong>ionmodel, the parameter longitude of ascending node specifies the earth-centric longitude <strong>at</strong> which the s<strong>at</strong>ellite’s nadirpoint crosses the equ<strong>at</strong>or moving south to north. 3 Longitude of ascending node can range from [−180, 180] degrees.<strong>The</strong> fourth parameter, alpha, specifies the initial position of the s<strong>at</strong>ellite along this orbit, starting from the ascendingnode. For example, an alpha of 180 degrees indic<strong>at</strong>es th<strong>at</strong> the s<strong>at</strong>ellite is initially above the equ<strong>at</strong>or moving from northto south. Alpha can range from [0, 360] degrees. Finally, a fifth parameter, plane, is specified when cre<strong>at</strong>ing polars<strong>at</strong>ellite nodes– all s<strong>at</strong>ellites in the same plane are given the same plane index. <strong>The</strong> node gener<strong>at</strong>or used to cre<strong>at</strong>e apolar s<strong>at</strong>ellite with an <strong>at</strong>tached position object as follows:$<strong>ns</strong> node-config -s<strong>at</strong>NodeType polar \(other node config comm<strong>and</strong>s go here...)set n1 [$<strong>ns</strong> node]$n1 set-position $alt $inc $lon $alpha $plane17.2.2 S<strong>at</strong>ellite linksS<strong>at</strong>ellite links resemble wireless links, which are described in Chapter 16. Each s<strong>at</strong>ellite node has one or more s<strong>at</strong>ellitenetwork interface stacks, to which channels are connected to the physical layer object in the stack. Figure 17.3 illustr<strong>at</strong>es themajor components. S<strong>at</strong>ellite links differ from <strong>ns</strong> wireless links in two major respects: i) the tra<strong>ns</strong>mit <strong>and</strong> receive interfacesmust be connected to different channels, <strong>and</strong> ii) there is no ARP implement<strong>at</strong>ion. Currently, the Radio Propag<strong>at</strong>ion Model isa placeholder for users to add more detailed error models if so desired; the current code does not use a propag<strong>at</strong>ion model.Network interfaces can be added with the following i<strong>ns</strong>tproc of Class Node/S<strong>at</strong>Node:$node add-interface $type $ll $qtype $qlim $mac $mac_bw $phy3 Traditionally, the “right asce<strong>ns</strong>ion” of the ascending node is specified for s<strong>at</strong>ellite orbits– the right asce<strong>ns</strong>ion corresponds to the celestial longitude. Inour case, we do not care about the orient<strong>at</strong>ion in a celestial coordin<strong>at</strong>e system, so we specify the earth-centric longitude i<strong>ns</strong>tead.174

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

Saved successfully!

Ooh no, something went wrong!