[go: up one dir, main page]

CN108156150A - A kind of data transmission method and device - Google Patents

A kind of data transmission method and device Download PDF

Info

Publication number
CN108156150A
CN108156150A CN201711396249.9A CN201711396249A CN108156150A CN 108156150 A CN108156150 A CN 108156150A CN 201711396249 A CN201711396249 A CN 201711396249A CN 108156150 A CN108156150 A CN 108156150A
Authority
CN
China
Prior art keywords
stream medium
medium data
agent
server
data
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.)
Pending
Application number
CN201711396249.9A
Other languages
Chinese (zh)
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.)
Beijing Wondersoft Technology Co Ltd
Original Assignee
Beijing Wondersoft 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 Beijing Wondersoft Technology Co Ltd filed Critical Beijing Wondersoft Technology Co Ltd
Priority to CN201711396249.9A priority Critical patent/CN108156150A/en
Publication of CN108156150A publication Critical patent/CN108156150A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0281Proxies

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer And Data Communications (AREA)

Abstract

An embodiment of the present invention provides a kind of data transmission method and devices.So, when first agent's server receives destination address, based on RTP communication protocols the first stream medium data at least carrying streaming medium content and target terminal of source terminal transmission, first stream medium data can be converted to the second stream medium data based on default communication protocol, then the second stream medium data is sent to xegregating unit, so that the second stream medium data can be transmitted to second agent's server by xegregating unit.Second stream medium data is converted to the third stream medium data based on RTP communication protocols by second agent's server, then third stream medium data is sent to target terminal according to destination address, so that target terminal is after third stream medium data is received, streaming medium content can be extracted from third stream medium data, can data exchange be carried out by xegregating unit between source terminal and target terminal to realize.

Description

