《计算机应用》唯一官方网站

• •    下一篇

无损的NMEA电文安全编码方案

杜志强1,白鑫雨2   

  1. 1. 武汉大学测绘遥感信息工程全国重点实验室
    2. 武汉大学国家网络安全学院
  • 收稿日期:2025-10-20 修回日期:2026-01-17 发布日期:2026-02-05 出版日期:2026-02-05
  • 通讯作者: 白鑫雨
  • 基金资助:
    综合减灾知识图谱构建方法研究

Lossless NMEA message security encoding scheme

  • Received:2025-10-20 Revised:2026-01-17 Online:2026-02-05 Published:2026-02-05
  • Supported by:
    Research on Construction of Comprehensive Disaster Reduction Knowledge Graph

摘要: 全球卫星导航系统(GNSS)已经成为人们日常生活、社会资源管理和国家战略指导中的重要基础设施,其中NMEA 0183 标准协议被广泛应用于传输相关信息。为减少 NMEA 电文明文传输地理位置信息所带来的各类安全风险,通过分析提出了一种依靠 NMEA 电文格式特征对自身进行的无损安全编码方案。首先,通过异或、置换等常见密码学手段将易读的电文内容转化为不可读的字符码串,隐去部分明显的 NMEA 电文格式标识符。接下来,通过在比特层级上的合并、分割等操作将数据彻底模糊去特征化,也将数据字符类型收缩到了较少的数量;最后,利用二叉哈弗曼树编码原理,对前两步处理形成的较大数据量进行压缩,保证不引入过多的收发负载。结果表明,格式规整的原始 NMEA 电文被转换为了具有有限字符类型的无意义数据流,可以有效应对一定程度的篡改重放攻击;同时通过数据压缩方案保证编码后的数据量在可接受范围内。

关键词: NMEA 0183 协议, 安全编码, 无损编码, 卫星报文, 哈夫曼编码

Abstract: The Global Navigation Satellite System (GNSS) has become a vital infrastructure for daily life, social resource management, and national strategic guidance. The NMEA 0183 standard protocol is widely used to transmit relevant information. To mitigate the various security risks associated with the transmission of plaintext geographic location information via NMEA messages, a lossless security encoding scheme leveraging the NMEA message format characteristics was proposed. Firstly, the readable message content was converted into an unreadable character string through common cryptographic techniques such as XOR and permutation, obscuring some obvious NMEA message format identifiers. Secondly, the data was completely obfuscated and de-characterized through bit-level merging and splitting operations, reducing the number of data character types to a smaller number. Finally, the binaryHuffman tree encoding principle was used to compress the large data volume generated by the first two steps, ensuring that no excessive transceiver load was introduced. Experimental results demonstrate that the standardized original NMEA messages are successfully converted into meaningless data streams with constrained character types, effectively resisting intermediate tampering and replay attacks. Furthermore, the data compression scheme ensures that the encoded data volume remains within an acceptable range.

Key words: NMEA 0183 protocol, Security coding, Lossless coding, Satellite message, Huffman coding

中图分类号: