CN108234511A - Method, system, equipment, storage medium and the gateway of multi-medium data transmission - Google Patents

Method, system, equipment, storage medium and the gateway of multi-medium data transmission Download PDF

Info

Publication number
CN108234511A
CN108234511A CN201810049931.9A CN201810049931A CN108234511A CN 108234511 A CN108234511 A CN 108234511A CN 201810049931 A CN201810049931 A CN 201810049931A CN 108234511 A CN108234511 A CN 108234511A
Authority
CN
China
Prior art keywords
address
port
data
signaling data
network
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
CN201810049931.9A
Other languages
Chinese (zh)
Other versions
CN108234511B (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.)
Ctrip Travel Information Technology Shanghai Co Ltd
Original Assignee
Ctrip Travel Information Technology Shanghai 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 Ctrip Travel Information Technology Shanghai Co Ltd filed Critical Ctrip Travel Information Technology Shanghai Co Ltd
Priority to CN201810049931.9A priority Critical patent/CN108234511B/en
Publication of CN108234511A publication Critical patent/CN108234511A/en
Application granted granted Critical
Publication of CN108234511B publication Critical patent/CN108234511B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/006Networks other than PSTN/ISDN providing telephone service, e.g. Voice over Internet Protocol (VoIP), including next generation networks with a packet-switched transport layer

Abstract

The present invention provides method, system, equipment, storage medium and the gateway of multi-medium data transmission, including step:Receive signaling data, and signaling data is changed according to the destination address of signaling data, the transport protocol of signaling data is converted as public network User Agreement or udp protocol, change the SDP fields of signaling data, the candidate IP address of addition and port are to realize network address translation as preset public network IP address and first port or internal network IP address and second port, signaling data after change is sent to destination address, establish multimedia transmission connection, media stream data is received, the media stream data after change is sent to destination address.The present invention is by converting the transport protocol of signaling data, so that internally the transport protocol of the data of network transmission is unified for udp protocol, background server only needs to handle the data of udp protocol, is achieved that without being transformed for all users of VoIP service support.

Description

