# 地理路由

地理路由是一种用于无线网络与传感器网络的数据包转发技术，其中每个节点利用物理位置而非查询全局路由表来转发数据包。其可扩展性建立在状态之上：每台路由器维护的状态与其局部密度成正比，即 \( O(D) \)，其中 \( D \) 为邻居数量，而非最短路径路由所需的 \( O(N) \) 或 \( O(L) \)——此处 \( N \) 为节点总数、\( L \) 为链路总数。<sup>[1](http://www0.cs.ucl.ac.uk/staff/b.karp/gz06/s2013/lectures/gz06-lecture05-gpsr.pdf)</sup> 仅维护局部拓扑状态，使得每台路由器的状态量在网络目的节点数量增长时仍保持有界，而最短路径路由与自组网路由协议则做不到这一点。<sup>[2](https://dl.acm.org/doi/10.1145/345910.345953)</sup> 该技术要求每个节点知晓自身位置、单跳邻居的位置以及目的节点的位置，后者通过位置服务获得。<sup>[3](https://archive.cone.informatik.uni-freiburg.de/people/ruehrup/georouting-chapter-draft.pdf)</sup>

| 属性 | 取值 |
|---|---|
| 贪婪下一跳规则 | 转发给地理上距目的节点最近的邻居<sup>[4](http://www0.cs.ucl.ac.uk/staff/b.karp/gpsr-thesis2000.pdf)</sup> |
| 空洞恢复 | 对平面化后的 RNG 或 GG 子图按右手定则遍历；当比周边入口点更近时返回贪婪模式<sup>[2](https://dl.acm.org/doi/10.1145/345910.345953)</sup> |
| 位置传播 | 周期性单跳信标，平均间隔为 \( B \)，抖动为 \( B \) 的 50%；邻居超时为 \( 4.5 \cdot B \)；12 字节位置信息搭载于数据包上<sup>[4](http://www0.cs.ucl.ac.uk/staff/b.karp/gpsr-thesis2000.pdf)</sup> |
| 每路由器状态 | \( O(D) \)，对比 \( O(N) \) 或 \( O(L) \)<sup>[1](http://www0.cs.ucl.ac.uk/staff/b.karp/gz06/s2013/lectures/gz06-lecture05-gpsr.pdf)</sup> |
| 报告的投递率 | 据一项综述，在 50 节点 ns-2 网络上超过 94%<sup>[5](https://www.comp.nus.edu.sg/~bleong/geographic/related/giordano04position-routing-survey.pdf)</sup>；原始 DSR 对比中超过 97%<sup>[6](https://www.ceid.upatras.gr/webpages/courses/sensornets/files/Geographic_routing_and_obstacles_2021.pdf)</sup>；在真实测试床上超过 30% 的节点对永久断开<sup>[7](https://doi.org/10.5555/1251203.1251219)</sup> |
| 起源 | Finn 的贪婪方案，1987 年；Bose 等人的 GFG，1999 年；Brad Karp 与 H. T. Kung 的 GPSR，MobiCom 2000<sup>[8](https://doi.org/10.21236/ada180187)</sup> |
| CLDP 路径拉伸 | 平均在 2 到略高于 4 之间<sup>[7](https://doi.org/10.5555/1251203.1251219)</sup> |

## 工作原理

**贪婪转发。** 数据包的发起节点在包上标记目的节点的位置。在每个中间节点，贪婪规则在该节点的邻居中选择地理上距目的节点最近的一个，转发在逐次更近的地理跳中重复，直至到达目的节点。<sup>[4](http://www0.cs.ucl.ac.uk/staff/b.karp/gpsr-thesis2000.pdf)</sup>

**空洞。** 贪婪转发在局部极小值处停滞，即空洞——此时节点的无线电圆与以目的节点为圆心、以二者间距为半径的圆的交集内没有传感器。若图足够稠密，使每个内部节点在每 \( 2\pi/3 \) 角度扇区内都有邻居，则贪婪转发总能成功。<sup>[6](https://www.ceid.upatras.gr/webpages/courses/sensornets/files/Geographic_routing_and_obstacles_2021.pdf)</sup>

**平面化与周边模式。** GPSR 利用相对邻域图（Toussaint，1980）和加百利图对邻居图进行平面化，二者均可仅凭邻居位置构建，且在单位图假设下可证明不会分割图。<sup>[1](http://www0.cs.ucl.ac.uk/staff/b.karp/gz06/s2013/lectures/gz06-lecture05-gpsr.pdf)</sup> 相对邻域图保留边 \( (u,v) \)，当且仅当对任意其他节点 \( w \) 有 \( d(u,v) \le \max[d(u,w), d(v,w)] \)，且相对邻域图是加百利图的子集。<sup>[6](https://www.ceid.upatras.gr/webpages/courses/sensornets/files/Geographic_routing_and_obstacles_2021.pdf)</sup> 在周边模式中，数据包按右手定则遍历平面子图的面；当到达一个距目的节点的距离小于周边入口点 \( L_{p} \) 到目的节点的距离的节点时，返回贪婪模式；当第二次遍历某个面的第一条边时，GPSR 丢弃该数据包，因为目的节点不可达。<sup>[2](https://dl.acm.org/doi/10.1145/345910.345953)</sup>

## 实现方式

**信标机制。** 每个节点周期性单跳广播其位置。每个信标的发送在信标间隔 \( B \) 的 50% 范围内抖动，因此平均信标间隔为 \( B \)，均匀分布在 \( [0.5 \cdot B, 1.5 \cdot B] \) 内；邻居在超时 \( T = 4.5 \cdot B \) 后被删除。<sup>[4](http://www0.cs.ucl.ac.uk/staff/b.karp/gpsr-thesis2000.pdf)</sup> 每个数据包还携带发送方位置的十二字节信息，而无线信道的混杂接收使所有监听到的数据包都可充当信标。<sup>[4](http://www0.cs.ucl.ac.uk/staff/b.karp/gpsr-thesis2000.pdf)</sup> 在完整的 GPSR 中，所有数据包以贪婪模式开始，仅在贪婪失败时进入周边模式。<sup>[1](http://www0.cs.ucl.ac.uk/staff/b.karp/gz06/s2013/lectures/gz06-lecture05-gpsr.pdf)</sup>

**链路断裂。** 由于贪婪转发偏好距目的节点最近的邻居，选中的下一跳位于发送方传输范围的边缘附近，极有可能离开该范围，即邻居无线链路断裂（NWLB）问题；在低网络密度下平均路由长度约为 \( (2/3) \cdot R \)，其中 \( R \) 为传输范围半径，在高密度下趋近 \( R \)，使高密度路由更不稳定。<sup>[9](https://jwcn-eurasipjournals.springeropen.com/articles/10.1186/1687-1499-2012-171)</sup>

## 起源

最早的地理路由方法于 1980 年代为分组无线和有线网络开发。<sup>[3](https://archive.cone.informatik.uni-freiburg.de/people/ruehrup/georouting-chapter-draft.pdf)</sup> 1987 年，Finn 提出贪婪方案作为随机推进方法的变体，允许任何朝数据包目的节点推进的节点作为后继，当没有更近的邻居时以 n 跳邻居泛洪作为恢复手段。<sup>[5](https://www.comp.nus.edu.sg/~bleong/geographic/related/giordano04position-routing-survey.pdf)</sup>

Bose 等人于 1999 年将贪婪转发与平面子图上的面路由结合为贪婪-面-贪婪（GFG）算法，<sup>[3](https://archive.cone.informatik.uni-freiburg.de/people/ruehrup/georouting-chapter-draft.pdf)</sup> 贪婪路由与周边路由相结合，只要存在路径即可保证投递。<sup>[10](https://graphics.stanford.edu/courses/cs321/Private/Readings/jgao_routing.pdf)</sup> GPSR 由 Brad Karp 和 [H. T. Kung](https://www.edgepedia.org/zh/h-t-kung) 于 2000 年在 MobiCom 上报告，是 GFG 的变体，包含 [IEEE 802.11](https://www.edgepedia.org/zh/ieee-802-11) 介质访问控制方案。<sup>[2](https://dl.acm.org/doi/10.1145/345910.345953)</sup><sup> • </sup><sup>[5](https://www.comp.nus.edu.sg/~bleong/geographic/related/giordano04position-routing-survey.pdf)</sup> 后来的改进针对最坏情况效率和真实无线电：GOAFR+（Kuhn 等人，2003 年）将贪婪与面路由结合，带有提前回退和自适应调整的包围区域，在有界度单位圆盘图上以最优路径的 \( O(c^{2} \cdot (p^{*})) \) 代价到达目的节点，渐近最坏情况最优，并在约每单位圆盘 4.71 个节点的临界密度附近优于 GPSR。<sup>[11](http://graphics.stanford.edu/courses/cs321-05-fall/Readings/GOAFR.pdf)</sup> CLDP（Kim 等人，2005 年）在真实无线电条件下修复平面化。<sup>[7](https://doi.org/10.5555/1251203.1251219)</sup>

## 变体

**定向泛洪。** DREAM 将消息转发给位于包含预期目标区域的锥形范围内的所有邻居，<sup>[3](https://archive.cone.informatik.uni-freiburg.de/people/ruehrup/georouting-chapter-draft.pdf)</sup> 而 LAR 仅在由源和目的位置导出的有限区域内广播。<sup>[12](https://www.mdpi.com/2504-446X/7/6/387)</sup> GPCR 利用街道——网络节点所在之处——构成自然平面图这一事实，以交叉口节点作为协调者。<sup>[3](https://archive.cone.informatik.uni-freiburg.de/people/ruehrup/georouting-chapter-draft.pdf)</sup>

**地标、虚拟坐标与基于树的设计。** 信标向量路由（BVR）使用依赖于到距目的节点最近的 \( k \) 个地标距离的势函数，当贪婪路由受阻时在地标处回退到受限泛洪。<sup>[10](https://graphics.stanford.edu/courses/cs321/Private/Readings/jgao_routing.pdf)</sup> 虚拟坐标路由根据局部连通性分配坐标并在其上运行标准贪婪路由，无需真实位置；在 3200 节点仿真中，一次松弛迭代后成功率为 0.992，在存在障碍物时显著优于使用真实坐标的贪婪路由。<sup>[13](https://people.eecs.berkeley.edu/~sylvia/papers/p327-rao.pdf)</sup> 贪婪分布式生成树路由（GDSTR）避免平面化，对位置误差鲁棒，且不要求均匀的无线电范围。<sup>[14](https://www.csit.carleton.ca/~msthilaire/Tech_Report/2011-GRPreport.pdf)</sup>

**无信标运行。** BLR（Heissenbüttel 等人，2004 年，Computer Communications）从移动自组网路由中移除周期性信标；<sup>[15](https://doi.org/10.1016/j.comcom.2004.01.012)</sup> 相关的基于竞争的变体包括无信标转发器平面化（BFP）和角度中继。<sup>[3](https://archive.cone.informatik.uni-freiburg.de/people/ruehrup/georouting-chapter-draft.pdf)</sup>

**学习辅助路由。** QGeo（Jung、Yim 和 Ko，2017 年）将 Q 学习与地理推进相结合用于无人机器人网络，<sup>[16](https://doi.org/10.1109/lcomm.2017.2656879)</sup> K-MORP（Saifullah 等人，2023 年，Ad Hoc Networks）将 K 均值在线学习应用于无人机自组网。<sup>[17](https://doi.org/10.1016/j.adhoc.2023.103354)</sup>

## 应用

传感器网络是主要场景：在地理哈希表（GHT）中，数据按数据类型哈希到地理位置。<sup>[10](https://graphics.stanford.edu/courses/cs321/Private/Readings/jgao_routing.pdf)</sup> 在 FleetNet 车辆项目中，配备 GPS、WLAN 收发器和 Linux 路由器的汽车运行 GPSR 作为路由协议，目标位置通过泛洪请求以反应式方式获得。<sup>[3](https://archive.cone.informatik.uni-freiburg.de/people/ruehrup/georouting-chapter-draft.pdf)</sup> 车辆场景的结果好坏参半：在 ns-2.34 VANET 仿真中，普通 GPSR 的数据包投递率不超过 58%，而 OP-GPSR 变体使用多准则代价函数达到 80-90% 的投递率，且产生的路由开销比 GPSR 少约 70%。<sup>[18](https://www.scielo.org.mx/article_plus.php?lng=en&pid=S1405-55462025000100461&tlng=en)</sup>

## 局限与替代方案

**真实无线电。** 面路由可在任何平面图上保证投递；理想化的单位圆盘图假设关乎用于获得平面子图的常见局部平面化算法的正确性，而真实无线电违反该假设，导致三种平面化病症：所需链路被移除（平面子图被分割）、两个端点对链路归属意见不一（单向链路）、或交叉链路残留（交叉链路）。<sup>[19](https://www.comp.nus.edu.sg/~bleong/geographic/related/kim05pitfalls.pdf)</sup><sup> • </sup><sup>[21](https://publications.csail.mit.edu/abstracts/abstracts06/benleong/benleong.html)</sup> 后果严重：GPSR 在一个测试床实验中使超过 30% 的节点对永久断开，在另一实验中超过 10%，平面化失败使真实测试床上的投递率降至约 68%。<sup>[7](https://doi.org/10.5555/1251203.1251219)</sup><sup> • </sup><sup>[10](https://graphics.stanford.edu/courses/cs321/Private/Readings/jgao_routing.pdf)</sup> CLDP 探测面并仅在不会使子图断开时消除交叉链路，在 200 节点、障碍物数量与节点相当的仿真中，在所有评估的节点密度下实现完美投递；其平均拉伸在 2 到略高于 4 之间。<sup>[7](https://doi.org/10.5555/1251203.1251219)</sup> CLDP 被批评为复杂且代价高，这促成了 GDSTR 的诞生。<sup>[14](https://www.csit.carleton.ca/~msthilaire/Tech_Report/2011-GRPreport.pdf)</sup>

**位置精度与三维。** 贪婪转发几乎不受低于 25% 的中等定位误差影响，但面路由等恢复策略依赖需要精确邻居位置的几何准则。<sup>[3](https://archive.cone.informatik.uni-freiburg.de/people/ruehrup/georouting-chapter-draft.pdf)</sup> 即使对现有最佳方案，假设无线电范围的 1-10% 定位误差也是合理的，而 10% 的误差可导致 GHT 中超过 10% 的传感器网络事件存储失败。<sup>[19](https://www.comp.nus.edu.sg/~bleong/geographic/related/kim05pitfalls.pdf)</sup> 在三维网络中，平面化和面遍历不适用，Durocher 等人证明不存在能保证消息投递的三维网络确定性局部路由算法。<sup>[14](https://www.csit.carleton.ca/~msthilaire/Tech_Report/2011-GRPreport.pdf)</sup>

**仿真数据与替代方案。** 报告的投递率因设置而异：一项综述报告 GPSR 在 50 节点网络上始终投递超过 94% 的数据包，<sup>[5](https://www.comp.nus.edu.sg/~bleong/geographic/related/giordano04position-routing-survey.pdf)</sup> 而原始论文 DSR 对比的记述给出超过 97% 成功投递；<sup>[6](https://www.ceid.upatras.gr/webpages/courses/sensornets/files/Geographic_routing_and_obstacles_2021.pdf)</sup> 二者均来自理想化仿真器，与上述测试床失败形成对照。在超过 50 个节点的网络上，GPSR 比 DSR 成功投递更多数据包且路由协议开销更低。<sup>[20](http://pdos.csail.mit.edu/papers/grid:mobicom00/paper.ps)</sup>

## References

1. [GPSR lecture slides (Karp, UCL gz06)](http://www0.cs.ucl.ac.uk/staff/b.karp/gz06/s2013/lectures/gz06-lecture05-gpsr.pdf)
2. [GPSR: Greedy Perimeter Stateless Routing for Wireless Networks (Karp & Kung, MobiCom 2000)](https://dl.acm.org/doi/10.1145/345910.345953)
3. [Theory and Practice of Geographic Routing (Rührup, book chapter)](https://archive.cone.informatik.uni-freiburg.de/people/ruehrup/georouting-chapter-draft.pdf)
4. [Geographic Routing for Wireless Networks (Brad Karp PhD dissertation, Harvard, 2000; merged mirror copies at comp.nus.edu.sg/~bleong/geographic/related/karp00geographic.pdf and cs.ucl.ac.uk/staff/B.Karp/gpsr-thesis2000.pdf)](http://www0.cs.ucl.ac.uk/staff/b.karp/gpsr-thesis2000.pdf)
5. [Position Based Routing Algorithms for Ad Hoc Networks: A Taxonomy (Giordano et al. survey)](https://www.comp.nus.edu.sg/~bleong/geographic/related/giordano04position-routing-survey.pdf)
6. [Lecture 8: Geographic routing and obstacle avoidance (Algorithmic Foundations of Sensor Networks, Univ. of Patras)](https://www.ceid.upatras.gr/webpages/courses/sensornets/files/Geographic_routing_and_obstacles_2021.pdf)
7. [Young-Jin Kim and colleagues (2005). Geographic routing made practical. .](https://doi.org/10.5555/1251203.1251219)
8. [Gregory G. Finn (1987). Routing and Addressing Problems in Large Metropolitan-Scale Internetworks. .](https://doi.org/10.21236/ada180187)
9. [Effect of network parameters on neighbor wireless link breaks in GPSR protocol and enhancement using mobility prediction model (EURASIP JWCN)](https://jwcn-eurasipjournals.springeropen.com/articles/10.1186/1687-1499-2012-171)
10. [Geometric Routing in Wireless Sensor Networks (survey chapter, Gao)](https://graphics.stanford.edu/courses/cs321/Private/Readings/jgao_routing.pdf)
11. [Geometric Ad-Hoc Routing: Of Theory and Practice (Kuhn, Wattenhofer, Zollinger, GOAFR+)](http://graphics.stanford.edu/courses/cs321-05-fall/Readings/GOAFR.pdf)
12. [Empowering Adaptive Geolocation-Based Routing for UAV Networks with Reinforcement Learning (AGLAN, Drones)](https://www.mdpi.com/2504-446X/7/6/387)
13. [Geographic Routing without Location Information (Rao et al., MobiCom 2003)](https://people.eecs.berkeley.edu/~sylvia/papers/p327-rao.pdf)
14. [A Survey on Geographic Routing Protocols for Mobile Ad Hoc Networks (Carleton technical report)](https://www.csit.carleton.ca/~msthilaire/Tech_Report/2011-GRPreport.pdf)
15. [Marc Heissenbüttel and colleagues (2004). BLR: beacon-less routing algorithm for mobile ad hoc networks. Computer Communications.](https://doi.org/10.1016/j.comcom.2004.01.012)
16. [Woo-Sung Jung, Jinhyuk Yim, Young-Bae Ko (2017). QGeo: Q-Learning-Based Geographic Ad Hoc Routing Protocol for Unmanned Robotic Networks. IEEE Communications Letters.](https://doi.org/10.1109/lcomm.2017.2656879)
17. [Saifullah and colleagues (2023). K-means online-learning routing protocol (K-MORP) for unmanned aerial vehicles (UAV) adhoc networks. Ad Hoc Networks.](https://doi.org/10.1016/j.adhoc.2023.103354)
18. [Efficient Geographic Routing for Ad Hoc Vehicle Networks (OP-GPSR, Computación y Sistemas 2025)](https://www.scielo.org.mx/article_plus.php?lng=en&pid=S1405-55462025000100461&tlng=en)
19. [On the Pitfalls of Geographic Face Routing (Kim et al., SenSys 2005; merged journal version Seada et al., Ad Hoc Networks 2007, cise.ufl.edu/~helmy/papers/Seada_2007_Ad-Hoc-Networks.pdf, and ucl geopitfalls-dialmpomc2005.pdf)](https://www.comp.nus.edu.sg/~bleong/geographic/related/kim05pitfalls.pdf)
20. [Grid: Locationless Routing with GLS (Li et al., MobiCom 2000), related work](http://pdos.csail.mit.edu/papers/grid:mobicom00/paper.ps)
21. [MIT CSAIL Research Abstracts](https://publications.csail.mit.edu/abstracts/abstracts06/benleong/benleong.html)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Networking fundamentals and architecture › Routing and addressing › Routing theory and algorithms

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/geographic-routing

English original: https://www.edgepedia.org/geographic-routing
