CN107979876A - Data transmission method and terminal - Google Patents
Data transmission method and terminal Download PDFInfo
- Publication number
- CN107979876A CN107979876A CN201711135415.XA CN201711135415A CN107979876A CN 107979876 A CN107979876 A CN 107979876A CN 201711135415 A CN201711135415 A CN 201711135415A CN 107979876 A CN107979876 A CN 107979876A
- Authority
- CN
- China
- Prior art keywords
- server
- backup
- backup server
- terminal
- master
- 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
- 230000005540 biological transmission Effects 0.000 title claims abstract description 41
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000012790 confirmation Methods 0.000 claims abstract description 109
- 238000004891 communication Methods 0.000 claims description 61
- 230000004044 response Effects 0.000 claims description 35
- 238000001514 detection method Methods 0.000 claims description 30
- 238000010586 diagram Methods 0.000 description 8
- 238000004590 computer program Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the invention discloses a kind of data transmission method and terminal, this method includes:Connectivity request message is sent at least two servers, so that at least two servers are when receiving connectivity request message, feedback link confirmation message;When receiving the first connection confirmation message, the server for sending the first connection confirmation message is determined as master server, first connection confirmation message connects the most strong one or more connection confirmation messages of information strength in confirmation messages, or the connection confirmation message of at least two server feedbacks for the one or more received earliest in the connection confirmation message of at least two server feedbacks;Data are transmitted by master server.Implement the embodiment of the present invention, the reliability that terminal is connected with streaming media server can be increased.
Description
Technical field
The present embodiments relate to field of communication technology, more particularly to a kind of data transmission method and terminal.
Background technology
At present, user had required high a lot to the real-time and convenience of watching video than in the past.Especially for reality
When audio and video, client player loading velocity is even more the index that people pay special attention in terminal.Streaming media clients and stream
Media server can quickly establish connection, improve the experience that user watches streaming medium content.
However, taken when the streaming media server to communicate with streaming media clients breaks down, or with Streaming Media
When the streaming media clients quantity that business device communicates is excessive, it may occur that the situation such as network congestion, connection can be slack-off or even can be surpassed
When, cause connection failure, so as to reduce the reliability that terminal is connected with streaming media server.
The content of the invention
The embodiment of the present invention provides a kind of data transmission method and terminal, can increase terminal and is connected with streaming media server
Reliability.
In a first aspect, the embodiment of the present invention provides a kind of data transmission method, including:
Connectivity request message is sent at least two servers, so that at least two server is receiving the company
When connecing solicited message, feedback link confirmation message;
When receiving the first connection confirmation message, will send it is described first connection confirmation message server determine based on
Server, the first connection confirmation message is to be connect earliest in the connection confirmation message of at least two server feedback
Received connection confirmation message;
Data are transmitted by the master server.
Second aspect, the embodiment of the present invention provide a kind of terminal, including:
Communication unit, for sending connectivity request message at least two servers, so that at least two server
When receiving the connectivity request message, feedback link confirmation message;
The communication unit, is additionally operable to receive the first connection confirmation message;
Determination unit, the server for that will send the first connection confirmation message are determined as master server, and described the
One connection confirmation message for receive earliest one in the connection confirmation message of at least two server feedback or
Information strength is most strong in multiple connection confirmation messages, or the connection confirmation message of at least two server feedback
One or more connection confirmation message;
The communication unit, is additionally operable to transmit data by the master server.
Implement the embodiment of the present invention, will have the advantages that:
Terminal can send connectivity request message to more than one server at the same time, this at least two server is receiving
, can be with feedback link confirmation message during the connectivity request message sent to terminal, terminal confirms the connection of the feedback received
The one or more connection confirmation messages received earliest in information, or one or more connection confirmations that information quality is most strong
Information is determined as the first connection confirmation message, and the server for sending the first connection confirmation message is master server.Then pass through
The one or more master server carries out data transmission.Choose that wherein connection speed is most fast or communication letter from multiple servers
The most strong one or more servers of breath communicate as master server, can increase successful connection between terminal and server
Probability, and improve the reliability that terminal is connected with server.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Wherein:
Fig. 1 is a kind of structure diagram of network architecture provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of data transmission method provided in an embodiment of the present invention;
Fig. 3 is a kind of structure diagram of terminal provided in an embodiment of the present invention;
Fig. 4 is the structure diagram of another terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment, belongs to the scope of protection of the invention.
A kind of data transmission method and terminal disclosed in the embodiment of the present application for a better understanding of the present invention are first right below
The system architecture that the embodiment of the present application of the present invention uses is described.Referring to Fig. 1, Fig. 1 is provided in an embodiment of the present invention one
The structure diagram of the kind network architecture.As shown in Figure 1, the network architecture can include terminal 101, at least two servers 102
With network 103.Wherein, terminal 101 can be communicated by least two servers 102 with network 103.Specifically, terminal
Equipment 102 can be mobile phone (mobile phone), tablet computer (Pad), the computer with radio transmission-receiving function, virtual reality
(Virtual Reality, VR) terminal device, augmented reality (Augmented Reality, AR) terminal device, Industry Control
Wireless terminal in (industrial control).Server 102 can be streaming media server.It can be wrapped in network 103
Containing user upload stream medium data, terminal 101 can be used for by with server 102 into row data communication, so as to obtain
Take the data of 103 side of network.
To solve in the prior art when the streaming media server to communicate with streaming media clients breaks down, or
When the streaming media clients quantity to communicate with streaming media server is excessive, it may occur that the situation such as network congestion, connection can become
Slow even meeting time-out, causes connection failure, so that the technical problem for the reliability that terminal is connected with streaming media server is reduced,
Spy proposes a kind of data transmission method, can increase the reliability that terminal is connected with streaming media server.
Referring to Fig. 2, Fig. 2 is a kind of flow diagram of data transmission method provided in an embodiment of the present invention.The data
Transmission method may comprise steps of:
S101, terminal send connectivity request message at least two servers.
In the embodiment of the present invention, before the stream medium data on network is obtained by server, terminal needs terminal first
To be established and connected by connectivity request message and server, to obtain the stream medium data on network by server.Streaming Media
Client can be sent when the stream medium data in by server and network is established and connected to several streaming media servers
Bag is logged in, which can be regarded as connectivity request message.For asking this several streaming media server to allow Streaming Media
Client access server, to obtain the stream medium data on network.The mistake that streaming media clients are interacted with several servers
Journey can be carried out by udp data bag, which can be that the UDP in udp protocol logs in bag.
S102, at least two servers are when receiving connectivity request message, to terminal feedback link confirmation message.
In the embodiment of the present invention, each server can receive above-mentioned UDP logins at least two servers
Send UDP to streaming media clients during bag and log in and confirm bag, that is, connect confirmation message.It is notice Streaming Media that the UDP, which logs in bag,
Client can log in the stream medium data in the server acquisition network of bag by sending the UDP.In addition, at least two services
Each server is when receiving connectivity request message in device or whether detection book server first has carrying stream matchmaker
Can the ability of body client, i.e. book server load the streaming media clients and network service.Can be with server assessment
In the case of load, which just sends connection confirmation message to streaming media clients.Send the service of connection confirmation message
Device is one-to-one with being connected confirmation message.It is understood that at least two servers, it is understood that there may be cannot load
Streaming media clients and the server of network service, these not portative servers will not be sent to streaming media clients to be connected
Connect confirmation message.
S103, terminal receive the first connection confirmation message.
In the embodiment of the present invention, the first connection confirmation message is the connection of at least two server feedback
The one or more connection confirmation messages received earliest in confirmation message, or at least two server feedback are described
Connect the most strong one or more connection confirmation messages of information quality in confirmation message.
Specifically, streaming media clients are likely to be received the connection that multiple servers are sent and firmly believe breath, and Streaming Media can be from
One or more connection confirmation messages are chosen in this multiple connection confirmation message, send the one or more connection confirmation message pair
The server answered can carry the mark of server in the connection confirmation message of transmission.
Streaming media clients are likely to be received the connection confirmation message that multiple servers are sent.Streaming media clients can select
Take one or more of as the first connection confirmation message.The standard of selection can be according to the connection confirmation letter received
Cease to assess the ability that corresponding server carries the streaming media clients.Specifically, if server feedback connects confirmation letter
The speed of breath is fast, i.e. feedback link confirmation message earlier, alternatively, the signal quality of feedback link confirmation message is preferable, then table
The ability that the bright server carries the streaming media clients is stronger.Then terminal can be using the one or more server as main clothes
Business device.In addition, the connection confirmation message, which can be the UDP that bag is logged in for UDP, logs in confirmation bag.
The server for sending the first connection confirmation message is determined as master server by S104, terminal.
In the embodiment of the present application, it can identify that transmission should according to the server identification carried in the first connection confirmation message
The server of first connection confirmation message.Since the first connection confirmation message can be one or more, master server
Quantity can also be one or more.
S105, terminal and master server transmission data.
In the embodiment of the present application, streaming media clients can be communicated by master server with network, to obtain net
Stream medium data in network or to network transmission stream medium data.Since the quantity of master server can be one or more,
Can be carried out by a server or by multiple when streaming media clients carry out data transmission with network
What server carried out.The one or more server is master server.
In the embodiment of the present application, after terminal transmits data by the master server, terminal is additionally operable to the first backup
Server sends detection information, and first backup server is the service beyond master server at least two server
Device, the detection information are used for when first backup server receives the detection information, feed back response message, described
Response message can transmit the data for identifying the backup server.
Specifically, at least two servers are properly termed as streaming media clients and the candidate server of network service, in institute
In some candidate servers, master server is the selected server to communicate with network.And main clothes are removed in candidate server
These servers beyond business device can be used as backup server.To prevent master server in stream media bearing client and network
Occur abnormal when communication, such as master server breaks down, and leads to not stream media bearing client and network
Communication task, periodically, periodically or according to instruction execution can check backup server.Specifically, can periodically, calmly
When or according to instruction to backup server send detection information, for detect backup server whether can with stream media bearing visitor
Family end and the communication of network.Can be with the communication of stream media bearing client and network if backup server detects itself, can
To feed back response message to terminal, after terminal receives response message, know that backup server can be with stream media bearing client
With the communication of network., will not be to if backup server detects the communication for itself being unable to stream media bearing client and network
Terminal feed back response message, when terminal does not receive response message, know backup server be unable to stream media bearing client with
The communication of network.It is understood that the quantity of backup server can be one or more.Here detection information and response
Information can be that UDP checks that bag and UDP check response bag.
For example, if the server of streaming media clients candidate includes server A, server B and server C.
When streaming media clients select master server, it is found that the time of server A and server B feedback link confirmation message is most short, or
The time of person's server A and server B feedback link confirmation message is less than predetermined threshold value, or server A and server B feedback
It is most strong to connect the signal quality of confirmation message, or the signal quality of server A and server B feedback link confirmation message is more than
Predetermined threshold value.Server A and server B can be determined as master server by terminal.It is real by server A and server B afterwards
Now stream medium data communication is carried out with network.In addition for server C, can timing, receive periodically or in terminal and be used for
When detecting the instruction of backup server, terminal to server C by sending whether detection information detection service device C can be stream matchmaker
Body client provides stream medium data communication.It can prevent from carrying out stream medium data communication by server A and server B
When, if server A and server B break down can not provide stream medium data communication for streaming media clients, can make
It is embodied as streaming media clients with server C and stream medium data communication is provided.Above-mentioned backup server is the first backup clothes
Business device.
In the embodiment of the present application, terminal when not receiving the response message that first backup server is sent,
The second backup server is obtained, the detection information is sent to second backup server.
Specifically, if the data communication that the first backup server can not be between stream media bearing client and network,
Then the first backup server will not feed back response message when receiving the detection information of terminal transmission to terminal.When terminal not
Detect response message, can be more than being still to receive response message after a certain period of time, show the first backup server not
Data communication that can be between stream media bearing client and network.Then terminal can be found beyond first backup server
Other servers.And detection information is sent to other servers, to detect other servers whether can be with stream media bearing client
Data communication between end and network.
For example, in precedent, if terminal does not receive the response message of server C transmissions, detection service device D can be removed
Whether can be with the data communication between stream media bearing client and network.Detection information, server D are sent to server D
Receive detection information, detect itself can be between stream media bearing client and network data communication, if it is then clothes
Business device D feeds back response message to terminal.Terminal learns that server D can be led to the data between stream media bearing client and network
Letter, using server D as backup server.If server A and server B, which break down, to be carried for streaming media clients
Communicate for stream medium data, streaming media clients can be embodied as using server D stream medium data communication is provided.
In the embodiment of the present application, after terminal transmits data by the master server, terminal is receiving the main clothes
When being used for the information for notifying the master server offline of business device transmission, alternatively, transmitting data by the master server
During failure, alternatively, when the terminal quantity connected on detecting the master server exceedes predetermined threshold value, described first is backed up
Server or second backup server are set as master server.
Specifically, master server may need actively offline according to functional requirement, or master server ability provides communication
Ability be likely to occur problem, such as master server transmission data break down, alternatively, the terminal quantity connected on master server
More than excessive, the fluency for causing to be connected to streaming media clients transmission data on master server is bad., can under situation above
To choose the communication that backup server carries out stream medium data.Will first backup server or the second backup clothes
Business device is set as master server.And stream medium data communication is carried out by master server.
For example, in precedent, streaming media clients by between server A and server B and network into row data communication.Through
After a period of time, server A and server B need offline due to some reasons, i.e., cannot realize again by server A kimonos
Be engaged between device B and network into row data communication, either server A and server B break down or by server A and
Number of users between server B and network into row data communication is excessive, will trigger streaming media clients from server A kimonos
Moved on business device B on backup server C or backup server D.Pass through backup server C and backup server D and net
Into row data communication between network.It is periodically, periodically or according to command detection backup server C and backup server D due to meeting
No data communication that can be between stream media bearing client and network, directly goes on backup server from master server and carries out
Data communication is reliable between network.
In the embodiment of the present application, the quantity of first backup server or second backup server is at least two
It is a, it is described that first backup server or second backup server are set as master server, including:Described in acquisition
The quantity of the terminal connected in first backup server or second backup server on each server;According to every
The quantity of the terminal connected on a server, chooses in first backup server or second backup server
The server of minimum number is connected as target backup server;The target backup server is set as master server.
Specifically, streaming media clients can have two or more backup server.Needing from main service
When migration on device, few standby of number of users of carrying can be chosen from the two or more than two backup servers
Part server is as master server.Resource relative loose on the few backup server of the number of users of carrying, avoid it is crowded, can be with
Improve the user experience that user carries out stream medium data communication.The assessment carrying of further or streaming media clients should
The ability of streaming media clients, chooses most strong one or more of ability for carrying the streaming media clients as main service
Device.Streaming media clients can by assessing the response speed of each backup server, for example, the speed of feedback response message,
To determine to carry the ability of the streaming media clients.Response speed shows that the ability for carrying the streaming media clients is stronger sooner,
Can be as the first choice of master server.Streaming media clients can also be by assessing the signal quality of each backup server, example
Such as, the intensity of feedback information, to determine to carry the ability of the streaming media clients.Feedback signal strength shows to carry the stream more by force
The ability of media client is stronger, can be as the first choice of master server.
For example, in precedent, it is assumed that current backup server is backup server D and backup server E, streaming media clients
When needing to move on backup server from original main server-a and B, two can be assessed in advance or at once
Backup server, can obtain the number of users each carried on backup server D and backup server E.In backup server D
In the case of suitable with backup server E hardware and Internet resources, if backup server D carrying between network into line number
According to communication streaming media clients quantity be 500,000, backup server E carrying between network into the stream matchmaker of row data communication
Body client terminal quantity is 800,000, then it is master server that can choose backup server D.The data that carried out between network of carrying are led to
The streaming media clients quantity of letter can be average value or instantaneous value.Connect alternatively, it is also possible to calculate backup server D
The feedback speed of received response message, and calculate the feedback speed for the response message that backup server E is received.Selection feedback
Fastest backup server is as master server.Here feedback speed can be the feedback of the response message repeatedly fed back
The average of speed.Furthermore the information strength for the response message that backup server D is received can be also calculated, and calculates backup services
The information strength for the response message that device E is received.The backup server of information strength maximum is selected as master server.Here
Information strength can also be the average of the information strength of the response message repeatedly fed back.
In the described data transmission methods of Fig. 2, terminal can send connection to more than one server at the same time please
Seek information, this at least two server receive terminal transmission connectivity request message when, can with feedback link confirmation message,
One or more connection confirmation messages that terminal will receive earliest in the connection confirmation message of the feedback received, or information
The most strong one or more connection confirmation messages of quality are determined as the first connection confirmation message, send the first connection confirmation message
Server be master server.Then carried out data transmission by the one or more master server.Selected from multiple servers
The one or more servers for taking wherein connection speed most fast or most strong the communication information communicate as master server, can be with
Increase the probability of successful connection between terminal and server, and improve the reliability that terminal is connected with server.
Referring to Fig. 3, Fig. 3 is a kind of structure diagram of terminal provided in an embodiment of the present invention.As shown in figure 3, the end
End includes:
Communication unit 101, for sending connectivity request message at least two servers, so that at least two service
Device is when receiving the connectivity request message, feedback link confirmation message;
The communication unit 101, is additionally operable to receive the first connection confirmation message;
Determination unit 102, it is described for the server for sending the first connection confirmation message to be determined as master server
First connection confirmation message is one received earliest in the connection confirmation message of at least two server feedback
Or information strength is most strong in multiple connection confirmation messages, or the connection confirmation message of at least two server feedback
One or more connection confirmation messages;
The communication unit 101, is additionally operable to transmit data by the master server.
It is described after the communication unit transmits data by the master server as a kind of possible embodiment
Communication unit, is additionally operable to send detection information to the first backup server, first backup server is described at least two
Server in server beyond master server, the detection information are used to receive the inspection in first backup server
During measurement information, response message is fed back, the response message can transmit the data for identifying the backup server.
As a kind of possible embodiment, the terminal further includes:
Acquiring unit 103, for when not receiving the response message that first backup server is sent, obtaining
Second backup server;
The communication unit 101, is additionally operable to send the detection information to second backup server.
As a kind of possible embodiment, after the communication unit 101 transmits data by the master server, institute
Determination unit 102 is stated, is additionally operable to notify the offline information of the master server in being used for of receiving that the master server sends
When, alternatively, when being broken down by master server transmission data, alternatively, connected on the master server is detected
When terminal quantity exceedes predetermined threshold value, by first backup server or second backup server setting based on service
Device.
As a kind of possible embodiment, the quantity of first backup server or second backup server
For at least two, the determination unit 102, specifically for obtaining first backup server or second backup services
The quantity of the terminal connected in device on each server;According to the quantity of the terminal connected on each server, choosing
The server for connecting minimum number in first backup server or second backup server is taken to be backed up as target
Server;The target backup server is set as master server.
In the described terminals of Fig. 3, terminal can send connectivity request message to more than one server at the same time, this
At least two servers be able to will be connect when receiving the connectivity request message of terminal transmission with feedback link confirmation message, terminal
The one or more connection confirmation messages received earliest in the connection confirmation message of received feedback, or information quality are most strong
One or more connection confirmation messages be determined as the first connection confirmation message, send the server of the first connection confirmation message
For master server.Then carried out data transmission by the one or more master server.Choose from multiple servers and wherein connect
Connect the most strong one or more servers of the fastest or communication information to communicate as master server, terminal can be increased
The probability of successful connection between server, and improve the reliability that terminal is connected with server.
Referring to Fig. 4, Fig. 4 is the structure diagram of another terminal provided in an embodiment of the present invention.As shown in figure 4, this
Terminal in embodiment can include:One or more processors 401;One or more input equipments 402, one or more are logical
Believe interface 403, memory 404 and bus 405.Above-mentioned processor 401, input equipment 402, communication interface 403 and memory 404
Connected by bus 405.For storing instruction, processor 401 is used for the instruction for performing the storage of memory 404 to memory 404.Its
In, input equipment 402 can be touch-screen, and for detecting the operation of intended application, communication interface 403 is used to carry out with server
Communication, processor 401 are used to call communication interface 403 to perform following operation:
Connectivity request message is sent at least two servers, so that at least two server is receiving the company
When connecing solicited message, feedback link confirmation message;
Receive the first connection confirmation message;
Processor 401 is additionally operable to, and the server for sending the first connection confirmation message is determined as master server, described
First connection confirmation message is one received earliest in the connection confirmation message of at least two server feedback
Or information strength is most strong in multiple connection confirmation messages, or the connection confirmation message of at least two server feedback
One or more connection confirmation messages;
Processor 401 is additionally operable to call communication interface 403 to perform following operation:
Data are transmitted by the master server.
As a kind of possible embodiment, processor 401 is additionally operable to call communication interface 403 to pass through the master server
After transmitting data, processor 401 is additionally operable to call communication interface 403 to perform following operation:
Detection information is sent to the first backup server, first backup server is at least two server
Server beyond master server, the detection information are used to receive the detection information in first backup server
When, response message is fed back, the response message can transmit the data for identifying the backup server.
As a kind of possible embodiment, processor 401 is additionally operable to:
When not receiving the response message that first backup server is sent, the second backup server is obtained,
The detection information is sent to second backup server.
As a kind of possible embodiment, processor 401 is additionally operable to call communication interface 403 to pass through the master server
After transmitting data, processor 401 is additionally operable under being used to notify the master server receive that the master server sends
During the information of line, alternatively, when being broken down by master server transmission data, alternatively, detecting the master server
When the terminal quantity of upper connection exceedes predetermined threshold value, first backup server or second backup server are determined
For master server.
As a kind of possible embodiment, the quantity of first backup server or second backup server
For at least two, first backup server or second backup server are determined as master server by processor 401,
Including:
Processor 401 obtains each server in first backup server or second backup server
The quantity of the terminal of upper connection;
Processor 401 chooses first backup server according to the quantity of the terminal connected on each server
Or the server of minimum number is connected in second backup server as target backup server;
The target backup server is set as master server by processor 401.
In the described terminals of Fig. 4, terminal can send connectivity request message to more than one server at the same time, this
At least two servers be able to will be connect when receiving the connectivity request message of terminal transmission with feedback link confirmation message, terminal
The one or more connection confirmation messages received earliest in the connection confirmation message of received feedback, or information quality are most strong
One or more connection confirmation messages be determined as the first connection confirmation message, send the server of the first connection confirmation message
For master server.Then carried out data transmission by the one or more master server.Choose from multiple servers and wherein connect
Connect the most strong one or more servers of the fastest or communication information to communicate as master server, terminal can be increased
The probability of successful connection between server, and improve the reliability that terminal is connected with server.
In the above-described embodiments, can it is all or part of by software, hardware, firmware or its any combination come reality
It is existing.When being realized using software program, can realize in the form of a computer program product whole or in part.The computer
Program product includes one or more computer instructions.When loading on computers and performing the computer program instructions, entirely
Portion is partly produced according to the flow or function described in the embodiment of the present invention.The computer can be all-purpose computer, specially
With computer, computer network or other programmable devices.The computer instruction can be stored in computer-readable storage
In medium, or the transmission from a computer-readable recording medium to another computer-readable recording medium, for example, the meter
The instruction of calculation machine can pass through wired (such as coaxial cable, light from a web-site, computer, server or data center
Fine, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, clothes
Business device or data center are transmitted.It is any available can be that computer can access for the computer-readable recording medium
The data storage device such as medium or the server integrated comprising one or more usable mediums, data center.It is described to use
Medium can be magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as it is solid
State hard disk Solid State Disk (SSD)) etc..
Data transmission method disclosed by the embodiments of the present invention and terminal are described in detail above, it is used herein
Specific case is set forth the principle of the present invention and embodiment, and the explanation of above example is only intended to help to understand this
The method and its core concept of invention;Meanwhile for those of ordinary skill in the art, according to the thought of the present invention, specific
There will be changes in embodiment and application range, in conclusion this specification content should not be construed as to the present invention's
Limitation.
Claims (10)
- A kind of 1. data transmission method, it is characterised in that including:To at least two servers send connectivity request message so that at least two server receive the connection please When seeking information, feedback link confirmation message;When receiving the first connection confirmation message, will send it is described first connection confirmation message server determine based on service Device, the first connection confirmation message is to be received earliest in the connection confirmation message of at least two server feedback One or more connection confirmation messages, or the connection confirmation message of at least two server feedback in information it is strong The most strong one or more connection confirmation messages of degree;Data are transmitted by the master server.
- 2. data transmission method according to claim 1, it is characterised in that described that data are transmitted by the master server Afterwards, the method further includes:Detection information is sent to the first backup server, first backup server is main clothes at least two server Server beyond business device, the detection information are used for when first backup server receives the detection information, instead Response message is presented, the response message can transmit the data for identifying the backup server.
- 3. data transmission method according to claim 2, it is characterised in that the method further includes:When not receiving the response message that first backup server is sent, the second backup server is obtained, to institute State the second backup server and send the detection information.
- 4. the data transmission method according to Claims 2 or 3, it is characterised in that described to be transmitted by the master server After data, the method further includes:When being used for the information for notifying the master server offline of the master server transmission is being received, alternatively, by described When master server transmission data break down, preset alternatively, the terminal quantity connected on the master server is detected exceedes During threshold value, first backup server or second backup server are determined as master server.
- 5. data transmission method according to claim 4, it is characterised in that first backup server or described The quantity of two backup servers is at least two, described that first backup server or second backup server is true It is set to master server, including:Obtain the terminal connected in first backup server or second backup server on each server Quantity;According to the quantity of the terminal connected on each server, first backup server or described second standby is chosen The server of minimum number is connected in part server as target backup server;The target backup server is set as master server.
- A kind of 6. terminal, it is characterised in that including:Communication unit, for sending connectivity request message at least two servers, so that at least two server is connecing When receiving the connectivity request message, feedback link confirmation message;The communication unit, is additionally operable to receive the first connection confirmation message;Determination unit, for the server for sending the first connection confirmation message to be determined as master server, described first connects Connect the one or more received earliest in the connection confirmation message that confirmation message is at least two server feedback Connect information strength is most strong in confirmation message, or the connection confirmation message of at least two server feedback one Or multiple connection confirmation messages;The communication unit, is additionally operable to transmit data by the master server.
- 7. terminal according to claim 6, it is characterised in that the communication unit transmits data by the master server Afterwards, the communication unit, is additionally operable to send detection information to the first backup server, first backup server is described Server at least two servers beyond master server, the detection information are used to receive in first backup server During to the detection information, response message is fed back, the response message can transmit the number for identifying the backup server According to.
- 8. terminal according to claim 7, it is characterised in that the terminal further includes:Acquiring unit, for when not receiving the response message that first backup server is sent, it is standby to obtain second Part server;The communication unit, is additionally operable to send the detection information to second backup server.
- 9. the terminal according to claim 7 or 8, it is characterised in that the communication unit is transmitted by the master server After data, the determination unit, is additionally operable under being used to notify the master server receive that the master server sends During the information of line, alternatively, when being broken down by master server transmission data, alternatively, detecting the master server When the terminal quantity of upper connection exceedes predetermined threshold value, first backup server or second backup server are set For master server.
- 10. terminal according to claim 9, it is characterised in that first backup server or second backup The quantity of server is at least two, the determination unit, specifically for obtaining first backup server or described the The quantity of the terminal connected in two backup servers on each server;According to the terminal connected on each server Quantity, choose the server conduct that minimum number is connected in first backup server or second backup server Target backup server;The target backup server is set as master server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711135415.XA CN107979876B (en) | 2017-11-16 | 2017-11-16 | Data transmission method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711135415.XA CN107979876B (en) | 2017-11-16 | 2017-11-16 | Data transmission method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107979876A true CN107979876A (en) | 2018-05-01 |
CN107979876B CN107979876B (en) | 2022-01-07 |
Family
ID=62013638
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711135415.XA Active CN107979876B (en) | 2017-11-16 | 2017-11-16 | Data transmission method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107979876B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110445639A (en) * | 2019-07-05 | 2019-11-12 | 视联动力信息技术股份有限公司 | A kind of hot spare method and device of server |
CN112653736A (en) * | 2020-12-10 | 2021-04-13 | 北京金山云网络技术有限公司 | Parallel source returning method and device and electronic equipment |
Citations (32)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1706165A (en) * | 2002-01-24 | 2005-12-07 | 国际商业机器公司 | Method and apparatus for network field communication control |
CN101022413A (en) * | 2007-03-26 | 2007-08-22 | 杭州华为三康技术有限公司 | Load equalizing method and route server |
CN102480512A (en) * | 2010-11-29 | 2012-05-30 | 国际商业机器公司 | Method and device for expanding processing capacity at server end |
CN102624570A (en) * | 2012-04-27 | 2012-08-01 | 杭州东信北邮信息技术有限公司 | Monitoring system and method for detecting availability of web server |
CN103188346A (en) * | 2013-03-05 | 2013-07-03 | 北京航空航天大学 | Distributed decision making supporting massive high-concurrency access I/O (Input/output) server load balancing system |
CN103312677A (en) * | 2012-03-15 | 2013-09-18 | 宇龙计算机通信科技(深圳)有限公司 | Terminal, server and establishment method of communication connection |
CN103401904A (en) * | 2013-07-19 | 2013-11-20 | 蓝盾信息安全技术股份有限公司 | Method for backing up mobile terminal data |
CN103546542A (en) * | 2013-09-29 | 2014-01-29 | 北京航空航天大学 | Server load balancing method and device |
CN103595702A (en) * | 2012-08-17 | 2014-02-19 | 中兴通讯股份有限公司 | Selection method and apparatus for content providing device |
CN103634312A (en) * | 2013-11-26 | 2014-03-12 | 广州晶锐信息技术有限公司 | Device management method for realizing multi-audio fast synchrony based on audio sharing |
CN103685398A (en) * | 2012-09-17 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Communication connection establishment method and communication system |
CN103810196A (en) * | 2012-11-09 | 2014-05-21 | 阿里巴巴集团控股有限公司 | Method for testing performance of database on basis of business model |
EP2733502A1 (en) * | 2012-11-15 | 2014-05-21 | James Buchheim | Locator beacon and radar application for mobile device |
CN104158735A (en) * | 2014-08-21 | 2014-11-19 | 网神信息技术(北京)股份有限公司 | Network data package distribution method and device |
CN104333488A (en) * | 2014-11-04 | 2015-02-04 | 哈尔滨工业大学 | Cloud service platform performance test method |
CN104579996A (en) * | 2013-10-17 | 2015-04-29 | 中国电信股份有限公司 | Cluster load balancing method and system |
CN104661050A (en) * | 2015-02-13 | 2015-05-27 | 海信集团有限公司 | Streaming media data transmission method, device and system |
US20150156253A1 (en) * | 2013-11-29 | 2015-06-04 | Fedex Corporate Services, Inc. | Methods and Networks for Dynamically Changing an Operational Mode of Node Operations in a Wireless Node Network |
WO2015099890A2 (en) * | 2013-11-29 | 2015-07-02 | Fedex Corporate Services, Inc. | Methods and systems for managing shipment of an item using a wireless node network |
US20150347959A1 (en) * | 2014-05-28 | 2015-12-03 | Fedex Corporate Services, Inc. | Methods and apparatus for pseudo master node mode operations within a hierarchical wireless network |
CN105516360A (en) * | 2016-01-19 | 2016-04-20 | 苏州帕科泰克物联技术有限公司 | Method and device for load balance of computer |
CN105610651A (en) * | 2016-02-24 | 2016-05-25 | 太仓市同维电子有限公司 | Detection method of connecting to the Internet by wireless router |
CN105681266A (en) * | 2014-11-20 | 2016-06-15 | 中国移动通信集团广东有限公司 | Communication cluster method and device for MMTel (MultiMedia Telephony) |
CN105721547A (en) * | 2016-01-20 | 2016-06-29 | 北京京东尚科信息技术有限公司 | Method and device for cooperative processing business |
CN106250199A (en) * | 2016-07-26 | 2016-12-21 | 北京北森云计算股份有限公司 | The dynamic micro services call method of a kind of multilingual cloud compiling and device |
CN106357747A (en) * | 2016-08-30 | 2017-01-25 | 维沃移动通信有限公司 | Server load management method and device |
CN106357727A (en) * | 2016-08-24 | 2017-01-25 | 明算科技(北京)股份有限公司 | Method and system to upload files to multiple servers simultaneously |
WO2017034944A1 (en) * | 2015-08-25 | 2017-03-02 | Saudi Arabian Oil Company | High performance and grid computing with fault tolerant data distributors quality of service |
CN106484713A (en) * | 2015-08-27 | 2017-03-08 | 中国石油化工股份有限公司 | A kind of based on service-oriented Distributed Request Processing system |
CN106534288A (en) * | 2016-11-02 | 2017-03-22 | 广东欧珀移动通信有限公司 | Data transmission method and mobile terminal |
CN106790356A (en) * | 2016-11-15 | 2017-05-31 | 广东欧珀移动通信有限公司 | A kind of data backup, method for down loading and relevant device |
CN107231246A (en) * | 2016-03-23 | 2017-10-03 | 北京佳讯飞鸿电气股份有限公司 | A kind of server access system and method |
-
2017
- 2017-11-16 CN CN201711135415.XA patent/CN107979876B/en active Active
Patent Citations (32)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1706165A (en) * | 2002-01-24 | 2005-12-07 | 国际商业机器公司 | Method and apparatus for network field communication control |
CN101022413A (en) * | 2007-03-26 | 2007-08-22 | 杭州华为三康技术有限公司 | Load equalizing method and route server |
CN102480512A (en) * | 2010-11-29 | 2012-05-30 | 国际商业机器公司 | Method and device for expanding processing capacity at server end |
CN103312677A (en) * | 2012-03-15 | 2013-09-18 | 宇龙计算机通信科技(深圳)有限公司 | Terminal, server and establishment method of communication connection |
CN102624570A (en) * | 2012-04-27 | 2012-08-01 | 杭州东信北邮信息技术有限公司 | Monitoring system and method for detecting availability of web server |
CN103595702A (en) * | 2012-08-17 | 2014-02-19 | 中兴通讯股份有限公司 | Selection method and apparatus for content providing device |
CN103685398A (en) * | 2012-09-17 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Communication connection establishment method and communication system |
CN103810196A (en) * | 2012-11-09 | 2014-05-21 | 阿里巴巴集团控股有限公司 | Method for testing performance of database on basis of business model |
EP2733502A1 (en) * | 2012-11-15 | 2014-05-21 | James Buchheim | Locator beacon and radar application for mobile device |
CN103188346A (en) * | 2013-03-05 | 2013-07-03 | 北京航空航天大学 | Distributed decision making supporting massive high-concurrency access I/O (Input/output) server load balancing system |
CN103401904A (en) * | 2013-07-19 | 2013-11-20 | 蓝盾信息安全技术股份有限公司 | Method for backing up mobile terminal data |
CN103546542A (en) * | 2013-09-29 | 2014-01-29 | 北京航空航天大学 | Server load balancing method and device |
CN104579996A (en) * | 2013-10-17 | 2015-04-29 | 中国电信股份有限公司 | Cluster load balancing method and system |
CN103634312A (en) * | 2013-11-26 | 2014-03-12 | 广州晶锐信息技术有限公司 | Device management method for realizing multi-audio fast synchrony based on audio sharing |
US20150156253A1 (en) * | 2013-11-29 | 2015-06-04 | Fedex Corporate Services, Inc. | Methods and Networks for Dynamically Changing an Operational Mode of Node Operations in a Wireless Node Network |
WO2015099890A2 (en) * | 2013-11-29 | 2015-07-02 | Fedex Corporate Services, Inc. | Methods and systems for managing shipment of an item using a wireless node network |
US20150347959A1 (en) * | 2014-05-28 | 2015-12-03 | Fedex Corporate Services, Inc. | Methods and apparatus for pseudo master node mode operations within a hierarchical wireless network |
CN104158735A (en) * | 2014-08-21 | 2014-11-19 | 网神信息技术(北京)股份有限公司 | Network data package distribution method and device |
CN104333488A (en) * | 2014-11-04 | 2015-02-04 | 哈尔滨工业大学 | Cloud service platform performance test method |
CN105681266A (en) * | 2014-11-20 | 2016-06-15 | 中国移动通信集团广东有限公司 | Communication cluster method and device for MMTel (MultiMedia Telephony) |
CN104661050A (en) * | 2015-02-13 | 2015-05-27 | 海信集团有限公司 | Streaming media data transmission method, device and system |
WO2017034944A1 (en) * | 2015-08-25 | 2017-03-02 | Saudi Arabian Oil Company | High performance and grid computing with fault tolerant data distributors quality of service |
CN106484713A (en) * | 2015-08-27 | 2017-03-08 | 中国石油化工股份有限公司 | A kind of based on service-oriented Distributed Request Processing system |
CN105516360A (en) * | 2016-01-19 | 2016-04-20 | 苏州帕科泰克物联技术有限公司 | Method and device for load balance of computer |
CN105721547A (en) * | 2016-01-20 | 2016-06-29 | 北京京东尚科信息技术有限公司 | Method and device for cooperative processing business |
CN105610651A (en) * | 2016-02-24 | 2016-05-25 | 太仓市同维电子有限公司 | Detection method of connecting to the Internet by wireless router |
CN107231246A (en) * | 2016-03-23 | 2017-10-03 | 北京佳讯飞鸿电气股份有限公司 | A kind of server access system and method |
CN106250199A (en) * | 2016-07-26 | 2016-12-21 | 北京北森云计算股份有限公司 | The dynamic micro services call method of a kind of multilingual cloud compiling and device |
CN106357727A (en) * | 2016-08-24 | 2017-01-25 | 明算科技(北京)股份有限公司 | Method and system to upload files to multiple servers simultaneously |
CN106357747A (en) * | 2016-08-30 | 2017-01-25 | 维沃移动通信有限公司 | Server load management method and device |
CN106534288A (en) * | 2016-11-02 | 2017-03-22 | 广东欧珀移动通信有限公司 | Data transmission method and mobile terminal |
CN106790356A (en) * | 2016-11-15 | 2017-05-31 | 广东欧珀移动通信有限公司 | A kind of data backup, method for down loading and relevant device |
Non-Patent Citations (3)
Title |
---|
"SP-020654", 《3GPP TSG_SA\TSG_SA》 * |
CHENGCHAO LIANG: "Wireless Network Virtualization: A Survey,Some Research Issues and Challenges", 《IEEE XPLORE》 * |
张慧芳: "基于动态反馈的加权最小连接数服务器负载均衡算法研究", 《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110445639A (en) * | 2019-07-05 | 2019-11-12 | 视联动力信息技术股份有限公司 | A kind of hot spare method and device of server |
CN110445639B (en) * | 2019-07-05 | 2022-07-12 | 视联动力信息技术股份有限公司 | Hot standby method and device for server |
CN112653736A (en) * | 2020-12-10 | 2021-04-13 | 北京金山云网络技术有限公司 | Parallel source returning method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN107979876B (en) | 2022-01-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1894895B (en) | Detection of forwarding problems for external prefixes | |
CN107171885B (en) | A kind of methods, devices and systems of detection service device operating status | |
US20180234362A1 (en) | Enhanced video instant messaging processing | |
MX2013011250A (en) | Providing a witness service. | |
EP3679713B1 (en) | Call reconnection | |
US7502863B2 (en) | Method of distributing stream data and system thereof | |
CN108200218A (en) | A kind of method, apparatus and electronic equipment for realizing load balancing | |
CN105991412A (en) | Method and device for pushing message | |
CN109962827B (en) | Equipment link detection method, device, equipment and readable storage medium | |
US9253669B2 (en) | Network analysis method, information processing device, and computer-readable recording medium | |
CN107979876A (en) | Data transmission method and terminal | |
CN108156024B (en) | Method, system and storage medium for detecting availability based on distributed website | |
KR102558475B1 (en) | Method for network state identification and electronic device thereof | |
US20160366571A1 (en) | Connection-Oriented Messaging and Signaling in Mobile Heath Networks | |
KR101571374B1 (en) | Information management method and device | |
CN107078920A (en) | Cross-layer link failure is alerted | |
CN108881200B (en) | TCP-based method and system for simultaneously online multiple terminals | |
CN104572105B (en) | Data-updating method and device | |
EP3806403A1 (en) | Apparatus and method for managing message transmission delay | |
CN107071038B (en) | Method and device for transmitting multimedia data | |
CN113411228B (en) | Network condition determining method and server | |
US10148707B2 (en) | System and method for maintaining a collaborative environment | |
CN107249194A (en) | Manage method, device and the equipment of wireless network connection | |
CN110474807A (en) | A kind of log processing method and device | |
WO2021184216A1 (en) | Internet of things communication method and apparatus |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231016 Address after: 31a, 15 / F, building 30, maple mall, bangrang Road, Brazil, Singapore Patentee after: Baiguoyuan Technology (Singapore) Co.,Ltd. Address before: 511449 25th floor, building B-1, Wanda Plaza North, Wanbo business district, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province Patentee before: GUANGZHOU BAIGUOYUAN NETWORK TECHNOLOGY Co.,Ltd. |