Method, system, equipment, storage medium and the gateway of multi-medium data transmission
Technical field
The present invention relates to multi-medium datas under network environment to transmit, specifically, be related to multi-medium data transmission method, System, equipment, storage medium and gateway.
Background technology
VoIP (Voice over IP, IP-based language service) refers in internet, Intranet and local Multi-medium data transmission is carried out on data network based on IP (Internet Protocol, the agreement interconnected between network) in net, Multi-medium data includes voice and video data, signaling data.VoIP for consumer provide it is more diversified, simplify, price it is low Honest and clean practical business, while cheap service is provided, meet the developing direction of unification of three nets, push the development of telecommunications industry And transition.VoIP establishes session using SIP (Session Initiation Protocol, session initiation protocol).SIP is The multimedia communication protocol formulated by IETF (Internet Engineering Task Force, internet engineering task group), It is a text based application layer control protocol, for creating, changing and discharging the session of one or more participants.So And the transmission mode of SIP session datas is varied, different data sources uses the transport protocol of different-format, such as web SIP session datas access VoIP service can be transmitted by way of WS or WSS agreements by holding, and mobile terminal application program, software Terminal, entity phone can access VoIP service by modes such as UDP, TCP or tls protocols.
Therefore, VoIP service will support all users, it is necessary to realize above-mentioned all transmission modes.However it realizes above-mentioned All transmission modes to background system, background server it is more demanding, need to transform background system, background server as energy It enough supports above-mentioned all transmission protocol datas, expends time and cost.
In addition, since public ip address is in short supply and network security problem, it usually needs use NAT (Network Address Translation, network address translation), however realize that the multi-medium data transmission of all transmission modes becomes into one under NAT The subject urgently to be resolved hurrily of step.
Invention content
For the problems of the prior art, in order to solve the above technical problems, The present invention provides a kind of multi-medium datas Method, system, equipment, storage medium and the gateway of transmission, can to background server without any transformation in the case of, Realize the multi-medium data transmission of all transmission modes, the method for multi-medium data transmission provided by the present invention can be realized The NAT of multi-medium data is passed through, so as to effectively improve public ip address distribution and improve internet security.
The method that the first aspect of the present invention provides a kind of transmission of multi-medium data, multi-medium data include signaling data with And media stream data, multi-medium data transmit between public network and internal network, the method packet of multi-medium data transmission Include step:S11 receives signaling data;S12 changes signaling data, when the mesh of signaling data according to the destination address of signaling data When marking address as public network, the transport protocol of signaling data is converted as public network User Agreement, by the network of signaling data Address and port translation are preset public network IP address and first port, when destination address is internal network, are turned The transport protocol for changing signaling data is udp protocol, is preset intranet by the network address of signaling data and port translation Network IP address and second port;Signaling data after change is sent to destination address by S13, and receives destination address return Signaling data;Step S11 to S13 is repeated until establishing multimedia transmission connection;S14 receives media stream data, conversion The IP address of media stream data and port are for preset public network IP address and first port or preset internal network IP Media stream data after change is sent to destination address by location and second port.
Preferably, step S12 includes:S121, the destination address and source address of certification signaling data;S122 is obtained more Media proxy resource distributes the port numbers of first port and the port numbers of second port from multiple alternative port numbers; S123 changes the SDP fields of signaling data according to the destination address of signaling data, and it is public to add candidate IP address and port Network ip address and first port or internal network IP address and second port;S124, according to the target of signaling data The transport protocol of address conversion signaling data.
Preferably, IP of the preset public network IP address in step S12 for the first network interface card of multimedia transmission gateway Address, the first network interface card are docked with public network, and preset internal network IP address is the second network interface card of multimedia transmission gateway IP address, the second network interface card are docked with internal network.
Preferably, in step S123, the alternative port numbers quantity of first port and the alternative port of second port Number amount is equal, each time multimedia transmission connection in, be distributed into the port numbers of first port and the end of second port Slogan.
The second aspect of the present invention also provides a kind of system of multi-medium data transmission, and multi-medium data includes signaling data And media stream data, multi-medium data transmit between public network and internal network, including:Signalling service module, letter Enable service module for receive send signaling data, with establish multimedia transmission connect, signalling service module is according to signaling data Destination address change signaling data, when signaling data destination address be public network when, convert signaling data transmission association Discuss as public network User Agreement, by the network address of signaling data and port translation for preset public network IP address with And first port, when destination address is internal network, the transport protocol of signaling data is converted as udp protocol, by signaling data Network address and port translation be preset internal network IP address and second port;Media streaming services module, media Stream service module is used to receive media stream data after multimedia transmission connection is established, and converts IP address and the end of media stream data Mouth is preset public network IP address and first port or preset internal network IP address and second port, after change Media stream data is sent to destination address.
Preferably, the system of multi-medium data transmission includes the first IP address and the second IP address, preset public network Network IP address is the first IP address, and the first IP address is used for and public network communication, and preset internal network IP address is second IP address, the second IP address is used for and internal network communication.
Preferably, signalling service module obtains multimedia proxy resources to media streaming services module, from multiple alternative ends The port numbers of first port are distributed in slogan and state the port numbers of second port, the alternative port numbers quantity of first port with The alternative port numbers quantity of second port is equal, each time multimedia transmission connection in, be distributed into first port end The port numbers of slogan and second port.
Preferably, signalling service module changes the SDP fields of signaling data according to the destination address of signaling data, and addition is waited IP address and port are selected as public network IP address and first port or internal network IP address and second port.
The third aspect of the present invention also provides a kind of multi-medium data transmission device, including:Processor;Memory, wherein It is stored with the executable instruction of processor;Wherein, processor is configured to perform above-mentioned first party via executable instruction is performed The step of method of the multi-medium data transmission in face.
The fourth aspect of the present invention also provides a kind of computer readable storage medium, and for storing program, program is performed The step of method of the multi-medium data transmission of the above-mentioned first aspects of Shi Shixian.
The fifth aspect of the present invention also provides a kind of multi-medium data transport gateway, and multi-medium data transport gateway includes upper The system for stating the multi-medium data transmission of second aspect.
Method, system, equipment, storage medium and the gateway of multi-medium data transmission provided by the present invention are according to signaling number According to destination address change signaling data, the transport protocol of signaling data is converted, so that the internally biography of the data of network transmission Defeated agreement is unified for udp protocol, and meets public network User Agreement to the data of public network transmissions.Background system, backstage Server only need handle udp protocol data, without be transformed be achieved that for VoIP service support it is all User.
By the change to signaling data SDP fields, candidate IP address and port are added to realize network address translation, IP address and the port of the media stream data are converted, is passed through so as to fulfill NAT, effectively improve public ip address distribution and is carried High internet security.
Description of the drawings
Upon reading the detailed description of non-limiting embodiments with reference to the following drawings, other feature of the invention, Objects and advantages will become more apparent upon.
Fig. 1 is the flow chart of the method for the multi-medium data transmission of one embodiment of the invention;
Fig. 2 is the detail flowchart of step S12 in Fig. 1;
Fig. 3 is the configuration diagram of the system of the multi-medium data transmission of one embodiment of the invention;
Time diagram when Fig. 4 is internal network exhalation of the present invention;
Time diagram when Fig. 5 is public network exhalation of the present invention;
Fig. 6 is the structure diagram of the equipment of the multi-medium data transmission of one embodiment of the invention;
Fig. 7 is the structure diagram of the computer readable storage medium of one embodiment of the invention;And
Fig. 8 is the structure diagram of the multi-medium data transport gateway of one embodiment of the invention.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to embodiment set forth herein.On the contrary, these embodiments are provided so that the present invention will Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.It is identical attached in figure Icon note represents same or similar structure, thus will omit repetition thereof.
Existing VoIP service for background system, background server it is more demanding, it is desirable to be able to support all public Network user's agreement, since background server is more, transformation backstage is difficult one by one, expends time and cost.Meanwhile The multi-medium data transmission of all transmission modes is realized under NAT becomes further subject urgently to be resolved hurrily.
The VoIP of the present invention establishes session using SIP, in both sides or multi-party progress voice-over-net service, each side's transmission Multi-medium data include signaling data and media stream data, signaling data be used for coordinate multimedia transmission communication process, Media stream data includes specific media content such as voice data, video data.The targeted multi-medium data of the present invention passes It is defeated, it is mainly used in situation about being transmitted between public network and internal network.
Fig. 1 is the flow chart of the method for the multi-medium data transmission of one embodiment of the invention.The multi-medium data of the present invention The method of transmission includes multimedia transmission gateway, and multimedia transmission gateway is arranged between public network and internal network, is used for As the multi-medium data packet between gateway processes public network and internal network.
As shown in Figure 1, the method for the multi-medium data transmission of the present invention, includes the following steps:
S11, signaling data is received.Signaling data includes the signaling data of call request according to its content, call Signaling data.By the interaction of multiple signaling data, each side's multimedia transmission establishment of connection is realized.
S12, the destination address change signaling data according to the signaling data received.
Fig. 2 is the detail flowchart of step S12 in Fig. 1, and step S12 is illustrated with reference to Fig. 2.First such as step S121, the destination address and source address of certification signaling data.When the calling for receiving the transmission of multi-medium data session setup side During the signaling data of request, the destination address and source address of the signaling data are authenticated, it is abnormal to confirm that address is not present, So as to ensure communications security.
Preferably, further include authentication registration step before the signaling data for receiving call request in the present embodiment, i.e., it is public The communication information is registered and is stored in multimedia transmission gateway by the client of network or the background server of internal network.It is above-mentioned The communication information includes the client of public network or IP address and the port of server.For communication security, multimedia transmission Gateway is authenticated the client of public network.In the present embodiment, in order to improving the processing of multimedia transmission gateway Efficiency, reduce operation occupy, improve system throughput, inquire public network client whether within the preset period once Went registration, in this way then no longer authentication registration, the client for directly giving tacit consent to the public network is security client, is subsequently walked Suddenly.
Then, such as step S122, multimedia proxy resources are obtained.Multimedia proxy resources include first port and second end The port numbers of mouth.Multimedia transmission gateway distributes the port numbers and second port of first port from multiple alternative port numbers Port numbers.For being docked with public network, second port is used to dock with internal network wherein first port.
Preferably, in order to ensure treating capacity during high concurrent, the alternative port numbers quantity and second port of first port Alternative port numbers quantity it is equal, that is to say, that can be directed to each time multimedia transmission connection assignment of port numbers 1 to 1 into To first port and second port.In order to facilitate management, in a multimedia transmission connection, first port and described the The port numbers of Two-port netwerk are identical.
At least alternative port numbers of 1000 pairs of first ports and second port in the present embodiment are set, are further ensured The processing speed and treating capacity of multi-medium data.
Then such as step S123, according to the destination address of signaling data, network address and the port of signaling data are converted.
Multimedia transmission gateway includes the first network interface card and the second network interface card, and the first network interface card is docked with public network, the second net Card is docked with internal network.IP address of the preset public network IP address for the first network interface card of multimedia transmission gateway, presets Internal network IP address for multimedia transmission gateway the second network interface card IP address.
Preferably, in the present invention, by change signaling data SDP fields convert signaling data network address and Port.Specifically, candidate IP address and port are added in the SDP fields of signaling data, so that after receiving change The recipient of signaling data can be by reading candidate IP address and port position multimedia proxy resources, so as to facilitate height It imitates and has reliably ensured the NAT of information data and passed through.
For changing the SDP fields of signaling data, when signaling data destination address is public network, addition is candidate IP address and port are to realize that network address translation as preset public network IP address and first port, works as signaling data When destination address is internal network, candidate IP address and port are added to realize network address translation as preset internal network IP address and second port.
Such as step S124, the transport protocol of signaling data is converted.When signaling data destination address is public network, conversion The transport protocol of signaling data is public network User Agreement.When signaling data destination address is internal network, signaling is converted The transport protocol of data is udp protocol.
Public network User Agreement includes WS agreements, WSS agreements, udp protocol, Transmission Control Protocol or tls protocol.WS agreements are The protocol specification that html5 is proposed, was set to standard RFC 6455, and supplement specification by RFC7936 in 2011 by IETF, The specification of one communication of WS protocol conventions, the mechanism shaken hands by one can establish a class between browser and server Like the connection of TCP.WSS agreements are the encryption versions of WS agreements, and WS agreements are combined with SSL, realize safe WS agreements and lead to Letter, i.e. WSS agreements.Transmission Control Protocol (Transmission Control Protocol, transmission control protocol) is a kind of towards even Transport layer communication protocol connecing, reliable, based on byte stream, is defined by the RFC 793 of IETF.Tls protocol (TransportLayer Security, safe transmission layer protocol) between two communication application programs for providing confidentiality And data integrity.Udp protocol (User Datagram Protocol, User Datagram Protocol) is OSI (Open System Interconnection, open system interconnection) a kind of connectionless transport layer protocol in reference model, it provides towards affairs Simple unreliable information transmission service, IETF RFC 768 are the formal specifications of UDP.
Due to having changed the transport protocol of signaling data, so that internally the transport protocol of the data of network transmission is unified for Udp protocol, and meet public network User Agreement to the data of public network transmissions.Therefore background system, background server The data of processing udp protocol are needed, are achieved that without being transformed for all users of VoIP service support.
Preferably, step S122 and step S123 are performed before step S124, are implemented so as to ensure in step S124 When failing or there is mistake, transmission signaling data still is able to, so as to improve communication success rate.
Signaling data after change is sent to destination address by S13, and receives the signaling data of destination address return.
It is to repeat step S11 to receive the signaling data returned, and it is each until communicating to repeat step S11 to S13 Fang Jianli multimedia transmissions connect.Step S14 is performed if multimedia transmission successful connection has been established.
S14 receives conversion and sends media stream data.
Specifically, after multimedia transmission connection is established, media stream data is received.According to the target of media stream data Location convert media stream data IP address and port into preset public network IP address and first port or preset intranet Media stream data after change is sent to destination address by network IP address and second port.
By the change to signaling data SDP fields, candidate IP address and port are added to realize network address translation, So that when multimedia transmission connection is established, communication parties can obtain media stream data in public network and internal network The transmission objectives address of processing.IP address and the port of the media stream data are converted, passes through, effectively improves so as to fulfill NAT Public ip address distributes and improves internet security.
Fig. 3 is the configuration diagram of the system of the multi-medium data transmission of one embodiment of the invention, is said as shown in Figure 3 below The system of the multi-medium data transmission of the bright present invention.
The system 10 of multi-medium data transmission includes signalling service module 11 and media streaming services module 12.Wherein, believe Enable service module 11 for receive send signaling data, with establish multimedia transmission connect.Media streaming services module 12 is used for Transmitting media flow data after multimedia transmission connection is established.
In figure 3, the client 21,22,23 in public network 20 transmits multimedia with a variety of public network User Agreements Data.The transmitting multimedia data by way of WS agreements or WSS agreements of web terminal user 21.Mobile terminal application user 22 Or software terminal accesses VoIP service by modes such as TCP or tls protocols.Entity handset users 23 can be passed by udp protocol Defeated multi-medium data.
There are multiple processing speech processes background servers 31 in internal network 30,32, such as call center 31 and language Sound server 32.
As shown in figure 3, the client 21,22,23 in public network 20 and the background server 31,32 in internal network 30 It needs to carry out multi-medium data transmission.
In the present embodiment, the signalling service module 11 first in the system 10 of multi-medium data transmission receives signaling data.
Then signalling service module 11 changes signaling data according to the destination address of signaling data.Specifically, multimedia The system 10 of data transmission includes the first IP address and the second IP address, and preset public network IP address is for the first IP Location, the first IP address with public network 20 for communicating, and preset internal network IP address is the second IP address, the second IP address For communicating with internal network 30.
Signalling service module 11 applies for first end after the signaling data that calling is initiated is received, to media streaming services module 12 Mouth and the port numbers of second port, media streaming services module 12 distribute the end of first port and second port in multiple port numbers Slogan, in a multimedia transmission connection, first port is identical with the port numbers of second port.
When signaling data destination address is public network 20, the transport protocol of signaling data is converted as public network user Agreement changes the SDP fields of signaling data, adds candidate IP address and port to realize network address translation as preset public affairs Network ip address and first port altogether, when destination address is internal network, the transport protocol for converting signaling data is assisted into UDP View changes the SDP fields of signaling data, adds candidate IP address and port to realize network address translation as preset inside Network ip address and second port.
Public network User Agreement includes WS agreements, WSS agreements, udp protocol, Transmission Control Protocol or tls protocol.
Signaling data after change is sent to destination address by signalling service module 11, and receives the letter of destination address return Enable data.Signalling service module 11, which steps be repeated alternatively until, establishes multimedia transmission connection.
Media streaming services module receives media stream data after multimedia transmission connection is established, and converts the IP of media stream data Address and port are preset public network IP address and first port or preset internal network IP address and second port, are incited somebody to action Media stream data after change is sent to destination address, so as to carry out media stream data transmission.
Time diagram when Fig. 4 is internal network exhalation of the present invention, sequential when Fig. 5 is public network exhalation of the present invention Schematic diagram.The data handling procedure of the system of multi-medium data transmission is illustrated with reference to Fig. 4, Fig. 5.
As shown in figure 4, internal network 30 sends out the signaling data of call request.In the system 10 of multi-medium data transmission Signalling service module 11 receives the signaling data.Signalling service module 11 applies for proxy resources, matchmaker to media streaming services module 12 Body stream service module 12 returns to proxy resources to signalling service module 11.Proxy resources include the end of first port and second port Slogan.
Signalling service module 11 changes signaling data according to the destination address of signaling data, and destination address is public network 20, then the transport protocol of signaling data is converted as public network User Agreement, the SDP fields of signaling data is changed, in SDP fields Middle addition candidate's IP address and IP address and first port that port is the first network interface card.Signalling service module 11 is to public network The signaling data of call request after the destination address forwarding change of network 20.
Signalling service module 11 receives the signaling data for the call that public network 20 returns, according to the mesh of signaling data Address change signaling data is marked, destination address is internal network 10, then converts the transport protocol of signaling data as udp protocol, more Change the SDP fields of signaling data, candidate IP address and port are added in SDP fields as the IP address of the second network interface card and the Two-port netwerk.Signalling service module 11 internally network 10 destination address forwarding change after call signaling data.
The background server in client and internal network 10 in public network 20 is obtained for subsequent media stream The IP address of data transmission and port, multimedia transmission connection are established.Client and internal network in public network 20 Background server in 10 handles media stream data by media streaming services module 12, so as to fulfill multimedia communication.
Similar, as shown in figure 5, public network 20 sends out the signaling data of call request.Multi-medium data transmission be Signalling service module 11 in system 10 receives the signaling data.Signalling service module 11 applies acting on behalf of to media streaming services module 12 Resource, media streaming services module 12 return to proxy resources to signalling service module 11.In the present embodiment, proxy resources are The port numbers of Single port and second port.
Signalling service module 11 changes signaling data according to the destination address of signaling data, and destination address is internal network 10, then the transport protocol of signaling data is converted as udp protocol, changes the SDP fields of signaling data, is added and is waited in SDP fields Select the IP address and second port of IP address and port for the second network interface card.The mesh of the internally network 10 of signalling service module 11 Mark the signaling data of the call request after the forwarding change of address.
Signalling service module 11 receives the signaling data for the call that public network 20 returns, according to the mesh of signaling data Address change signaling data is marked, destination address is public network 20, then the transport protocol for converting signaling data is used into public network Family agreement changes the SDP fields of signaling data, and the IP of candidate IP address and port for the first network interface card is added in SDP fields Address and first port.The letter of call of the signalling service module 11 after the destination address forwarding change of public network 20 Enable data.
The background server in client and internal network 10 in public network 20 is obtained for subsequent media stream The IP address of data transmission and port, multimedia transmission connection are established.Client and internal network in public network 20 Background server in 10 handles media stream data by media streaming services module 12, so as to fulfill multimedia communication.
By the system introduction that transmits above to multi-medium data it is found that the present invention according to the destination address of signaling data more Change signaling data, convert the transport protocol of signaling data, so that internally the transport protocol of the data of network transmission is unified for UDP Agreement, and meet public network User Agreement to the data of public network transmissions.Background system, background server only need to handle The data of udp protocol are achieved that without being transformed for all users of VoIP service support.
By the change to signaling data SDP fields, candidate IP address and port are added to realize network address translation, IP address and the port of the media stream data are converted, is passed through so as to fulfill NAT, effectively improve public ip address distribution and is carried High internet security.
The embodiment of the present invention also provides a kind of multi-medium data transmission device, including processor.Memory, wherein being stored with The executable instruction of processor.Wherein, processor is configured to be performed above-mentioned multimedia number via execution executable instruction According to transmission method the step of.
As above, which changes signaling data according to the destination address of signaling data, converts the transmission association of signaling data View so that internally the transport protocol of the data of network transmission is unified for udp protocol, and meets to the data of public network transmissions Public network User Agreement.By the change to signaling data SDP fields, candidate IP address and port are added to realize network Address conversion converts IP address and the port of the media stream data, realizes that NAT is passed through.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be with specific implementation is as follows, i.e.,:It is complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here Referred to as " circuit ", " module " or " platform ".
Fig. 6 is the structure diagram of the multi-medium data transmission device of one embodiment of the invention.It is described referring to Fig. 6 The multi-medium data transmission device 600 of this embodiment according to the present invention.The multi-medium data transmission device that Fig. 6 is shown 600 be only an example, should not bring any restrictions to the function and use scope of the embodiment of the present invention.
As shown in fig. 6, multi-medium data transmission device 600 is showed in the form of universal computing device.Multi-medium data passes The component of transfer device 600 can include but is not limited to:At least one processing unit 610, at least one storage unit 620, connection The bus 630 of different platform component (including storage unit 620 and processing unit 610), display unit 640 etc..
Wherein, storage unit has program stored therein code, and program code can be performed by processing unit 610 so that processing is single Member 610 perform described in this specification above-mentioned electronic prescription circulation processing method part according to the various exemplary implementations of the present invention The step of mode.For example, the step of processing unit 610 can perform as shown in fig. 1.
Storage unit 620 can include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 6201 and/or cache memory unit 6202, it can further include read-only memory unit (ROM) 6203.
Storage unit 620 can also include program/utility with one group of (at least one) program module 6205 6204, such program module 6205 includes but not limited to:Operating system, one or more application program, other program moulds Block and program data may include the realization of network environment in each or certain combination in these examples.
Bus 630 can be to represent one or more in a few class bus structures, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use the arbitrary bus structures in a variety of bus structures Local bus.
Multi-medium data transmission device 600 can also with one or more external equipments 700 (such as keyboard, sensing equipment, Bluetooth equipment etc.) communication, it can also enable a user to set with what the multi-medium data transmission device 600 interacted with one or more It is standby to communicate and/or with enabling what the multi-medium data transmission device 600 communicated with one or more of the other computing device Any equipment (such as router, modem etc.) communication.This communication can pass through input/output (I/O) interface 650 It carries out.Also, multi-medium data transmission device 600 can also by network adapter 660 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network, such as internet) communication.Network adapter 660 can be by total Line 630 communicates with other modules of multi-medium data transmission device 600.It should be understood that although not shown in the drawings, can combine more Media data transmission equipment 600 uses other hardware and/or software module, including but not limited to:Microcode, device driver, Redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage platform etc..
The embodiment of the present invention also provides a kind of computer readable storage medium, and for storing program, program is performed reality The step of method of multi-medium data transmission in existing above-described embodiment.In some possible embodiments, it is of the invention each A aspect is also implemented as a kind of form of program product, including program code, when program product is transported on the terminal device During row, program code is used to that terminal device to be made to perform the root described in the above-mentioned electronic prescription circulation processing method part of this specification The step of according to various illustrative embodiments of the invention.
As it appears from the above, the program of the computer readable storage medium of the embodiment is when being executed, according to the mesh of signaling data Address change signaling data is marked, the transport protocol of signaling data is converted, so that the internally transport protocol of the data of network transmission Udp protocol is unified for, and meets public network User Agreement to the data of public network transmissions.By to signaling data SDP words The change of section adds candidate IP address and port to realize network address translation, converts the IP address of the media stream data And port, realize that NAT is passed through.
Fig. 7 is the structure diagram of the computer readable storage medium of one embodiment of the invention.Refering to what is shown in Fig. 7, description The program product 800 for being used to implement the above method according to the embodiment of the present invention, may be used portable compact disc Read-only memory (CD-ROM) and including program code, and can be run on terminal device, such as PC.However, this The program product of invention is without being limited thereto, and in this document, readable storage medium storing program for executing can any include or store the tangible of program Medium, the program can be commanded the either device use or in connection of execution system, device.
The arbitrary combination of one or more readable mediums may be used in program product.Readable medium can be that readable signal is situated between Matter or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or partly lead System, device or the device of body or arbitrary above combination.More specific example (the non exhaustive row of readable storage medium storing program for executing Table) include:Electrical connection, portable disc, hard disk, random access memory (RAM), read-only storage with one or more conducting wires Device (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer readable storage medium can include in a base band or as a carrier wave part propagation data-signal, In carry readable program code.The data-signal of this propagation may be used diversified forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable storage medium storing program for executing can also be any readable Jie other than readable storage medium storing program for executing Matter, which can send, propagate either transmit for used by instruction execution system, device or device or and its The program of combined use.The program code included on readable storage medium storing program for executing can use any appropriate medium to transmit, including but not It is limited to wireless, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
It can combine to write to perform the program that the present invention operates with the arbitrary of one or more programming languages Code, programming language include object oriented program language-Java, C++ etc., further include conventional process Formula programming language-such as " C " language or similar programming language.Program code can be calculated fully in user It performs in equipment, partly perform on a user device, the software package independent as one performs, partly in user calculating equipment Upper part performs or is performed in remote computing device or server completely on a remote computing.It is being related to remotely counting In the situation for calculating equipment, remote computing device can be by the network of any kind, including LAN (LAN) or wide area network (WAN), be connected to user calculating equipment or, it may be connected to external computing device (such as utilizes ISP To pass through Internet connection).
The embodiment of the present invention also provides a kind of multi-medium data transport gateway, and Fig. 8 is the multimedia of one embodiment of the invention The structure diagram of data transmission gateway.Multi-medium data transport gateway 10 includes above-mentioned multi-medium data transport gateway System.Specifically, multi-medium data transport gateway 10 includes signalling service module 11 and media streaming services module 12.Signaling takes Business module 11 and media streaming services module 12 can be software or the hardware device with correlation function.Such as believe It is the software for including softsbc services to enable service module 11, for carrying out the signaling data between public network and internal network Conversion, registration and signaling data NAT are passed through.Media streaming services module 12 is, for example, to include the software of rtpengine services, is used It is passed through and transcoding in the NAT for carrying out media stream data.Concrete function about multi-medium data transport gateway 10 is above-mentioned to more It has been described in detail in the system of media data transmission gateway, details are not described herein again.
Method, system, equipment, storage medium and the gateway of the multi-medium data transmission of the present invention are according to the mesh of signaling data Address change signaling data is marked, the transport protocol of signaling data is converted, so that the internally transport protocol of the data of network transmission Udp protocol is unified for, and meets public network User Agreement to the data of public network transmissions.Background system, background server The data of processing udp protocol are only needed, are achieved that without being transformed for all users of VoIP service support.
By the change to signaling data SDP fields, candidate IP address and port are added to realize network address translation, IP address and the port of the media stream data are converted, is passed through so as to fulfill NAT, effectively improve public ip address distribution and is carried High internet security.
The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, it is impossible to assert The specific implementation of the present invention is confined to these explanations.For those of ordinary skill in the art to which the present invention belongs, exist Under the premise of not departing from present inventive concept, several simple deduction or replace can also be made, should all be considered as belonging to the present invention's Protection domain.

Claims (11)

1. a kind of method of multi-medium data transmission, the multi-medium data includes signaling data and media stream data, described Multi-medium data transmits between public network and internal network, it is characterised in that the method packet of the multi-medium data transmission Include step:
S11 receives signaling data;
S12 changes signaling data according to the destination address of the signaling data, when the destination address of the signaling data is public During network, convert the transport protocol of signaling data as public network User Agreement, by the network address of the signaling data and Port translation is preset public network IP address and first port, when destination address is internal network, converts signaling number According to transport protocol for udp protocol, be preset internal network IP by the network address of the signaling data and port translation Address and second port;
Signaling data after change is sent to destination address by S13, and receives the signaling data of destination address return;
Step S11 to S13 is repeated until establishing multimedia transmission connection;
S14, receive media stream data, convert the media stream data IP address and port into preset public network IP address With first port or preset internal network IP address and second port, by the media stream data after change with being sent to target Location.
2. the method for multi-medium data transmission as described in claim 1, which is characterized in that
The step S12 includes:
S121, the destination address and source address of signaling data described in certification;
S122, obtain multimedia proxy resources, distributed from multiple alternative port numbers the first port port numbers and The port numbers of the second port;
S123 changes the SDP fields of the signaling data according to the destination address of the signaling data, add candidate IP address with And port is public network IP address and first port or internal network IP address and second port;
S124 converts the transport protocol of the signaling data according to the destination address of the signaling data.
3. the method for multi-medium data transmission as claimed in claim 2, which is characterized in that described preset in step S12 IP address of the public network IP address for the first network interface card of multimedia transmission gateway, first network interface card and the public network pair Connect, the preset internal network IP address for multimedia transmission gateway the second network interface card IP address, second network interface card with The internal network docking.
4. the method for multi-medium data transmission as claimed in claim 2, which is characterized in that
In step S123, the alternative port numbers quantity of the first port and the alternative port numbers quantity phase of second port Deng, each time multimedia transmission connection in, be distributed into the port numbers of first port and the port numbers of second port.
5. a kind of system of multi-medium data transmission, the multi-medium data includes signaling data and media stream data, described Multi-medium data transmits between public network and internal network, it is characterised in that including:
Signalling service module, the signalling service module send signaling data for receiving, to establish multimedia transmission connection, institute It states signalling service module and signaling data is changed according to the destination address of the signaling data, when the destination address of the signaling data During for public network, the transport protocol of signaling data is converted as public network User Agreement, by the network of the signaling data Location and port translation are preset public network IP address and first port, when destination address is internal network, conversion The transport protocol of signaling data is udp protocol, is preset inside by the network address of the signaling data and port translation Network ip address and second port;
Media streaming services module, the media streaming services module are used to receive media stream number after multimedia transmission connection is established According to, convert the media stream data IP address and port into preset public network IP address and first port or it is preset in Media stream data after change is sent to destination address by portion's network ip address and second port.
6. the system of multi-medium data transmission as claimed in claim 5, which is characterized in that
The system of the multi-medium data transmission includes the first IP address and the second IP address, the preset public network IP Address is first IP address, and first IP address is used for and the public network communication, the preset internal network IP address is second IP address, and second IP address is used for and the internal network communication.
7. the system of multi-medium data transmission as claimed in claim 5, which is characterized in that
The signalling service module obtains multimedia proxy resources to the media streaming services module, from multiple alternative port numbers The port numbers of the middle distribution first port and the port numbers for stating second port, the alternative port numbers quantity of first port with The alternative port numbers quantity of second port is equal, each time multimedia transmission connection in, be distributed into first port end The port numbers of slogan and second port.
8. the system of multi-medium data transmission as claimed in claim 5, which is characterized in that
The signalling service module changes the SDP fields of the signaling data, addition according to the destination address of the signaling data Candidate IP address and port are public network IP address and first port or internal network IP address and second port.
9. a kind of equipment of multi-medium data transmission, which is characterized in that including:
Processor;
Memory, wherein being stored with the executable instruction of the processor;
Wherein, the processor is configured to come any one institute in perform claim requirement 1 to 4 via the execution executable instruction The step of stating the method for multi-medium data transmission.
10. a kind of computer readable storage medium, for storing program, which is characterized in that described program is performed realization power Profit requires the step of method that multi-medium data described in any one transmits in 1 to 4.
11. a kind of multi-medium data transport gateway, which is characterized in that multi-medium data transport gateway is included in claim 5 to 8 A kind of system of multi-medium data transmission described in any one.
CN201810049931.9A 2018-01-18 2018-01-18 Method, system, equipment, storage medium and gateway for multimedia data transmission Active CN108234511B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810049931.9A CN108234511B (en) 2018-01-18 2018-01-18 Method, system, equipment, storage medium and gateway for multimedia data transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810049931.9A CN108234511B (en) 2018-01-18 2018-01-18 Method, system, equipment, storage medium and gateway for multimedia data transmission

Publications (2)

Publication Number Publication Date
CN108234511A true CN108234511A (en) 2018-06-29
CN108234511B CN108234511B (en) 2021-07-13

Family

ID=62668005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810049931.9A Active CN108234511B (en) 2018-01-18 2018-01-18 Method, system, equipment, storage medium and gateway for multimedia data transmission

Country Status (1)

Country Link
CN (1) CN108234511B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109547474A (en) * 2018-12-21 2019-03-29 深圳市创梦天地科技有限公司 A kind of data transmission method and device
CN110290140A (en) * 2019-06-28 2019-09-27 腾讯科技(深圳)有限公司 Multimedia data processing method and device, storage medium, electronic equipment
CN113489717A (en) * 2021-07-02 2021-10-08 北京飞讯数码科技有限公司 Internal and external network intercommunication method, device, equipment and storage medium based on SIP protocol

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030018814A1 (en) * 2001-06-29 2003-01-23 Yung-Chung Kao Method of letting a single LAN port voice over IP device have network address translation function
CN101208935A (en) * 2005-05-04 2008-06-25 西门子企业通讯有限责任两合公司 Method and device for converting an internet protocol address inside a communications network
CN103107983A (en) * 2011-11-09 2013-05-15 广达电脑股份有限公司 Data management method of network system and related system thereof
CN103227788A (en) * 2013-04-17 2013-07-31 广州市和声信息技术有限公司 Method and system realizing communication between web-based application and SIP equipment
CN104717234A (en) * 2013-12-11 2015-06-17 中兴通讯股份有限公司 Enterprise network communication device and communication method
CN105049541A (en) * 2014-04-17 2015-11-11 财团法人资讯工业策进会 Network address translation traversal system and method for real-time communications
CN107566671A (en) * 2017-10-12 2018-01-09 携程旅游信息技术(上海)有限公司 Network voice communication method and its system, storage medium, electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030018814A1 (en) * 2001-06-29 2003-01-23 Yung-Chung Kao Method of letting a single LAN port voice over IP device have network address translation function
CN101208935A (en) * 2005-05-04 2008-06-25 西门子企业通讯有限责任两合公司 Method and device for converting an internet protocol address inside a communications network
CN103107983A (en) * 2011-11-09 2013-05-15 广达电脑股份有限公司 Data management method of network system and related system thereof
CN103227788A (en) * 2013-04-17 2013-07-31 广州市和声信息技术有限公司 Method and system realizing communication between web-based application and SIP equipment
CN104717234A (en) * 2013-12-11 2015-06-17 中兴通讯股份有限公司 Enterprise network communication device and communication method
CN105049541A (en) * 2014-04-17 2015-11-11 财团法人资讯工业策进会 Network address translation traversal system and method for real-time communications
CN107566671A (en) * 2017-10-12 2018-01-09 携程旅游信息技术(上海)有限公司 Network voice communication method and its system, storage medium, electronic equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109547474A (en) * 2018-12-21 2019-03-29 深圳市创梦天地科技有限公司 A kind of data transmission method and device
CN110290140A (en) * 2019-06-28 2019-09-27 腾讯科技(深圳)有限公司 Multimedia data processing method and device, storage medium, electronic equipment
CN110290140B (en) * 2019-06-28 2021-09-24 腾讯科技(深圳)有限公司 Multimedia data processing method and device, storage medium and electronic equipment
US11522922B2 (en) 2019-06-28 2022-12-06 Tencent Technology (Shenzhen) Company Limited Multimedia data processing method and apparatus, storage medium, and electronic device
CN113489717A (en) * 2021-07-02 2021-10-08 北京飞讯数码科技有限公司 Internal and external network intercommunication method, device, equipment and storage medium based on SIP protocol

Also Published As

Publication number Publication date
CN108234511B (en) 2021-07-13

Similar Documents

Publication Publication Date Title
US10536490B2 (en) Apparatus and method for communications involving a legacy device
CN109274634B (en) Multimedia communication method and device, and storage medium
US7313134B2 (en) Proxy server for relaying VOIP messages
US9148333B2 (en) System and method for providing anonymity in a session initiated protocol network
EP1921792A1 (en) Communication system, key management/delivery server, terminal apparatus, data communication method used for them, and program thereof
US20150082021A1 (en) Mobile proxy for webrtc interoperability
JP4961368B2 (en) Terminal device, NAT traversal method, and program
JP2011071726A (en) Session sharing system, method, program, and user terminal
KR101705440B1 (en) Hybrid cloud media architecture for media communications
CN108234511A (en) Method, system, equipment, storage medium and the gateway of multi-medium data transmission
CN107113223A (en) Negotiation for the message block size of message session trunk protocol session
CN107566671A (en) Network voice communication method and its system, storage medium, electronic equipment
WO2007075203A1 (en) A sip multi-user media client comprising a user agent to be shared by a plurality of user applications
JP5091887B2 (en) Terminal device, communication processing method, and program
JP5303403B2 (en) Terminal device, communication method, and program
JP2015118478A (en) Communication adapter device, communication system, tunnel communication method and program
CN102474427B (en) A kind of method and system of direction of the stream for calling of reversing
Deshmukh et al. Video conferencing using WebRTC
JP2023532351A (en) Network access method, media gateway, electronic device and storage medium
CN110365778A (en) A kind of method, apparatus of communication control, electronic equipment and storage medium
Chen et al. Client‐based Internet Protocol version 4‐Internet Protocol version 6 translation mechanism for Session Initiation Protocol multimedia services in next generation networks
Chakraborty et al. VoIP Protocol Fundamentals
JP6413543B2 (en) Load balancing device, server, load balancing system, load balancing program
JP6913132B2 (en) Data transmission assistance method
CN117221292A (en) Audio playing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant