CN105763665A - RTP relay technology-based mobile network NAT (Network Address Translation) traversal system - Google Patents

RTP relay technology-based mobile network NAT (Network Address Translation) traversal system Download PDF

Info

Publication number
CN105763665A
CN105763665A CN201510952455.8A CN201510952455A CN105763665A CN 105763665 A CN105763665 A CN 105763665A CN 201510952455 A CN201510952455 A CN 201510952455A CN 105763665 A CN105763665 A CN 105763665A
Authority
CN
China
Prior art keywords
module
server
rtp
sip
nat
Prior art date
Application number
CN201510952455.8A
Other languages
Chinese (zh)
Inventor
黄仁乐
陈飞
李艺
姜珂
覃华勤
申少辉
王莹煜
张春号
金鑫
郑磊
耿爱国
Original Assignee
国家电网公司
国网北京市电力公司
北京华电天益信息科技有限公司
北京科东电力控制系统有限责任公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 国家电网公司, 国网北京市电力公司, 北京华电天益信息科技有限公司, 北京科东电力控制系统有限责任公司 filed Critical 国家电网公司
Priority to CN201510952455.8A priority Critical patent/CN105763665A/en
Publication of CN105763665A publication Critical patent/CN105763665A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements or network protocols for addressing or naming
    • H04L61/25Network arrangements or network protocols for addressing or naming mapping of addresses of the same type; address translation
    • H04L61/2503Internet protocol [IP] address translation
    • H04L61/256Network address translation [NAT] traversal
    • H04L61/2564Network address translation [NAT] traversal for a higher-layer protocol, e.g. for session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements or network protocols for addressing or naming
    • H04L61/25Network arrangements or network protocols for addressing or naming mapping of addresses of the same type; address translation
    • H04L61/2503Internet protocol [IP] address translation
    • H04L61/256Network address translation [NAT] traversal
    • H04L61/2589Network address translation [NAT] traversal over a relay server, e.g. traversal using relay NAT [TURN]

Abstract

The invention discloses an RTP relay technology-based mobile network NAT (Network Address Translation) traversal method, which is characterized by comprising an RTP relay server module. The RTP relay server module comprises an RRC module and an RRS module, wherein the RRC module expands functions of a proxy server in a SIP (Session Initiation Protocol) Server; the RRS module comprises a dispatcher and one or more transponder MediaProxies. The method of the invention has the beneficial effects that the solution scheme is for traversal of NATs of all types, the existing diverse SIP user terminals and NAT devices do not need to be changed at all, the protocol does not need to be expanded, resources such as the existing SIP protocol stack can be directly used, and the feasibility is strong. Along with expansion of the system scale, the load balance problem can be solved through additionally arranging the MediaProxies and the system reliability is improved.

Description

一种基于RTP中继技术的移动网络NAT穿越系统 One kind of system is based on a mobile network through the relay NAT RTP art

技术领域 FIELD

[0001]本发明涉及一种基于RTP中继技术的移动网络NAT穿越方法,属于数据通信技术领域。 [0001] The present invention relates to a mobile network based on the relay RTP NAT traversal art and belongs to the technical field of data communication.

背景技术 Background technique

[0002]网络地址转换 NAT (NetworkAddre s sTrans I at 1n,NAT)是一个IETF标准,因解决IPv4地址匮乏问题而提出。 [0002] network address translation NAT (NetworkAddre s sTrans I at 1n, NAT) is an IETF standard, because to solve the IPv4 address shortage problem raised. 其基本原理是复用IP地址就是将不能公网路由的私有IP地址转换成公有IP地址从而允许一个整体机构有多台内部主机以一个合法的可全球路由的公有IP地址出现在Internet上。 The basic principle is to convert the complex is not in the public network of private IP addresses into public IP addresses to allow a whole organization with more than one internal host can be a legitimate public IP address appears on the global Internet routing with IP addresses.

[0003] SlP(Sess1nlnitiat1nProtocol)称为会话发起协议,由IETF提出用来建立修改和终止多媒体会话。 [0003] SlP (Sess1nlnitiat1nProtocol) referred to as a session initiation protocol, the IETF proposed to modify and terminate multimedia sessions established. 由于其具有简单性良好的灵活性和可扩展性,SIP已被选定为下一代网络核心控制信令协议。 Because of its simplicity and flexibility, good extensibility, SIP has been chosen as the signaling protocol to control the next generation core network.

[0004] NAT主要应用于网络层,只对IP层和TCP/UDP层的地址和端口进行转换,而SIP是应用层控制协议,SIP消息中内嵌的地址和端口在SIP穿越NAT时并不能被转换,因而造成SIP信令寻址不成功或媒体通道不能建立。 [0004] NAT used at the network layer address and port only IP layer and TCP / UDP conversion layer, the SIP is an application-layer control protocol, SIP message embedded in a SIP address and port NAT traversal not It is converted, resulting in unsuccessful address or SIP signaling media channel can not be established. 而且对于媒体流,由于是基于实时传输协议(RTP)和采用动态分配UDP端口方式,终端用户在实际传输媒体流之前是无法预知对方媒体流的对外端口的。 But also for the media stream, because it is based on real-time transport protocol (RTP) and the use of dynamically allocated UDP port mode, the end user before the actual transmission of the media stream is unpredictable external port of the other media stream. 当终端用户处在对称性NAT之后时,问题变得更加复杂。 When, after the end-user in the symmetry NAT, the problem becomes more complex.

[0005]为解决SIP的NAT穿越问题,业界已提出多种解决方案。 [0005] To solve the SIP NAT traversal problem, the industry has proposed a variety of solutions. 但这些方案都有很大的局限性,且鲜有在移动互联网终端如智能手机上的实现。 But these programs have significant limitations, and rarely in the mobile Internet terminal as realized on the smartphone. 然而目前移动互联网正迅猛发展基于SIP的移动互联网应用也相继大量涌现。 However, the current rapid development of mobile Internet is a SIP-based mobile Internet applications have also large numbers. 因此解决移动互联网环境下SIP穿越NAT的问题就显得迫切需要。 Therefore, to solve the problem of mobile Internet environment SIP NAT traversal becomes an urgent need.

发明内容 SUMMARY

[0006]为解决现有技术的不足,本发明的目的在于提供一种基于RTP中继技术的移动网络NAT穿越方法,在Andr ο id平台下对SIP穿越NAT进行了研究和设计 [0006] To solve the problem of the prior art, an object of the present invention is to provide a method based on a mobile network through the RTP relay NAT technology, the internet in Andr ο id NAT traversal for SIP and studied design

[0007]为了实现上述目标,本发明采用如下的技术方案: [0007] In order to achieve the above object, the present invention adopts the following technical solution:

[0008] 一种基于RTP中继技术的移动网络NAT穿越方法,其特征是,包括RTP中继服务器模块; [0008] A method based on a mobile network through the NAT RTP relay technology, characterized in that the module comprises an RTP relay server;

[0009]所述RTP中继服务器模块包括RRC模块和RRS模块; [0009] The RTP relay module and a server module comprises a RRC module RRS;

[0010]所述RRC模块是对SIP Server中的代理服务器的功能扩展; [0010] The RRC module is a function of the SIP Server Proxy extension;

[0011 ] 所述RRS模块包括一个分发器Dispatcher和一个或多个转发器MediaProxy。 The [0011] RRS Dispatcher module comprises a distributor and one or more transponders MediaProxy.

[0012]前述的一种基于RTP中继技术的移动网络NAT穿越方法,其特征是,所述RRC模块的功能是呼叫信令处理,其中主要负责解析、处理信令中的SDP (携带有RTP/RTCP信息)协议包。 [0012] A through the mobile network based on the NAT RTP relay technology, characterized in that the function call is the RRC signaling processing module, which is mainly responsible for parsing the SDP signaling processing (RTP carries / RTCP information) protocol packet. 其中SIP代理服务器、注册服务器、定位和重定向服务器构成的SIP呼叫控制系统称为SIP Server。 Wherein the SIP proxy server, SIP call control system register server, redirect server, and the positioning is referred to as SIP Server.

[0013]前述的一种基于RTP中继技术的移动网络NAT穿越方法,其特征是,所述分发器Dispatcher,对于某给定会话,确定选择使用哪一个MediaProxy来中继媒体流数据包;所述转发器MediaProxy中继转发会话双方的媒体流数据包,MediaProxy可以独立于Dispatcher运行在另一机器上。 [0013] The foregoing method of NAT traversal in a mobile network based on relay technology RTP, characterized in that said dispenser Dispatcher, for a given session, it is determined to select which MediaProxy relaying media data packet stream; the said repeater relaying session MediaProxy both media stream packets, MediaProxy Dispatcher runs independently of on another machine.

[0014]本发明所达到的有益效果:解决方案针对穿越所有类型的NAT,无需对现已存在的多样的SIP用户终端和NAT设备做任何改动,而且不用对协议进行扩展,可以直接利用现有SIP协议栈等资源,因而具有很强的可行性。 [0014] The present invention to achieve advantageous effects: solution for all types of NAT traversal, without the need for multiple SIP user terminals and NAT devices are now present to make any changes, but do not extend to the agreement, direct use of existing SIP protocol stack and other resources, which has a strong feasibility. 随着系统规模的扩大,可以通过增设MediaProxy来解决负载平衡问题和提高系统的可靠性。 With the expansion of the scale of the system, load balancing can solve problems and improve system reliability by adding MediaProxy.

