CN105897761B - ICE method of servicing, ICE server and ICE client - Google Patents
ICE method of servicing, ICE server and ICE client Download PDFInfo
- Publication number
- CN105897761B CN105897761B CN201610424443.2A CN201610424443A CN105897761B CN 105897761 B CN105897761 B CN 105897761B CN 201610424443 A CN201610424443 A CN 201610424443A CN 105897761 B CN105897761 B CN 105897761B
- Authority
- CN
- China
- Prior art keywords
- udt
- stun
- ice
- protocol package
- port
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
- H04L61/256—NAT traversal
- H04L61/2575—NAT traversal using address mapping retrieval, e.g. simple traversal of user datagram protocol through session traversal utilities for NAT [STUN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/164—Adaptation or special uses of UDP protocol
Abstract
The present invention provides a kind of ICE method of servicing, wherein the data of ICE server and ICE client are transmitted, and using UDT data transfer means transfers UDT protocol package, and UDP message transmission method transmission stun protocol package can be used.ICE server carries out the conversion of UDT agreement and stun protocol package by UDT agent unit.ICE server corresponding with the above method and ICE client are also provided.The transmission of the data of ICE server and client uses UDT data transmission method in the present invention, since UDT data transmission method has congestion control and data Control for Dependability mechanism during data are transmitted, it thus can the maximum reliability for ensureing data and data traffic optimization.ICE server receives UDT protocol package, stun protocol package simultaneously, has compatibility well.
Description
Technical field
The present invention relates to technical field of the computer network, and in particular to ICE service technology.
Background technique
ICE application is the service transmitted using UDP based on stun agreement.
UDP is a kind of connectionless transmission.UDP does not provide data packet grouping, assembling and cannot be ranked up to data packet
The shortcomings that, that is to say, that after message is sent, it can not learn its whether safe and complete arrival.
In this regard, a solution of the prior art is, adds ACK affirmation mechanism in the Communication Layer of ICE, that is, sending data
When packet, the abstract for sending data is done into primary caching, is removed data summarization when receiving ACK confirmation, to guarantee number
According to whether reaching.Such ACK mechanism haves the defects that apparent: ACK lacks processing scheme in the case where losing;And it does not have
There is congestion control, may result in UDP packet and largely send, so that data traffic be caused to increase.
Summary of the invention
The purpose of the present invention is to provide a kind of ICE method of servicing, ICE server and ICE clients, can pass in data
The reliability of data is ensured in defeated process.
ICE method of servicing of the invention, wherein ICE server is carried out and ICE client using UDT data transmission method
Data transmission.
Wherein, the data that ICE server uses UDT data transmission method to be transmitted for UDT protocol package, ICE server to
ICE client carries out the conversion of stun protocol package to UDT protocol package before sending data, and ICE server receives number from ICE client
According to the conversion of rear progress UDT protocol package to stun protocol package.
Preferably, ICE server uses UDT data transfer means transfers UDT protocol package, and UDP message transmission can be used
Method transmits stun protocol package, and for UDT protocol package, ICE server carries out stun protocol package before sending data to ICE client
To the conversion of UDT protocol package, ICE server carries out UDT protocol package after receiving data from ICE client and turns to stun protocol package
It changes.
Wherein, after ICE server receives data, judge whether it is UDT protocol package: being arrived if so, carrying out UDT protocol package
The conversion of stun protocol package;Before ICE server sends data, judge whether to be sent with UDT protocol package: if so, carrying out
Conversion of the stun protocol package to UDT protocol package.
Wherein, ICE server carries out data processing by stun server, it is preferable that the ICE method of servicing is every
One ICE client specifies a port stun of stun server, and sends over when ICE server receives ICE client
UDT protocol package when, a UDT agent unit can be generated for the client and be connect with specified stun port communication, UDT is acted on behalf of
Unit carries out the conversion of UDT protocol package and stun protocol package, and the transmission of stun protocol package is carried out between the port stun, and
The transmission of UDT protocol package is carried out between ICE client.
ICE server of the invention including stun server and carries out UDT protocol package and the conversion of stun protocol package
UDT agent unit, wherein stun server has the port stun, and UDT agent unit includes the port UDT, logical with ICE client
Letter connection, with UDT data transfer means transfers UDT protocol package;Connectivity port is connect with stun port communication, transmission stun association
View packet.
Preferably, ICE server includes the port UDT, with ICE client with UDT data transfer means transfers UDT agreement
Packet, the port UDT are the port UDT of UDT agent unit;The port stun, with ICE client with the transmission of UDP message transmission method
Stun protocol package, the port stun are the port stun of stun server.
Preferably, the corresponding specified port stun of each ICE client and data transfer path, UDT agency are single
Member is connected between the specified port stun and the ICE client for sending UDT protocol package, specified data transmission path it
On.
Wherein, ICE server is equipped with judging unit, makes the following judgment: after receiving data, judging whether it is UDT agreement
Packet: if so, carrying out the conversion of UDT protocol package to stun protocol package by UDT agent unit, and stun protocol packet transmissions are given
The port stun;If it is not, then giving stun protocol packet transmissions to the port stun, before sending data, judge whether with the progress of UDT protocol package
It sends: if so, by being sent after UDT agent unit progress stun protocol package to the conversion of UDT protocol package from the port UDT;If
It is no, then stun protocol package is sent from the port stun.
ICE client of the invention has the port UDT, with UDT data transmission method between the port UDT and ICE server
Carry out the transmission of UDT protocol package.
The beneficial effects of the present invention are, ICE method of servicing of the invention, ICE server and ICE client, wherein ICE
The transmission of the data of server and client uses UDT agreement, since UDT agreement has congestion control during data are transmitted
With data Control for Dependability mechanism, thus can it is maximum ensure data reliability and data traffic optimize.
In the present invention, UDT data transfer means transfers UDT agreement is used between ICE server and new edition ICE client
Packet, and stun protocol package can be transmitted using UDP message transmission method between old edition ICE client.ICE server can be simultaneously
Receive UDT protocol package, stun protocol package both data, not only support more dominance can UDT protocol packet transmissions, also support original
Stun protocol packet transmissions have compatibility well.ICE server passes through the port stun and the port UDT transmitting-receiving stun association respectively
View packet and UDT protocol package.
ICE server by UDT agent unit carry out UDT protocol package and stun protocol package conversion and with stun server
It carries out the interaction of stun protocol package: the conversion of stun protocol package to UDT protocol package is carried out before sending data to client, from client
End carries out the conversion of UDT protocol package to stun protocol package after receiving data.It is thus achieved that the support to UDT protocol package.
Detailed description of the invention
Fig. 1 is ICE serving system architecture figure of the invention.
Specific embodiment
Embodiments of the present invention are described with reference to the accompanying drawings, wherein identical component is presented with like reference characters.
UDT full name is the Data Transport Protocol (UDP-based Data Transfer Protocol) based on UDP.UDT
Main purpose be to support the online mass data transfers of high speed wide area.As its name suggests, UDT is built on UDP, and is introduced newly
Congestion control and data Control for Dependability mechanism.UDT is connection-oriented two-way application layer protocol.It supports reliable simultaneously
The reliable datagram transmission of data stream transmitting and part.Since UDT is realized on UDP completely, it can also be applied in addition to height
Other application field except fast data transmission.
In order to improve the reliability of ICE application data, the present invention considers to realize ICE method of servicing, structure on the basis of UDT
Build ICE server and ICE client.
Existing ICE client (old edition) and ICE server are established before direct channel, need by stun protocol package with
ICE server carries out related interaction, to obtain the Session Description Protocol (SDP information) of client itself.
It include stun server in ICE server in the present invention, stun server is received and dispatched and further by the port stun
Handle stun protocol package.Stun server is the core of ICE server.
The present invention uses UDT agreement (i.e. UDT data transmission method), Lai Shixian ICE server and new edition ICE client it
Between data transmission, i.e., data UDT protocol package between the two is transmitted using UDT agreement.
For the ICE client of old edition, ICE server sends and receives stun protocol package, and stun protocol package is assisted by UDP
View transmission.
In ICE server, UDT agent unit is configured with for original stun server.UDT agent unit has connecting pin
Mouthful, it is connect with the stun port communication of stun server, carries out the transmission of stun protocol package.UDT agent unit also has the end UDT
Mouthful, it is communicated to connect with ICE client (new edition), receives and dispatches UDT protocol package.
Stun server receives and dispatches stun protocol package by the port stun.Indeed, it is possible to for every ICE client specified one
A port stun.The port stun can be directly connected to ICE client, carry out the transmitting-receiving of stun protocol package.The port stun can also be with
UDT agent unit is connected, collaboration UDT agent unit carries out the transmitting-receiving of UDT protocol package.
UDT agent unit realizes the conversion of UDT protocol package and stun protocol package.Specifically, the data conversion are as follows: right
UDT protocol package, is unpacked, and the UDT agreement of peeling outer layer obtains original stun protocol package;To stun protocol package, sealed
Packet, becomes UDT protocol package.
There are two types of data port for ICE server tool as a result: the port stun and the port UDT are respectively used to transmitting-receiving from client
The stun protocol package and UDT protocol package at end.
To sum up, the present invention provides a kind of ICE method of servicing, wherein the data of ICE server and new edition client are transmitted
Using UDT agreement, UDT protocol package is transmitted, realizes the reliability of data, and data traffic is minimum.
Preferably, ICE server can still be carried out data transmission with old edition client using udp protocol, transmit stun agreement
Packet.The data that ICE server can carry out different mode with new edition client, old edition client simultaneously are transmitted, and compatibility is realized.
ICE server can certainly only receive UDT protocol package, this is incompatible situation.
For UDT protocol package, since what is handled in stun server is stun protocol package, thus need to carry out stun agreement
The conversion of packet and UDT protocol package.It is, ICE server carries out stun protocol package to UDT agreement before sending data to client
The conversion of packet, ICE server carry out the conversion of UDT protocol package to stun protocol package after receiving data from client.
The case where both having received UDT protocol package for ICE server or having received stun protocol package, needs to sentence after receiving the data
Whether disconnected is UDT protocol package: if so, carrying out UDT protocol package to the conversion of stun protocol package, will then convert resulting stun
Protocol package is supplied to stun server;If it is not, stun protocol package is then supplied directly to stun server.
For sending UDT protocol package to the client of ICE server, need to return to UDT protocol package to it.And for sending
Stun protocol package needs to return to stun protocol package to it to the client of ICE server.Thus, ICE server sends data
Before, it can judge whether to be sent with UDT protocol package accordingly: if so, carrying out the conversion of stun protocol package to UDT protocol package;
If it is not, then stun protocol package is directly transmitted.The transmission of UDT protocol package uses UDT agreement, and the transmission of stun protocol package uses
Udp protocol.
In fact it is preferred to ground, the present invention provides following manner for the data transmit-receive of ICE server, wherein each ICE
Client (new edition) correspond to a specified UDT agent unit and communicate one of stun server of connection it is specified
The port stun.Specifically, receive the data that client sends over when ICE server, and when being judged as UDT protocol package, meeting
A UDT agent unit is generated for the client, and specifies a port stun of stun server for the UDT agent unit
Connection is communicated, the stun protocol package after conversion is sent to stun server.In the complete client of stun server process
After the data at end, stun protocol package is generated, and stun protocol package is returned into the port stun that transmission data come.Pass through institute
It states the specified port stun and is sent to the specified UDT agent unit for communicating connection, the UDT agreement after converting
Packet returns to the ICE client (new edition).And each ICE client (old edition) correspond to one of stun server it is specified
The port stun.
Correspondingly with the above method, ICE serving system architecture of the invention is as shown in Figure 1.
The present invention provides a kind of ICE server, including stun server and UDT agent unit, the two communication connections.
Stun server has the port stun, transmitting-receiving, processing stun protocol package.Stun server monitors the port stun.
UDT agent unit includes the port UDT, communicates to connect with ICE client (new edition), transmits UDT protocol package;Connection
Port is connect with the stun port communication of stun server, transmits stun protocol package.
The conversion of UDT agent unit progress UDT protocol package and stun protocol package.By UDT agent unit, ICE is realized
Transmitting-receiving of the server to UDT protocol package.UDT agent unit monitors the port UDT.
ICE server provides two kinds of data port: the port UDT and the port stun as a result,.
Corresponding is two kinds of data transfer paths.The path UDT: ICE client (new edition)-UDT port-UDT generation
Manage the unit-connectivity port port-stun-stun server.Wherein it is preferred to the port UDT, UDT agent unit and the port stun
Be for the ICE client (new edition) it is specified, that is to say, that there is each ICE client (new edition) specified data to pass
Defeated path.The path stun: the port ICE client (old edition)-stun-stun server.
Certainly, above-mentioned is the situation for considering compatibility, and reality can also be incompatible, and only provides the port UDT and the road UDT
Diameter.
The case where both having received UDT protocol package for ICE server or having received stun protocol package, ICE server are equipped with judgement
Unit makes the following judgment:
After receiving data, UDT protocol package is judged whether it is: arriving if so, carrying out UDT protocol package by UDT agent unit
The conversion of stun protocol package, and give stun protocol packet transmissions to the port UDT;If it is not, then giving stun protocol packet transmissions to the end stun
Mouthful,
Before sending data, judge whether to be sent with UDT protocol package: if so, carrying out stun by UDT agent unit
From the port UDT with the transmission of UDT agreement after protocol package to the conversion of UDT protocol package;If it is not, then by stun protocol package from the port stun
It is sent with udp protocol.
The present invention also provides a kind of ICE clients, have the port UDT, to send, receive UDT protocol package.
Embodiment described above, the only present invention more preferably specific embodiment, those skilled in the art is at this
The usual variations and alternatives carried out within the scope of inventive technique scheme should be all included within the scope of the present invention.
Claims (2)
1. a kind of ICE method of servicing, which is characterized in that ICE server uses UDT data transmission method, and the data transmitted are
UDT protocol package, ICE server carry out the conversion of stun protocol package to UDT protocol package, ICE clothes before sending data to ICE client
It is engaged in carrying out the conversion of UDT protocol package to stun protocol package after device receives data from ICE client;
After ICE server receives data, UDT protocol package is judged whether it is: if so, carrying out UDT protocol package to stun protocol package
Conversion;
ICE server send data before, judge whether to be sent with UDT protocol package: if so, carry out stun protocol package to
The conversion of UDT protocol package
ICE server carries out data processing by stun server, and the ICE method of servicing is specified for every ICE client
One port stun of stun server, and when ICE server receives the UDT protocol package that ICE client sends over, meeting
It generates a UDT agent unit for the client to connect with specified stun port communication, UDT agent unit carries out UDT agreement
The conversion with stun protocol package is wrapped, and carries out the transmission of stun protocol package between the port stun, and between ICE client
Carry out the transmission of UDT protocol package.
2. a kind of ICE server, which is characterized in that including stun server and carry out turn of the UDT protocol package with stun protocol package
The UDT agent unit changed, wherein
Stun server has the port stun,
UDT agent unit includes the port UDT, connect with ICE client communication, with UDT data transfer means transfers UDT agreement
Packet;Connectivity port is connect with stun port communication, transmits stun protocol package;ICE server includes
The port UDT, with ICE client with UDT data transfer means transfers UDT protocol package, the port UDT is UDT agent unit
The port UDT;
Stun protocol package is transmitted with ICE client with UDP message transmission method in the port stun, and the port stun is stun server
The port stun;The corresponding specified port stun of each ICE client and data transfer path, UDT agent unit connect
It is connected between the specified port stun and the ICE client for sending UDT protocol package, on specified data transmission path;
ICE server is equipped with judging unit, makes the following judgment:
After receiving data, UDT protocol package is judged whether it is: if so, carrying out UDT protocol package to stun by UDT agent unit
The conversion of protocol package, and give stun protocol packet transmissions to the port stun;If it is not, then give stun protocol packet transmissions to the port stun,
Before sending data, judge whether to be sent with UDT protocol package: if so, carrying out stun agreement by UDT agent unit
It is sent after wrapping the conversion of UDT protocol package from the port UDT;If it is not, then stun protocol package is sent from the port stun.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610424443.2A CN105897761B (en) | 2016-06-15 | 2016-06-15 | ICE method of servicing, ICE server and ICE client |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610424443.2A CN105897761B (en) | 2016-06-15 | 2016-06-15 | ICE method of servicing, ICE server and ICE client |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105897761A CN105897761A (en) | 2016-08-24 |
CN105897761B true CN105897761B (en) | 2019-08-13 |
Family
ID=56730829
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610424443.2A Active CN105897761B (en) | 2016-06-15 | 2016-06-15 | ICE method of servicing, ICE server and ICE client |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105897761B (en) |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100521663C (en) * | 2006-04-18 | 2009-07-29 | 华为技术有限公司 | Method for crossing network address conversion in point-to-point communication |
CN103297745A (en) * | 2012-03-02 | 2013-09-11 | 三星电子(中国)研发中心 | Intelligent doorbell system based on personal cloud |
CN102685268B (en) * | 2012-05-22 | 2015-02-18 | 北京邮电大学 | Fast private network traversal method based on ICE (Information and Content Exchange) protocol in VoIP (Voice over Internet Protocol) |
-
2016
- 2016-06-15 CN CN201610424443.2A patent/CN105897761B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105897761A (en) | 2016-08-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8176187B2 (en) | Method, system, and program for enabling communication between nodes | |
US11146452B2 (en) | Transparent auto-negotiation of ethernet | |
US7966380B2 (en) | Method, system, and program for forwarding messages between nodes | |
CN102017542B (en) | A method for interfacing a fibre channel network with an Ethernet based network | |
US7359395B2 (en) | Pre-fetch communication systems and methods | |
CN100521663C (en) | Method for crossing network address conversion in point-to-point communication | |
EP1892929A1 (en) | A method, an apparatus and a system for message transmission | |
JP2005027318A5 (en) | ||
CN102209119A (en) | Sustaining session connections | |
CN102447708A (en) | Communication implementation method based on application-layer transparent proxy technology | |
CN102594672A (en) | Method and system applicable to high-quality internet communication in low-reliability network environment | |
EP2497031B1 (en) | Network switch | |
CN102315918B (en) | Method and device for intercommunicating TCP (Transmission Control Protocol) connection with SCTP (Stream Control Transmission Protocol) connection | |
CN108566390A (en) | The implementation method and satellite message of a kind of satellite application layer security protocol are monitored and distribution service system | |
CN105897761B (en) | ICE method of servicing, ICE server and ICE client | |
US20020141442A1 (en) | Method and apparatus for providing network access for PDA devices | |
CA2439726A1 (en) | Connection-oriented communication network and method of operating | |
JP3834858B2 (en) | Data transmission apparatus and method | |
CN112199211B (en) | Communication method between CORBA middleware ORBs based on RapidIO | |
CN104917732B (en) | A kind of multi-client binds the method and system of encoder and decoder | |
CN101064671A (en) | Method for processing P2P technique based network video signal | |
CA2592881A1 (en) | Dynamic endpoint aggregator for web services | |
CN105099928B (en) | Dual-stacker router and its method for realizing bandwidth sharing | |
JP4220434B2 (en) | Content delivery method and network | |
KR100265979B1 (en) | Method and apparatus for converting communication protocol between host computer and branch processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |