CN107294830A - A kind of data transmission method and system - Google Patents
A kind of data transmission method and system Download PDFInfo
- Publication number
- CN107294830A CN107294830A CN201710465350.9A CN201710465350A CN107294830A CN 107294830 A CN107294830 A CN 107294830A CN 201710465350 A CN201710465350 A CN 201710465350A CN 107294830 A CN107294830 A CN 107294830A
- Authority
- CN
- China
- Prior art keywords
- client
- data
- proxy server
- session
- request
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/10—Architectures or entities
- H04L65/1045—Proxies, e.g. for session initiation protocol [SIP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/131—Protocols for games, networked simulations or virtual reality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Security & Cryptography (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of data transmission method and system.This method includes:Client sends connection request;Target session is set up with client;Proxy server sends object transmission data to client by target session;Client is set up with proxy server when monitoring the first disconnecting, again and is connected, and sends request of data to proxy server;Proxy server resumes object transmission data the data that client is not received when the first disconnecting by target session when receiving request of data for client.Pass through technical scheme, the farthest reduction client influence that its fluency and continuity are subject to when unstable networks break can be realized, so that client is after disconnection reconnecting, the data that can never receive, which rise, to be continued to obtain object transmission data, to keep the fluency and continuity of operation as far as possible, and without the operation before repetition.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of data transmission method and system.
Background technology
At present, client is when play etc. operation, and the greatest problem run into is exactly unstable networks, such as often appearance
Switching between Wifi dropouts, difference Wifi, it is mobile in the switching of base station, Wifi and mobile data network 3G/4G it is mutually tangent
Situation about changing and cause unstable networks, and the problem of once there are unstable networks, client breaks high probability, causes trip
The operation such as play has to interrupt, and the server of the client would not also continue to send corresponding to client after client broken string
Data, even if so that client re-establishes to be connected with server also can not usually proceed on the basis of original
Game etc. operates and has to be repeated original operation, this fluency for undoubtedly having severely impacted client operation and company
Continue property and then reduce Consumer's Experience.
Therefore, the solution used in correlation technique is usually using VPN (Virtual Private Network, void
Intend dedicated network) agreement supports disconnection reconnecting etc., but VPN needs extremely complex setting when in use, while VPN is device level
Agency, cost is higher, and thus, the disconnection reconnecting mode in correlation technique causes actual reality due to difficulty and cost
Existing manufacturer is less, and then causes client when play etc. operation, once the situation for running into unstable networks still will
High probability breaks, and the fluency and continuity of client operation are greatly affected, and then has a strong impact on Consumer's Experience.
The content of the invention
The present invention provides a kind of data transmission method, including:
Client sends connection request;
Proxy server is set up first when receiving the connection request, with the client and is connected, with the visitor
Target session is set up at family end, and sets up connection according to connection request destination server corresponding with the client, to connect
The object transmission data that the client of the destination server transmission asks to obtain by the target session are received, wherein,
The proxy server is located between the client and the destination server;
The proxy server sends the object transmission data to the client by the target session;
The client is set up with the proxy server when monitoring first disconnecting, again and is connected, and
Request of data is sent to the proxy server;
The proxy server is when receiving the request of data, by the target session from the described first connection
The data that the client is not received when disconnected rise resumes the object transmission data for the client.
In one embodiment, the proxy server passes through the target session when receiving the request of data
The data that the client is not received when first disconnecting object transmission number is resumed for the client
According to, including:
The proxy server judges session ginseng whether is carried in the request of data when receiving request of data
Number;
When carrying the session parameter in the request of data, judge whether the session parameter is gone through with pre-stored
History session parameter matches;
When the session parameter and the historical session match parameters, connected by the target session from described first
The data that the client is not received when connecing interruption rise resumes the object transmission data for the client.
In one embodiment, the session parameter includes at least one of following:
The session document of title of the session identification of the target session, the target session.
In one embodiment, the proxy server passes through the target session when receiving the request of data
The data that the client is not received when first disconnecting object transmission number is resumed for the client
According to, including:
The proxy server obtains the current data reception amount of the client carried in the request of data;
The proxy server obtains current data traffic volume corresponding with the client;
The proxy server is current according to current data traffic volume corresponding with the client and the client
Data receiver amount, on the basis of the target session is constant, from first disconnecting when client do not receive
Data rise and resume the object transmission data for the client.
In one embodiment, the proxy server passes through the target session when receiving the request of data
The data that the client is not received when first disconnecting object transmission number is resumed for the client
According to, including:
The proxy server on the basis of the target session is constant, passes through when receiving the request of data
The client in first disconnecting again with it is set up second is connected and resumes the object transmission data;Or
The proxy server is set up the 3rd with the client when receiving the request of data, again and is connected;
On the basis of the target session is constant, the object transmission data are resumed by the described 3rd connection.
In one embodiment, methods described also includes:
The proxy server is when receiving the object transmission data, according to each file in the object transmission data
Size, the proxy server and the destination server between link information, each file enter it is described agency clothes
The total degree that all clients being connected after the caching of business device with the proxy server are accessed, calculates each file
Preserve parameter value;
The proxy server is according to the preservation parameter value of each file, it is determined whether preserve each file, wherein,
Link information between the proxy server and the destination server includes:The proxy server and the destination service
The transmission bandwidth that device is set up between the Connection Time consumed during connection and the proxy server and the destination server.
In one embodiment, the proxy server calculates the preservation parameter value of each file, including:
The proxy server calculates each file when the described first connection is not interrupted by the first preset formula
First preserves parameter value fd;
The proxy server is calculated in first connection in first disconnecting by the second preset formula
Second that file is currently being transmitted when disconnected preserves parameter value fd′;
Wherein, first preset formula includes:
Wherein:
CsRepresent Connection Time, the bw consumed when the proxy server is set up and is connected with the destination serversRepresent
Transmission bandwidth, Size between the proxy server and the destination serverdRepresent size, the C of each filedRepresent
The total degree, CsAnd bwsRepresent time delay between the proxy server and the destination server, C1、C2It is default
Constant,
Second preset formula includes:
Wherein, T enters after the caching apart from time that its last time is accessed for the current file that transmitting
Time interval.
The present invention also provides a kind of data transmission system, including:
Client, for sending connection request;
Proxy server, between the client and the destination server, for receive the connection please
When asking, set up first with the client and be connected, to set up target session with the client, and according to the connection request with
The corresponding destination server of the client sets up connection, and the client sent with receiving the destination server passes through institute
State the object transmission data that target session request is obtained;
The proxy server is additionally operable to, and the object transmission data are sent to the client by the target session
End;
The client is additionally operable to, when monitoring first disconnecting, is set up again with the proxy server
Connection, and send request of data to the proxy server;
The proxy server is additionally operable to, when receiving the request of data, by the target session from described
The data that the client is not received during one disconnecting rise resumes the object transmission data for the client.
In one embodiment, the agency service implement body is additionally operable to:
When receiving request of data, judge whether carry session parameter in the request of data;
When carrying the session parameter in the request of data, judge whether the session parameter is gone through with pre-stored
History session parameter matches;
When the session parameter and the historical session match parameters, connected by the target session from described first
The data that the client is not received when connecing interruption rise resumes the object transmission data for the client.
In one embodiment, the session parameter includes at least one of following:
The session document of title of the session identification of the target session, the target session.
The technical scheme provided by this disclosed embodiment can include the following benefits:
By adding proxy server between client and corresponding destination server, proxy server can be with visitor
The first connection is set up at family end, to set up target session with client, and so the proxy server can be asked on behalf of forwarding client
The object transmission data for asking destination server to send, and then in first disconnecting, due to proxy server and target clothes
Connection between business device is not affected by influence and not interrupted, so, destination server still can not after first disconnecting
Discontinuously continue to send the object transmission data to proxy server by the target session, so that realizing farthest reduces
The client influence that its fluency and continuity are subject to when unstable networks break so that client after disconnection reconnecting,
The data that can never receive, which rise, to be continued to obtain object transmission data, to keep the fluency and continuity of operation as far as possible,
And without the operation before repetition, the experience of user when this is also beneficial to further improve client broken string.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write
Specifically noted structure is realized and obtained in book, claims and accompanying drawing.
Below by drawings and examples, technical scheme is described in further detail.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for specification, the reality with the present invention
Applying example is used to explain the present invention together, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of data transmission method according to an exemplary embodiment.
Fig. 2 is the flow chart of another data transmission method according to an exemplary embodiment.
Fig. 3 is a kind of block diagram of data transmission system according to an exemplary embodiment.
Embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that preferred reality described herein
Apply example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
In order to solve the above-mentioned technical problem, the embodiment of the present disclosure provides a kind of data transmission method, and this method is applied to
In data distributing program, system or system, as shown in figure 1, including step S101 to step S104, wherein:
In step S101, client sends connection request;
Wherein, the address of its corresponding destination server is carried in the connection request, the proxy server in order to after
It can set up and be connected with destination server when receiving the connection request.
In step s 102, proxy server is set up first with client and is connected when receiving connection request, with visitor
Target session is set up at family end, and sets up connection according to connection request destination server corresponding with client, to receive target clothes
The object transmission data that the client of device transmission of being engaged in asks to obtain by target session, wherein, proxy server is located at client
Between destination server;
Target session can be set up with client by being connected by setting up first with client, and such client can pass through the mesh
Rotating savings is talked about to Proxy request and obtains object transmission data, and proxy server is receiving being somebody's turn to do for destination server transmission
During object transmission data, the object transmission data of its needs can also be forwarded to client by the target session, wherein, target
Transmission data can be ask during client operation (certainly, client operation is usually the operation of user) to obtain various
File, such as can be picture media data that client request is obtained or be that some of client operates corresponding request
Obtain row for data, some technical ability, the equipment obtained is asked in such as client game process.
In addition, when client request obtains object transmission data, being also required to naturally by the target session to agency service
Device send the object transmission data acquisition request (certainly, the acquisition request is also to be generated when receiving client operation
), and acquisition request can be forwarded to destination server by proxy server after acquisition request is received, to ask the mesh
Mark server issues the object transmission data and then receives the object transmission data.
Finally, it is necessary to which what is illustrated is:The various texts from destination server that client asks to obtain by target session
Part is collectively referred to as object transmission data, specifically, the various files that client passes through the first connection request in target session
For object transmission data, and pass through the various files of second the/the three connection request of connection in target session described below
For object transmission data.
In step s 103, proxy server sends object transmission data to client by target session;
Host-host protocol between proxy server and client can be sock5 agreements etc..
In step S104, client is set up with proxy server when monitoring the first disconnecting, again and is connected, and
Request of data is sent to proxy server;
Object transmission data can be each file that client request is obtained, and client often asks a file to need naturally
One request is sent by the connection between client and proxy server (such as first the/the second connection of connection/the three is connected).
In step S105, proxy server is when receiving request of data, by target session from the first disconnecting
When the data that do not receive of client rise and resume object transmission data for client.
By adding proxy server between client and corresponding destination server, proxy server can be with visitor
The first connection is set up at family end, to set up target session with client, and so the proxy server can be asked on behalf of forwarding client
The object transmission data for asking destination server to send, and then in first disconnecting, due to proxy server and target clothes
Connection between business device is not affected by influence and not interrupted, so, destination server still can not after first disconnecting
Discontinuously continue to send the object transmission data to proxy server by the target session, so that realizing farthest reduces
The client influence that its fluency and continuity are subject to when unstable networks break so that client after disconnection reconnecting,
The data that can never receive, which rise, to be continued to obtain object transmission data, to keep the fluency and continuity of operation as far as possible,
And without the operation before repetition, the experience of user when this is also beneficial to further improve client broken string.
Certainly, in order to further reduce continuity and the influence of fluency during the first disconnecting to client operation,
Client with proxy server after reconnecting, and proxy server can be the data that client is not received when the first disconnecting
Accelerate to forward object transmission data to client, so that client can keep the continuity and smoothness of operation as much as possible
Property.
As shown in Fig. 2 the step S105 shown in above-mentioned Fig. 1, i.e. proxy server pass through mesh when receiving request of data
Object transmission data are resumed for client the rotating savings words data that client is not received when the first disconnecting, can be included
Step S201 to step S203:
In step s 201, proxy server is when receiving request of data, judge in request of data whether the meeting of carrying
Talk about parameter;
In step S202, when carrying session parameter in request of data, judge session parameter whether with it is pre-stored
Historical session match parameters;
Historical session parameter is not only pre-stored in proxy server, and proxy server also have sent a pre- to client
Store in client, authenticated so as to the later stage, verified.
In step S203, when session parameter and historical session match parameters (it can be identical to match), pass through
The target session data that client is not received when the first disconnecting object transmission data are resumed for client.
When resuming data to client by target session window, it can be determined that whether carry meeting in the request of data
Talk about parameter;
When carrying session parameter in request of data, it can be determined that session parameter whether is carried in request of data, such as
Fruit carry, then determine whether the session parameter whether with pre-stored historical session match parameters, if matched, generation
Reason server can determine that the client of the client built vertical connection for before, simply disconnecting, thus, target can be passed through
Object transmission data are resumed for client the session data that client is not received when the first disconnecting, so as to realize most
Reduce the client influence that its fluency and continuity are subject to when unstable networks break to big degree so that client exists
After disconnection reconnecting, the data that can never receive, which rise, to be continued to obtain object transmission data, to keep the smoothness of operation as far as possible
Property and continuity.
In one embodiment, session parameter includes at least one of following:
The session identification of target session, the session document of title of target session.
The session parameter can be session identification and/or session document of title, and the session identification can be agency's clothes
When business device sets up target session with the client, the unique mark distributed for the target session, such as unique number;
And session document of title implementation has a lot, such as it can be generated when setting up target session with client
A random code.
In one embodiment, proxy server is when receiving request of data, by target session from the first connection
The data that client is not received when disconnected rise resumes object transmission data for client, including:
Proxy server obtains the current data reception amount of the client carried in request of data;
Proxy server obtains current data traffic volume corresponding with client;
Proxy server according to current data traffic volume corresponding with client and the current data reception amount of client,
Target is resumed on the basis of target session is constant, the data that client is not received when the first disconnecting for client to pass
Transmission of data.
The current data reception amount for the client that proxy server is carried in request of data is got, can according to visitor
The current data reception amount of the corresponding current data traffic volume in family end and client, when determining the first disconnecting, client is not
The starting point of the data received, and then the data that client is not received when the first disconnecting target is resumed for client
Transmit data, thus realize farthest reduction client when unstable networks break its fluency and continuity by
Influence so that client after disconnection reconnecting, the data that can never receive rise continue obtain object transmission data, with to the greatest extent
The fluency and continuity of operation may be kept.
For example, when the current data reception amount of the client is 500 characters, and current data corresponding with client is sent out
When the amount of sending is 800 characters, when proxy server can determine that the first disconnecting, the starting point for the data that client is not received is
501st character, then can be client continuation transmission data from the 501st character.
In one embodiment, proxy server is when receiving request of data, by target session from the first connection
The data that client is not received when disconnected rise resumes object transmission data for client, including:
Proxy server is when receiving request of data, on the basis of target session is constant, by client first
During disconnecting again with it is set up second is connected and resumes object transmission data;Or
Proxy server is set up the 3rd with client when receiving request of data, again and is connected;
On the basis of target session is constant, object transmission data are resumed by the 3rd connection.
When receiving request of data, it can be connected on the basis of the target session is constant by second and resume the mesh automatically
Mark transmits data or sets up the 3rd with the client and is connected to resume object transmission data automatically by the 3rd connection.
In one embodiment, method also includes:
Proxy server is when receiving object transmission data, according to the size of each file, agency in object transmission data
Link information, each file between server and destination server enter after the caching of proxy server by with proxy server phase
The total degree that all clients of connection are accessed, calculates the preservation parameter value of each file;
Because client often asks a file all to send a request of data, thus agency service to proxy server
Device is often received after a request of data, and file corresponding with the request of data can will be received at destination server
It is marked, so that when the object transmission data received are more, still can determine that each in object transmission data
Individual unique file.
Proxy server is according to the preservation parameter value of each file, it is determined whether preserve each file, wherein, proxy server with
Link information between destination server includes:The Connection Time that proxy server is consumed when setting up and be connected with destination server
Transmission bandwidth between proxy server and destination server.
Due to proxy server connect client be probably magnanimity, and if proxy server cache always it is each from
The file that destination server is received, caching pressure may than larger, thus, proxy server enters after caching just from each file
The preservation parameter value of each file can be started constantly to calculate, to determine the preservation valency of each file according to the preservation parameter value of each file
Value, and then determine whether that continuation is preserved each file as cache file according to the value for preservation of each file, so that agency
Server can establish the basis resumed on the basis of the caching pressure of itself and the caching that upgrades in time is reduced as much as possible,
Certainly, because proxy server can be with cache file, so proxy server can be avoided as much as needing repeatedly from mesh
Obtain repeatability/same file to be forwarded to different clients at mark server;
Secondly, proxy server is according to the preservation parameter value of each file, it is determined whether preserve each file the step of can quilt
Perform and be:
If the preservation parameter value of any file, which is less than, in each file presets minimum preservation reference value, it is determined that do not preserve this
One file, conversely, determining to preserve any file;Or
Proxy server can by each file preserve parameter value and enter caching alternative document preservation parameter value according to
Order from big to small is ranked up, and then if the sequence of the preservation parameter value of certain file rearward (such as ranking most rearward), then
It can determine not continue to preserve this document, conversely, determining to continue to preserve this document.
Certainly, each file of each client request enters after the caching of proxy server, and proxy server can all be counted
Calculate it and preserve parameter value, and in order to upgrade in time, it preserves parameter value, with the file in the caching that upgrades in time, can calculate in real time
Or calculate its preservation parameter value according to less prefixed time interval.
In one embodiment, proxy server calculates the preservation parameter value of each file, including:
Proxy server is not when the first connection is interrupted, and calculate each file by the first preset formula first preserves parameter
Value fd;
Proxy server in the first disconnecting, when calculating the first disconnecting by the second preset formula it is current
Transmit file second preserves parameter value fd′;
Wherein, the first preset formula includes:
Wherein:
CsRepresent Connection Time, the bw consumed when proxy server is set up and is connected with destination serversRepresent agency service
Transmission bandwidth, Size between device and destination serverdRepresent size, the C of each filedRepresent total degree, CsAnd bwsRepresent generation
Time delay, C between reason server and destination server1、C2For preset constant,
Second preset formula includes:
Wherein, T enters between the time of time accessed apart from its last time after caching for the current file that transmitting
Every, wherein, T unit is the second (s), due to currently transmitting the file accessed when file is client broken string, institute
So that T is also the duration of client broken string (i.e. the first disconnecting).
Client have impact on the current transmission rate for transmitting file when breaking, thus, it is current when client does not break
Transmitting file and its break when currently transmitting file value for preservation parameter value calculation should slightly no
Together, thus, the first preset formula and the second preset formula can be respectively adopted calculates first of each file when not breaking and preserve parameter
Value fdSecond that file is currently being transmitted during with broken string preserves parameter value fd', to cause the client of broken string in weight as much as possible
The data from proxy server can be continued to the data that client is not received when the first disconnecting after even, from
And the fluency and continuity of operation are kept as much as possible.
As above, when client for proxy server access due to network reason is interrupted when, it is for agency service
The request of device will also be interrupted, after interruption, and the transmission of destination server and proxy server is still continuing, and proxy server
It is preferential accessing when the client break currently transmitting file and retaining into the caching of proxy server, Jin Erjin
Row is following to be operated:
If client is recovered rapidly to be connected and (reconnect the time less than 1 minute) with proxy server, what is cached is current
The value for preservation highest of file is being transmitted, is being recovered after connection, proxy server can accelerate transmission;
If client and proxy server break period are increased between 1 minute to 1 hour, if now without other clients
Hold (client i.e. in all clients in addition to the client in first embodiment of the invention) to access, then currently pass
The value for preservation (preserving parameter value) of defeated file is gradually reduced;
If client, more than 1 hour, means that the possibility that it recovers is relatively low, currently with the proxy server break period
The value for preservation for transmitting file is relatively low, can be determined by the way that it is contrasted with other cache files according to caching value
Whether continuation retains.
In addition, in the first disconnecting, except when the preceding file that transmitting can calculate preservation according to the second preset formula
Outside parameter value, all in object transmission data be not yet transferred to the client but be delayed by the subsequent file of transmission can
Calculated according to second preset formula and preserve parameter value.
As shown in figure 3, the present invention also provides a kind of data transmission system, including:
Client 301, for sending connection request;
Proxy server 302, between client 301 and destination server 403, for receiving connection request
When, set up first with client 301 and be connected, to set up target session with client 301, and according to connection request and client
301 corresponding destination servers 403 set up connection, to receive the client 301 of the transmission of destination server 403 by target session
Ask the object transmission data obtained;
Proxy server 302 is additionally operable to, and object transmission data are sent to client 301 by target session;
Client 301 is additionally operable to, when monitoring the first disconnecting, sets up be connected with proxy server 302 again, and
Request of data is sent to proxy server 302;
Proxy server 302 is additionally operable to, when receiving request of data, by target session from the first disconnecting when visitor
The data that family end 301 is not received rise resumes object transmission data for client 301.
In one embodiment, proxy server 302 is specifically additionally operable to:
When receiving request of data, judge whether carry session parameter in request of data;
When carrying session parameter in request of data, judge session parameter whether with pre-stored historical session parameter phase
Matching;
When session parameter and during historical session match parameters, by target session from the first disconnecting when client
301 data not received rise resumes object transmission data for client 301.
In one embodiment, session parameter includes at least one of following:
The session identification of target session, the session document of title of target session.On the system in above-described embodiment, its
The concrete mode that middle modules perform operation is described in detail in the embodiment about this method, herein will not
Elaborate explanation.
Finally, the data transmission system in the present invention is applied to terminal device.For example, it may be mobile phone, computer,
Digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant
Deng.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code
The shape for the computer program product that usable storage medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.)
Formula.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.
Claims (10)
1. a kind of data transmission method, it is characterised in that including:
Client sends connection request;
Proxy server is set up first when receiving the connection request, with the client and is connected, with the client
Target session is set up, and connection is set up according to connection request destination server corresponding with the client, to receive
The object transmission data that the client of destination server transmission asks to obtain by the target session are stated, wherein, it is described
Proxy server is located between the client and the destination server;
The proxy server sends the object transmission data to the client by the target session;
The client is set up with the proxy server when monitoring first disconnecting, again and is connected, and to institute
State proxy server and send request of data;
The proxy server when receiving the request of data, by the target session from first disconnecting when
The data that the client is not received rise resumes the object transmission data for the client.
2. according to the method described in claim 1, it is characterised in that
The proxy server when receiving the request of data, by the target session from first disconnecting when
The data that the client is not received rise resumes the object transmission data for the client, including:
The proxy server judges whether carry session parameter in the request of data when receiving request of data;
When carrying the session parameter in the request of data, judge the session parameter whether with pre-stored history meeting
Talk about match parameters;
When the session parameter and the historical session match parameters, by the target session from the described first connection
The data that the client is not received when disconnected rise resumes the object transmission data for the client.
3. method according to claim 2, it is characterised in that
The session parameter includes at least one of following:
The session document of title of the session identification of the target session, the target session.
4. according to the method described in claim 1, it is characterised in that
The proxy server when receiving the request of data, by the target session from first disconnecting when
The data that the client is not received rise resumes the object transmission data for the client, including:
The proxy server obtains the current data reception amount of the client carried in the request of data;
The proxy server obtains current data traffic volume corresponding with the client;
The proxy server is according to current data traffic volume corresponding with the client and the current data of the client
Reception amount, on the basis of the target session is constant, from first disconnecting when number that does not receive of the client
According to rising the object transmission data are resumed for the client.
5. according to the method described in claim 1, it is characterised in that
The proxy server when receiving the request of data, by the target session from first disconnecting when
The data that the client is not received rise resumes the object transmission data for the client, including:
The proxy server is when receiving the request of data, on the basis of the target session is constant, by described
Client in first disconnecting again with it is set up second is connected and resumes the object transmission data;Or
The proxy server is set up the 3rd with the client when receiving the request of data, again and is connected;
On the basis of the target session is constant, the object transmission data are resumed by the described 3rd connection.
6. method according to any one of claim 1 to 5, it is characterised in that methods described also includes:
The proxy server when receiving the object transmission data, according in the object transmission data each file it is big
Link information, each file between small, described proxy server and the destination server enter the proxy server
Caching after the total degree that accesses of all clients that are connected with the proxy server, calculate the preservation of each file
Parameter value;
The proxy server is according to the preservation parameter value of each file, it is determined whether preserve each file, wherein, it is described
Link information between proxy server and the destination server includes:The proxy server is built with the destination server
Transmission bandwidth between the Connection Time consumed during vertical connection and the proxy server and the destination server.
7. method according to claim 6, it is characterised in that
The proxy server calculates the preservation parameter value of each file, including:
The proxy server calculates the first of each file when the described first connection is not interrupted by the first preset formula
Preserve parameter value fd;
The proxy server is in first disconnecting, when calculating first disconnecting by the second preset formula
Current the second preservation parameter value f ' for transmitting filed;
Wherein, first preset formula includes:
Wherein:
CsRepresent Connection Time, the bw consumed when the proxy server is set up and is connected with the destination serversRepresent described
Transmission bandwidth, Size between proxy server and the destination serverdRepresent size, the C of each filedRepresent described
Total degree, CsAnd bwsRepresent time delay between the proxy server and the destination server, C1、C2It is normal to preset
Number,
Second preset formula includes:
<mrow>
<msubsup>
<mi>f</mi>
<mi>d</mi>
<mo>&prime;</mo>
</msubsup>
<mo>=</mo>
<msub>
<mi>f</mi>
<mi>d</mi>
</msub>
<mo>*</mo>
<mi>f</mi>
<mrow>
<mo>(</mo>
<mi>T</mi>
<mo>)</mo>
</mrow>
<mo>,</mo>
<mi>f</mi>
<mo>(</mo>
<mi>T</mi>
<mo>)</mo>
<mo>=</mo>
<mfenced open = "{" close = "">
<mtable>
<mtr>
<mtd>
<mn>0.5</mn>
</mtd>
<mtd>
<mrow>
<mn>0</mn>
<mo>&le;</mo>
<mi>T</mi>
<mo>&le;</mo>
<mn>60</mn>
<mi>s</mi>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd>
<mrow>
<mn>1</mn>
<mo>/</mo>
<mn>1.5</mn>
<mi>l</mi>
<mi>o</mi>
<mi>g</mi>
<mrow>
<mo>(</mo>
<mi>T</mi>
<mo>)</mo>
</mrow>
</mrow>
</mtd>
<mtd>
<mrow>
<mn>60</mn>
<mi>s</mi>
<mo><</mo>
<mi>T</mi>
<mo>&le;</mo>
<mn>3600</mn>
<mi>s</mi>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd>
<mrow>
<mn>1</mn>
<mo>/</mo>
<mn>2</mn>
<mi>log</mi>
<mrow>
<mo>(</mo>
<mi>T</mi>
<mo>)</mo>
</mrow>
</mrow>
</mtd>
<mtd>
<mrow>
<mi>T</mi>
<mo>></mo>
<mn>3600</mn>
<mi>s</mi>
</mrow>
</mtd>
</mtr>
</mtable>
</mfenced>
</mrow>
Wherein, T for it is described it is current transmitting file into after the caching apart from accessed time its last time when
Between be spaced.
8. a kind of data transmission system, it is characterised in that including:
Client, for sending connection request;
Proxy server, between the client and the destination server, for when receiving the connection request,
With the client first is set up to be connected, to set up target session with the client, and according to the connection request with it is described
The corresponding destination server of client sets up connection, and the client sent with receiving the destination server passes through the mesh
Mark the object transmission data that session request is obtained;
The proxy server is additionally operable to, and the object transmission data are sent to the client by the target session;
The client is additionally operable to, when monitoring first disconnecting, sets up be connected with the proxy server again,
And send request of data to the proxy server;
The proxy server is additionally operable to, when receiving the request of data, is connected by the target session from described first
The data that the client is not received when connecing interruption rise resumes the object transmission data for the client.
9. system according to claim 8, it is characterised in that
The agency service implement body is additionally operable to:
When receiving request of data, judge whether carry session parameter in the request of data;
When carrying the session parameter in the request of data, judge the session parameter whether with pre-stored history meeting
Talk about match parameters;
When the session parameter and the historical session match parameters, by the target session from the described first connection
The data that the client is not received when disconnected rise resumes the object transmission data for the client.
10. system according to claim 9, it is characterised in that
The session parameter includes at least one of following:
The session document of title of the session identification of the target session, the target session.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710465350.9A CN107294830B (en) | 2017-06-19 | 2017-06-19 | A kind of data transmission method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710465350.9A CN107294830B (en) | 2017-06-19 | 2017-06-19 | A kind of data transmission method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107294830A true CN107294830A (en) | 2017-10-24 |
CN107294830B CN107294830B (en) | 2019-09-13 |
Family
ID=60097353
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710465350.9A Active CN107294830B (en) | 2017-06-19 | 2017-06-19 | A kind of data transmission method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107294830B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107734556A (en) * | 2017-10-30 | 2018-02-23 | 广东欧珀移动通信有限公司 | Data transfer control method and Related product |
CN109587275A (en) * | 2019-01-08 | 2019-04-05 | 网宿科技股份有限公司 | A kind of method for building up and proxy server of communication connection |
CN115037786A (en) * | 2022-08-09 | 2022-09-09 | 北京航天驭星科技有限公司 | Method for improving data transmission efficiency and related equipment |
CN115150372A (en) * | 2021-03-31 | 2022-10-04 | 海能达通信股份有限公司 | Method, communication system and terminal for preventing voice loss in call |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080151881A1 (en) * | 2004-01-22 | 2008-06-26 | Hain-Ching Liu | Method and system for transporting data over network |
CN101325533A (en) * | 2008-07-21 | 2008-12-17 | 深圳市高正软件有限公司 | Data download method based on mobile equipment |
CN103297476A (en) * | 2012-03-02 | 2013-09-11 | 腾讯科技(深圳)有限公司 | Method and device for loading webpage game |
CN103731398A (en) * | 2012-10-11 | 2014-04-16 | 北京百度网讯科技有限公司 | Data access method, system and device based on CDN |
CN104980399A (en) * | 2014-04-08 | 2015-10-14 | 腾讯科技(深圳)有限公司 | File transfer method, client and proxy server |
-
2017
- 2017-06-19 CN CN201710465350.9A patent/CN107294830B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080151881A1 (en) * | 2004-01-22 | 2008-06-26 | Hain-Ching Liu | Method and system for transporting data over network |
CN101325533A (en) * | 2008-07-21 | 2008-12-17 | 深圳市高正软件有限公司 | Data download method based on mobile equipment |
CN103297476A (en) * | 2012-03-02 | 2013-09-11 | 腾讯科技(深圳)有限公司 | Method and device for loading webpage game |
CN103731398A (en) * | 2012-10-11 | 2014-04-16 | 北京百度网讯科技有限公司 | Data access method, system and device based on CDN |
CN104980399A (en) * | 2014-04-08 | 2015-10-14 | 腾讯科技(深圳)有限公司 | File transfer method, client and proxy server |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107734556A (en) * | 2017-10-30 | 2018-02-23 | 广东欧珀移动通信有限公司 | Data transfer control method and Related product |
CN107734556B (en) * | 2017-10-30 | 2019-10-18 | Oppo广东移动通信有限公司 | Data transfer control method and Related product |
US10873530B2 (en) | 2017-10-30 | 2020-12-22 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method for controlling data transmission, device, and storage medium |
CN109587275A (en) * | 2019-01-08 | 2019-04-05 | 网宿科技股份有限公司 | A kind of method for building up and proxy server of communication connection |
EP3907973A4 (en) * | 2019-01-08 | 2022-02-23 | Wangsu Science & Technology Co., Ltd. | Method for establishing communication connection and proxy server |
CN115150372A (en) * | 2021-03-31 | 2022-10-04 | 海能达通信股份有限公司 | Method, communication system and terminal for preventing voice loss in call |
CN115150372B (en) * | 2021-03-31 | 2024-03-15 | 海能达通信股份有限公司 | Method for preventing voice loss in call, communication system and terminal |
CN115037786A (en) * | 2022-08-09 | 2022-09-09 | 北京航天驭星科技有限公司 | Method for improving data transmission efficiency and related equipment |
CN115037786B (en) * | 2022-08-09 | 2022-11-01 | 北京航天驭星科技有限公司 | Method for improving data transmission efficiency and related equipment |
Also Published As
Publication number | Publication date |
---|---|
CN107294830B (en) | 2019-09-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107743698B (en) | Method and apparatus for multi-path media delivery | |
US20200244559A1 (en) | Network adaptive latency reduction through frame rate control | |
US10587544B2 (en) | Message processing method, processing server, terminal, and storage medium | |
US20180205976A1 (en) | Method and apparatus of obtaining video fragment | |
US8488661B2 (en) | Systems and methods for data streaming | |
CN107294830A (en) | A kind of data transmission method and system | |
US8606954B1 (en) | Progressive download of media content over different wireless access networks | |
US10841106B1 (en) | Combined authentication and encryption | |
US10986204B2 (en) | Terminal device, edge server, data delivery system, and delivery control method | |
CN105933384B (en) | File sharing method, terminal and file sharing system | |
JP2010519799A (en) | Wireless connection handover | |
US20160338015A1 (en) | Data processing method, apparatus and system | |
WO2015120766A1 (en) | Video optimisation system and method | |
US20230412456A1 (en) | Data communication method and apparatus, electronic device, and storage medium | |
EP3258673B1 (en) | Efficient information exchange between servers in content transmission network system | |
CN102387201A (en) | Method, device and system for processing service data | |
EP3416349B1 (en) | Data buffering method and apparatus in adaptive streaming service | |
CN112954406A (en) | Data downloading method and device, computer equipment and storage medium | |
WO2015010572A1 (en) | Methods, devices, and systems for controlling audio and video transmission | |
CN109587709B (en) | Local data network discovery and configuration method, terminal, core network equipment and base station | |
CN102118253A (en) | Method, system and device for sending media file | |
CN114416275A (en) | Method and system for synchronizing virtual machine states by multiple management clients | |
CN104471911B (en) | A kind of method, system and the equipment of transmission services data | |
US20240298051A1 (en) | Data relay apparatus, distribution system, data relay method, and computer-readable medium | |
CN106464985A (en) | Media stream transmission method and device |
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 |