A kind of data transmission method and device
Technical field
The present invention relates to field of communication technology, more particularly to a kind of data transmission method and device.
Background technology
Forward, more and more enterprises store data using the computer of corporate intranet, for example, storage identity data, The confidential information such as property data and core technology data.
In order to ensure the safety of sensitive information, enterprise sets xegregating unit usually between corporate intranet and public network, with It realizes the physical isolation between corporate intranet and public network, confidential data can be effectively prevented from this way and revealed by Internet channel.
But the data in the computer of corporate intranet have a demand accessed by public network again, therefore corporate intranet and public network it Between there is still a need for carry out data exchange.
Invention content
Currently, can data exchange be carried out by xegregating unit between corporate intranet and public network.Wherein, corporate intranet is set During standby transmission data mutual with public network equipment, it will usually using RTP (Real-time Transport Protocol, in real time Transport protocol) the mutual transmission data of communication protocol.For example, when the equipment in corporate intranet needs the equipment into public network to send stream During media content, the equipment in corporate intranet, which can generate, carries streaming medium content, Streaming Media number based on RTP communication protocols According to then the stream medium data being sent to xegregating unit, to ask device forwards of the xegregating unit into the public network Streaming Media number According to.
However, if xegregating unit did not supported RTP communication protocols, the xegregating unit just device forwards stream without normal direction public network Media data, so as to cause public network equipment can not receive corporate intranet equipment send stream medium data, just can not yet Streaming medium content is obtained, and then causes corporate intranet can not be by carrying out data exchange between xegregating unit and public network.
In order to enable corporate intranet can be by carrying out data exchange between xegregating unit and public network, the embodiment of the present invention is shown A kind of data transmission method and device are gone out.
In a first aspect, the embodiment of the present invention shows a kind of data transmission method, the method takes applied to first agent Business device, direct communication connects between first agent's server and source terminal, and first agent's server is set with being isolated Direct communication connects between standby, the method includes:The method includes:
The first stream medium data based on realtime transmission protocol RTP communication protocol that reception source terminal is sent, described first Streaming medium content is at least carried in stream medium data;
The streaming medium content is extracted from first stream medium data;
Obtain for receive the streaming medium content target terminal destination address;
The second stream medium data based on default communication protocol is generated, second stream medium data at least carries the stream Media content and the destination address, the default communication protocol is different from the RTP communication protocols, and the xegregating unit is supported The default communication protocol;
Second stream medium data is sent to the xegregating unit.
In an optional realization method, the source address of the source terminal is also carried in first stream medium data;
It is described acquisition for receive the stream medium data target terminal destination address, including:
The correspondence between the source address of pre-set source terminal and the destination address of target terminal is obtained, it is described right The source terminal corresponding to the source address in each record in should being related to and between target terminal corresponding to destination address between Connect communication connection;
It is searched in the correspondence with the corresponding target of source address that carries in first stream medium data Location, and as the destination address of the target terminal.
Second aspect, the embodiment of the present invention show a kind of data transmission method, and the method takes applied to second agent Business device, direct communication connects between second agent's server and xegregating unit, and second agent's server and target Direct communication connects between terminal, the method includes:
Receive the second stream medium data based on default communication protocol that xegregating unit is sent, second stream medium data The middle destination address for carrying streaming medium content and target terminal, the streaming medium content include source terminal to first agent's server The streaming medium content carried in the first stream medium data based on realtime transmission protocol RTP communication protocol sent, described first Direct communication connects between proxy server and the source terminal, and between first agent's server and the xegregating unit Direct communication connects,
The streaming medium content and the destination address are extracted from second stream medium data;
Generate the third stream medium data based on RTP communication protocols, at least carry in the third stream medium data described in The streaming medium content extracted, the RTP communication protocols are different from the default communication protocol;
The third stream medium data is sent to the target terminal according to the destination address.
The third aspect, the embodiment of the present invention show a kind of data transmission device, and described device takes applied to first agent Business device, direct communication connects between first agent's server and source terminal, and first agent's server is set with being isolated Direct communication connects between standby, and described device includes:
First receiving module, for receive source terminal transmission based on the first-class of realtime transmission protocol RTP communication protocol Media data at least carries streaming medium content in first stream medium data;
First extraction module, for extracting the streaming medium content from first stream medium data;
Acquisition module, for obtain for receive the streaming medium content target terminal destination address;
First generation module, for generating the second stream medium data based on default communication protocol, second Streaming Media Data at least carry the streaming medium content and the destination address, and the default communication protocol and the RTP communication protocols are not Together, the xegregating unit supports the default communication protocol;
First sending module, for sending second stream medium data to the xegregating unit.
In an optional realization method, the source address of the source terminal is also carried in first stream medium data;
The acquisition module includes:
Acquiring unit, for obtaining pair between the source address of pre-set source terminal and the destination address of target terminal It should be related to, the source terminal corresponding to the source address in each record in the correspondence and the mesh corresponding to destination address Indirect communication connects between marking terminal;
Searching unit, for searching the source address phase with being carried in first stream medium data in the correspondence Corresponding destination address, and as the destination address of the target terminal.
Fourth aspect, the embodiment of the present invention show a kind of data transmission device, and described device takes applied to second agent Business device, direct communication connects between second agent's server and xegregating unit, and second agent's server and target Direct communication connects between terminal, and described device includes:
Second receiving module, for receiving the second stream medium data based on default communication protocol of xegregating unit transmission, The destination address of streaming medium content and target terminal is carried in second stream medium data, it is whole that the streaming medium content includes source Hold the stream carried into the first stream medium data based on realtime transmission protocol RTP communication protocol that first agent's server is sent Media content, direct communication connects between first agent's server and the source terminal, and first agent's server Direct communication is connect between the xegregating unit,
Second extraction module, for extracting the streaming medium content and the target from second stream medium data Address;
Second generation module, for generating the third stream medium data based on RTP communication protocols, the third Streaming Media number The streaming medium content extracted described at least being carried in, the RTP communication protocols are different from the default communication protocol;
Second sending module, for sending the third Streaming Media number to the target terminal according to the destination address According to.
5th aspect, the embodiment of the present invention show a kind of electronic equipment, including memory, processor and are stored in storage On device and the computer program that can run on a processor, the processor are realized as described in relation to the first aspect when performing described program A kind of data transmission method the step of.
6th aspect, the embodiment of the present invention show a kind of computer readable storage medium, the computer-readable storage Computer program is stored on medium, when the computer program is executed by processor realize as described in relation to the first aspect based on one The step of kind data transmission method.
7th aspect, the embodiment of the present invention show a kind of electronic equipment, including memory, processor and are stored in storage On device and the computer program that can run on a processor, the processor are realized when performing described program as described in second aspect A kind of data transmission method the step of.
Eighth aspect, the embodiment of the present invention show a kind of computer readable storage medium, the computer-readable storage Computer program is stored on medium, when the computer program is executed by processor realize as described in second aspect based on one The step of kind data transmission method.
Compared with prior art, the embodiment of the present invention includes advantages below:
In embodiments of the present invention, what the communication protocol supported in source terminal and target terminal was supported with xegregating unit In the case of communication protocol difference, first agent's server, first agent's server are set between source terminal and xegregating unit Support the communication protocol supported of source terminal and support communication protocol that xegregating unit supported and, in xegregating unit and mesh Second agent's server is set between mark terminal, the communication protocol that second agent's server support target terminal is supported and support The communication protocol that xegregating unit is supported.
In this way, when what first agent's server received source terminal transmission at least carries streaming medium content and target terminal When destination address, the first stream medium data based on RTP communication protocols, the first stream medium data can be converted to based on pre- If the second stream medium data of communication protocol, the second stream medium data then is sent to xegregating unit, so that xegregating unit can be with Second stream medium data is transmitted to second agent's server.When second agent's server receives the second stream medium data, Second stream medium data can be converted to the third stream medium data based on RTP communication protocols, then according to destination address to Target terminal sends third stream medium data, so that target terminal is after third stream medium data is received, it can be from third stream Streaming medium content is extracted in media data.
Method through the embodiment of the present invention can cause between source terminal and target terminal can by xegregating unit into Row data exchange, that is, corporate intranet can be enabled by carrying out data exchange between xegregating unit and public network.
Description of the drawings
Fig. 1 is a kind of structure diagram of data transmission system embodiment of the present invention;
Fig. 2 is a kind of step flow chart of data transmission method embodiment of the present invention;
Fig. 3 is a kind of structure diagram of data transmission device embodiment of the present invention;
Fig. 4 is a kind of structure diagram of data transmission device embodiment of the present invention.
Specific embodiment
Above-mentioned target, feature and advantage to enable the present invention are more obvious understandable, below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is described in further detail.
With reference to Fig. 1, a kind of structure diagram of data transmission system embodiment of the present invention is shown, it is whole which includes source End 01, first agent's server 02, xegregating unit 03, second agent's server 04 and target terminal 05.
Source terminal 01 and target terminal 05 can be mobile phone, tablet computer or desktop computer etc..Xegregating unit 02 can Think gateway etc..
Direct communication connects between source terminal 01 and first agent's server 02, first agent's server 02 and xegregating unit Direct communication connects between 03, direct communication connection and second agent between xegregating unit 03 and second agent's server 04 Server 04 is connect with 05 direct communication of target terminal.
In embodiments of the present invention, when two equipment direct communications connect, have communication link between the two equipment, The two equipment can mutually directly transmit data by the communication link.
When two equipment direct communications connect, do not have communication link between two equipment, the two equipment difference Have communication link between another equipment, for example, the two equipment are respectively device A and equipment B, device A in addition Have communication link 1 between one equipment C, equipment B also has a communication link 2 between another equipment C, device A and Equipment B can pass through 1 and 2 mutual transmission data of communication link.
With reference to Fig. 2, show a kind of step flow chart of data transmission method embodiment of the present invention, can specifically include Following steps:
In step S101, first agent's server receives the first-class matchmaker based on RTP communication protocols that source terminal is sent Volume data at least carries streaming medium content in the first stream medium data;
In embodiments of the present invention, if source terminal needs to send streaming medium content to target terminal, firstly the need of making It is communicated to connect between source terminal and target terminal.Due to be additionally provided between source terminal and target terminal in the embodiment of the present invention every From equipment, therefore the stream medium data for carrying streaming medium content is first sent to xegregating unit, then set by isolation by source terminal needs It is standby that stream medium data is forwarded to target terminal.In this way, when making to communicate to connect between source terminal and target terminal, need to make source Communicated to connect between terminal and xegregating unit and, need to make to communicate to connect between xegregating unit and target terminal, so realize Indirect communication connects between source terminal and target terminal.
Wherein, in embodiments of the present invention, source terminal supports RTP communication protocols, and xegregating unit supports default communication protocol, That is, the communication protocol that source terminal is supported is different from the communication protocol that xegregating unit is supported, therefore, it is impossible to make source terminal with Direct communication connects between xegregating unit.
It is therefore desirable to setting can support RTP communication protocols and preset to communicate simultaneously between source terminal and xegregating unit First agent's server of agreement, then can establish communication link between source terminal and first agent's server and, build Vertical communication link between first agent's server and xegregating unit so realizes indirect communication between source terminal and xegregating unit Connection.
In embodiments of the present invention, default communication protocol can be TCP (Transmission ControlProtocol, Transmission control protocol) agreement or UDP (User Datagram Protocol, User Datagram Protocol) agreement etc.,
RTP communication protocols are supported accordingly, due to target terminal, and xegregating unit supports default communication protocol, that is, target The communication protocol that terminal is supported is different from the communication protocol that xegregating unit is supported, therefore, it is impossible to make xegregating unit and target Direct communication connects between terminal, it is therefore desirable to which setting can support RTP to communicate simultaneously between xegregating unit and target terminal Second agent's server of agreement and default communication protocol, then can establish between xegregating unit and second agent's server Communication link and, establish the communication link between second agent's server and target terminal, so realize xegregating unit and mesh Indirect communication connects between marking terminal.
When indirect communication connection between realization source terminal and xegregating unit and realize between xegregating unit and target terminal When indirect communication connects, then realize that indirect communication connects between source terminal and target terminal, so that target terminal can connect It receives the stream medium data of source terminal transmission and streaming medium content is extracted from stream medium data.
When making indirect communication connection between source terminal and target terminal, source terminal can be generated based on RTP communication protocols For asking to establish the request message of communication link, which carries the source address of source terminal and the target of target terminal Then address sends the request message to first agent's server.
The source address of source terminal in the embodiment of the present invention includes IP (Internet Protocol, the internet of source terminal Agreement) address and port etc., IP address and port of the destination address including target terminal of target terminal etc.,
First agent's server receives the request message that source terminal is sent, which is converted to based on default logical The request message that communication link is established for request of letter agreement, and send to xegregating unit and be used for based on default communication protocol The request message of communication link is established in request.
Xegregating unit receives the request that is used for based on default communication protocol that first agent's server is sent and establishes communication chain The request message on road, and sent to second agent's server and asking for communication link is established for request based on default communication protocol Seek message.
Second agent's server receives the request that is used for based on default communication protocol that xegregating unit is sent and establishes communication chain The request message on road is converted to the request message that communication link is established for request based on default communication protocol based on RTP The request message that communication link is established for request of communication protocol, and send the use based on RTP communication protocols to target terminal The request message of communication link is established in request.
Target terminal receives the request that is used for based on RTP communication protocols that second agent's server is sent and establishes communication link Request message, according to based on RTP communication protocols for the request message generation for establishing communication link to be asked to communicate based on RTP The response message for being used to establish communication link of agreement, the response message carry the source address of source terminal and the target of target terminal Then address sends the response message based on RTP communication protocols to second agent's server.
Second agent's server receives the sound for being used to establish communication link based on RTP communication protocols that target terminal is sent Message is answered, so realizes and establishes communication link between second agent's server and target terminal, then second server is by base It is converted in the response message for foundation communication connection of RTP communication protocols and foundation communication is used for based on default communication protocol The response message of link, and the response message for being used to establish communication link based on default communication protocol is sent to xegregating unit.
Xegregating unit receive that second agent server sends based on default communication protocol for establishing communication link Response message is so realized the communication link established between xegregating unit and second agent's server, is then taken to first agent The response message that is used to establish communication link of the business device forwarding based on default communication protocol.
First agent's server receive that xegregating unit sends based on default communication protocol for establishing communication link Response message so realizes the communication link established between first agent's server and xegregating unit, and then first server will The response message for being used to establish communication link based on default communication protocol is converted to logical for establishing based on RTP communication protocols Believe the response message of link, and the response message for being used to establish communication link based on default communication protocol is sent to source terminal.
Source terminal receives the link for foundation communication connection based on RTP communication protocols that first agent's server is sent Message so realizes the communication link established between source terminal and first agent's server.
In still another embodiment of the process, the source terminal being connect with first agent's server communication may have it is multiple, in this way, First agent's server may receive the first-class matchmaker based on RTP communication protocols that a large amount of source terminal is sent in a short time Volume data, first agent's server can not often be disposed the first all stream medium datas in a short time, therefore, often It needs the first stream medium data that a large amount of source terminal received is sent being stored in local, obtains storage from local again later The first stream medium data, the first stream medium data then got according to the flow processing of step S102~step S111, And from locally deleting the first stream medium data for getting after being disposed.
It is set for example, the first stream medium data based on RTP communication protocols that a large amount of source terminal is sent is stored in isolation In standby queue, the first stream medium data for being sent to xegregating unit is stored in xegregating unit queue and then from isolation First stream medium data is obtained in device queue, is then got according to the flow processing of step S102~step S111 First stream medium data, and the first stream medium data got is deleted from isolation queue after being disposed.
In step s 102, first agent's server extracts streaming medium content from the first stream medium data;
In step s 103, first agent's server obtains the target of the target terminal for receiving stream media content Location;
In embodiments of the present invention, it is sent in first agent's server to source terminal and is used to build based on default communication protocol After the response message of vertical communication link, so as to be achieved that, indirect communication connects between source terminal and target terminal, and at this time the One proxy server can extract source terminal from the response message for establishing communication link based on default communication protocol Source address and target terminal destination address and the source address of source terminal and the destination address of target terminal are formed one Record, and the correspondence obtained between pre-set source address and destination address is stored in, wherein, in the correspondence The source terminal corresponding to source address in each record and indirect communication connection between the target terminal corresponding to destination address;
In the embodiment of the present invention, the based on RTP communication protocols that source terminal that first agent's server receives is sent The source address of source terminal is also carried in one stream medium data;Therefore, this step is specifically as follows:Obtain pre-set source address Correspondence between destination address, then lookup and the corresponding destination address of source address in the correspondence, and make Destination address for target terminal.
In step S104, second stream medium data of first agent's server generation based on default communication protocol, second Stream medium data at least carries the destination address of streaming medium content and target terminal, presets communication protocol and RTP communication protocols not Together, xegregating unit supports default communication protocol;
In embodiments of the present invention, it is set if the first stream medium data is directly sent to isolation by first agent's server It is standby, since xegregating unit does not support RTP communication protocols, only support default communication protocol, therefore xegregating unit can not parse the The streaming medium content and destination address carried in one stream medium data, and then can not xegregating unit and mesh be determined according to destination address The server address of second agent's server between terminal is marked, so as to which no normal direction second agent server forwards the first Streaming Media Data, target terminal also can not just receive the first stream medium data, and then can not obtain streaming medium content.
Therefore, in order to which target terminal can obtain streaming medium content, first agent's server needs to generate based on default logical Believe the second stream medium data of agreement, the second stream medium data at least carries the destination address of streaming medium content and target terminal, Then step S105 is performed.
In step S105, first agent's server sends the second stream medium data to xegregating unit.
In this step, first agent's server can be sent out by the communication link between xegregating unit to xegregating unit Send the second stream medium data.
In step s 106, xegregating unit receives the second stream medium data that first agent's server is sent;
In this step, xegregating unit can receive first agent by the communication link between first agent's server The second stream medium data that server is sent.
Since xegregating unit supports default communication protocol, xegregating unit can parse the transmission of first agent's server Second stream medium data obtains the destination address of the streaming medium content and target terminal carried in the second stream medium data, then The server address of second agent's server between xegregating unit and target terminal is determined according to the destination address of target terminal, Further according to the server address of second agent's server the second stream medium data is sent to second agent's server.
In step s 107, xegregating unit sends the second stream medium data to second agent's server;
In this step, xegregating unit can be taken by the communication link between second agent's server to second agent Business device sends the second stream medium data.
In step S108, second agent's server receives the second stream medium data that xegregating unit is sent;
In this step, second agent's server can receive xegregating unit by the communication link between xegregating unit The second stream medium data sent.
In step S109, second agent's server extracts streaming medium content from the second stream medium data and target is whole The destination address at end;
Since second agent's server supports default communication protocol, second agent's server can parse second Media data, so as to obtain the destination address of the streaming medium content and target terminal carried in the second stream medium data.
In step s 110, third stream medium data of second agent's server generation based on RTP communication protocols, third stream The streaming medium content extracted is at least carried in media data;
In embodiments of the present invention, if the second stream medium data is directly sent to target end by second agent's server RTP communication protocols since target terminal does not support default communication protocol, are only supported in end, therefore target terminal can not parse the The streaming medium content carried in two stream medium datas also can not just obtain streaming medium content.
Therefore, in order to enable target terminal can obtain streaming medium content, second agent's server needs to generate based on RTP The third stream medium data of communication protocol at least carries streaming medium content in third stream medium data, then performs step S111.
In step S111, second agent's server sends third according to the destination address of destination server to target terminal Stream medium data.
In this step, second agent's server can be sent out by the communication link between target terminal to target terminal Send third stream medium data.
Further, target terminal can receive second agent by the communication link between second agent's server and take The third stream medium data that business device is sent.
Wherein, since target terminal supports RTP communication protocols, target terminal can parse third stream medium data The streaming medium content of middle carrying, so as to obtain streaming medium content.
In embodiments of the present invention, what the communication protocol supported in source terminal and target terminal was supported with xegregating unit In the case of communication protocol difference, first agent's server, first agent's server are set between source terminal and xegregating unit Support the communication protocol supported of source terminal and support communication protocol that xegregating unit supported and, in xegregating unit and mesh Second agent's server is set between mark terminal, the communication protocol that second agent's server support target terminal is supported and support The communication protocol that xegregating unit is supported.
In this way, when what first agent's server received source terminal transmission at least carries streaming medium content and target terminal When destination address, the first stream medium data based on RTP communication protocols, the first stream medium data can be converted to based on pre- If the second stream medium data of communication protocol, the second stream medium data then is sent to xegregating unit, so that xegregating unit can be with Second stream medium data is transmitted to second agent's server.When second agent's server receives the second stream medium data, Second stream medium data can be converted to the third stream medium data based on RTP communication protocols, then according to destination address to Target terminal sends third stream medium data, so that target terminal is after third stream medium data is received, it can be from third stream Streaming medium content is extracted in media data.
Method through the embodiment of the present invention can cause between source terminal and target terminal can by xegregating unit into Row data exchange, that is, corporate intranet can be enabled by carrying out data exchange between xegregating unit and public network.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group It closes, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to According to the embodiment of the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented Necessary to example.
With reference to Fig. 3, a kind of structure diagram of data transmission device embodiment of the present invention is shown, described device is applied to the One proxy server, direct communication connects between first agent's server and source terminal, and first agent's server Direct communication is connect between xegregating unit, and described device can specifically include following module:
First receiving module 11, for receiving first based on realtime transmission protocol RTP communication protocol of source terminal transmission Stream medium data at least carries streaming medium content in first stream medium data;
First extraction module 12, for extracting the streaming medium content from first stream medium data;
Acquisition module 13, for obtain for receive the streaming medium content target terminal destination address;
First generation module 14, for generating the second stream medium data based on default communication protocol, the second matchmaker Volume data at least carries the streaming medium content and the destination address, the default communication protocol and the RTP communication protocols Difference, the xegregating unit support the default communication protocol;
First sending module 15, for sending second stream medium data to the xegregating unit.
In an optional realization method, the source address of the source terminal is also carried in first stream medium data;
The acquisition module 13 includes:
Acquiring unit, for obtaining pair between the source address of pre-set source terminal and the destination address of target terminal It should be related to, the source terminal corresponding to the source address in each record in the correspondence and the mesh corresponding to destination address Indirect communication connects between marking terminal;
Searching unit, for searching the source address phase with being carried in first stream medium data in the correspondence Corresponding destination address, and as the destination address of the target terminal.
In embodiments of the present invention, what the communication protocol supported in source terminal and target terminal was supported with xegregating unit In the case of communication protocol difference, first agent's server, first agent's server are set between source terminal and xegregating unit Support the communication protocol supported of source terminal and support communication protocol that xegregating unit supported and, in xegregating unit and mesh Second agent's server is set between mark terminal, the communication protocol that second agent's server support target terminal is supported and support The communication protocol that xegregating unit is supported.
In this way, when what first agent's server received source terminal transmission at least carries streaming medium content and target terminal When destination address, the first stream medium data based on RTP communication protocols, the first stream medium data can be converted to based on pre- If the second stream medium data of communication protocol, the second stream medium data then is sent to xegregating unit, so that xegregating unit can be with Second stream medium data is transmitted to second agent's server.When second agent's server receives the second stream medium data, Second stream medium data can be converted to the third stream medium data based on RTP communication protocols, then according to destination address to Target terminal sends third stream medium data, so that target terminal is after third stream medium data is received, it can be from third stream Streaming medium content is extracted in media data.
Method through the embodiment of the present invention can cause between source terminal and target terminal can by xegregating unit into Row data exchange, that is, corporate intranet can be enabled by carrying out data exchange between xegregating unit and public network.
With reference to Fig. 4, a kind of structure diagram of data transmission device embodiment of the present invention is shown, described device is applied to the Two proxy servers, direct communication connects between second agent's server and xegregating unit, and the second agent services Direct communication connects between device and target terminal, and described device can specifically include following module:
Second receiving module 21, for receiving the second Streaming Media number based on default communication protocol of xegregating unit transmission According to the destination address of carrying streaming medium content and target terminal in second stream medium data, the streaming medium content includes Source terminal is carried into the first stream medium data based on realtime transmission protocol RTP communication protocol that first agent's server is sent Streaming medium content, between first agent's server and the source terminal direct communication connect, and the first agent take Direct communication between device and the xegregating unit of being engaged in connects,
Second extraction module 22, for extracting the streaming medium content and the mesh from second stream medium data Mark address;
Second generation module 23, for generating the third stream medium data based on RTP communication protocols, the third Streaming Media The streaming medium content extracted described at least being carried in data, the RTP communication protocols are different from the default communication protocol;
Second sending module 24, for sending the third Streaming Media number to the target terminal according to the destination address According to.
In embodiments of the present invention, what the communication protocol supported in source terminal and target terminal was supported with xegregating unit In the case of communication protocol difference, first agent's server, first agent's server are set between source terminal and xegregating unit Support the communication protocol supported of source terminal and support communication protocol that xegregating unit supported and, in xegregating unit and mesh Second agent's server is set between mark terminal, the communication protocol that second agent's server support target terminal is supported and support The communication protocol that xegregating unit is supported.
In this way, when what first agent's server received source terminal transmission at least carries streaming medium content and target terminal When destination address, the first stream medium data based on RTP communication protocols, the first stream medium data can be converted to based on pre- If the second stream medium data of communication protocol, the second stream medium data then is sent to xegregating unit, so that xegregating unit can be with Second stream medium data is transmitted to second agent's server.When second agent's server receives the second stream medium data, Second stream medium data can be converted to the third stream medium data based on RTP communication protocols, then according to destination address to Target terminal sends third stream medium data, so that target terminal is after third stream medium data is received, it can be from third stream Streaming medium content is extracted in media data.
Method through the embodiment of the present invention can cause between source terminal and target terminal can by xegregating unit into Row data exchange, that is, corporate intranet can be enabled by carrying out data exchange between xegregating unit and public network.
For device embodiment, since it is basicly similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, the highlights of each of the examples are with The difference of other embodiment, just to refer each other for identical similar part between each embodiment.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in flow and/or box combination.These can be provided Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine so that is held by the processor of computer or other programmable data processing terminal equipments Capable instruction generation is used to implement in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes The device for the function of specifying.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments In the computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory generates packet The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that Series of operation steps are performed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction offer performed on computer or other programmable terminal equipments is used to implement in one flow of flow chart or multiple flows And/or specified in one box of block diagram or multiple boxes function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, those skilled in the art once know base This creative concept can then make these embodiments other change and modification.So appended claims are intended to be construed to Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements are not only wrapped Those elements are included, but also including other elements that are not explicitly listed or are further included as this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, it is wanted by what sentence "including a ..." limited Element, it is not excluded that also there are other identical elements in the process including the element, method, article or terminal device.
Above to a kind of data transmission method provided by the present invention and device, it is described in detail, it is used herein Specific case is expounded the principle of the present invention and embodiment, to understand the explanation of above example is only intended to helping The method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, thought according to the present invention is having There will be changes in body embodiment and application range, in conclusion the content of the present specification should not be construed as to the present invention Limitation.

Claims (10)

1. a kind of data transmission method, which is characterized in that the method is applied to first agent's server, first agent's clothes Direct communication between device and source terminal of being engaged in connects, and direct communication connects between first agent's server and xegregating unit, The method includes:
Receive the first stream medium data based on realtime transmission protocol RTP communication protocol that source terminal is sent, the first-class matchmaker Streaming medium content is at least carried in volume data;
The streaming medium content is extracted from first stream medium data;
Obtain for receive the streaming medium content target terminal destination address;
The second stream medium data based on default communication protocol is generated, second stream medium data at least carries the Streaming Media Content and the destination address, the default communication protocol is different from the RTP communication protocols, described in the xegregating unit support Default communication protocol;
Second stream medium data is sent to the xegregating unit.
2. according to the method described in claim 1, it is characterized in that, also carry the source terminal in first stream medium data Source address;
It is described acquisition for receive the stream medium data target terminal destination address, including:
Obtain the correspondence between the source address of pre-set source terminal and the destination address of target terminal, the corresponding pass The source terminal corresponding to the source address in each record in system and between target terminal corresponding to destination address between connect Letter connection;
The corresponding destination address of source address with being carried in first stream medium data is searched in the correspondence, and Destination address as the target terminal.
3. a kind of data transmission method, which is characterized in that the method is applied to second agent's server, second agent's clothes Direct communication between device and xegregating unit of being engaged in connects, and direct communication connects between second agent's server and target terminal It connects, the method includes:
The second stream medium data based on default communication protocol that xegregating unit is sent is received, is taken in second stream medium data Destination address with streaming medium content and target terminal, the streaming medium content include source terminal and are sent to first agent's server The first stream medium data based on realtime transmission protocol RTP communication protocol in the streaming medium content that carries, the first agent Direct communication connects between server and the source terminal, and between first agent's server and the xegregating unit directly Communication connection,
The streaming medium content and the destination address are extracted from second stream medium data;
The third stream medium data based on RTP communication protocols is generated, the extraction is at least carried in the third stream medium data The streaming medium content gone out, the RTP communication protocols are different from the default communication protocol;
The third stream medium data is sent to the target terminal according to the destination address.
4. a kind of data transmission device, which is characterized in that described device is applied to first agent's server, first agent's clothes Direct communication between device and source terminal of being engaged in connects, and direct communication connects between first agent's server and xegregating unit, Described device includes:
First receiving module, for receiving the first Streaming Media based on realtime transmission protocol RTP communication protocol of source terminal transmission Data at least carry streaming medium content in first stream medium data;
First extraction module, for extracting the streaming medium content from first stream medium data;
Acquisition module, for obtain for receive the streaming medium content target terminal destination address;
First generation module, for generating the second stream medium data based on default communication protocol, second stream medium data The streaming medium content and the destination address are at least carried, the default communication protocol is different from the RTP communication protocols, institute It states xegregating unit and supports the default communication protocol;
First sending module, for sending second stream medium data to the xegregating unit.
5. device according to claim 4, which is characterized in that also carry the source terminal in first stream medium data Source address;
The acquisition module includes:
Acquiring unit, for obtaining the corresponding pass between the source address of pre-set source terminal and the destination address of target terminal It is that the source terminal corresponding to the source address in each record in the correspondence and the target corresponding to destination address are whole Indirect communication connects between end;
Searching unit, it is corresponding with the source address carried in first stream medium data for being searched in the correspondence Destination address, and as the destination address of the target terminal.
6. a kind of data transmission device, which is characterized in that described device is applied to second agent's server, second agent's clothes Direct communication between device and xegregating unit of being engaged in connects, and direct communication connects between second agent's server and target terminal It connects, described device includes:
Second receiving module, it is described for receiving the second stream medium data based on default communication protocol of xegregating unit transmission Carry the destination address of streaming medium content and target terminal in second stream medium data, the streaming medium content include source terminal to The Streaming Media carried in the first stream medium data based on realtime transmission protocol RTP communication protocol that first agent's server is sent Content, direct communication connects between first agent's server and the source terminal, and first agent's server and institute Direct communication connects between stating xegregating unit,
Second extraction module, for extracting the streaming medium content and the target from second stream medium data Location;
Second generation module, for generating the third stream medium data based on RTP communication protocols, in the third stream medium data The streaming medium content extracted described at least carrying, the RTP communication protocols are different from the default communication protocol;
Second sending module, for sending the third stream medium data to the target terminal according to the destination address.
7. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that the processor realizes that a kind of data as claimed in claim 1 or 2 pass when performing described program The step of transmission method.
8. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program is realized when the computer program is executed by processor and is based on a kind of data transmission method as claimed in claim 1 or 2 The step of.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that the processor realizes a kind of transmission side data as claimed in claim 3 when performing described program The step of method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program is realized when the computer program is executed by processor as claimed in claim 3 based on a kind of data transmission method Step.
CN201711396249.9A 2017-12-21 2017-12-21 A kind of data transmission method and device Pending CN108156150A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711396249.9A CN108156150A (en) 2017-12-21 2017-12-21 A kind of data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711396249.9A CN108156150A (en) 2017-12-21 2017-12-21 A kind of data transmission method and device

Publications (1)

Publication Number Publication Date
CN108156150A true CN108156150A (en) 2018-06-12

Family

ID=62464819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711396249.9A Pending CN108156150A (en) 2017-12-21 2017-12-21 A kind of data transmission method and device

Country Status (1)

Country Link
CN (1) CN108156150A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115103234A (en) * 2022-06-07 2022-09-23 慧之安信息技术股份有限公司 Image remote transmission method based on RTP

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1606304A (en) * 2003-10-10 2005-04-13 华为技术有限公司 Method for traversing NAT equipment/firewall by NGN service
JP2008252246A (en) * 2007-03-29 2008-10-16 Nec Access Technica Ltd Image communication system and image communication method
CN101707609A (en) * 2002-03-08 2010-05-12 英特尔公司 Method and apparatus for connecting packet telephony calls between secure and non-secure networks
CN105591879A (en) * 2014-11-07 2016-05-18 腾讯科技(深圳)有限公司 Data transmission method and apparatus
CN105915500A (en) * 2015-12-22 2016-08-31 美的集团股份有限公司 Method, protocol conversion service end and Internet of things terminal for conversion of different Internet of things protocols
CN106656730A (en) * 2015-10-30 2017-05-10 西门子公司 Communication method, communication device, and communication system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707609A (en) * 2002-03-08 2010-05-12 英特尔公司 Method and apparatus for connecting packet telephony calls between secure and non-secure networks
CN1606304A (en) * 2003-10-10 2005-04-13 华为技术有限公司 Method for traversing NAT equipment/firewall by NGN service
JP2008252246A (en) * 2007-03-29 2008-10-16 Nec Access Technica Ltd Image communication system and image communication method
CN105591879A (en) * 2014-11-07 2016-05-18 腾讯科技(深圳)有限公司 Data transmission method and apparatus
CN106656730A (en) * 2015-10-30 2017-05-10 西门子公司 Communication method, communication device, and communication system
CN105915500A (en) * 2015-12-22 2016-08-31 美的集团股份有限公司 Method, protocol conversion service end and Internet of things terminal for conversion of different Internet of things protocols

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115103234A (en) * 2022-06-07 2022-09-23 慧之安信息技术股份有限公司 Image remote transmission method based on RTP

