CN102420835A - Method for realizing real-time transport protocol (RTP) media stream agent in unified communication system - Google Patents

Method for realizing real-time transport protocol (RTP) media stream agent in unified communication system Download PDF

Info

Publication number
CN102420835A
CN102420835A CN2012100066758A CN201210006675A CN102420835A CN 102420835 A CN102420835 A CN 102420835A CN 2012100066758 A CN2012100066758 A CN 2012100066758A CN 201210006675 A CN201210006675 A CN 201210006675A CN 102420835 A CN102420835 A CN 102420835A
Authority
CN
China
Prior art keywords
transceiver
media data
data packet
rtp
network address
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN2012100066758A
Other languages
Chinese (zh)
Other versions
CN102420835B (en
Inventor
吴天勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Jiami Technology Co., Ltd.
Original Assignee
GUANGDONG JIAHE COMMUNICATION TECHNOLOGY Co Ltd
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 GUANGDONG JIAHE COMMUNICATION TECHNOLOGY Co Ltd filed Critical GUANGDONG JIAHE COMMUNICATION TECHNOLOGY Co Ltd
Priority to CN201210006675.8A priority Critical patent/CN102420835B/en
Publication of CN102420835A publication Critical patent/CN102420835A/en
Application granted granted Critical
Publication of CN102420835B publication Critical patent/CN102420835B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method for realizing a real-time transport protocol (RTP) media stream agent in a unified communication system. The method is characterized by comprising the following steps that: a media stream of a calling terminal enters a link layer of an RTP agent server, and then enters a system network layer from the link layer; and an application layer directly controls the system network layer to modify the destination of data of the RTP media stream through a control command to the system network layer, transmits the RTP media stream back to the link layer, and finally transmits the RTP media stream to a called terminal. The invention also provides a method for configuring a PREROUTING table in a network address translation (NAT) function by using IPTABLES. By the methods, the forwarding efficiency of an RTP data packet is greatly improved, and requirements on the hardware of the agent server are reduced. Under the processing capability of an X86800MHz central processing unit (CPU), an agent for at most 30 paths of RTP media streams can be realized by the conventional method, while path number can be increased to 100 by the novel method.

Description

The Proxy Method of RTP Media Stream in a kind of converged communication system
Technical field
The present invention relates to data processing field, particularly relate in a kind of converged communication system, efficiently act on behalf of the method for RTP Media Stream.
Background technology
Converged communication, Unified Communication is called for short UC, also often is translated as unified communication.Converged communication is meant; The new traffic pattern of computer technology and conventional communication techniques fusion one; Merge computer network and conventional communication networks on a network platform, realize numerous application services such as phone, fax, transfer of data, audio/video conference, call center, instant messaging.In the converged communication, Media Stream (voice, video flowing) adopts Real-time Transport Protocol (real time transport protocol) to transmit.RTP realizes based on the UDP host-host protocol.Generally speaking, the terminal room of converged communication can let Media Stream straight-through, as shown in Figure 1.
When needs are recorded to conversation or during firewall-penetrating, need be acted on behalf of the RTP Media Stream, as shown in Figure 2.
The RTP acting server is that the server software of calling out the Media Stream agency is provided in the NTX system.When the NTX call control server receives calling; And residing network site, definite calling and called terminal is can not satisfy the intercommunication of medium flow point point the time; Call control server will be created a Media proxy entity through the service interface of RTP acting server; The effect of this Media proxy entity is the media data (voice packet) that receives the calling and called terminal, and it is forwarded to the opposing party in the calling and called terminal.
The implementation method of general RTP acting server is to read the UDP message bag of network layer in application layer; Transmit according to the purpose of appointment in application layer then; The realization logic is as shown in Figure 3; It is any content in the media data packet that application layer is not revised the RTP packet; Only be the RTP bag have been carried out one be redirected (forwarding), but the RTP packet but needs process: the repeatedly copy function of link layer → grid layer → application layer → grid layer → link layer, this performance to the RTP acting server has proposed higher requirement.
Summary of the invention
Problem to be solved by this invention provides a kind of Proxy Method of RTP Media Stream, to reduce the performance cost that causes at application level proxy RTP packet, improves the efficient that the RTP packet is transmitted.
For addressing the above problem, the invention provides the Proxy Method of a kind of RTP Media Stream in the converged communication system, this method utilizes the network layer of operating system directly to transmit RTP Media Stream (UDP message bag), to reach the purpose that improves forward efficiency.
The present invention realizes through following technical scheme:
The Proxy Method of RTP Media Stream in a kind of converged communication system, it may further comprise the steps:
The Media Stream of calling terminal gets into the link layer of RTP acting server, gets into the grid layer from link layer again;
Application layer is through the control command to the grid layer, and the direct control system network layer is returned to link layer after the destination of RTP media stream data is revised, and finally sends to terminal called.
As optimization, said application layer is to accomplish through the control to IPTABLES to the control of said grid layer, and the packet that said IPTABLES is used for the linux kernel network stack is received carries out relevant treatment.
As stated, the network layer of using system of the present invention realizes the function of transceiver, and the Control Network layer goes to transmit media data packet, and IPTABLES realizes through control.The media data packet that IPTABLES is used for the linux kernel network stack is received is carried out relevant treatment, comprising NAT.These processing logics are described by some IPTABLES rules, and these rules can be ordered through IPTABLES by application layer software (such as Media proxy entity) and defined.The present invention provides the method for the PREROUTING table in a kind of IPTABLES of use configuration nat feature, may further comprise the steps:
S1, transceiver A and transceiver B are provided, transceiver A is used to receive the media data of calling terminal, and will send to calling terminal from the media data from terminal called that transceiver B receives; Transceiver B is used to receive the media data of terminal called, and will send to terminal called from the media data from calling terminal that transceiver A receives; Transceiver A and B open a UDP web socket respectively, and the network address separately is tied to the socket of opening separately, and transceiver A and transceiver B use the UDP socket of opening separately to receive and the operation of sending out;
S2, transceiver A and B begin to intercept UDP socket separately, and when a transceiver received first RTP packet of its socket, this transceiver extracted and write down the source address of this packet, and this moment, this transceiver was set up related with this end network address; When two transceivers are all received a media data packet, and after having set up the network address association at terminal, carry out next step;
S3, regular from the NAT of the media data packet of calling terminal through iptables order setting:
To being that the media data packet of calling terminal transceiver network address is carried out the DNAT operation through PREROUTING chain source address, the destination address of this packet is converted into the network address of terminal called transceiver;
To being that the medium of calling terminal transceiver network address carry out the SNAT operation through POSTROUTING chain purpose source address, the source address of this packet is converted into the network address of Media proxy entity transceiver B;
S4, Media proxy entity are provided with the NAT rule from the media data packet of terminal called automatically through the iptables order:
Through the iptables order NAT rule from the media data packet of terminal called is set:
To being that the media data packet of terminal called transceiver network address is carried out the DNAT operation through PREROUTING chain source address, the destination address of this packet is converted into the network address of calling terminal transceiver
To being that the media data packet of calling terminal transceiver network address is carried out the SNAT operation through POSTROUTING chain purpose source address, the source address of this packet is converted into the network address of Media proxy entity transceiver A
S5, end of calling, regular through the NAT that iptables order deletion S4 and S5 are provided with.
Said PREROUTING chain is preparatory route chain, and it is one of link setup in the IPTABLES; Under the default situations; IPTABLES is divided into 5 stages with the processing procedure of IP bag; Each stage is called a chain, and each chain can be provided with different bag processing rules, and PREROUTING is first chain of IPTABLES process IP bag; In this chain, the IP bag is carried out the IP map function, thereby the NAT rule is set.
Compared with prior art, the present invention possesses following advantage:
Because the copy behavior that the RTP data are carried out of RTP acting server has reduced, the RTP packet only needs process: link layer → grid layer → link layer, improved the forward efficiency of RTP packet greatly, and lowered requirement to acting server hardware.Under the disposal ability of X86800MHz CPU, adopt the multipotency of aging method to carry out 30 tunnel RTP Media Stream agency, adopt new method then can bring up to 100 the tunnel.
Description of drawings
Fig. 1 is a Media Stream flow graph end to end between two multimedia phones of prior art;
Fig. 2 be prior art use the Media Stream flow graph between two multimedia phones when " RTP acting server ";
Fig. 3 is the Media Stream flow graph between two multimedia phones under general " RTP acting server " implementation method of prior art;
Fig. 4 is the Media Stream flow graph between two multimedia phones that adopt under " RTP acting server " of the present invention implementation method;
Fig. 5 is Media proxy entity of the present invention and calling and called terminal information connected relation sketch map;
Fig. 6 the present invention uses the flow chart of a specific embodiment of method of the PREROUTING table in the IPTABLES configuration nat feature.
Embodiment
As shown in Figure 4, the Media Stream of supposing phone A need pass through the RTP Media proxy and send to phone B, and the Proxy Method of RTP Media Stream is in the converged communication system of the embodiment of the invention:
The Media Stream of phone A at first gets into the link layer of RTP acting server, gets into the grid layer from link layer again;
This moment, application layer can't copy to application layer to the RTP data from the grid layer, but through the control command to the grid layer, the direct control system network layer is returned to link layer after the destination of RTP media stream data is revised, and finally sends to phone B.
In the above method, the network layer of using system realizes the function of transceiver, and the Control Network layer goes to transmit media data packet, realizes through control IPTABLES (IP packet filtration system).The media data packet that IPTABLES is used for the linux kernel network stack is received is carried out relevant treatment, comprising NAT.These processing logics are described by some IPTABLES rules, and these rules can be ordered through IPTABLES by application layer software (such as Media proxy entity) and defined.
The present invention has mainly used IPTABLES to dispose the ROUTING table in the nat feature, reaches the function of transmitting media data packet with this, and concrete steps are following:
S1, a Media proxy entity is provided, it comprises transceiver A and transceiver B, and transceiver A is used to receive the media data of calling terminal, and will send to calling terminal from the media data from terminal called that transceiver B receives; Transceiver B is used to receive the media data of terminal called, and will send to terminal called from the media data from calling terminal that transceiver A receives; Transceiver A and B open a UDP web socket respectively, and the network address separately is tied to the UDP web socket of opening separately, and transceiver A and transceiver B use the UDP socket of opening separately to receive and the operation of sending out;
S2, transceiver A and B begin to intercept UDP socket separately, and when a transceiver received first RTP packet of its socket, this transceiver extracted the also source address of record data bag, and this moment, this transceiver was set up related with this end network address; When two transceivers are all received a media data packet, and after having set up the network address association at terminal, carry out next step;
S3, Media proxy entity are provided with the NAT rule from the media data packet of calling terminal automatically through the IPTABLES order:
To being that the media data packet of calling terminal transceiver network address is carried out DNAT operation (the DNAT operation is the purpose network address transmission rule that the IP bag is set) through PREROUTING chain source address; The destination address (destination address before the conversion is the address of Media proxy entity) of media data packet is converted into the network address of terminal called transceiver; Said PREROUTING chain is preparatory route chain, and it is one of link setup in the IPTABLES; Under the default situations; IPTABLES is divided into 5 stages with the processing procedure of IP bag; Each stage is called a chain; Each chain can be provided with different bag processing rules, and PREROUTING is first chain of IPTABLES process IP bag, and NAT rule (promptly bag being carried out the IP map function) can be set in this chain;
To being that the media data packet of calling terminal transceiver network address is carried out SNAT operation (the SNAT operation is the source network address transformation rule that the IP bag is set) through POSTROUTING chain purpose source address, the source address (being the network address of calling terminal before the conversion) of media data packet is converted into the network address of Media proxy entity transceiver B;
S4, Media proxy entity are provided with the NAT rule from the media data packet of terminal called automatically through the IPTABLES order:
To being that the media data packet of terminal called transceiver network address is carried out the DNAT operation through PREROUTING chain source address, the destination address (being the network address of Media proxy entity before the conversion) of media data packet is converted into the network address of calling terminal transceiver;
To being that the media data packet of calling terminal transceiver network address is carried out the SNAT operation through POSTROUTING chain purpose source address, the source address (being the network address of terminal called before the conversion) of media data packet is converted into the network address of Media proxy entity transceiver A;
S5, end of calling, regular through the NAT that IPTABLES order deletion S3 and S4 are provided with.
As shown in Figure 5, it is the flow chart of a concrete application implementation example acting on behalf of repeating process of RTP Media Stream of the present invention, may further comprise the steps:
The transceiver A of Media proxy entity and transceiver B open a UDP socket respectively and are used for receiving and transmission;
Calling terminal sends the RTP data, and source address is the calling terminal network address, and destination address is the Media proxy entity;
The receiver of transceiver A has been received first RTP data, and source address is the calling terminal network address, and destination address is Media proxy physical network address, and this moment, the Media proxy entity was known the network address of calling terminal;
Terminal called sends the RTP data, and source address is the terminal called network address, and destination address is the Media proxy entity;
The receiver of transceiver B has been received first RTP data, and source address is the terminal called network address, and destination address is Media proxy physical network address.This moment, the Media proxy entity was known the network address of terminal called;
The Media proxy entity has carried out two operations through the media data packet that IPTABLES sends calling terminal: carry out DNAT operation and convert the destination address of media data packet into terminal called; Carry out SNAT operation and convert the source address of media data packet into the Media proxy entity, the transmitter through transceiver B sends then;
The Media proxy entity has carried out two operations through the media data packet that IPTABLES sends terminal called: carry out DNAT operation and convert the destination address of media data packet into calling terminal; Carry out SNAT operation and convert the source address of media data packet into the Media proxy entity, the transmitter through transceiver A sends then.

Claims (2)

1. the Proxy Method of RTP Media Stream in the converged communication system is characterized in that it may further comprise the steps:
The Media Stream of calling terminal gets into the link layer of RTP acting server, gets into the grid layer from link layer again;
Application layer is through the control command to the grid layer, and the direct control system network layer is returned to link layer after the destination of RTP media stream data is revised, and finally sends to terminal called.
2. a method of using the PREROUTING table in the IPTABLES configuration nat feature is characterized in that, may further comprise the steps:
S1, transceiver A and transceiver B are provided, transceiver A is used to receive the media data of calling terminal, and will send to calling terminal from the media data from terminal called that transceiver B receives; Transceiver B is used to receive the media data of terminal called, and will send to terminal called from the media data from calling terminal that transceiver A receives; Transceiver A and B open a UDP web socket respectively, and the network address separately is tied to the socket of opening separately, and transceiver A and transceiver B use the UDP socket of opening separately to receive and the operation of sending out;
S2, transceiver A and B begin to intercept UDP socket separately; When a transceiver receives first media data packet of its socket; This transceiver extracts and writes down the source address of this packet, and this moment, this transceiver was set up related with this end network address; When two transceivers are all received a media data packet, and after having set up the network address association at terminal, carry out next step;
S3, regular from the NAT of the media data packet of calling terminal through iptables order setting:
To being that the media data packet of calling terminal transceiver network address is carried out the DNAT operation through PREROUTING chain source address, the destination address of this media data packet is converted into the network address of terminal called transceiver;
To being that the media data packet of calling terminal transceiver network address is carried out the SNAT operation through POSTROUTING chain purpose source address, the source address of this media data packet is converted into the network address of Media proxy entity transceiver B;
S4, Media proxy entity are provided with the NAT rule from the media data packet of terminal called automatically through the iptables order:
Through the iptables order NAT rule from the media data packet of terminal called is set:
To being that the media data packet of terminal called transceiver network address is carried out the DNAT operation through PREROUTING chain source address, the destination address of media data packet is converted into the network address of calling terminal transceiver;
To being that the media data packet of calling terminal transceiver network address is carried out the SNAT operation through POSTROUTING chain purpose source address, the source address of media data packet is converted into the network address of Media proxy entity transceiver A;
S5, end of calling, regular through the NAT that iptables order deletion S4 and S5 are provided with.
CN201210006675.8A 2012-01-10 2012-01-10 Method for realizing real-time transport protocol (RTP) media stream agent in unified communication system Active CN102420835B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210006675.8A CN102420835B (en) 2012-01-10 2012-01-10 Method for realizing real-time transport protocol (RTP) media stream agent in unified communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210006675.8A CN102420835B (en) 2012-01-10 2012-01-10 Method for realizing real-time transport protocol (RTP) media stream agent in unified communication system

Publications (2)

Publication Number Publication Date
CN102420835A true CN102420835A (en) 2012-04-18
CN102420835B CN102420835B (en) 2014-07-16

Family

ID=45945070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210006675.8A Active CN102420835B (en) 2012-01-10 2012-01-10 Method for realizing real-time transport protocol (RTP) media stream agent in unified communication system

Country Status (1)

Country Link
CN (1) CN102420835B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491065A (en) * 2012-06-14 2014-01-01 中兴通讯股份有限公司 Transparent proxy and transparent proxy realization method
CN103780779A (en) * 2012-10-19 2014-05-07 华为技术有限公司 Media-stream interaction method and network device
CN104639564A (en) * 2015-03-03 2015-05-20 北京极科极客科技有限公司 Proxy method of UDP (user datagram protocol)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090279537A1 (en) * 2006-12-29 2009-11-12 Natural Convergence Inc. Method and system for network address translation (nat) traversal of real time protocol (rtp) media
CN100596106C (en) * 2007-04-05 2010-03-24 中山大学 Telecommunication for switching node from IPv4 network to IPv6 network
CN101902506A (en) * 2010-06-21 2010-12-01 中兴通讯股份有限公司 SIP call-based traversal network address translation method and system
CN101938488A (en) * 2010-09-14 2011-01-05 深圳市融创天下科技发展有限公司 Playing method, device, system, proxy server and mobile terminal of streaming media
CN102075536A (en) * 2011-01-13 2011-05-25 湖南超视物联智能网络科技有限公司 Background video agent service method for supporting hand-held monitoring

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090279537A1 (en) * 2006-12-29 2009-11-12 Natural Convergence Inc. Method and system for network address translation (nat) traversal of real time protocol (rtp) media
CN100596106C (en) * 2007-04-05 2010-03-24 中山大学 Telecommunication for switching node from IPv4 network to IPv6 network
CN101902506A (en) * 2010-06-21 2010-12-01 中兴通讯股份有限公司 SIP call-based traversal network address translation method and system
CN101938488A (en) * 2010-09-14 2011-01-05 深圳市融创天下科技发展有限公司 Playing method, device, system, proxy server and mobile terminal of streaming media
CN102075536A (en) * 2011-01-13 2011-05-25 湖南超视物联智能网络科技有限公司 Background video agent service method for supporting hand-held monitoring

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491065A (en) * 2012-06-14 2014-01-01 中兴通讯股份有限公司 Transparent proxy and transparent proxy realization method
CN103780779A (en) * 2012-10-19 2014-05-07 华为技术有限公司 Media-stream interaction method and network device
CN103780779B (en) * 2012-10-19 2016-10-05 华为技术有限公司 The exchange method of Media Stream and the network equipment
CN104639564A (en) * 2015-03-03 2015-05-20 北京极科极客科技有限公司 Proxy method of UDP (user datagram protocol)

Also Published As

Publication number Publication date
CN102420835B (en) 2014-07-16

Similar Documents

Publication Publication Date Title
CN103188300B (en) The methods, devices and systems of VOIP phone are realized in cloud computing environment
CN100512239C (en) System and method for providing transparency in delivering private network features
JP2007049415A (en) Voice data conversion apparatus, network system, and control method and program
CN102546382B (en) Method and system for realizing multicast in Internet protocol version 4 over Internet protocol version 6 (IPv4overIPv6) tunnel
CN103348657B (en) Flow media playing method, equipment and system
CN105516176A (en) Call center system, communication connection method and device of call center system
CN104954724A (en) Video call switching method, intelligent television terminal, mobile terminal and system
CN109995734A (en) A kind of communication means of the WebRTC based on Session Initiation Protocol
CN101552745A (en) Method and device for realizing NAT
CN101304387B (en) Method for implementing tunnel conversion of bi-layer tunnel protocol
CN102420835B (en) Method for realizing real-time transport protocol (RTP) media stream agent in unified communication system
CN101931632A (en) Method for ensuring service quality by real-time transmission protocol path
CN103684970A (en) Transmission method and thin terminals for media data streams
CN110943910A (en) WebSocket-based interphone implementation method
CN104994054A (en) Method of transmitting grouped data based on TD-SCDMA transparent transmission voice channel, and mobile terminal
US20080107064A1 (en) Media access server for satellite-based cellular networks
KR20150096673A (en) Apparatus adapted for connecting a home network with a service provider network
CN114666846A (en) Communication method and gateway equipment
CN108833434B (en) Method for realizing cross-network video call system based on IP bidirectional network set top box
US9191518B2 (en) Routing system for transferring data packets of a call
CN101111002A (en) Lossless transmission method in IP field junction centre after implementing business change by voice
JP2011071853A (en) Ip telephone system, communication content recorder and communication method
CN105577850A (en) Method, device and system for realizing VOIP service crossing
KR100281421B1 (en) Interworking system and method between internet and next generation intelligent network
CN104135465B (en) The method of the negotiation of media between source communication device and destination communication equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20190712

Address after: 519000. A District 1, 15A, conference center, 1 Software Road, Tang Wan Town, Zhuhai hi tech Zone, Guangdong, 1

Patentee after: Guangdong Jiami Technology Co., Ltd.

Address before: 519000 Unit 1-4, 5th Floor, 4th Floor, Production and Processing Center, No. 1 Software Park Road, Zhuhai City, Guangdong Province

Patentee before: Guangdong Jiahe Communication Technology Co., Ltd.

TR01 Transfer of patent right