- 1、本文档共11页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
卫星ns2学习
Elevation mask 卫星仰角latitude and longitude 经纬度 NS2卫星网络仿真的核心代码在ns-2.34/satellite文件夹下,包sathandoff,satroute,satlink,satnode等源文件分别用来模拟卫星链路切换、卫星路由、卫星链路、卫星节点等。由于卫星的移动性,不同轨道间的卫星间或者是地面站与卫星间为了保证能够正常通信需要经常进行链路切换(找到一颗位置上更加合适的卫星连接上),sathandoff就是负责这部分的工作,其中包括termhandoff以及sathandoff两个主要的函数分别包含了地面站和卫星的切换机制。每颗卫星都包含一个sathandoff的实例,切换是由链路检测切换时间来控制的,在tcl脚本中配置好链路切换检测的周期,每颗卫星或地面站就会周期性地调用sathandoff或者termhandoff函数检测并切换链路(需要切换时)。 satlink类负责多种链路的定义包括星地链路、轨道内链路、轨道间链路,为了仿真双层卫星网络,我们定义了自己的链路类型:层间链路,实现高低层卫星间的通信。? Position/Sat/Term A terminal is specified by its latitude and longitude. Latitude ranges from [?90, 90] andlongitude ranges from [?180, 180]$ns node-config -satNodeType terminal \(other node config commands go here...)set n1 [$ns node]$n1 set-position $lat $lon; # in decimal degrees? Position/Sat/Polar$ns node-config -satNodeType polar \(other node config commands go here...)set n1 [$ns node]$n1 set-position $alt $inc $lon $alpha $planeSatellite links differ from ns wireless links in two major respects:i) the transmit and receive interfaces must be connected to different channels,ii) there is no ARP implementation.Currently, the Radio Propagation Model is a placeholder for users to add more detailed error models if so desired; the current code does not use a propagation model.$node add-interface $type $ll $qtype $qlim $mac $mac_bw $phy? type: The following link types can be indicated: geo or polar for links from a terminal to a geo or polar satellite, respectively, gsl and gsl-repeater for links from a satellite to a terminal, and intraplane, interplane, and crossseam ISLs. The type field is used internally in the simulator to identify the different types of links, but structurally they are all very similar.? mac: The MAC type. Currently, two types are defined: class Mac/Sat– a basic MAC for links with only one receiver (i.e., it does not do collision detection), and Class Mac/Sat/UnslottedAloha– an implementation of unslotted Aloha.? mac_bw: The bandwidth of the link is set
文档评论(0)