Similar Documents

Publication Publication Date Title
US10637970B2 (en) Packet processing method and apparatus
JP6054484B2 (en) System and method using a client local proxy server to access a device having an assigned network address
CN104253857B (en) Virtual WEB real-time Communication for Power agency is with and related methods, system back-to-back
US10250646B2 (en) Method and device for establishing channel
CN103535004B (en) Method and web-based system for facilitating anonymous audio and video communications
CN104125145B (en) Web browser based communication method, web browser based communication equipment and web browser based communication system
CN104253856A (en) Scalable Web Real-Time Communications (WebRTC) media engines, and related method and system
CN111510476B (en) Communication method, communication device, computer equipment and computer readable storage medium
EP1911250A1 (en) Technique for translating location information
CN108259542A (en) The transmission method and device of resource
CN106961426B (en) Communication method and device of intelligent equipment
US8903972B2 (en) Method and apparatus for sharing contents using information of group change in content oriented network environment
CN103581248A (en) Method and device for providing content distribution network CDN service
CN103997479B (en) A kind of asymmetric services IP Proxy Methods and equipment
US20140164543A1 (en) Communication System, Application Server and Communication Method for Server Cooperation
CN103929438B (en) Firewall traversal method, equipment and system based on web page browser communication
CN103581361A (en) Domain name resolution proxy method, device and system
CN107645570A (en) Client loading method and device
CN111464879B (en) Data communication method and device
CN104283972B (en) Information push method, equipment and system based on browser
CN103973648B (en) Application data method for pushing, apparatus and system
CN107864161A (en) A kind of data transmission method and device
CN104168302B (en) Equipment manipulation implementation method, system and proxy gateway
US20070025337A1 (en) Technique for providing ancillary information to an entity in a communications network
CN105991465A (en) Service processing method, device and system for application

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