CN109981218A - Data transmission method and communication equipment - Google Patents

Data transmission method and communication equipment Download PDF

Info

Publication number
CN109981218A
CN109981218A CN201910092736.9A CN201910092736A CN109981218A CN 109981218 A CN109981218 A CN 109981218A CN 201910092736 A CN201910092736 A CN 201910092736A CN 109981218 A CN109981218 A CN 109981218A
Authority
CN
China
Prior art keywords
equipment
data
transmission parameter
parameter values
transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910092736.9A
Other languages
Chinese (zh)
Inventor
贾晨
黄亮鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910092736.9A priority Critical patent/CN109981218A/en
Publication of CN109981218A publication Critical patent/CN109981218A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • H04L1/0083Formatting with frames or packets; Protocol or part of protocol for error control

Abstract

The embodiment of the present invention provides a kind of data transmission method and communication equipment, is related to field of communication technology, to solve the problems, such as that the data-handling efficiency of communication equipment reduces.This method comprises: obtaining the first object transmission parameter values of the first equipment;The first data are sent to the second equipment;Wherein, the size of data of first data is less than or equal to the first object transmission parameter values, the first object transmission parameter values are the first transmission parameter values of second equipment, which is the transmission parameter values that second equipment is selected when first device request establishes connection.

Description

Data transmission method and communication equipment
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of data transmission methods and communication equipment.
Background technique
In general, each communication device configured at least one maximum transmission unit (maximum transmission unit, MTU) value.When two communication equipment needs carry out data transmission under a network insertion mode, firstly, this two communications are set Back-up selects a MTU value corresponding with the network insertion mode not from least one MTU value of each self-configuring;Then, should Two communication equipments pass through transmission control protocol (transmission control protocol, TCP) again and are held three times Hand selects lesser MTU value to negotiate transmission data and uses from the MTU value 1 and MTU value 2 that two communication equipments select Target MTU value.
When transmitting data, if the size of data of communication equipment data to be sent is greater than target MTU value, this is logical The data fragmentation to be sent (sharding) is multiple fragment datas less than or equal to target MTU value by letter equipment, thus Ensure that the size of data for each fragment data that communication equipment is sent is no more than target MTU value.If a communication equipment is received The size of data of one data is greater than target MTU value, then the communication equipment is by a received loss of data.
However, then will lead to this when the size of data that can actually receive and dispatch of a communication equipment is greater than target MTU value Communication equipment carries out extra fragment when sending data according to target MTU value, abandons be greater than target MTU value when receiving data Data, in this way, will lead to the communication equipment data-handling efficiency reduce.
Summary of the invention
The embodiment of the present invention provides a kind of data transmission method and communication equipment, to solve the data processing effect of communication equipment The problem of rate reduces.
In order to solve the above-mentioned technical problem, the embodiments of the present invention are implemented as follows:
In a first aspect, the embodiment of the present invention provides a kind of data transmission method, it is applied to the first equipment, this method comprises: Obtain the first object transmission parameter values of first equipment;The first data are sent to the second equipment;Wherein, the number of first data It is less than or equal to the first object transmission parameter values according to size, which is the first biography of second equipment Defeated parameter value, first transmission parameter values are the configured transmission that second equipment is selected when first device request establishes connection Value.
Second aspect, the embodiment of the present invention provide a kind of data transmission method, are applied to the second equipment, this method comprises: Obtain the second object transmission parameter value of second equipment;Third data are sent to the first equipment;Wherein, the number of the third data It is less than or equal to the second object transmission parameter value according to size, which is the second biography of first equipment Defeated parameter value, second transmission parameter values are first equipment choosing when first equipment establishes connection to second device request The transmission parameter values selected.
The third aspect, the embodiment of the invention provides a kind of communication equipment, which is the first equipment, which sets Standby includes: to obtain module and sending module;The acquisition module, for obtaining the first object transmission parameter values of first equipment; The sending module, for sending the first data to the second equipment;Wherein, the size of data of first data be less than or equal to this One object transmission parameter value, the first object transmission parameter values are the first transmission parameter values of second equipment, first transmission Parameter value is the transmission parameter values that second equipment is selected when first device request establishes connection.
Fourth aspect, the embodiment of the invention provides a kind of communication equipment, which is the second equipment, which sets Standby includes: to obtain module and sending module;The acquisition module, for obtaining the second object transmission parameter value of second equipment; The sending module, for sending third data to the first equipment;Wherein, the size of data of the third data be less than or equal to this Two object transmission parameter values, the second object transmission parameter value are the second transmission parameter values of first equipment, second transmission Parameter value is the transmission parameter values that first equipment is selected when first equipment establishes connection to second device request.
5th aspect the embodiment of the invention provides a kind of communication equipment, including processor, memory and is stored in this and deposits On reservoir and the computer program that can run on the processor, such as first is realized when which is executed by the processor The step of data transmission method described in aspect or second aspect.
6th aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage mediums Computer program is stored in matter, and the number as described in first aspect or second aspect is realized when which is executed by processor The step of according to transmission method.
In embodiments of the present invention, the first equipment is when sending data to the second equipment, firstly, the first equipment obtains first The first object transmission parameter values of equipment, first object transmission parameter values are the first transmission parameter values of the second equipment.Then, One equipment sends the first data to the second equipment, and the size of data of first data is less than or equal to first object configured transmission Value, the i.e. size of data of the first data are less than or equal to the first transmission parameter values, and first transmission parameter values are the second equipment The transmission parameter values selected when the first device request establishes connection, the transmission parameter values selected receive every time for the second equipment The maximum data size of data.When the first transmission parameter values are in the first equipment and two transmission parameter values of the second equipment selection When biggish transmission parameter values, compared to traditional data transfer mode, in a first aspect, the size of data in data to be sent is big The lesser transmission parameter values in two transmission parameter values that the first equipment and the second equipment select, and it is less than above-mentioned biggish biography In the case where defeated parameter value, the first equipment is not necessarily to data to be sent carrying out fragment according to lesser transmission parameter values, sends In the case where an equal amount of data, data transmission method provided in an embodiment of the present invention can reduce by the first equipment and carry out fragment Number and the first equipment carry out data transmission number the efficiency of the transmission data of the first equipment not only therefore can be improved, The packet loss and out-of-order probability in data transmission procedure can also be reduced.Second aspect, the data that the first equipment sends data are big The small received maximum value only needed less than or equal to second equipment, so that the size of data of the received data of the second equipment Without being less than above-mentioned lesser transmission parameter values, reduce the number of the received data of the second equipment, so that the can also be reduced The waste of the reception ability of two equipment.
Detailed description of the invention
Fig. 1 is a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram one of data transmission method provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram two of data transmission method provided in an embodiment of the present invention;
Fig. 4 is a kind of interaction flow schematic diagram for negotiating transmission parameter values provided in an embodiment of the present invention;
Fig. 5 is a kind of possible structural schematic diagram one of communication equipment provided in an embodiment of the present invention;
Fig. 6 is a kind of possible structural schematic diagram two of communication equipment provided in an embodiment of the present invention;
Fig. 7 is a kind of possible structural schematic diagram three of communication equipment provided in an embodiment of the present invention;
Fig. 8 is a kind of possible structural schematic diagram four of communication equipment provided in an embodiment of the present invention;
Fig. 9 is a kind of hardware structural diagram of terminal device provided in an embodiment of the present invention;
Figure 10 is a kind of hardware structural diagram of server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be noted that "/" herein indicate or the meaning, for example, A/B can indicate A or B;Herein "and/or" is only a kind of incidence relation for describing affiliated partner, indicates may exist three kinds of relationships, for example, A and/or B, it can To indicate: individualism A exists simultaneously A and B, these three situations of individualism B." multiple " refer to two or more.
Term " first " and " second " in description and claims of this specification etc. are for distinguishing different pairs As, rather than it is used for the particular order of description object.For example, the first equipment and the second equipment etc. are for distinguishing different set It is standby, rather than the particular order for describing equipment.
It should be noted that in the embodiment of the present invention, " illustrative " or " such as " etc. words make example, example for indicating Card or explanation.Be described as in the embodiment of the present invention " illustrative " or " such as " any embodiment or design scheme do not answer It is interpreted than other embodiments or design scheme more preferably or more advantage.Specifically, " illustrative " or " example are used Such as " word is intended to that related notion is presented in specific ways.
The first equipment and the second equipment in the embodiment of the present invention can be the communication equipment with operating system.The operation System can be Android (Android) operating system, can be ios operating system, can also be other possible operating systems, The embodiment of the present invention is not especially limited.
Below by taking Android operation system as an example, introduce applied by data transmission method provided in an embodiment of the present invention Software environment.
As shown in Figure 1, being a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention.Scheming In 1, the framework of Android operation system includes 4 layers, be respectively as follows: application layer, application framework layer, system Runtime Library layer and Inner nuclear layer (is specifically as follows Linux inner core).
Wherein, application layer includes each application program (including system application and in Android operation system Tripartite's application program).
Application framework layer is the frame of application program, and developer can be in the exploitation for the frame for abiding by application program In the case where principle, some application programs are developed based on application framework layer.
System Runtime Library layer includes library (also referred to as system library) and Android operation system running environment.Library is mainly Android behaviour As system it is provided needed for all kinds of resources.Android operation system running environment is used to provide software loop for Android operation system Border.
Inner nuclear layer is the operating system layer of Android operation system, belongs to the bottom of Android operation system software level.It is interior Stratum nucleare provides core system service and hardware-related driver based on linux kernel for Android operation system.
By taking Android operation system as an example, in the embodiment of the present invention, developer can be based on above-mentioned Android as shown in Figure 1 The software program of data transmission method provided in an embodiment of the present invention is realized in the system architecture of operating system, exploitation, so that The data transmission method can be run based on Android operation system as shown in Figure 1.I.e. processor or terminal device can lead to It crosses and runs software program realization data transmission method provided in an embodiment of the present invention in Android operation system.
It should be noted that the first following equipment and the second equipment can be identical for function in the embodiment of the present invention Communication equipment, or the different communication equipment of function.Such as: the first equipment can be that server, the second equipment can be Terminal device;First equipment is terminal device, and the second equipment is server;First equipment is the first forwarding device, the second equipment For the second forwarding device;First equipment is terminal device, and the second equipment is that the forwarding device of connection is established with the terminal device;The One equipment is that the forwarding device of connection is established with server, and the second equipment is server;In practical application, in the embodiment of the present invention The first equipment and the second equipment be that can establish any two equipment of connection communication, the embodiment of the present invention is not made this specifically It limits.
The data transmission method of the embodiment of the present invention is illustrated below with reference in Fig. 2.Fig. 2 mentions for the embodiment of the present invention A kind of flow diagram of the data transmission method supplied, as shown in Fig. 2, the data transmission method includes S201 and S202:
S201, the first equipment obtain the first object transmission parameter values of the first equipment, and first object transmission parameter values are the First transmission parameter values of two equipment.
Wherein, which is the configured transmission that the second equipment is selected when the first device request establishes connection Value.
Optionally, transmission parameter values are MTU value.
In general, MTU is the maximum data packet size that can pass through above a kind of a certain layer of communication protocol, MTU value is general As unit of byte.MTU value is usually related with communication interface (for example, network interface card, serial ports etc.).Each network equipment can be with According to a corresponding MTU value for different network insertion modes, the corresponding MTU value of different types of communication network can be with It is identical, it can also be different, the present invention is not especially limit this.
Illustratively, default mtu value of the router at Ethernet access mode (ethernet) be 1500 bytes, Under point-to-point protocol (point-to-point protocol over ethernet, PPPoE) access module on Ethernet Default mtu value be 1492 bytes, ADSL (asymmetric digital subscriber line, ADSL) the default mtu value under access module is the default under 1492 bytes, dialing modulation /demodulation mode (dial up/modem) MTU value is 576 bytes.
It is understood that first transmission parameter values are what the second equipment can receive every time under current access mode The maximum value of the size of data of data, that is to say, that first object transmission parameter values are the first equipment under current access mode When sending data to the second equipment every time, the maximum data size of the data sent every time.
In general, first network equipment and second network equipment can be true when the first equipment and the second equipment establish connection Surely access network mode, the first transmission parameter values be second terminal equipment with first terminal equipment in a network insertion mould It, being capable of received maximum data size when formula carries out data transmission.
It should be noted that the first equipment and the second equipment can be initiated to establish the request of connection, implement in the present invention It is illustrated so that the request of connection is established in the initiation of the first equipment as an example in example, repeats no more below.
S202, the first equipment send the first data to the second equipment, and the size of data of the first data is less than or equal to first Object transmission parameter value.
It is understood that being greater than first object when size of data of first equipment to the second equipment data to be sent When transmission parameter values, data to be sent are carried out data fragmentation according to first object transmission parameter values by the first equipment, so that the The maximum data that the size for the fragment data that one equipment is sent to the second equipment is less than or equal to the reception data of the second equipment is big It is small, avoid the second equipment after receiving the data greater than the received maximum size of data of the second equipment, due to that can not locate It manages and abandons the data.
Data transmission method provided in an embodiment of the present invention, the first equipment is when sending data to the second equipment, firstly, the One equipment obtains the first object transmission parameter values of the first equipment, and first object transmission parameter values are the first transmission of the second equipment Parameter value.Then, the first equipment sends the first data to the second equipment, and the size of data of first data is less than or equal to first Object transmission parameter value, the i.e. size of data of the first data are less than or equal to the first transmission parameter values, and first configured transmission Value is the transmission parameter values that the second equipment is selected when the first device request establishes connection, which is second Equipment receives the maximum data size of data every time.When the first transmission parameter values are two that the first equipment and the second equipment select In transmission parameter values when biggish transmission parameter values, compared to traditional data transfer mode, in a first aspect, in data to be sent Size of data be greater than lesser transmission parameter values in two transmission parameter values that the first equipment and the second equipment select, and be less than In the case where above-mentioned biggish transmission parameter values, the first equipment be not necessarily to by data to be sent according to lesser transmission parameter values into Row fragment, in the case where sending an equal amount of data, data transmission method provided in an embodiment of the present invention can reduce first Therefore the hair of the first equipment not only can be improved in the number that equipment carries out the number of fragment and the first equipment carries out data transmission The efficiency of data is sent, packet loss and out-of-order probability in data transmission procedure can also be reduced.Second aspect, the first equipment are sent The size of data of data only needs the received maximum value less than or equal to second equipment, so that the received number of the second equipment According to size of data be not necessarily to be less than above-mentioned lesser transmission parameter values, reduce the number of the received data of the second equipment, thus The waste of the reception ability of the second equipment can also be reduced.
Optionally, in data transmission method provided in an embodiment of the present invention, the first equipment and the second equipment need to transmit When data, if the first equipment and the second equipment do not negotiate first object transmission parameter values, the first equipment and the second equipment are needed First to negotiate first object transmission parameter values, use first object transmission parameter values.The first equipment and the second equipment In the case where consulting first object transmission parameter values, if the first equipment needs to send data to the second equipment, first is set The standby first object transmission parameter values that preservation can be obtained from the first equipment.Then the first equipment is transmitted according to the first object Parameter value sends data.
Specifically, in data transmission method provided in an embodiment of the present invention, if the first equipment and the second equipment are not negotiated First object transmission parameter values, it is assumed that the first equipment is the network equipment for initiating the connection request message, then above-mentioned S201 specifically may be used To be executed by S201a to S201c:
S201a, the first equipment send connection request message to the second equipment.
Wherein, which is used to indicate the second equipment the first transmission parameter values of feedback.
Optionally, when establishing connection to the second device request, the first equipment can select the first equipment the first equipment Transmission parameter values as the first equipment receive data maximum data size.
S201b, the first equipment receive the connection response message that the second equipment is sent.
Wherein, which includes the first transmission parameter values.
S201c, the first equipment configure the first transmission parameter values to the first object transmission parameter values of the first equipment.
Based on the program, the first equipment can be by sending connection request message to the second equipment, and the second equipment of instruction is anti- The first transmission parameter values are presented, the first equipment connection response message that the second equipment is sent based on the received determines the second equipment The size of data of each received maximum data is the first transmission parameter values, and then the first equipment matches first transmission parameter values The first object transmission parameter values of the first equipment are set to, which is that the first equipment is sent to the second equipment The transmission parameter values that data use, so as to ensure that the size of data of data of the first equipment transmission is not more than the second equipment Receive the maximum amount of data of data.
In general, there is also the second equipment not according to the configured transmission of negotiation when network or the second equipment are abnormal It is worth the scene that data are sent to the first equipment.Optionally, transmission method provided in an embodiment of the present invention further includes S203 to S206:
S203, the first equipment receive the second data that the second equipment is sent.
S204, the first equipment determine whether the size of data of the second data is greater than the second transmission parameter values of the first equipment.
Wherein, the second transmission parameter values are what the first equipment was selected when the first equipment establishes connection to the second device request Transmission parameter values.
It should be noted that second transmission parameter values are the first equipment energy in the first equipment under current access mode It is capable of the maximum value of received size of data every time.
Optionally, the first equipment can be in the first object configured transmission for configuring the first transmission parameter values to the first equipment In the case where value, the second transmission parameter values that the first equipment selects when the first equipment is established connection to the second device request are matched It is set to the first equipment and receives the maximum value that the second equipment sends the size of data of data, the first equipment can also be passed in selection second After defeated parameter value, the second transmission parameter values are directly determined, receive the size of data that the second equipment sends data for the first equipment Maximum value, the present invention is not especially limit this.
If the size of data of S205, the second data is greater than the second transmission parameter values of the first equipment, the first equipment is abandoned Second data.
If the size of data of S206, the second data is less than or equal to the second transmission parameter values, the first equipment is continued with Second data.
Based on the program, for the first equipment after receiving the second data that the second equipment is sent, the first equipment first determines the Whether size is greater than the second transmission parameter values of the first equipment to the size of data of two data, which is first to set The standby transmission parameter values selected when the first equipment establishes connection to the second device request, second configured transmission are the first equipment The maximum value of each received size of data, if the size of data of the second data is greater than the second transmission parameter values, the first equipment Second data can not be handled, the first equipment can abandon second data, if the size of data of the second data is greater than second Transmission parameter values, then the first equipment continues with second data, and the first equipment is selected according to the processing capacity of itself Manageable data are selected, compared to traditional mode, if the second transmission parameter values of the first equipment are larger, the first equipment is not necessarily to According to lesser first transmission parameter values are worth, size of data is greater than the first transmission parameter values and less than the second transmission parameter values Data abandon, and the first equipment of data of these size of data be it is manageable, therefore, data provided in an embodiment of the present invention Transmission method, it is possible to reduce the waste of the first equipment processing data capability.
Fig. 3 is a kind of flow diagram of data transmission method provided in an embodiment of the present invention, as shown in figure 3, the data Transmission method includes S301 and S302:
S301, the second equipment obtain the second object transmission parameter value of the second equipment, and the second object transmission parameter value is the Second transmission parameter values of one equipment.
Wherein, the second transmission parameter values are what the first equipment was selected when the first equipment establishes connection to the second device request Transmission parameter values.
It should be noted that the second transmission parameter values are the number that the first equipment can receive every time under current access mode According to size of data maximum value.That is the second object transmission parameter value is that the first equipment receives under current access mode When the data that the second equipment is sent, the maximum value of the size of data for the data that can receive every time.
S302, the second equipment send third data to the first equipment, and the size of data of third data is less than or equal to second Object transmission parameter value.
It is understood that being greater than the second target when size of data of second equipment to the first equipment data to be sent When transmission parameter values, data to be sent are carried out data fragmentation according to the second object transmission parameter value by the second equipment, so that the The maximum data that the size for the fragment data that two equipment are sent to the first equipment is less than or equal to the reception data of the first equipment is big It is small, avoid the first equipment after receiving the data greater than the received maximum size of data of the first equipment, due to that can not locate It manages and abandons the data.
Data transmission method provided in an embodiment of the present invention, the second equipment be the communication equipment when, the second equipment to When first equipment sends data, firstly, the second equipment obtains the second object transmission parameter value of the second equipment, the second object transmission Parameter value is the second transmission parameter values of the first equipment.Then, the second equipment sends third data, the third number to the first equipment According to size of data be less than or equal to the second object transmission parameter value, i.e., the size of data of third data be less than or equal to second pass Defeated parameter value, and second transmission parameter values are what the first equipment was selected when the first equipment establishes connection to the second device request Transmission parameter values, the transmission parameter values selected receive the maximum data size of data for the first equipment every time.When the second transmission When parameter value is biggish transmission parameter values in the first equipment and two transmission parameter values of the second equipment selection, compared to tradition Data transfer mode, in a first aspect, data to be sent size of data be greater than that the first equipment and the second equipment selects two Lesser transmission parameter values in a transmission parameter values, and be less than above-mentioned biggish transmission parameter values in the case where, the second equipment without Data to be sent need to be subjected to fragment, in the case where sending an equal amount of data, this hair according to lesser transmission parameter values The data transmission method that bright embodiment provides can reduce the number and the second equipment progress data hair that the second equipment carries out fragment Therefore the number sent not only can be improved the efficiency of the transmission data of the second equipment, can also reduce in data transmission procedure Packet loss and out-of-order probability.Second aspect, the size of data that the second equipment sends data only need to be less than or equal to first equipment Received maximum value so that the size of data of the received data of the first equipment be not necessarily to be less than above-mentioned lesser configured transmission Value, reduces the number of the received data of the first equipment, so that the waste of the reception ability of the first equipment can also be reduced.
It should be noted that in data transmission method provided in an embodiment of the present invention, in the second equipment and the first equipment When needing to transmit data, if the second equipment and the first equipment do not negotiate transmit the second object transmission of data parameter value, second Equipment and the first equipment need to negotiate the second object transmission parameter value.The second mesh has been consulted in the first equipment and the second equipment Transmission parameter values are marked, if the second equipment needs to send data to the first equipment, the second equipment can be obtained from the second equipment It goes bail for the second object transmission parameter value deposited.Then the second equipment sends data according to association's the second object transmission parameter value.
Specifically, in data transmission method provided in an embodiment of the present invention, if the first equipment and the second equipment are not negotiated Second object transmission parameter value, it is assumed that the first equipment is the network equipment for initiating the connection request message, then above-mentioned S301 specifically may be used To be executed by S301a to S301c:
S301a, the second equipment receive the connection request message that the first equipment is sent.
Wherein, which includes the second transmission parameter values, which is used to indicate the second equipment Feed back the first transmission parameter values.
S301b, the second equipment configure the second transmission parameter values to the second object transmission parameter value of the second equipment.
S301c, the second equipment send connection response message to the first equipment.
Wherein, which includes the first transmission parameter values.
It should be noted that S301c can also be executed before S301b, the present invention is not especially limit this.
Based on the program, the second equipment can receive the connection request message of the first equipment transmission, then the second equipment root The second transmission parameter values are obtained according to the connection request message, which is the number that the first equipment can receive every time According to maximum data size, the second equipment configures the second transmission parameter values to the second object transmission parameter value of the second equipment, The second object transmission parameter value is the transmission parameter values that the second equipment sends that data are used to the first equipment, can ensure second Maximum amount of data of the size of data for the data that equipment is sent no more than the reception data of the first equipment.Since the connection request disappears Breath is used to indicate the second equipment and feeds back the first transmission parameter values, and it includes the first transmission parameter values that the second equipment is sent to the first equipment Connection response message, size of data configuration firstth of first equipment by the second equipment time received maximum data can be made Object transmission parameter, to ensure that the size of data of the received data of the second equipment is not more than the maximum of the reception data of the second equipment Data volume.
In general, there is also the first equipment not according to the configured transmission of negotiation when network or the first equipment are abnormal It is worth to the second equipment and sends data.Optionally, transmission method provided in an embodiment of the present invention further includes S303 to S306:
S303, the second equipment receive the 4th data that the first equipment is sent.
S304, the second equipment determine whether the size of data of the 4th data is greater than the first transmission parameter values of the second equipment.
Wherein, the first transmission parameter values are the configured transmission that the second equipment is selected when the first device request establishes connection Value.
It should be noted that second transmission parameter values are the second equipment energy in the second equipment under current access mode It is capable of the maximum value of received size of data every time.
Optionally, the second equipment can be in the second object transmission parameter for configuring the second transmission parameter values to the second equipment In the case where value, when the first equipment is established connection to the second device request, the first transmission parameter values of the second equipment selection are matched It is set to the second equipment and receives the maximum value that the first equipment sends the size of data of data, the second equipment can also be passed in selection first After defeated parameter value, directly determining the first transmission parameter values is the size of data that the second equipment receives that the first equipment sends data Maximum value, the present invention is not especially limit this.
If the size of data of S305, the 4th data is greater than the first transmission parameter values of the second equipment, the second equipment is abandoned 4th data.
If the size of data of S306, the 4th data is less than or equal to the first transmission parameter values, the second equipment is continued with 4th data.
Based on the program, for the second equipment after receiving the 4th data that the first equipment is sent, the second equipment first determines the Whether size is greater than the first transmission parameter values of the second equipment to the size of data of four data, which is second to set The standby transmission parameter values selected when the first equipment establishes connection to the second device request, first configured transmission are the second equipment The maximum value of each received size of data, if the size of data of the 4th data is greater than the first transmission parameter values, the second equipment The 4th data can not be handled, the second equipment can abandon the 4th data, if the size of data of the 4th data is greater than first Transmission parameter values, then the second equipment continues with the 4th data, and the second equipment is selected according to the processing capacity of itself Manageable data are selected, compared to traditional mode, if the first transmission parameter values of the second equipment are larger, the second equipment is not necessarily to According to lesser second transmission parameter values are worth, size of data is greater than the second transmission parameter values and less than the first transmission parameter values Data abandon, and the second equipment of data of these size of data be it is manageable, therefore, data provided in an embodiment of the present invention Transmission method, it is possible to reduce the waste of the second equipment processing data capability.
Optionally, the first equipment and the second equipment are for the first time before transmission data, it is assumed that the connection that the first equipment is initiated is asked It asks, then the first equipment and each configured transmission that the second equipment can first negotiate the first equipment and the second equipment transmission data uses Value, after consulting, the first equipment and the second equipment can carry out data transmission according to each transmission parameter values of negotiation.
Fig. 4 is a kind of interaction flow schematic diagram for negotiating transmission parameter values provided in an embodiment of the present invention.As shown in figure 4, Negotiations process may include S401-S407:
S401, the first equipment send connection request message to the second equipment.
Wherein, which is used to indicate the second equipment the first transmission parameter values of feedback, the connection request message Including the second transmission parameter values, the second transmission parameter values are the first equipment when the first equipment establishes connection to the second device request The transmission parameter values of selection.
S402, the second equipment receive the connection request message that the first equipment is sent.
S403, the second equipment configure the second transmission parameter values to the second object transmission parameter value of the second equipment, and second Equipment configures the first transmission parameter values to the third object transmission parameter value of the second equipment.
Wherein, the second object transmission parameter value, when being that the second equipment sends data to the first equipment, the maximum that sends every time Size of data;Third object transmission parameter value, when receiving data for the second equipment, each received maximum size of data.
S404, the second equipment send connection response message to the first equipment.
Wherein, which includes the first transmission parameter values.
S405, the first equipment receive the connection response message that the second equipment is sent.
S406, the first equipment configure the first transmission parameter values to the first object transmission parameter values of the first equipment, and first Equipment configures the second transmission parameter values to the 4th object transmission parameter value of the first equipment.
First object transmission parameter values, when being that the first equipment sends data to the second equipment, the maximum number that sends every time According to size.
4th object transmission parameter value, when receiving data for the first equipment, each received maximum size of data.
S407, the first equipment send confirmation message to the second equipment.
Wherein, which is used to indicate the completion of the first device configuration.
Illustratively, it is assumed that the first equipment is terminal device, and the second equipment is that server, terminal device and server are being built When vertical TCP connection, above-mentioned negotiations process can be executed.Terminal device sends SYN (synchronize to server Sequence numbers, SYN) message 1 (that is, TCP shake hands for the first time), carried terminal equipment selection in the SYN message 1 MTU1;Server receives SYN message 1, sets server for MTU1 and sends the MTU value that data use to terminal device, so Afterwards, server sends SYN message 2 and response (acknowledgement, ACK) message (that is, TCP second handshake), the SYN The MTU2 of server selection is carried in message 1.Terminal device matches MTU2 after receiving SYN message 2 and ACK response message Be set to terminal device and send the MTU value that uses of data to server, then terminal device to server send ACK message (that is, TCP third time is shaken hands), server is after the ACK message for receiving terminal device transmission, between terminal device and server TCP connection is established, and MTU negotiation finishes.
Based on the program, the first equipment and the second equipment can negotiate the first equipment and send during establishing connection When corresponding transmission parameter values, the first equipment receive corresponding transmission parameter values when data when data, the second equipment sends data Corresponding transmission parameter values and the second equipment receive corresponding transmission parameter values when data;Enable to the first equipment and second Equipment negotiates the transmission ginseng that opposite side sends data during establishing connection, according to the processing capacity of each communication equipment itself Numerical value, each communication equipment oneself receive the transmission parameter values used when data, so that any one communication equipment receives The maximum values of data only need to be less than or equal to the transmission parameter values that select when establishing connection of the communication equipment, compared to tradition Mode, without using lesser transmission parameter values in two communication equipments in the connection, if the first of the second equipment transmits Parameter value is larger, and the second equipment is not necessarily to that size of data is greater than the second configured transmission according to value lesser second transmission parameter values Value, and less than the data of the first transmission parameter values abandon, and the second equipment of data of these size of data be it is manageable, from And the waste of the second equipment processing data capability can be reduced.If the second transmission parameter values of the first equipment are larger, the first equipment It is not necessary that size of data is greater than the first transmission parameter values according to value lesser first transmission parameter values and less than the second configured transmission The data of value abandon, and the first equipment of data of these size of data be it is manageable, so as to reduce at the first equipment Manage the waste of data capability.
Fig. 5 is a kind of possible structural schematic diagram of communication equipment provided in an embodiment of the present invention, as shown in figure 5, communication is set Standby 500 include: to obtain module 501 and sending module 502;Module 501 is obtained, the first object for obtaining the first equipment transmits Parameter value;Sending module 502, for sending the first data to the second equipment;Wherein, the size of data of the first data is less than or waits In first object transmission parameter values, first object transmission parameter values are the first transmission parameter values of the second equipment, the first transmission ginseng Numerical value is the transmission parameter values that the second equipment is selected when the first device request establishes connection.
Optionally, it obtains module 501 to be specifically used for: sending connection request message to the second equipment, connection request message is used The first transmission parameter values are fed back in the second equipment of instruction;Receive the connection response message of the second equipment transmission, connection response message Including the first transmission parameter values;Configure the first transmission parameter values to the first object transmission parameter values of the first equipment.
Optionally, in conjunction with Fig. 5, as shown in fig. 6, communication equipment 500 further includes receiving module 503 and discard module 504;It connects Module 503 is received, for receiving the second data of the second equipment transmission;Discard module 504, if received for receiving module 503 The size of data of second data is greater than the second transmission parameter values of the first equipment, then abandons the second data;Wherein, the second transmission ginseng Numerical value is the transmission parameter values that the first equipment is selected when the first equipment establishes connection to the second device request.
Optionally, transmission parameter values are MTU value.
Communication equipment 500 provided in an embodiment of the present invention can be realized communication equipment in above method embodiment realize it is each A process, to avoid repeating, which is not described herein again.
Communication equipment provided in an embodiment of the present invention, when communication equipment is the first equipment, the first equipment is set to second When preparation send data, firstly, the first equipment obtains the first object transmission parameter values of the first equipment, first object transmission parameter values For the first transmission parameter values of the second equipment.Then, the first equipment sends the first data, the number of first data to the second equipment It is less than or equal to first object transmission parameter values according to size, i.e. the size of data of the first data is less than or equal to the first configured transmission Value, and first transmission parameter values are the transmission parameter values that the second equipment is selected when the first device request establishes connection, the choosing The transmission parameter values selected are the maximum data size that the second equipment receives data every time.When the first transmission parameter values are the first equipment With in two transmission parameter values of the second equipment selection when biggish transmission parameter values, compared to traditional data transfer mode, In a first aspect, data to be sent size of data be greater than in two transmission parameter values that the first equipment and the second equipment select compared with Small transmission parameter values, and less than in the case where above-mentioned biggish transmission parameter values, the first equipment is not necessarily to data to be sent Fragment, in the case where sending an equal amount of data, number provided in an embodiment of the present invention are carried out according to lesser transmission parameter values It can reduce by the first equipment according to transmission method and carry out the number of fragment and the number of the first equipment progress data transmission, therefore, no The efficiency that the transmission data of the first equipment only can be improved can also reduce packet loss in data transmission procedure and out-of-order general Rate.Second aspect, the size of data that the first equipment sends data only need the received maximum value less than or equal to second equipment , so that the size of data of the received data of the second equipment is not necessarily to be less than above-mentioned lesser transmission parameter values, reduce second The number of the received data of equipment, so that the waste of the reception ability of the second equipment can also be reduced.
Fig. 7 is a kind of possible structural schematic diagram of communication equipment provided in an embodiment of the present invention, as shown in fig. 7, communication is set Standby 700 include: to obtain module 701 and sending module 702;Module 701 is obtained, the second object transmission parameter of the second equipment is obtained Value;Sending module 702 sends third data to the first equipment;Wherein, the size of data of third data is less than or equal to the second mesh Transmission parameter values are marked, the second object transmission parameter value is the second transmission parameter values of the first equipment, and the second transmission parameter values are the The transmission parameter values that one equipment is selected when the first equipment establishes connection to the second device request.
Optionally, it obtains module 701 to be specifically used for: receiving the connection request message that the first equipment is sent, connection request disappears Breath includes the second transmission parameter values, and connection request message is used to indicate the second equipment and feeds back the first transmission parameter values;Second is passed Defeated parameter value is configured to the second object transmission parameter value of the second equipment, and sends connection response message, connection to the first equipment Response message includes the first transmission parameter values.
Optionally, in conjunction with Fig. 7, as shown in figure 8, communication equipment 700 further includes receiving module 703 and discard module 704;It connects Module 703 is received, for receiving the 4th data of the first equipment transmission;Discard module 704, if received for receiving module 703 The size of data of 4th data is greater than the first transmission parameter values of the second equipment, then abandons the 4th data;Wherein, the first transmission ginseng Numerical value is the transmission parameter values that the second equipment is selected when the first device request establishes connection.
Optionally, transmission parameter values are MTU value.
Communication equipment 700 provided in an embodiment of the present invention can be realized communication equipment in above method embodiment realize it is each A process, to avoid repeating, which is not described herein again.
Communication equipment provided in an embodiment of the present invention, when the second equipment is the communication equipment, the second equipment is to first When equipment sends data, firstly, the second equipment obtains the second object transmission parameter value of the second equipment, the second object transmission parameter Value is the second transmission parameter values of the first equipment.Then, the second equipment sends third data to the first equipment, the third data Size of data is less than or equal to the second object transmission parameter value, i.e. the size of data of third data is less than or equal to the second transmission ginseng Numerical value, and second transmission parameter values are the transmission that the first equipment is selected when the first equipment establishes connection to the second device request Parameter value, the transmission parameter values selected receive the maximum data size of data for the first equipment every time.When the second configured transmission When value is biggish transmission parameter values in the first equipment and two transmission parameter values of the second equipment selection, compared to traditional number According to transmission mode, in a first aspect, the size of data in data to be sent is greater than two biographies that the first equipment and the second equipment selects Lesser transmission parameter values in defeated parameter value, and less than in the case where above-mentioned biggish transmission parameter values, the second equipment is not necessarily to will Data to be sent carry out fragment according to lesser transmission parameter values, and in the case where sending an equal amount of data, the present invention is real The data transmission method for applying example offer can reduce that the second equipment carries out the number of fragment and the second equipment carries out data transmissions Therefore number not only can be improved the efficiency of the transmission data of the second equipment, can also reduce the packet loss in data transmission procedure With out-of-order probability.Second aspect, the size of data that the second equipment sends data only need connecing less than or equal to first equipment The maximum value of receipts, so that the size of data of the received data of the first equipment is not necessarily to be less than above-mentioned lesser transmission parameter values, Reduce the number of the received data of the first equipment, so that the waste of the reception ability of the first equipment can also be reduced.
A kind of hardware structural diagram of Fig. 9 terminal device of each embodiment to realize the present invention, the terminal device 100 Including but not limited to: radio frequency unit 101, audio output unit 103, input unit 104, sensor 105, is shown network module 102 Show the components such as unit 106, user input unit 107, interface unit 108, memory 109, processor 110 and power supply 111. It will be understood by those skilled in the art that terminal device structure shown in Fig. 9 does not constitute the restriction to terminal device, terminal is set Standby may include perhaps combining certain components or different component layouts than illustrating more or fewer components.In the present invention In embodiment, terminal device include but is not limited to mobile phone, tablet computer, laptop, palm PC, vehicle-mounted terminal equipment, Wearable device and pedometer etc..
Wherein, when the first equipment is terminal device 100, processor 110, the first object for obtaining the first equipment is passed Defeated parameter value;Radio frequency unit 101, for sending the first data to the second equipment;Wherein, the size of data of the first data be less than or Equal to first object transmission parameter values, first object transmission parameter values are the first transmission parameter values of the second equipment, the first transmission Parameter value is the transmission parameter values that the second equipment is selected when the first device request establishes connection.
Terminal device provided in an embodiment of the present invention, the first equipment is when sending data to the second equipment, firstly, first sets The standby first object transmission parameter values for obtaining the first equipment, first object transmission parameter values are the first configured transmission of the second equipment Value.Then, the first equipment sends the first data to the second equipment, and the size of data of first data is less than or equal to first object Transmission parameter values, the i.e. size of data of the first data are less than or equal to the first transmission parameter values, and first transmission parameter values are The transmission parameter values that second equipment is selected when the first device request establishes connection, the transmission parameter values selected are the second equipment The maximum data size of data is received every time.When the first transmission parameter values are two transmission that the first equipment and the second equipment select In parameter value when biggish transmission parameter values, compared to traditional data transfer mode, in a first aspect, in the number of data to be sent It is greater than lesser transmission parameter values in two transmission parameter values that the first equipment and the second equipment select according to size, and is less than above-mentioned In the case where biggish transmission parameter values, the first equipment is without being divided data to be sent according to lesser transmission parameter values Piece, in the case where sending an equal amount of data, data transmission method provided in an embodiment of the present invention can reduce by the first equipment Therefore the transmission number of the first equipment not only can be improved in the number that the number and the first equipment for carrying out fragment carry out data transmission According to efficiency, packet loss in data transmission procedure and out-of-order probability can also be reduced.Second aspect, the first equipment send data Size of data only need the received maximum value less than or equal to second equipment so that the received data of the second equipment Size of data is not necessarily to be less than above-mentioned lesser transmission parameter values, reduces the number of the received data of the second equipment, thus can also To reduce the waste of the reception ability of the second equipment.
Likewise, when the second equipment is terminal device 100, when can also be terminal device 100 with reference to the first equipment Description, technical effect achieved can not repeat herein with reference to corresponding technical effect in above-described embodiment.
It should be understood that the embodiment of the present invention in, radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 110 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 101 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by wireless communication system and network and other set Standby communication.
Terminal device provides wireless broadband internet by network module 102 for user and accesses, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 103 can be received by radio frequency unit 101 or network module 102 or in memory 109 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide and end The relevant audio output of specific function that end equipment 100 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 103 includes loudspeaker, buzzer and receiver etc..
Input unit 104 is for receiving audio or video signal.Input unit 104 may include graphics processor (graphics processing unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or network module 102.Mike Wind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 101 is converted in the case where telephone calling model.
Terminal device 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when terminal device 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify terminal device posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (liquid crystal display, LCD), Organic Light Emitting Diode can be used Forms such as (organic light-emitting diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with terminal device Family setting and the related key signals input of function control.Specifically, user input unit 107 include touch panel 1071 and Other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation).Touch panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 110, receiving area It manages the order that device 110 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 1071 can be covered on display panel 1061, when touch panel 1071 is detected at it On or near touch operation after, send processor 110 to determine the type of touch event, be followed by subsequent processing device 110 according to touching The type for touching event provides corresponding visual output on display panel 1061.Although in Fig. 9, touch panel 1071 and display Panel 1061 is the function that outputs and inputs of realizing terminal device as two independent components, but in some embodiments In, can be integrated by touch panel 1071 and display panel 1061 and realize the function that outputs and inputs of terminal device, it is specific this Place is without limitation.
Interface unit 108 is the interface that external device (ED) is connect with terminal device 100.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in terminal device 100 or can be used in 100 He of terminal device Data are transmitted between external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of terminal device, utilizes each of various interfaces and the entire terminal device of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of terminal device, to carry out integral monitoring to terminal device.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Terminal device 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, terminal device 100 includes some unshowned functional modules, details are not described herein.
Optionally, the embodiment of the present invention also provides a kind of terminal device, in conjunction with Fig. 9, including processor 110, memory 109, it is stored in the computer program that can be run on memory 109 and on the processor 110, the computer program is processed Device 110 realizes each process of above-mentioned data transmission method embodiment when executing, and can reach identical technical effect, to avoid It repeats, which is not described herein again.
Figure 10 is a kind of hardware structural diagram of server provided in an embodiment of the present invention.As shown in Figure 10, the service Device 1200 may include: one or more processors 1201, memory 1202, communication interface 1203 and bus 1204.
Wherein, one or more processors 1201, memory 1202, communication interface 1203 are interconnected by 1204 phase of bus It connects.Wherein, bus 1204 can be Peripheral Component Interconnect standard (peripheral component interconnect, PCI) Bus or expanding the industrial standard structure (extended industry standard architecture, EISA) bus etc..On Address bus, data/address bus, control bus etc. can be divided by stating bus 1204.For convenient for indicating, only with a thick line in Figure 10 It indicates, it is not intended that an only bus or a type of bus.In addition, server 1200 can not also show including some Functional module out, details are not described herein.
It is appreciated that server 1200 can be the first equipment and second in above-described embodiment in the embodiment of the present invention Equipment.
Optionally, the embodiment of the present invention also provides a kind of server, including processor shown in Fig. 10 1201, memory 1202, it is stored in the computer program that can be run on memory 1202 and on processor 1201, the computer program is processed Each process of above method embodiment is realized when device 1201 executes, and can reach identical technical effect, to avoid repeating, this In repeat no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored on the computer readable storage medium Computer program, when which is executed by processor 110 as shown in Figure 9 or processor 1201 as shown in Figure 10 It realizes each process of above method embodiment, and identical technical effect can be reached, to avoid repeating, which is not described herein again. Wherein, the computer readable storage medium, such as read-only memory (read-only memory, ROM), random access memory Device (random access memory, RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.

Claims (18)

1. a kind of data transmission method is applied to the first equipment, which is characterized in that the described method includes:
Obtain the first object transmission parameter values of first equipment;
The first data are sent to the second equipment;
Wherein, the size of data of first data is less than or equal to the first object transmission parameter values, the first object Transmission parameter values are the first transmission parameter values of second equipment, and first transmission parameter values are second equipment in institute It states the first device request and establishes the transmission parameter values selected when connection.
2. the method according to claim 1, wherein the first object for obtaining first equipment transmits ginseng Numerical value, comprising:
Connection request message is sent to second equipment, the connection request message is used to indicate the second equipment feedback institute State the first transmission parameter values;
The connection response message that second equipment is sent is received, the connection response message includes first configured transmission Value;
Configure first transmission parameter values to the first object transmission parameter values of first equipment.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
Receive the second data that second equipment is sent;
If the size of data of second data is greater than the second transmission parameter values of first equipment, second number is abandoned According to;
Wherein, second transmission parameter values are that first equipment is established in first equipment to second device request The transmission parameter values selected when connection.
4. according to the method in any one of claims 1 to 3, which is characterized in that transmission parameter values are maximum transmission unit MTU value.
5. a kind of data transmission method is applied to the second equipment, which is characterized in that the described method includes:
Obtain the second object transmission parameter value of second equipment;
Third data are sent to the first equipment;
Wherein, the size of data of the third data is less than or equal to the second object transmission parameter value, second target Transmission parameter values are the second transmission parameter values of first equipment, and second transmission parameter values are first equipment in institute It states the first equipment and establishes the transmission parameter values selected when connection to second device request.
6. according to the method described in claim 5, it is characterized in that, the second object transmission ginseng for obtaining second equipment Numerical value, comprising:
The connection request message that first equipment is sent is received, the connection request message includes second configured transmission Value, the connection request message are used to indicate second equipment and feed back the first transmission parameter values;
It configures second transmission parameter values to the second object transmission parameter value of second equipment, and is set to described first Preparation send connection response message, and the connection response message includes first transmission parameter values.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
Receive the 4th data that first equipment is sent;
If the size of data of the 4th data is greater than the first transmission parameter values of second equipment, the 4th number is abandoned According to;
Wherein, first transmission parameter values are the biography that second equipment is selected when first device request establishes connection Defeated parameter value.
8. method according to any one of claims 5 to 7, which is characterized in that transmission parameter values are maximum transmission unit MTU value.
9. a kind of communication equipment, the communication equipment is the first equipment, which is characterized in that the communication equipment includes: acquisition mould Block and sending module;
The acquisition module, for obtaining the first object transmission parameter values of first equipment;
The sending module, for sending the first data to the second equipment;
Wherein, the size of data of first data is less than or equal to the first object transmission parameter values, the first object Transmission parameter values are the first transmission parameter values of second equipment, and first transmission parameter values are second equipment in institute It states the first device request and establishes the transmission parameter values selected when connection.
10. communication equipment according to claim 9, which is characterized in that the acquisition module is specifically used for:
Connection request message is sent to second equipment, the connection request message is used to indicate the second equipment feedback institute State the first transmission parameter values;
The connection response message that second equipment is sent is received, the connection response message includes first configured transmission Value;
Configure first transmission parameter values to the first object transmission parameter values of first equipment.
11. communication equipment according to claim 10, which is characterized in that the communication equipment further includes receiving module and loses Abandon module;
The receiving module, the second data sent for receiving second equipment;
The discard module is set if the size of data for received second data of the receiving module is greater than described first The second standby transmission parameter values then abandon second data;
Wherein, second transmission parameter values are that first equipment is established in first equipment to second device request The transmission parameter values selected when connection.
12. the communication equipment according to any one of claim 9 to 11, which is characterized in that transmission parameter values are maximum pass Defeated unit MTU value.
13. a kind of communication equipment, the communication equipment is the second equipment, which is characterized in that the communication equipment includes: acquisition mould Block and sending module;
The acquisition module obtains the second object transmission parameter value of second equipment;
The sending module sends third data to the first equipment;
Wherein, the size of data of the third data is less than or equal to the second object transmission parameter value, second target Transmission parameter values are the second transmission parameter values of first equipment, and second transmission parameter values are first equipment in institute It states the first equipment and establishes the transmission parameter values selected when connection to second device request.
14. communication equipment according to claim 13, which is characterized in that the acquisition module is specifically used for:
The connection request message that first equipment is sent is received, the connection request message includes second configured transmission Value, the connection request message are used to indicate second equipment and feed back the first transmission parameter values;
It configures second transmission parameter values to the second object transmission parameter value of second equipment, and is set to described first Preparation send connection response message, and the connection response message includes first transmission parameter values.
15. communication equipment according to claim 14, which is characterized in that the communication equipment includes: receiving module and loses Abandon module;
The receiving module, the 4th data sent for receiving first equipment;
The discard module is set if the size of data for received 4th data of the receiving module is greater than described second The first standby transmission parameter values then abandon the 4th data;
Wherein, first transmission parameter values are the biography that second equipment is selected when first device request establishes connection Defeated parameter value.
16. communication equipment described in any one of 3 to 15 according to claim 1, which is characterized in that transmission parameter values are maximum pass Defeated unit MTU value.
17. a kind of communication equipment, which is characterized in that the communication equipment includes processor, memory and is stored in the storage On device and the computer program that can run on the processor, realized such as when the computer program is executed by the processor The step of data transmission method described in any one of Claims 1-4, or the number as described in any one of claim 5 to 8 The step of according to transmission method.
18. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence, the computer program realize data transmission method according to any one of claims 1 to 4 when being executed by processor Step, or the step of data transmission method as described in any one of claim 5 to 8.
CN201910092736.9A 2019-01-30 2019-01-30 Data transmission method and communication equipment Pending CN109981218A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910092736.9A CN109981218A (en) 2019-01-30 2019-01-30 Data transmission method and communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910092736.9A CN109981218A (en) 2019-01-30 2019-01-30 Data transmission method and communication equipment

Publications (1)

Publication Number Publication Date
CN109981218A true CN109981218A (en) 2019-07-05

Family

ID=67076778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910092736.9A Pending CN109981218A (en) 2019-01-30 2019-01-30 Data transmission method and communication equipment

Country Status (1)

Country Link
CN (1) CN109981218A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685226A (en) * 2019-10-17 2021-04-20 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for backing up data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7317692B2 (en) * 2002-11-13 2008-01-08 Intel Corporation Network path discovery
CN102100036A (en) * 2008-05-15 2011-06-15 北方电讯网络有限公司 Method and system for transmission of fragmented packets on a packet-based communication network
CN102868609A (en) * 2012-09-27 2013-01-09 中兴通讯股份有限公司 Maximum transmission unit consultation method and data terminal
CN109151843A (en) * 2017-06-13 2019-01-04 维沃移动通信有限公司 data transmission method, mobile terminal, base station and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7317692B2 (en) * 2002-11-13 2008-01-08 Intel Corporation Network path discovery
CN102100036A (en) * 2008-05-15 2011-06-15 北方电讯网络有限公司 Method and system for transmission of fragmented packets on a packet-based communication network
CN102868609A (en) * 2012-09-27 2013-01-09 中兴通讯股份有限公司 Maximum transmission unit consultation method and data terminal
CN109151843A (en) * 2017-06-13 2019-01-04 维沃移动通信有限公司 data transmission method, mobile terminal, base station and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685226A (en) * 2019-10-17 2021-04-20 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for backing up data

Similar Documents

Publication Publication Date Title
CN109587789A (en) Accidental access method, mobile terminal and the network equipment
CN109284078A (en) A kind of control method and mobile terminal of double-sided screen
CN109815110A (en) A kind of network port management method, device, terminal device and storage medium
CN110058836A (en) A kind of output method and terminal device of audio signal
CN110213440A (en) A kind of images share method and terminal
CN110299936A (en) A kind of switching method and terminal device of transmitting antenna
CN109560905A (en) A kind of active control method, user terminal and network side equipment
CN109739407A (en) Information processing method and terminal device
CN109831359A (en) A kind of detection method and its terminal device of data network connection state
CN110430119A (en) Information transferring method, server, terminal device and medium
CN108494639A (en) Network access method and mobile terminal
CN109362103A (en) A kind of data cache method and terminal device
CN108769202A (en) A kind of information push method and its server and terminal device
CN108768838A (en) One kind putting out screen information sharing method, transmitting terminal and receiving terminal
CN110505279A (en) The method and apparatus of delay is set
CN109831582A (en) Non- response events processing method and terminal
CN107979385B (en) A kind of radio-frequency front-end data processing method and mobile terminal
CN110191426A (en) A kind of method and terminal of information sharing
CN109802945A (en) A kind of data transmission method and terminal device
CN109745699A (en) A kind of method and terminal device responding touch control operation
CN109151741A (en) A kind of multimedia message receiving method and terminal
CN110324839A (en) Reconfiguration method, network equipment and terminal
CN108536513A (en) A kind of picture display direction method of adjustment and mobile terminal
CN108600679A (en) A kind of video call method and terminal
CN110012512A (en) A kind of condition processing method and relevant device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190705

RJ01 Rejection of invention patent application after publication