CN109451596A - Data transmission method and relevant apparatus - Google Patents

Data transmission method and relevant apparatus Download PDF

Info

Publication number
CN109451596A
CN109451596A CN201811269401.1A CN201811269401A CN109451596A CN 109451596 A CN109451596 A CN 109451596A CN 201811269401 A CN201811269401 A CN 201811269401A CN 109451596 A CN109451596 A CN 109451596A
Authority
CN
China
Prior art keywords
message
wireless communication
communication link
data packet
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811269401.1A
Other languages
Chinese (zh)
Other versions
CN109451596B (en
Inventor
王立中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811269401.1A priority Critical patent/CN109451596B/en
Publication of CN109451596A publication Critical patent/CN109451596A/en
Application granted granted Critical
Publication of CN109451596B publication Critical patent/CN109451596B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • H04W76/16Involving different core network technologies, e.g. a packet-switched [PS] bearer in combination with a circuit-switched [CS] bearer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Abstract

This application discloses a kind of data transmission method and relevant apparatus, are applied to electronic equipment, and the electronic equipment enables multiple wireless communication links, which comprises obtains the first data packet to be sent;When detecting first data packet to send for the first time, the first message is sent by the first wireless communication link road direction server in the multiple wireless communication link, and the second message is sent by server described in the second wireless communication link road direction, first message and second message are the synchronizing sequence number SYN message in transmission control protocol TCP;When receiving the third message from the server, determine the corresponding wireless communication link of the third message, and first data packet is sent by the network interface of the corresponding wireless communication link, the third message is used to indicate the server and receives first message or second message.The application is conducive to realize that link is preferred in link aggregation.

Description

Data transmission method and relevant apparatus
Technical field
This application involves electronic technology field more particularly to a kind of data transmission methods and relevant apparatus.
Background technique
With the development of mobile communication technology, demand of the user to data communication is increasing, at present intelligence on the market Terminal generally sends data by the modes such as cellular mobile network communication or Wi-Fi communication, intelligence when carrying out data transmission Terminal needs to compete air-link resources with the other equipment in same area, it is difficult to meet the online demand of user.
Summary of the invention
The embodiment of the present application provides a kind of data transmission method and relevant apparatus, to improve data transfer stability and Reliability improves efficiency of transmission.
In a first aspect, the embodiment of the present application provides a kind of data transmission method, it is applied to electronic equipment, the electronic equipment Enable multiple wireless communication links, which comprises
Obtain the first data packet to be sent;
When detecting first data packet to send for the first time, pass through first in the multiple wireless communication link Wireless communication link road direction server sends the first message, and sends second by server described in the second wireless communication link road direction Message, first message and second message are the synchronizing sequence number SYN message in transmission control protocol TCP;
When receiving the third message from the server, the corresponding wireless communication link of the third message is determined Road, and first data packet is sent by the network interface of the corresponding wireless communication link, the third message is used for Indicate that the server receives first message or second message.
Second aspect, the embodiment of the present application provide a kind of data transmission device, are applied to electronic equipment, the data transmission Device includes processing unit and communication unit, wherein
The processing unit, for obtaining the first data packet to be sent by the communication unit;It is described detecting First data packet is when sending for the first time, to pass through first channel radio of the communication unit into the multiple wireless communication link Believe that chain road direction server sends the first message, and by the communication unit to server described in the second wireless communication link road direction The second message is sent, first message and second message are the synchronizing sequence number SYN report in transmission control protocol TCP Text;And when receiving the third message from the server by the communication unit, determine the third message pair The wireless communication link answered, and first data packet, institute are sent by the network interface of the corresponding wireless communication link It states third message and is used to indicate the server and receive first message or second message.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, including processor, memory, communication interface and One or more programs, wherein said one or multiple programs are stored in above-mentioned memory, and are configured by above-mentioned It manages device to execute, above procedure is included the steps that for executing the instruction in the embodiment of the present application first aspect either method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein above-mentioned computer-readable Storage medium storage is used for the computer program of electronic data interchange, wherein above-mentioned computer program executes computer such as Step some or all of described in the embodiment of the present application first aspect either method.
5th aspect, the embodiment of the present application provide a kind of computer program product, wherein above-mentioned computer program product Non-transient computer readable storage medium including storing computer program, above-mentioned computer program are operable to make to calculate Machine executes the step some or all of as described in the embodiment of the present application first aspect either method.The computer program product It can be a software installation packet.
As can be seen that in the embodiment of the present application, electronic equipment obtains the first data packet to be sent first, secondly, When detecting first data packet to send for the first time, pass through the first wireless communication link in the multiple wireless communication link Road direction server sends the first message, and sends the second message by server described in the second wireless communication link road direction, described First message and second message are the synchronizing sequence number SYN message in transmission control protocol TCP, finally, receiving When third message from the server, the corresponding wireless communication link of the third message is determined, and pass through the correspondence The network interface of wireless communication link send first data packet, the third message is used to indicate the server and receives To first message or second message.Since electronic equipment can pass through the first wireless communication link road direction server simultaneously The first message is sent, the second message is sent by server described in the second wireless communication link, is being received from server When third message, that is, it can determine that server first receives the first message or the second message, thus the first wireless communication link of selection Road or the second wireless communication link send the first data packet, realize wireless communication link according to the rule that preference return preferentially uses Road it is preferred, be conducive to improve data packet transmission efficiency.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application or in background technique below will be implemented the application Attached drawing needed in example or background technique is illustrated.
Fig. 1 is the example system architecture figure of wireless communication system locating for a kind of electronic equipment provided by the embodiments of the present application;
Fig. 2A is a kind of flow diagram of data transmission method provided by the embodiments of the present application;
Fig. 2 B is the reference example figure that a kind of message provided by the embodiments of the present application is sent;
Fig. 3 is the flow diagram of another data transmission method provided by the embodiments of the present application;
Fig. 4 is the flow diagram of another data transmission method provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application;
Fig. 6 is a kind of functional unit composition block diagram of data transmission device provided by the embodiments of the present application.
Specific implementation
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection It encloses.
It is described in detail separately below.
The description and claims of this application and term " first ", " second ", " third " and " in the attached drawing Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Electronic equipment involved by the embodiment of the present application can be the electronic equipment for having data transmission capabilities, the electronics Equipment may include the various handheld devices with wireless communication function, mobile unit, wearable device, calculate equipment or connection It is mobile to other processing equipments of radio modem and various forms of user equipmenies (User Equipment, UE) Platform (Mobile Station, MS), terminal device (terminal device) etc..
It describes in detail below to the embodiment of the present application.
Link aggregation is that equipment is instigated using two or more network interface while can to surf the Internet simultaneously, than Such as network access is carried out using Wireless Fidelity Wi-Fi and data network LTE while on mobile phone by link aggregation. It is unusable to will lead to data network when Wi-Fi is enabled for android network system (connectivityService network scoring causes data network to disconnect), and link aggregation at least needs two or two A above available network, so the premise item of service-level agreement (Service-Level Agreement, be abbreviated as SLA) Part seeks to keep Wi-Fi and data network coexisted.As shown in Figure 1, electronic equipment 101 can connect data network 103 at present, number It is the communication network for being used for transmission data service according to net;Also it can connect Wi-Fi 102, Wi-Fi is a kind of permission electronic equipment company It is connected to the technology of a WLAN, usually using 2.4G UHF or 5G SHF ISM radio frequency band;Bluetooth can also be connected 104, a kind of wireless technology standard is, it can be achieved that the short-range data between fixed equipment, mobile device and building personal area network is handed over Change (using the UHF radio wave of the ISM band of 2.4-2.485GHz) etc..
Referring to Fig. 2, Fig. 2 is that the embodiment of the present application provides a kind of flow diagram of data transmission method, it is applied to Electronic equipment.Notebook data transmission method includes:
S201, the electronic equipment obtain the first data packet to be sent.
S202, the electronic equipment pass through the multiple nothing when detecting first data packet to send for the first time The first wireless communication link road direction server in line communication link sends the first message, and passes through the second wireless communication link road direction The server sends the second message, first message and the synchronous sequence that second message is in transmission control protocol TCP Column number SYN message.
Wherein, when sending data packet to network, electronic equipment needs first to obtain the permission of access network, in transport layer After three-way handshake success, electronic equipment just can send the first data packet to server.In the prior art, electronic equipment first passes through WIFI or data network send a synchronizing sequence to server and number (SynchronizeSequenceNumbers, SYN) Message, when receiving the SYN from server and confirmation character (Acknowledgement, ACK) message, then to server An ACK message is sent, that is, completes three-way handshake, can just carry out the transmission of data packet.
Wherein, in this application, when detecting the first data packet to send for the first time, the first wireless communication link can be passed through Road direction server sends the first message, meanwhile, the second message, the first message are sent by the second wireless communication link road direction server It, can be by the with the SYN message that the second message is in transmission control protocol (TransmissionControlProtocol, TCP) One message obtains the second message after being replicated.
S203, the electronic equipment determine the third message when receiving the third message from the server Corresponding wireless communication link, and first data packet is sent by the network interface of the corresponding wireless communication link, The third message is used to indicate the server and receives first message or second message.
Wherein, when electronic equipment receives the third message from server, that is, show that server has received first Message or the second message, therefore can determine the corresponding wireless communication link of third message, and pass through corresponding wireless communication link The network interface on road sends the first data packet, which is the first wireless communication link or the second nothing Line communication link, the third message are the SYN+ACK message in transmission control protocol TCP.
For example, the corresponding wireless communication link is the first wireless communication link, although showing the first wireless communication Link and the second wireless communication link have sent SYN message to server simultaneously, but server passes through the first wireless communication link Road has sent third message, i.e. server has been firstly received the first message and has responded electronic equipment, the second wireless communication link Road may send not successfully the second message or transmission speed is slower, therefore the first wireless communication link may be than the second channel radio Letter link is more suitable for transmitting the first data packet, thus, electronic equipment and service can be continued by the first wireless communication link at this time Three-way handshake between device passes through first the first data packet of wireless communication link after TCP connection is successfully established.
As can be seen that in the embodiment of the present application, electronic equipment obtains the first data packet to be sent first, secondly, When detecting first data packet to send for the first time, pass through the first wireless communication link in the multiple wireless communication link Road direction server sends the first message, and sends the second message by server described in the second wireless communication link road direction, described First message and second message are the synchronizing sequence number SYN message in transmission control protocol TCP, finally, receiving When third message from the server, the corresponding wireless communication link of the third message is determined, and pass through the correspondence The network interface of wireless communication link send first data packet, the third message is used to indicate the server and receives To first message or second message.Since electronic equipment can pass through the first wireless communication link road direction server simultaneously The first message is sent, the second message is sent by server described in the second wireless communication link, is being received from server When third message, that is, it can determine that server first receives the first message or the second message, thus the first wireless communication link of selection Road or the second wireless communication link send the first data packet, are preferentially used according to preference return, realize wireless communication link It is preferred, be conducive to improve data packet transmission efficiency.
In a possible example, the corresponding wireless communication link of the determination third message, and by described The network interface of corresponding wireless communication link sends first data packet, comprising: determines the nothing for transmitting the third message Line communication link is the first wireless communication link;According to the first link identification of first wireless communication link label described the One data packet;The network interface of first wireless communication link is selected to send first number according to first link identification According to packet.
Wherein, server can reply to electricity after the first message or the second message for receiving electronic equipment transmission Sub- equipment third message can pass through first if server receives the first message sent by the first wireless communication link Wireless communication link replys third message, alternatively, server receives the second message sent by the second wireless communication link, Then third message can be replied by the second wireless communication link.
Wherein, however, it is determined that the wireless communication link of transmission third message is the first wireless communication link, then can be according to first After first the first data packet of link identification label of Radio Link, the first wireless communication link is being selected according to the first link identification Network interface after send the first data packet.Link identification is for being marked wireless communication link.
Wherein, the server only passes through after receiving the first message sent by the first wireless communication link First wireless communication link road direction electronic equipment sends third message, to respond to the first message, even if having received The second message sent by the second wireless communication link, will not make any response.
As it can be seen that electronic equipment passes through the third report of the first wireless communication link transmission receiving server in this example Wen Hou completes the second handshake in Transmission Control Protocol, to can determine that the data transmission quality of the first wireless communication link is better than The data transmission quality of second wireless communication link, therefore in the first link identification label first with the first wireless communication link After data packet, the network interface of the first wireless communication link is selected to send the first data packet according to the first link identification.
In a possible example, the corresponding wireless communication link of the determination third message, and by described The network interface of corresponding wireless communication link sends first data packet, comprising: determines the nothing for transmitting the third message Line communication link is the second wireless communication link;According to the second link identification of second wireless communication link label described the One data packet;The network interface of second wireless communication link is selected to send first number according to second link identification According to packet.
Wherein, however, it is determined that the wireless communication link of transmission third message is the second wireless communication link, then can be according to second After second the first data packet of link identification label of Radio Link, the second wireless communication link is being selected according to the second link identification Network interface after send the first data packet.
Wherein, the server only passes through after receiving the first message sent by the second wireless communication link Second wireless communication link road direction electronic equipment sends third message, to respond to the first message, even if having received The first message sent by the first wireless communication link, will not make any response.
As it can be seen that electronic equipment passes through the third report of the second wireless communication link transmission receiving server in this example Wen Hou completes the second handshake in Transmission Control Protocol, to can determine that the data transmission quality of the second wireless communication link is better than The data transmission quality of first wireless communication link, therefore in the second link identification label first with the second wireless communication link After data packet, the network interface of the second wireless communication link is selected to send the first data packet according to the second link identification.
In a possible example, after the corresponding wireless communication link of the determination third message, the side Method further include: the 4th message is sent by server described in the corresponding wireless communication link road direction, the 4th message is used for Indicate that the electronic equipment receives the third message;After the server receives the 4th message, determine logical The network interface for crossing the corresponding wireless communication link sends first data packet.
Wherein, after determining the corresponding wireless communication link of the third message, electronic equipment can also be by corresponding Wireless communication link road direction server sends the 4th message, so that tell the server has received the third message of server transmission, At this point, the three-way handshake in Transmission Control Protocol is completed, electronic equipment can access server by the corresponding wireless communication link.
For example, as shown in Figure 2 B, electronic equipment passes through the first wireless communication link and the second wireless communication link simultaneously Road has sent the first message and the second message to server respectively, and server passes through the first nothing after receiving the first message Line communication link sends third message to electronic equipment, and electronic equipment receives third message and then by the first channel radio Believe that chain road direction server sends the 4th message, so as to complete three-way handshake.
As it can be seen that electronic equipment sends the 4th by the corresponding wireless communication link road direction server of third message in this example Message after server receives the 4th message, determines corresponding by this so as to complete the three-way handshake in Transmission Control Protocol The network interface of wireless communication link sends the first data packet.
In a possible example, the method also includes: if detecting, first data packet is not to send out for the first time It send, obtains the link identification of first data packet;When detecting the link identification is the first link identification, first is determined The secondary wireless communication link for sending first data packet is the first wireless communication link;Select the of the second wireless communication link Two link identifications mark first data packet, and the net of second wireless communication link is selected according to second link identification Network interface sends first data packet, and second wireless communication link is the nothing in addition to first wireless communication link Line communication link.
Wherein, electronic equipment detects that first data packet is not that the situation sent for the first time refers to electronic equipment to clothes Business device sends SYN message, but does not obtain the response of server, and this situation may be since first time sends the first data packet The channel quality of wireless communication link bad cause.In this case, electronic equipment can be had according to electronic equipment Wireless module selects other wireless communication links other than the wireless communication link.
Wherein, the link identification for obtaining the first data packet determines the when detecting link identification is the first link identification It is primary when sending the first data packet, it is by the first wireless communication link, at this time, it may be necessary to select the of the second wireless communication link Two link identifications carry out the first data packet of label, then the first data packet is sent by the second wireless communication link, the second channel radio Believe that link is the wireless communication link in addition to the first wireless communication link.
As it can be seen that after sending the failure of the first data packet by the first wireless communication link, selection second is wireless in this example Communication link sends the first data packet, selects the second link identification of the second wireless communication link to mark first data Packet selects the network interface of second wireless communication link to send first data packet according to second link identification, The success rate of data transmission can be improved.
In a possible example, first communication link is Wireless Fidelity WIFI wireless communication link, described the Two communication links are long term evolution LTE wireless communication link.
As it can be seen that in this example, when electronic equipment and server shake hands for the first time, WIFI wireless communication link and LTE wireless communication link can carry out shaking hands for the first time simultaneously, preferred by link, determine through which communication link transmission first Data packet is conducive to the stability of improve data transfer.
In a possible example, first data packet is the data packet that the electronic equipment local terminal generates;Alternatively, First data packet is the data packet to be forwarded that the electronic equipment receives.
As it can be seen that the electronic equipment can not only transmit the data packet of this equipment generation, moreover it is possible to forward data packet, ensure that The diversity of data transfer task.
It is consistent with the embodiment shown in Fig. 2, referring to Fig. 3, Fig. 3 is a kind of data provided by the embodiments of the present application The flow diagram of transmission method, is applied to electronic equipment, and the electronic equipment enables multiple wireless communication links.As schemed Show, notebook data transmission method includes:
S301, the electronic equipment obtain the first data packet to be sent.
S302, the electronic equipment pass through the multiple nothing when detecting first data packet to send for the first time The first wireless communication link road direction server in line communication link sends the first message, and passes through the second wireless communication link road direction The server sends the second message, first message and the synchronous sequence that second message is in transmission control protocol TCP Column number SYN message.
S303, the electronic equipment determine when receiving the third message from the server and transmit the third The wireless communication link of message is the first wireless communication link, the third message be used to indicate the server receive it is described First message or second message.
S304, the electronic equipment is according to the first link identification of first wireless communication link label first number According to packet.
S305, the electronic equipment select the network of first wireless communication link to connect according to first link identification Mouth sends first data packet.
As can be seen that in the embodiment of the present application, electronic equipment obtains the first data packet to be sent first, secondly, When detecting first data packet to send for the first time, pass through the first wireless communication link in the multiple wireless communication link Road direction server sends the first message, and sends the second message by server described in the second wireless communication link road direction, described First message and second message are the synchronizing sequence number SYN message in transmission control protocol TCP, finally, receiving When third message from the server, the corresponding wireless communication link of the third message is determined, and pass through the correspondence The network interface of wireless communication link send first data packet, the third message is used to indicate the server and receives To first message or second message.Since electronic equipment can pass through the first wireless communication link road direction server simultaneously The first message is sent, the second message is sent by server described in the second wireless communication link, is being received from server When third message, that is, it can determine that server first receives the first message or the second message, thus the first wireless communication link of selection Road or the second wireless communication link send the first data packet, are preferentially used according to preference return, realize wireless communication link It is preferred, be conducive to improve data packet transmission efficiency.
In addition, electronic equipment is completed after receiving the third message that server is sent by the first wireless communication link Second handshake in Transmission Control Protocol, to can determine that the data transmission quality of the first wireless communication link is better than the second nothing The data transmission quality of line communication link, therefore in first the first data packet of link identification label with the first wireless communication link Later, the network interface of the first wireless communication link is selected to send the first data packet according to the first link identification.
It is consistent with described Fig. 2, embodiment shown in Fig. 3, referring to Fig. 4, Fig. 4 is one kind provided by the embodiments of the present application The flow diagram of data transmission method, is applied to electronic equipment, and the electronic equipment enables multiple wireless communication links.Such as figure Shown, notebook data transmission method includes:
S401, the electronic equipment obtain the first data packet to be sent.
S402, the electronic equipment pass through the multiple nothing when detecting first data packet to send for the first time The first wireless communication link road direction server in line communication link sends the first message, and passes through the second wireless communication link road direction The server sends the second message, first message and the synchronous sequence that second message is in transmission control protocol TCP Column number SYN message.
S403, the electronic equipment determine when receiving the third message from the server and transmit the third The wireless communication link of message is the first wireless communication link, the third message be used to indicate the server receive it is described First message or second message.
S404, the electronic equipment send the 4th message, institute by server described in the first wireless communication link road direction It states the 4th message and is used to indicate the electronic equipment and receive the third message.
S405, the electronic equipment are wireless according to described first after the server receives the 4th message First link identification of communication link marks first data packet.
S406, the electronic equipment select the network of first wireless communication link to connect according to first link identification Mouth sends first data packet.
As can be seen that in the embodiment of the present application, electronic equipment obtains the first data packet to be sent first, secondly, When detecting first data packet to send for the first time, pass through the first wireless communication link in the multiple wireless communication link Road direction server sends the first message, and sends the second message by server described in the second wireless communication link road direction, described First message and second message are the synchronizing sequence number SYN message in transmission control protocol TCP, finally, receiving When third message from the server, the corresponding wireless communication link of the third message is determined, and pass through the correspondence The network interface of wireless communication link send first data packet, the third message is used to indicate the server and receives To first message or second message.Since electronic equipment can pass through the first wireless communication link road direction server simultaneously The first message is sent, the second message is sent by server described in the second wireless communication link, is being received from server When third message, that is, it can determine that server first receives the first message or the second message, thus the first wireless communication link of selection Road or the second wireless communication link send the first data packet, are preferentially used according to preference return, realize wireless communication link It is preferred, be conducive to improve data packet transmission efficiency.
In addition, electronic equipment is completed after receiving the third message that server is sent by the first wireless communication link Second handshake in Transmission Control Protocol, to can determine that the data transmission quality of the first wireless communication link is better than the second nothing The data transmission quality of line communication link, therefore in first the first data packet of link identification label with the first wireless communication link Later, the network interface of the first wireless communication link is selected to send the first data packet according to the first link identification.
In addition, electronic equipment sends the 4th message by the corresponding wireless communication link road direction server of third message, thus The three-way handshake in Transmission Control Protocol is completed, after server receives the 4th message, determines and passes through the corresponding wireless communication link The network interface on road sends the first data packet.
It is consistent with described Fig. 2, Fig. 3, embodiment shown in Fig. 4, referring to Fig. 5, Fig. 5 is provided by the embodiments of the present application The structural schematic diagram of a kind of electronic equipment 500, the electronic equipment 500 operation have one or more application program and operating system, As shown, the electronic equipment 500 includes processor 510, memory 520, communication interface 530 and one or more programs 521, wherein one or more of programs 521 are stored in the memory 520, and are configured by the processor 510 execute, and one or more of programs 521 include the instruction for executing following steps;
Obtain the first data packet to be sent;
When detecting first data packet to send for the first time, pass through first in the multiple wireless communication link Wireless communication link road direction server sends the first message, and sends second by server described in the second wireless communication link road direction Message, first message and second message are the synchronizing sequence number SYN message in transmission control protocol TCP;
When receiving the third message from the server, the corresponding wireless communication link of the third message is determined Road, and first data packet is sent by the network interface of the corresponding wireless communication link, the third message is used for Indicate that the server receives first message or second message.
As can be seen that in the embodiment of the present application, electronic equipment obtains the first data packet to be sent first, secondly, When detecting first data packet to send for the first time, pass through the first wireless communication link in the multiple wireless communication link Road direction server sends the first message, and sends the second message by server described in the second wireless communication link road direction, described First message and second message are the synchronizing sequence number SYN message in transmission control protocol TCP, finally, receiving When third message from the server, the corresponding wireless communication link of the third message is determined, and pass through the correspondence The network interface of wireless communication link send first data packet, the third message is used to indicate the server and receives To first message or second message.Since electronic equipment can pass through the first wireless communication link road direction server simultaneously The first message is sent, the second message is sent by server described in the second wireless communication link, is being received from server When third message, that is, it can determine that server first receives the first message or the second message, thus the first wireless communication link of selection Road or the second wireless communication link send the first data packet, are preferentially used according to preference return, realize wireless communication link It is preferred, be conducive to improve data packet transmission efficiency.
In a possible example, in the corresponding wireless communication link of the determination third message, and pass through institute The network interface for stating corresponding wireless communication link sends the first data packet aspect, and the instruction in described program is specifically used for It executes following operation: determining that the wireless communication link for transmitting the third message is the first wireless communication link;According to described First link identification of one wireless communication link marks first data packet;According to first link identification selection described the The network interface of one wireless communication link sends first data packet.
In a possible example, in the corresponding wireless communication link of the determination third message, and pass through institute The network interface for stating corresponding wireless communication link sends the first data packet aspect, and the instruction in described program is specifically used for It executes following operation: determining that the wireless communication link for transmitting the third message is the second wireless communication link;According to described Second link identification of two wireless communication links marks first data packet;According to second link identification selection described the The network interface of two wireless communication links sends first data packet.
In a possible example, after the corresponding wireless communication link of the determination third message, the journey Instruction in sequence is specifically used for executing following operation: sending the 4th by server described in the corresponding wireless communication link road direction Message, the 4th message are used to indicate the electronic equipment and receive the third message;Institute is received in the server After stating the 4th message, determines and first data packet is sent by the network interface of the corresponding wireless communication link.
In a possible example, the instruction in described program is specifically used for executing following operation: if detecting described First data packet is not to send for the first time, obtains the link identification of first data packet;Detecting that the link identification is When the first link identification, determine that the wireless communication link for sending first data packet for the first time is the first wireless communication link; It selects the second link identification of the second wireless communication link to mark first data packet, is selected according to second link identification The network interface of second wireless communication link sends first data packet, and second wireless communication link is except described Wireless communication link except first wireless communication link.
In a possible example, first communication link is Wireless Fidelity WIFI wireless communication link, described the Two communication links are long term evolution LTE wireless communication link.
In a possible example, first data packet is the data packet that the electronic equipment local terminal generates;Alternatively, First data packet is the data packet to be forwarded that the electronic equipment receives.
Above-described embodiment is mainly described the scheme of the embodiment of the present application from the angle of method side implementation procedure.It can With understanding, in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or soft for electronic equipment Part module.Those skilled in the art should be readily appreciated that, described in conjunction with the examples disclosed in the embodiments of the present disclosure Unit and algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function is studied carefully Unexpectedly it is executed in a manner of hardware or computer software driving hardware, the specific application and design constraint depending on technical solution Condition.Professional technician can specifically realize described function to each using distinct methods, but this It realizes it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out the division of functional unit according to the method example to electronic equipment, for example, can With each functional unit of each function division of correspondence, two or more functions can also be integrated in a processing unit In.The integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.It needs It is noted that be schematical, only a kind of logical function partition to the division of unit in the embodiment of the present application, it is practical real It is current that there may be another division manner.
Fig. 6 is the functional unit composition block diagram of data transmission device 600 involved in the embodiment of the present application.The data pass Defeated device 600 is applied to electronic equipment, including processing unit 601 and communication unit 602, wherein
The processing unit 601, for obtaining the first data packet to be sent by the communication unit 602;It is detecting It is when sending for the first time, through the communication unit 602 into the multiple wireless communication link to first data packet First wireless communication link road direction server sends the first message, and by the communication unit 602 to the second wireless communication link Server described in road direction sends the second message, and first message and second message are same in transmission control protocol TCP Step sequence number SYN message;And when receiving the third message from the server by the communication unit 602, It determines the corresponding wireless communication link of the third message, and is sent by the network interface of the corresponding wireless communication link First data packet, the third message are used to indicate the server and receive first message or second report Text.
Wherein, the data transmission device 600 can also include storage unit 603, for storing the program of electronic equipment Code and data.The processing unit 601 can be processor, and the communication unit 602 can be touching display screen or receipts Device is sent out, storage unit 603 can be memory.
As can be seen that in the embodiment of the present application, electronic equipment obtains the first data packet to be sent first, secondly, When detecting first data packet to send for the first time, pass through the first wireless communication link in the multiple wireless communication link Road direction server sends the first message, and sends the second message by server described in the second wireless communication link road direction, described First message and second message are the synchronizing sequence number SYN message in transmission control protocol TCP, finally, receiving When third message from the server, the corresponding wireless communication link of the third message is determined, and pass through the correspondence The network interface of wireless communication link send first data packet, the third message is used to indicate the server and receives To first message or second message.Since electronic equipment can pass through the first wireless communication link road direction server simultaneously The first message is sent, the second message is sent by server described in the second wireless communication link, is being received from server When third message, that is, it can determine that server first receives the first message or the second message, thus the first wireless communication link of selection Road or the second wireless communication link send the first data packet, are preferentially used according to preference return, realize wireless communication link It is preferred, be conducive to improve data packet transmission efficiency.
In a possible example, in the corresponding wireless communication link of the determination third message, and pass through institute The network interface for stating corresponding wireless communication link sends the first data packet aspect, and the processing unit 601 is specifically used for: Determine that the wireless communication link for transmitting the third message is the first wireless communication link;And for wireless according to described first First link identification of communication link marks first data packet;And for according to first link identification selection described the The network interface of one wireless communication link sends first data packet.
In a possible example, chosen in the multiple adjacent equipment at least described according to the feedback information One adjacent equipment, in terms of obtaining the target data from least one described adjacent equipment, the processing unit 601 is specific For: determine that the wireless communication link for transmitting the third message is the second wireless communication link;And for according to described the Second link identification of two wireless communication links marks first data packet;And for being selected according to second link identification The network interface for selecting second wireless communication link sends first data packet.
In a possible example, after the corresponding wireless communication link of the determination third message, the place Reason unit 601 be specifically used for: by server described in the corresponding wireless communication link road direction send the 4th message, the described 4th Message is used to indicate the electronic equipment and receives the third message;And for receiving the described 4th in the server After message, determines and first data packet is sent by the network interface of the corresponding wireless communication link.
In a possible example, the processing unit 601 is specifically used for: if detecting, first data packet is not It sends for the first time, obtains the link identification of first data packet;And for detecting that the link identification is the first chain When line, determine that the wireless communication link for sending first data packet for the first time is the first wireless communication link;And it uses In selecting the second link identification of the second wireless communication link to mark first data packet, selected according to second link identification The network interface for selecting second wireless communication link sends first data packet, and second wireless communication link is except institute State the wireless communication link except the first wireless communication link.
In a possible example, first communication link is Wireless Fidelity WIFI wireless communication link, described the Two communication links are long term evolution LTE wireless communication link.
In a possible example, first data packet is the data packet that the electronic equipment local terminal generates;Alternatively, First data packet is the data packet to be forwarded that the electronic equipment receives.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity The computer program of subdata exchange, the computer program make computer execute any as recorded in above method embodiment Some or all of method step, above-mentioned computer include electronic equipment.
The embodiment of the present application also provides a kind of computer program product, and above-mentioned computer program product includes storing calculating The non-transient computer readable storage medium of machine program, above-mentioned computer program are operable to that computer is made to execute such as above-mentioned side Some or all of either record method step in method embodiment.The computer program product can be a software installation Packet, above-mentioned computer includes electronic equipment.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily the application It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of said units, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
Above-mentioned unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment (can be personal computer, server or network equipment etc.) executes all or part of each embodiment above method of the application Step.And memory above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory May include: flash disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas; At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the application There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of data transmission method, which is characterized in that be applied to electronic equipment, the electronic equipment enables multiple wireless communications Link, which comprises
Obtain the first data packet to be sent;
It is wireless by first in the multiple wireless communication link when detecting first data packet to send for the first time Communication link sends the first message to server, and sends the second report by server described in the second wireless communication link road direction Text, first message and second message are the synchronizing sequence number SYN message in transmission control protocol TCP;
When receiving the third message from the server, the corresponding wireless communication link of the third message is determined, and First data packet is sent by the network interface of the corresponding wireless communication link, the third message is used to indicate institute It states server and receives first message or second message.
2. the method according to claim 1, wherein the corresponding wireless communication link of the determination third message Road, and first data packet is sent by the network interface of the corresponding wireless communication link, comprising:
Determine that the wireless communication link for transmitting the third message is the first wireless communication link;
First data packet is marked according to the first link identification of first wireless communication link;
The network interface of first wireless communication link is selected to send first data packet according to first link identification.
3. the method according to claim 1, wherein the corresponding wireless communication link of the determination third message Road, and first data packet is sent by the network interface of the corresponding wireless communication link, comprising:
Determine that the wireless communication link for transmitting the third message is the second wireless communication link;
First data packet is marked according to the second link identification of second wireless communication link;
The network interface of second wireless communication link is selected to send first data packet according to second link identification.
4. method according to claim 1-3, the corresponding wireless communication link of the determination third message Later, the method also includes:
The 4th message is sent by server described in the corresponding wireless communication link road direction, the 4th message is used to indicate institute It states electronic equipment and receives the third message;
After the server receives the 4th message, determination is connect by the network of the corresponding wireless communication link Mouth sends first data packet.
5. method according to claim 1-4, which is characterized in that the method also includes:
If detecting, first data packet is not to send for the first time, obtains the link identification of first data packet;
When detecting the link identification is the first link identification, the channel radio for sending first data packet for the first time is determined Letter link is the first wireless communication link;
The second link identification of the second wireless communication link is selected to mark first data packet, according to second link identification Select the network interface of second wireless communication link to send first data packet, second wireless communication link be except Wireless communication link except first wireless communication link.
6. the method according to claim 1, wherein first communication link is Wireless Fidelity WIFI channel radio Believe that link, second communication link are long term evolution LTE wireless communication link.
7. method according to claim 1-6, which is characterized in that first data packet is the electronic equipment The data packet that local terminal generates;Alternatively,
First data packet is the data packet to be forwarded that the electronic equipment receives.
8. a kind of data transmission device, which is characterized in that be applied to electronic equipment, the data transmission device includes processing unit And communication unit, wherein
The processing unit, for obtaining the first data packet to be sent by the communication unit;Detecting described first Data packet is when sending for the first time, to pass through first wireless communication link of the communication unit into the multiple wireless communication link Road direction server sends the first message, and is sent by the communication unit to server described in the second wireless communication link road direction Second message, first message and second message are the synchronizing sequence number SYN message in transmission control protocol TCP; And when receiving the third message from the server by the communication unit, determine that the third message is corresponding Wireless communication link, and first data packet is sent by the network interface of the corresponding wireless communication link, described the Three messages are used to indicate the server and receive first message or second message.
9. a kind of electronic equipment, which is characterized in that including processor, memory, communication interface, and one or more programs, One or more of programs are stored in the memory, and are configured to be executed by the processor, described program packet Include the instruction for executing the step in the method according to claim 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that storage is used for the computer program of electronic data interchange, In, the computer program makes computer execute the method according to claim 1 to 7.
CN201811269401.1A 2018-10-29 2018-10-29 Data transmission method and related device Active CN109451596B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811269401.1A CN109451596B (en) 2018-10-29 2018-10-29 Data transmission method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811269401.1A CN109451596B (en) 2018-10-29 2018-10-29 Data transmission method and related device

Publications (2)

Publication Number Publication Date
CN109451596A true CN109451596A (en) 2019-03-08
CN109451596B CN109451596B (en) 2021-03-09

Family

ID=65548845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811269401.1A Active CN109451596B (en) 2018-10-29 2018-10-29 Data transmission method and related device

Country Status (1)

Country Link
CN (1) CN109451596B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542836A (en) * 2021-07-06 2021-10-22 腾讯科技(深圳)有限公司 Remote control method and device, electronic equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369987A (en) * 2007-08-16 2009-02-18 阿里巴巴集团控股有限公司 Method and apparatus for establishing communication channel
CN105530194A (en) * 2014-09-29 2016-04-27 中国电信股份有限公司 Method and system for controlling message forwarding on the basis of quality sensing
CN105704759A (en) * 2011-05-27 2016-06-22 上海华为技术有限公司 Data stream transmission method and network equipment
CN105827747A (en) * 2016-04-28 2016-08-03 深圳市先河系统技术有限公司 Website access method, client and server within local area network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369987A (en) * 2007-08-16 2009-02-18 阿里巴巴集团控股有限公司 Method and apparatus for establishing communication channel
CN105704759A (en) * 2011-05-27 2016-06-22 上海华为技术有限公司 Data stream transmission method and network equipment
CN105530194A (en) * 2014-09-29 2016-04-27 中国电信股份有限公司 Method and system for controlling message forwarding on the basis of quality sensing
CN105827747A (en) * 2016-04-28 2016-08-03 深圳市先河系统技术有限公司 Website access method, client and server within local area network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542836A (en) * 2021-07-06 2021-10-22 腾讯科技(深圳)有限公司 Remote control method and device, electronic equipment and computer readable storage medium
CN113542836B (en) * 2021-07-06 2023-05-16 腾讯科技(深圳)有限公司 Remote control method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN109451596B (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN109618373A (en) Link choosing method and relevant apparatus
CN109640310A (en) Data transfer control method and Related product
CN109889499A (en) File transmitting method and relevant apparatus
CN109495880A (en) Data transmission method and relevant apparatus
CN110049505A (en) Data transmission method and relevant apparatus
CN109618372A (en) Data transmission method and relevant apparatus
TWI672961B (en) Data processing method, device, device and computer readable storage medium
EP3557802B1 (en) Rlc layer status report control pdu transmitting method and related device
CN107360635A (en) A kind of data transmission method, device, terminal and computer-readable recording medium
CN103873342A (en) Method, terminal and system for joining social group
CN109274596A (en) Data transmission method and relevant apparatus
CN109526020A (en) Data transmission method and Related product
CN105517195A (en) State detection method and wireless network node
CN109451596A (en) Data transmission method and relevant apparatus
CN107483330A (en) A kind of repeater bridging method and gateway
CN109392018A (en) Data transmission method and relevant apparatus
WO2019137405A1 (en) Information transmission method and device, and computer-readable storage medium
US20220264596A1 (en) Data Transmission Method and Apparatus
CN104079391A (en) Method and system of transmitting data packet as well as communication equipment
JP6874128B2 (en) Information transmission method, network equipment and terminal equipment
CN110087225A (en) Message treatment method and relevant apparatus
CN109495931A (en) The data transmission method and relevant apparatus of link aggregation
CN104798388A (en) Data packet receiving status feedback method, transmission node, and receiving node
WO2023011345A1 (en) Data routing method and apparatus, and node and storage medium
CN111492681A (en) Method and device for reporting information by terminal and computer storage medium

Legal Events

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