附图说明 BRIEF DESCRIPTION

[0015]图1是本发明的RTP中继服务器体系结构示意图。 [0015] FIG. 1 is a schematic view of the relay RTP server architecture of the present invention.

具体实施方式 Detailed ways

[0016]下面结合附图对本发明作进一步描述。 [0016] The following drawings in conjunction with the present invention will be further described. 以下实施例仅用于更加清楚地说明本发明的技术方案,而不能以此来限制本发明的保护范围。 The following examples serve only to more clearly illustrate the technical solutions of the present invention, and are not intended to limit the scope of the invention.

[0017]本系统提出了一种采用SIP和RTP中继服务器协同工作的解决方案并根据移动互联网环境的特点设计中继服务器的体系机构,最终实现了SIP信令流和媒体流在移动网络中的NAT穿越。 [0017] The present system proposes a relay server using SIP and RTP solutions work together and design system server mechanism according to the characteristics of the relay mobile Internet environment, and ultimately the SIP signaling and media streams flow in the mobile network NAT traversal.

[0018]具体结构如图1所示,包括RRC模块和RRS模块。 [0018] The specific configuration shown in Figure 1, comprises a RRC module and a module RRS.

[0019]其中,RRC模块是SIP代理服务器的功能扩展模块。 [0019] wherein, RRC module is a SIP proxy server function expansion module. 为了不影响代理服务器的其它处理过程,将此部分设计成模块形式。 In order not to affect other processes proxy server, this part of the design as a modular form. RRC的主要功能是: The main function of RRC are:

[0020] •判断会话是否需要媒体中继 [0020] • determine whether the media session relay

[0021 ] •修改会话建立过程中的信令部分,使得通信双方的媒体流均经过RRS中继 [0021] • modify the session setup signaling process part, so that the communication through both media stream relay RRS

[0022] •定期地向SIPUA发送Keep-Alive数据包,保证NAT映射有效。 [0022] • Keep-Alive periodically transmitted data packet to SIPUA, to ensure effective NAT mappings.

[0023] RRS模块的设计目的在于使处于不同区域的用户媒体流可以选择经过不同的服务器中继转发,甚至一个大区域的不同用户,其媒体流也可以选择经过不同的服务器中继转发。 [0023] RRS module is designed so that the user of the media stream in different regions may be selected through different relaying servers, different users or even a large area, which can also select the media stream through a different server relaying. RRS模块包括一个分发器Dispatcher和一个或多个转发器MediaPrοxy。 RRS Dispatcher module includes a distributor and one or more transponders MediaPrοxy. 分发器Dispatcher,对于某给定会话,确定选择使用哪一个MediaProxy来中继媒体流数据包;转发器MediaProxy中继转发会话双方的媒体流数据包。 Distributor Dispatcher, for a given session, determines which media relay to a MediaProxy using stream packets; forwarder MediaProxy both relaying session media stream packets.

[0024]下面构建一个测试平台网络来进行实际的攻击实验。 [0024] The following test platform to build a network to carry out the actual attack experiments. 测试平台以Android操作系统为平台,RTP中继服务器和SIP代理服务器须位于公网,它们之间通过自定义的内部协议通信。 Test platform Android operating system platform, the RTP relay server and the SIP proxy server must be located in the public network, custom internal protocol for communication therebetween.

[0025]实验结果表明RTP中继服务器系统可以有效地解决SIP的NAT穿越问题。 [0025] The results show that RTP relay server SIP systems can effectively solve the NAT traversal problem.

Claims (2)

1.一种基于RTP中继技术的移动网络NAT穿越系统,包括一RTP中继服务器模块;所述RTP中继服务器模块包括RRC模块和RRS模块; 所述RRC模块是对SIP Server中的代理服务器的功能扩展;其中SIP代理服务器、注册服务器、定位和重定向服务器构成的SIP呼叫控制系统称为SIP Server;所述RRC模块的功能是呼叫信令处理,主要负责解析、处理信令中的SDP(携带有RTP/RTCP信息)协议包; 所述RRS模块包括一个分发器Dispatcher和一个或多个转发器MediaProxy;所述分发器Dispatcher对于某给定会话,确定选择使用哪一个MediaProxy来中继媒体流数据包;所述转发器MediaProxy中继转发会话双方的媒体流数据包。 A mobile network based on the NAT traversal RTP relay technology, comprising a RTP relay server module; RTP relay server module comprises a RRC module and a module RRS; the RRC module is a SIP Server proxy server function expansion; wherein the SIP proxy server, SIP call control system registration server, and the positioning is referred to as redirect server SIP server; RRC function of the call signaling processing module is mainly responsible for parsing the SDP signaling process (carries RTP / RTCP information) protocol packet; the RRS Dispatcher module comprises a distributor and one or more transponders MediaProxy; Dispatcher said distributor for a given session, determining a MediaProxy to choose which media relay stream packet; said repeater relaying session MediaProxy both media stream packets.
2.根据权利要求1所述的一种基于RTP中继技术的移动网络NAT穿越系统,其特征在于:所述MediaPr oxy独立于Dispatcher运行在另一机器上。 According to one of the claims 1 through a mobile network NAT RTP system based on relay technology, wherein: said independent MediaPr oxy Dispatcher running on another machine.
CN201510952455.8A 2015-12-17 2015-12-17 RTP relay technology-based mobile network NAT (Network Address Translation) traversal system CN105763665A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510952455.8A CN105763665A (en) 2015-12-17 2015-12-17 RTP relay technology-based mobile network NAT (Network Address Translation) traversal system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510952455.8A CN105763665A (en) 2015-12-17 2015-12-17 RTP relay technology-based mobile network NAT (Network Address Translation) traversal system

Publications (1)

Publication Number Publication Date
CN105763665A true CN105763665A (en) 2016-07-13

Family

ID=56342135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510952455.8A CN105763665A (en) 2015-12-17 2015-12-17 RTP relay technology-based mobile network NAT (Network Address Translation) traversal system

Country Status (1)

Country Link
CN (1) CN105763665A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110279634A1 (en) * 2010-05-12 2011-11-17 Alagu Periyannan Systems and methods for real-time multimedia communications across multiple standards and proprietary devices
CN103313332A (en) * 2012-03-13 2013-09-18 中国电信股份有限公司 Mobile equipment based on Android system and method thereof for realizing switch in different networks based on BP
CN103313319A (en) * 2012-03-09 2013-09-18 中国电信股份有限公司 Different-network switching method and terminal based on AP (application processor) in Android system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110279634A1 (en) * 2010-05-12 2011-11-17 Alagu Periyannan Systems and methods for real-time multimedia communications across multiple standards and proprietary devices
CN103313319A (en) * 2012-03-09 2013-09-18 中国电信股份有限公司 Different-network switching method and terminal based on AP (application processor) in Android system
CN103313332A (en) * 2012-03-13 2013-09-18 中国电信股份有限公司 Mobile equipment based on Android system and method thereof for realizing switch in different networks based on BP

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张伟,李贯中,雷为民: "针对SIP/NAT问题的RTP中继服务器设计与实现", 《小型微型计算机系统》 *

Similar Documents

Publication Publication Date Title
US8130766B2 (en) System and method for implementing multimedia calls across a private network boundary
US8484359B2 (en) Providing telephony services to terminals behind a firewall and/or a network address translator
US7787459B2 (en) Method and system for implementing traversal through network address translation
US20040246991A1 (en) IP address translator and packet transfer apparatus
US20050066038A1 (en) Session control system, communication terminal and servers
US7684397B2 (en) Symmetric network address translation system using STUN technique and method for implementing the same
US7272650B2 (en) Communication protocols operable through network address translation (NAT) type devices
JP4660624B2 (en) ip network interconnection systems, interconnection method and sip message routing method using different ip address systems to each other
TW494301B (en) Network address translation gateway for local area networks using local IP addresses and non-translatable port addresses
US7720976B2 (en) Peer-to-peer communication between different types of internet hosts
KR20040091086A (en) Method and apparatus for processing internet protocol transmissions
JP2014241641A (en) Session initiation protocol adaptor
US8082324B2 (en) Method of establishing a tunnel between network terminal devices passing through firewall
JP2002176432A (en) Communication relay system, communication relay method, and communication terminal, and program storage medium
KR100511479B1 (en) SIP service method in network with NAT
JP5537349B2 (en) Method and system for changing the sip server while keeping the connection of the terminal
EP2805476B1 (en) Ice based nat traversal
AU2005201075B2 (en) Apparatus and method for voice processing of voice over internet protocol (VOIP)
WO2005041491A1 (en) Method of implementing multimedia protocol passing through network address transform device
US20050185672A1 (en) IPv6/IPv4 translator
CN1633100A (en) Method of multimedia service NAT traversing and system thereof
CN101369959A (en) Network address conversion traversing method supporting point-to-point service
TWI267293B (en) Multimedia conference system and method which enables communication between private network and Internet
US10097590B2 (en) Call processing method and control apparatus, automatic call distribution apparatus, and agent terminal
EP2409482B1 (en) Access node comprising voip cards with common ip/mac addresses

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination