• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2007, Vol. 29 ›› Issue (8): 102-104.

• 论文 • 上一篇    下一篇

一种SIP穿越NAT方案的设计与实现

熊建强 黄佳庆 熊志强 程赓   

  • 出版日期:2007-08-01 发布日期:2010-06-02

  • Online:2007-08-01 Published:2010-06-02

摘要:

本文从基于SIP协议的VoIP及其他IP多媒体应用系统难以穿越NAT的问题出发,提出了一种基于STUN方式的解决方案,并详细介绍了其实现过程。该方案不需要扩展相关协议, 不需要对NAT设备进行改造或升级,可以工作在多级NAT串联的环境下,而且可以使外网用户主动呼叫内网用户建立连接。该方案目前已成功应用于我们开发的基于嵌入式Linuux平台的无线VoIP网关中,并可推广到其他基于SIP协议的终端上。

关键词: 基于IP的语音 会话初始化协议 网络地址翻译 UDP对NAT的简单穿越

Abstract:

The SIP protocol based VolP and other IP multimedia application systems face challenges in traversing the Network Address Translator (NAT). In this paper, we propose a STUN based solution to solving the problem. The implementation and performance evaluation of the solution are presented. The solution does not require the modification and extension of related protocols and NAT devices. It can work through NATs tandem. With this solution, users can successfully initiate a call to connect other users behind NAT. This solution has been adopted successfully in the wireless VolP Gateway based on the emb edded Linux platform, and it also can be applied to other SIP protocol based terminals.

Key words: (VoIP, SIP, NAT, STUN)