CN107342885A - Method of adjustment, device and the terminal device of terminal MTU - Google Patents

Method of adjustment, device and the terminal device of terminal MTU Download PDF

Info

Publication number
CN107342885A
CN107342885A CN201610290279.0A CN201610290279A CN107342885A CN 107342885 A CN107342885 A CN 107342885A CN 201610290279 A CN201610290279 A CN 201610290279A CN 107342885 A CN107342885 A CN 107342885A
Authority
CN
China
Prior art keywords
mtu
terminal
parameters
measured
mtu parameters
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.)
Withdrawn
Application number
CN201610290279.0A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610290279.0A priority Critical patent/CN107342885A/en
Priority to PCT/CN2016/100842 priority patent/WO2017190467A1/en
Publication of CN107342885A publication Critical patent/CN107342885A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application proposes a kind of method of adjustment, device and the terminal device of terminal MTU, wherein, the method for adjustment of the terminal MTU, comprise the following steps:When network request response abnormality occurs in terminal, and the network request response abnormality is related to the setting of MTU MTU parameters, the target MTU parameters of the place network support of the terminal are detected;The machine for stating terminal is preset into the target MTU parameters that MTU parameter adjustments are described place network support.The method of adjustment of the terminal MTU of the application, can in time pinpoint the problems, solve the problems, such as, effectively increase the abnormal processing of request and network request response efficiency.

Description

Method of adjustment, device and the terminal device of terminal MTU
Technical field
The application is related to communication technical field, the more particularly to a kind of method of adjustment and device of terminal MTU.
Background technology
The part being already known to using various terminal equipment progress Online activities in user's daily life.But in using terminal When equipment carries out Online activities, it may appear that data function connection is normal, but that part or all of webpage can not be opened be present.
Such case Producing reason is primarily due to MSS (Maximum Segment Size, network data transmission maximum) It is excessive to cause.When establishing TCP connections during network service, terminal device can consult MSS values with server.When with association The good MSS values of business in a network transmission packet when, if MSS values are more than the MSS values of network, packet can occur Block.Because MSS values can subtract IPv4Header by MTU (Maximum Transmission Unit, MTU) value (IPv4 agreements packet header, size 20Byte) and TCP header (Transmission Control Protocol packet header, 20Byte) are obtained.Therefore, When the MTU value of terminal is more than the MTU value of network node, packet loss can also occur or even the situation of webpage of not opening, so as to shadow Ring the transmission of packet.Therefore, it is a kind of the MTU value of terminal to be adjusted to have less than the method for network node MTU value Wait to propose.
The content of the invention
The application is intended at least solve above-mentioned technical problem to a certain extent.
Therefore, first purpose of the application is to propose a kind of method of adjustment of terminal MTU, can find in time Problem, solve problem, effectively increase the abnormal processing of request and network request response efficiency.
Second purpose of the application is to propose a kind of adjusting apparatus of terminal MTU.
The 3rd purpose of the application is to propose a kind of terminal device.
For the above-mentioned purpose, a kind of method of adjustment of terminal MTU is proposed according to the application first aspect embodiment, Comprise the following steps:When network request response abnormality, and the network request response abnormality and MTU occurs in terminal During the setting correlation of MTU parameters, the target MTU parameters of the place network support of the terminal are detected;The sheet of terminal will be stated Machine presets the target MTU parameters that MTU parameter adjustments are described place network support.
The method of adjustment of the terminal MTU of the embodiment of the present application, network request response abnormality can occur in terminal, and should When abnormal related to the setting of MTU parameters, the target MTU parameters of the place network support of automatic detecting terminal, and will eventually Hold the machine preset MTU parameter adjustments be target MTU parameters, without user search confirmation abnormal cause, can in time, Easily pinpoint the problems, solve the problems, such as.Further, for portable terminal, because it uses position change frequency It is higher, be more easy to occur because MTU parameter setting problems cause network request response abnormality the problem of, by embodiments of the invention, The MTU parameters of terminal can be adjusted for the network of change in time, be effectively improved the abnormal processing of request and network request Response efficiency.
The application second aspect embodiment provides a kind of adjusting apparatus of terminal MTU, including:Detecting module, use In there is network request response abnormality when terminal, and when the network request response abnormality is related to the setting of MTU parameters, visit Survey the target MTU parameters of the place network support of the terminal;Adjusting module, for the machine for stating terminal to be preset into MTU Parameter adjustment is the target MTU parameters of the place network support of the terminal.
The adjusting apparatus of the terminal MTU of the embodiment of the present application, network request response abnormality can occur in terminal, and should When abnormal related to the setting of MTU parameters, the target MTU parameters of the place network support of automatic detecting terminal, and will eventually Hold the machine preset MTU parameter adjustments be target MTU parameters, without user search confirmation abnormal cause, can in time, Easily pinpoint the problems, solve the problems, such as.Further, for portable terminal, because it uses position change frequency It is higher, be more easy to occur because MTU parameter setting problems cause network request response abnormality the problem of, by embodiments of the invention, The MTU parameters of terminal can be adjusted for the network of change in time, be effectively improved the abnormal processing of request and network request Response efficiency.
The application third aspect embodiment provides a kind of terminal device, includes the maximum biography of terminal of the second inventive embodiments of the invention The adjusting apparatus of defeated unit.
The terminal device of the embodiment of the present application, network request response abnormality can occur in terminal, and this is abnormal and MTU parameters When setting related, the target MTU parameters of the place network support of automatic detecting terminal, and terminal the machine is preset into MTU ginsengs Number is adjusted to target MTU parameters, is searched without user and confirms abnormal cause, can in time, easily pinpointed the problems, solve Certainly problem.Further, for portable terminal, because it is higher using position change frequency, be more easy to occur because The problem of MTU parameter setting problems cause network request response abnormality, can be in time for becoming by embodiments of the invention The MTU parameters of network adjustment terminal more, are effectively improved the abnormal processing of request and network request response efficiency.
The additional aspect and advantage of the application will be set forth in part in the description, and partly will become bright from the following description It is aobvious, or recognized by the practice of the application.
Brief description of the drawings
The above-mentioned and/or additional aspect and advantage of the application will be apparent in description of the accompanying drawings below to embodiment from combining and It is readily appreciated that, wherein:
Fig. 1 is the flow chart according to the method for adjustment of the terminal MTU of the application one embodiment;
Fig. 2 is the complete http communication protocol responses schematic diagram according to the application one embodiment;
Fig. 3 is the flow according to the target MTU parameters of the place network support of the detection terminal of the application one embodiment Figure;
Fig. 4 is the flow chart according to the method for adjustment of the terminal MTU of the application another embodiment;
Fig. 5 is the structural representation according to the adjusting apparatus of the terminal MTU of the application one embodiment;
Fig. 6 is the structural representation according to the adjusting apparatus of the terminal MTU of the application another embodiment.
Embodiment
Embodiments herein is described below in detail, the example of the embodiment is shown in the drawings, wherein it is identical from beginning to end or Similar label represents same or similar element or the element with same or like function.Below with reference to accompanying drawing description Embodiment is exemplary, is only used for explaining the application, and it is not intended that limitation to the application.
Below with reference to the accompanying drawings describe to be set according to method of adjustment, device and the terminal of the terminal MTU of the embodiment of the present application It is standby.
Fig. 1 is the flow chart according to the method for adjustment of the terminal MTU of the application one embodiment.
As shown in figure 1, according to the method for adjustment of the terminal MTU of the embodiment of the present application, comprise the following steps:
S101, when network request response abnormality, and the network request response abnormality and the setting phase of MTU parameters occurs in terminal Guan Shi, detect the target MTU parameters of the place network support of the terminal.
It should be noted that the terminal in the embodiment of the present invention can be the connection equipment of internet or LAN, for example, CPE The wired or wireless routing device such as (Customer Premise Equipment, customer terminal equipment), data card of surfing Internet.
There is network request response abnormality in terminal, it may be possible to caused by due to many reasons, for example, because of network failure or line Road failure or equipment fault or network connection setup failed or because terminal is when establishing TCP with destination server and being connected MTU parameters be more than network MTU parameters and cause packet to block.In one embodiment of the invention, when When the network request response abnormality that mobile terminal occurs is related to the setting of MTU parameters, the place net of triggering detection mobile terminal The target MTU parameters that network is supported.Before being adjusted to the MTU parameters of terminal, it may be determined that it is different network request response occur It is more than normally due to terminal the machine presets MTU parameters caused by the MTU parameters of network.
In one embodiment of the invention, if the network request of the terminal can not obtain complete response, and the terminal Data link is normal, it is determined that the network request response abnormality is related to the setting of MTU parameters.
That is, if complete response and normal two bars of terminal data link can not be obtained by meeting the network request of terminal simultaneously It part, then can determine that whether network request response abnormality is related to the setting of MTU MTU parameters, and trigger detection institute State the target MTU parameters of the place network support of terminal.
In one particular embodiment of the present invention, when network request response abnormality occurs in terminal, and meets following two conditions, Triggering detects the target MTU parameters of the place network support of the terminal:
Condition 1:Part or all of HTTP packets can not receive complete network request response always.
Wherein, the network request that complete network request response refers to obtain by complete http communication agreement responds.
As shown in Fig. 2 complete http communication agreement may include the step of below figure four:Client (Client) and server (Server) Establish connection, client sends solicited message, client receives the network request response message of server return and closes connection. Because route is different, when packet passes through different network nodes, it is possible to the different situation of MTU parameters occur.
When the MTU parameters for the packet that terminal is sent are less than the MTU parameters of network node, function is normal, i.e., above-mentioned complete Four steps of http communication agreement be all sequentially completed, then can determine that and receive complete network request response.
When the MTU parameters for the packet that terminal is sent are more than the MTU parameters of network node, dysfunction, the usual network Node is the data packet discarding that will be greater than this node MTU parameters.Because remote server does not receive data, so naturally not Terminal response data can be given, i.e., can not receive complete network request response.
Condition 2:Acquiescence ping package operations can receive the data of the HTTP data recoveries.
The data package size of the ping operations of operating system acquiescence is 32 bytes at present, or 64 bytes.Much smaller than the MTU of network Parameter, therefore, if the ping operation energy ping of acquiescence leads to, illustrate that data link is normal.
If data link is abnormal, it may be possible to because the reasons such as equipment or line fault cause, but if data link is normal, But the complete response data of remote server are can not receive, i.e., meet condition 1 and condition 2 simultaneously, then can determine that network request responds It is abnormal whether related to the setting of MTU MTU parameters.
Wherein, the target MTU parameters of the place network support of terminal refer to, the maximum MTU parameters that network can be logical ping.
In embodiments of the invention, can the place network support of detecting terminal in several ways target MTU parameters.
Wherein, in one embodiment of the invention, detecting the target MTU parameters of the place network support of the terminal can wrap Include:MTU parameters are preset according to the machine of the terminal and preset minimum MTU parameters and determine MTU parameters to be measured;Using institute State MTU parameters to be measured and send network request, and determined according to the obtained network request response adjustment MTU parameters to be measured The target MTU parameters of the place network support of the terminal.
Wherein, it can give tacit consent to the data package size of ping package operations to preset minimum MTU parameters, such as 32 bytes, or 64 Byte.
MTU ginsengs can be preset in the machine for presetting minimum MTU parameters and terminal by preset rules in an embodiment of the present invention A MTU parameter is selected between number as MTU parameters to be measured.Wherein, preset rules may include but be not limited to Sequential search method, binary chop, binary sort tree search method, Hash table method, block research method.
By taking binary chop as an example, MTU parameters to be measured=(the first the+the two MTU parameters of MTU parameters)/2.
Then, network request is sent using the MTU parameters to be measured, and whether is complete according to obtained network request response Response is adjusted to MTU parameters to be measured, and resends network request, according to obtained network request response whether be Whole sound adjusts MTU parameters to be measured again, until obtaining the maximum MTU parameters that network can be logical ping.
In one embodiment of the invention, network request is sent using the MTU parameters to be measured, and according to obtained network The request response adjustment MTU parameters to be measured determine that the target MTU parameters of the place network support of the terminal can be by such as Step shown in Fig. 3 is realized.As shown in figure 3, comprise the following steps:
S301, network request is sent using the MTU parameters to be measured.
S302, judges whether the network request can obtain complete response.
In an embodiment of the present invention, MTU parameters to be measured can be used to send ping instructions, it is complete to judge whether to obtain Response.Specifically, can be used instruction " ping-f-l MTU xx.xx.xx.xx " are tested the MTU sizes in the range of certain, Until attempt a suitable MTU parameter.Wherein, " MTU " is MTU parameters to be measured in above-mentioned instruction, " xx.xx.xx.xx " For the target ip address of the HTTP request of complete response can not be received.
S303, if the network request can obtain complete response, the MTU parameters to be measured are increased according to preset strategy.
In one embodiment of the invention, if led to using MTU parameters energy ping to be measured, MTU parameters to be measured are increased. Specifically, minimum MTU parameters that can be using MTU parameters to be measured as investigative range next time, i.e., MTU parameters to be measured are made For the lower limit of next investigative range, and reselect MTU to be measured according to above-mentioned preset rules from the investigative range after renewal and join Number, and repeat step S301-S302, and being detected, until MTU parameters to be measured before reselecting and after reselecting The difference of MTU parameters to be measured when being less than preset value, obtain receiving the available maximum MTU parameters of complete response.
S304, if the network request can not obtain complete response, the MTU parameters to be measured are reduced according to preset strategy.
In one embodiment of the invention, lead to if being unable to ping using MTU parameters to be measured, can reduce described to be measured MTU parameters.Specifically, maximum MTU parameters that can be using MTU parameters to be measured as investigative range next time, i.e., will be to be measured The upper limit of the MTU parameters as next investigative range, and reselected from the investigative range after renewal according to above-mentioned preset rules MTU parameters to be measured, and repeat step S301-S302, and detected, until MTU parameters to be measured before reselecting with When the difference of MTU parameters to be measured after reselecting is less than preset value, obtain receiving the available maximum MTU of complete response Parameter.
S305, judges whether the difference of the MTU parameters to be measured before adjustment and the MTU parameters to be measured after adjustment is less than preset value.
Wherein, preset value is the value of a very little, for example, can be 0 or the value slightly larger than 0.
S306, determine the target MTU parameters for the place network support that the MTU parameters to be measured after the adjustment are the terminal.
If the difference of the MTU parameters to be measured and the MTU parameters to be measured after adjustment before adjustment is less than preset value, S306 is performed, Otherwise repeat step S301-S306, until the difference of the MTU parameters to be measured and the MTU parameters to be measured before adjustment after adjustment is less than Preset value.
It should be noted that due to the MTU parameters before reselecting with reselect after MTU parameters between differ very little, Therefore, any one in the MTU parameters after the MTU parameters before reselecting may be selected and reselect or selection are again The average of MTU parameters before selection and the MTU parameters after reselecting, the target as the place network support of terminal MTU parameters.
Thus, by the such iteration of above-mentioned steps, until the target MTU parameters of the place network support of terminal are obtained, can Enough receive the available maximum MTU parameters of complete response.
S102, the machine for stating terminal is preset into MTU parameter adjustments and joined for the target MTU of the place network support of the terminal Number.
Thus, it is that the maximum MTU that network where detecting terminal can be logical ping joins terminal the machine to be preset into MTU parameter adjustments Number, data packetloss can be effectively avoided, improve the efficiency and success rate of request response.
The method of adjustment of the terminal MTU of the embodiment of the present application, network request response abnormality can occur in terminal, and should When abnormal related to the setting of MTU parameters, the target MTU parameters of the place network support of automatic detecting terminal, and will eventually Hold the machine preset MTU parameter adjustments be target MTU parameters, without user search confirmation abnormal cause, can in time, Easily pinpoint the problems, solve the problems, such as.Further, for portable terminal, because it uses position change frequency It is higher, be more easy to occur because MTU parameter setting problems cause network request response abnormality the problem of, by embodiments of the invention, The MTU parameters of terminal can be adjusted for the network of change in time, be effectively improved the abnormal processing of request and network request Response efficiency.
In one embodiment of the invention, can if the network request response abnormality is related to the setting of MTU parameters Prompting user presets MTU parameters to the machine of the terminal and is adjusted, and pre- according to the machine of the instruction adjustment terminal of user If MTU parameters.As shown in figure 4, the method for adjustment of the terminal MTU of another embodiment of the present invention, it may include Following steps.
S401, when network request response abnormality, and the network request response abnormality and the setting phase of MTU parameters occurs in terminal Guan Shi, prompt user to preset MTU parameters to the machine of the terminal and be adjusted.
In one embodiment of the invention, user can be prompted through but not limited in the following manner:
Text prompt information is shown by the display of the terminal;
Or information of voice prompt is reported by the sound broadcasting device of the terminal;
Or communicated with the mobile terminal of user, and will be prompted to information and send to the mobile terminal of user.
User can choose whether that the machine for adjusting terminal is preset MTU parameters and is adjusted as needed after prompt message is checked, , can input validation adjust instruction if necessary to adjust.
S402, receive the adjust instruction of the user.
S403, the target MTU parameters of the place network support of the terminal are detected according to the adjust instruction of the user.
Wherein, the target MTU parameters of the place network support of detecting terminal can refer to the specific implementation side of embodiment illustrated in fig. 1 Formula, herein without describing in detail.
And then after the target MTU parameters of the place network support of terminal are detected, the machine for stating terminal can be preset MTU Parameter adjustment is the target MTU parameters of the place network support of the terminal.
In one embodiment of the invention, after the target MTU parameters of place network support of the terminal are detected, also It may include:
S404, prompts whether the user by the machine for stating terminal presets the place network branch that MTU parameter adjustments are the terminal The target MTU parameters held.
S405, after the confirmation for receiving the user instructs, it is the end that the machine for stating terminal is preset into MTU parameter adjustments The target MTU parameters of the place network support at end.
Thus, by maximum MTU parameters that can be logical ping by network where the terminal detected, and user is prompted to can be used The MTU parameter adjustment terminals the machine detected presets MTU parameters, user can be easy to understand result of detection, and selection is No carry out corresponding operating.
Corresponding with the method for adjustment for the terminal MTU that above-described embodiment provides, the application also proposes that a kind of terminal is maximum The adjusting apparatus of transmission unit.
Fig. 5 is the structural representation according to the adjusting apparatus of the terminal MTU of the application one embodiment.
As shown in figure 5, according to the adjusting apparatus of the terminal MTU of the embodiment of the present application, including:Detecting module 10 With adjusting module 20.
Specifically, detecting module 10 is used for when network request response abnormality occurs in terminal, and the network request response abnormality and During the setting correlation of MTU parameters, the target MTU parameters of the place network support of the terminal are detected.
It should be noted that the terminal in the embodiment of the present invention can be the connection equipment of internet or LAN, for example, CPE The wired or wireless routing device such as (Customer Premise Equipment, customer terminal equipment), data card of surfing Internet.
There is network request response abnormality in terminal, it may be possible to caused by due to many reasons, for example, because of network failure or line Road failure or equipment fault or network connection setup failed or because terminal is when establishing TCP with destination server and being connected MTU parameters be more than network MTU parameters and cause packet to block.In one embodiment of the invention, when When the network request response abnormality that mobile terminal occurs is related to the setting of MTU parameters, the place net of triggering detection mobile terminal The target MTU parameters that network is supported.Before being adjusted to the MTU parameters of terminal, it may be determined that it is different network request response occur It is more than normally due to terminal the machine presets MTU parameters caused by the MTU parameters of network.
In one embodiment of the invention, if the network request of the terminal can not obtain complete response, and the terminal Data link it is normal, it is determined that the network request response abnormality is related to the setting of MTU parameters.
That is, if complete response and normal two bars of terminal data link can not be obtained by meeting the network request of terminal simultaneously It part, then can determine that whether network request response abnormality is related to the setting of MTU MTU parameters, and trigger detection institute State the target MTU parameters of the place network support of terminal.
In one particular embodiment of the present invention, when network request response abnormality occurs in terminal, and meets following two conditions Detecting module 10 detects the target MTU parameters of the place network support of the terminal:
Condition 1:Part or all of HTTP packets can not receive complete network request response always.
Wherein, the network request that complete network request response refers to obtain by complete http communication agreement responds.
As shown in Fig. 2 complete http communication agreement may include the step of below figure four:Client (Client) and server (Server) Establish connection, client sends solicited message, client receives the network request response message of server return and closes connection. Because route is different, when packet passes through different network nodes, it is possible to the different situation of MTU parameters occur.
When the MTU parameters for the packet that terminal is sent are less than the MTU parameters of network node, function is normal, i.e., above-mentioned complete Four steps of http communication agreement be all sequentially completed, then can determine that and receive complete network request response.
When the MTU parameters for the packet that terminal is sent are more than the MTU parameters of network node, dysfunction, the usual network Node is the data packet discarding that will be greater than this node MTU parameters.Because remote server does not receive data, so naturally not Terminal response data can be given, i.e., can not receive complete network request response.
Condition 2:Acquiescence ping package operations can receive the data of the HTTP data recoveries.
The data package size of the ping operations of operating system acquiescence is 32 bytes at present, or 64 bytes.Much smaller than the MTU of network Parameter, therefore, if the ping operation energy ping of acquiescence leads to, illustrate that data link is normal.
If data link is abnormal, it may be possible to because the reasons such as equipment or line fault cause, but if data link is normal, But the complete response data of remote server are can not receive, i.e., meet condition 1 and condition 2 simultaneously, then can determine that network request responds It is abnormal whether related to the setting of MTU MTU parameters.
In embodiments of the invention, detecting module 10 can the place network support of detecting terminal in several ways target MTU Parameter.
Wherein, in one embodiment of the invention, detecting module 10 may include:Determining unit 11 and the (figure of adjustment unit 12 Not shown in).
Determining unit 11 is to be measured for being determined according to the default MTU parameters of the machine of the terminal and default minimum MTU parameters MTU parameters.Wherein, it can give tacit consent to the data package size of ping package operations to preset minimum MTU parameters, such as 32 bytes, Or 64 byte.
In an embodiment of the present invention, determining unit 11 can preset the machine of minimum MTU parameters and terminal by preset rules A MTU parameter is selected between default MTU parameters as MTU parameters to be measured.Wherein, preset rules can wrap Include but be not limited to sequential search method, binary chop, binary sort tree search method, Hash table method, block research method.
By taking binary chop as an example, MTU parameters to be measured=(the first the+the two MTU parameters of MTU parameters)/2.
Adjustment unit 12 is used to send network request using the MTU parameters to be measured, and is responded according to obtained network request Adjust the target MTU parameters that the MTU parameters to be measured determine the place network support of the terminal.
In one embodiment of the invention, the MTU parameters to be measured can be used to send network request for adjustment unit 12, and Whether the network request response according to obtaining is that complete response is adjusted to MTU parameters to be measured, and resends network request, Whether be that complete sound adjusts MTU parameters to be measured again according to obtained network request response, until obtain network can ping lead to Maximum MTU parameters.
In one embodiment of the invention, the adjustment unit 12 can detect the terminal by step as shown in Figure 3 The target MTU parameters of place network support, detailed process are identical with embodiment illustrated in fig. 3.
Adjusting module 20 is used to the machine for stating terminal presetting mesh of the MTU parameter adjustments for the place network support of the terminal Mark MTU parameters
Thus, adjusting module 20 by terminal the machine preset MTU parameter adjustments be network where detecting terminal can ping it is logical Maximum MTU parameters, data packetloss can be effectively avoided, improve the efficiency and success rate of request network request response.
The adjusting apparatus of the terminal MTU of the embodiment of the present application, network request response abnormality can occur in terminal, and should When abnormal related to the setting of MTU parameters, the target MTU parameters of the place network support of automatic detecting terminal, and will eventually Hold the machine preset MTU parameter adjustments be target MTU parameters, without user search confirmation abnormal cause, can in time, Easily pinpoint the problems, solve the problems, such as.Further, for portable terminal, because it uses position change frequency It is higher, be more easy to occur because MTU parameter setting problems cause network request response abnormality the problem of, by embodiments of the invention, The MTU parameters of terminal can be adjusted for the network of change in time, be effectively improved the abnormal processing of request and network request Response efficiency.
Fig. 6 is the structural representation according to the adjusting apparatus of the terminal MTU of the application another embodiment.
As shown in fig. 6, according to the adjusting apparatus of the terminal MTU of the embodiment of the present application, including:Detecting module 10, The reminding module 30 of adjusting module 20 first, the reminding module 50 of receiving module 40 and second.
Wherein, detecting module 10 and adjusting module 20 are identical with embodiment illustrated in fig. 4.
First reminding module 30 is used for when network request response abnormality, and the network request response abnormality and MTU occurs in terminal During the setting correlation of parameter, prompt user to preset MTU parameters to the machine of the terminal and be adjusted.
In one embodiment of the invention, the first reminding module 30 can be prompted user through but not limited in the following manner:
Text prompt information is shown by the display of the terminal;
Or information of voice prompt is reported by the sound broadcasting device of the terminal;
Or communicated with the mobile terminal of user, and will be prompted to information and send to the mobile terminal of user.
User can choose whether that the machine for adjusting terminal is preset MTU parameters and is adjusted as needed after prompt message is checked, If necessary to adjust, adjust instruction can be inputted.
Receiving module 40 is used for the adjust instruction for receiving the user.
Wherein, detecting module 10 detects the target MTU of the place network support of the terminal according to the adjust instruction of the user Parameter.Wherein, the target MTU parameters of the place network support of the detecting terminal of detecting module 10 can refer to and implement shown in Fig. 5 The specific implementation of example, herein without describing in detail.
Second reminding module 50 is used for after the target MTU parameters of place network support of the terminal are detected, and prompts institute State the target MTU ginsengs whether user presets the machine for stating terminal the place network support that MTU parameter adjustments are the terminal Number.
Wherein, the machine for stating terminal is preset MTU parameters by adjusting module 40 after the confirmation for receiving the user instructs It is adjusted to the target MTU parameters of the place network support of the terminal.
Thus, by maximum MTU parameters that can be logical ping by network where the terminal detected, and user is prompted to can be used The MTU parameter adjustment terminals the machine detected presets MTU parameters, user can be easy to understand result of detection, and selection is No carry out corresponding operating.
The present invention also proposes a kind of terminal device.
Terminal device according to embodiments of the present invention, include the adjustment dress of the terminal MTU of any embodiment of the present invention Put, network request response abnormality can occur in terminal, and when this is abnormal related to the setting of MTU parameters, automatic detecting terminal Place network support target MTU parameters, and by terminal the machine preset MTU parameter adjustments be target MTU parameters, Searched without user and confirm abnormal cause, can in time, easily pinpointed the problems, solve the problems, such as.Further, for just Take for formula terminal, because it is higher using position change frequency, be more easy to occur because MTU parameter setting problems cause network please The problem of seeking response abnormality, by embodiments of the invention, the MTU parameters of terminal can be adjusted for the network of change in time, It is effectively improved the abnormal processing of request and network request response efficiency.
Described otherwise above any process or method description is construed as in flow chart or herein, expression include one or Module, fragment or the part of the code of the executable instruction for the step of more are used to realize specific logical function or process, and The scope of the preferred embodiment of the application includes other realization, wherein order that is shown or discussing can not be pressed, including root According to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be by embodiments herein institute Category those skilled in the art are understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered for real The order list of the executable instruction of existing logic function, may be embodied in any computer-readable medium, so that instruction is held Row system, device or equipment (such as computer based system including the system of processor or other can from instruction execution system, The system of device or equipment instruction fetch and execute instruction) use, or used with reference to these instruction execution systems, device or equipment. For the purpose of this specification, " computer-readable medium " can be it is any can include, store, communicate, propagate or transmit program with For instruction execution system, device or equipment or the device used with reference to these instruction execution systems, device or equipment.Computer The more specifically example (non-exhaustive list) of computer-readable recording medium includes following:Electrical connection section (electricity with one or more wiring Sub-device), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), Erasable edit read-only storage (EPROM or flash memory), fiber device, and the read-only storage of portable optic disk Device (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the application can be realized with hardware, software, firmware or combinations thereof.In above-mentioned implementation In mode, software or firmware that multiple steps or method can be performed in memory and by suitable instruction execution system with storage To realize.If for example, being realized with hardware, with another embodiment, following technology well known in the art can be used Any one of or their combination realize:Discrete with the logic gates for realizing logic function to data-signal is patrolled Circuit is collected, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), field-programmable Gate array (FPGA) etc..
Those skilled in the art be appreciated that to realize all or part of step that above-described embodiment method carries is can To instruct the hardware of correlation to complete by program, described program can be stored in a kind of computer-readable recording medium, should Program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the application can be integrated in it is in a processing module or each Unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated module both can be with Realized, can also be realized in the form of software function module in the form of hardware.If the integrated module is with software work( The form of energy module is realized and is used as independent production marketing or is situated between in use, a computer-readable storage can also be stored in In matter.
Storage medium mentioned above can be read-only storage, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specific example ", Or the description of " some examples " etc. means that combining specific features, structure, material or feature that the embodiment or example describe includes In at least one embodiment or example of the application.In this manual, the schematic representation of above-mentioned term is not necessarily referred to It is identical embodiment or example.Moreover, specific features, structure, material or the feature of description can in any one or Combined in an appropriate manner in multiple embodiments or example.
While there has been shown and described that embodiments herein, it will be understood by those skilled in the art that:This is not being departed from In the case of the principle and objective of application a variety of change, modification, replacement and modification can be carried out to these embodiments, the application's Scope is by claim and its equivalent limits.

Claims (13)

1. a kind of method of adjustment of terminal MTU, it is characterised in that comprise the following steps:
When there is network request response abnormality in terminal, and the network request response abnormality is related to the setting of MTU value parameter, Detect the target MTU parameters of the place network support of the terminal;
The machine for stating terminal is preset into target MTU parameter of the MTU parameter adjustments for the place network support of the terminal.
2. the method as described in claim 1, it is characterised in that wherein,
If the network request of the terminal can not obtain complete response, and the data link of the terminal is normal, it is determined that described Network request response abnormality is related to the setting of MTU parameters.
3. method as claimed in claim 1 or 2, it is characterised in that detect the target of the place network support of the terminal MTU parameters, including:
MTU parameters are preset according to the machine of the terminal and preset minimum MTU parameters and determine MTU parameters to be measured;
Network request is sent using the MTU parameters to be measured, and the MTU to be measured is adjusted according to obtained network request response Parameter determines the target MTU parameters of the place network support of the terminal.
4. method as claimed in claim 3, it is characterised in that described to be asked using the MTU parameters transmission network to be measured Ask, and the mesh for adjusting the place network support that the MTU parameters to be measured determine the terminal is responded according to obtained network request MTU parameters are marked, including:
Network request is sent using the MTU parameters to be measured;
Judge whether the network request can obtain complete response;
If the network request can obtain complete response, the MTU parameters to be measured are increased according to preset strategy;
If the network request can not obtain complete response, the MTU parameters to be measured are reduced according to preset strategy;
Judge whether the difference of the MTU parameters to be measured before adjustment and the MTU parameters to be measured after adjustment is less than preset value;
If the difference of the MTU parameters to be measured and the MTU parameters to be measured after adjustment before adjustment is less than preset value, it is determined that described MTU parameters to be measured after adjustment are the target MTU parameters of the place network support of the terminal, if to be measured before adjustment The difference of MTU parameters and the MTU parameters to be measured after adjustment is not less than preset value, then adjusts the MTU parameters to be measured again, Until the difference of the MTU parameters to be measured and the MTU parameters to be measured after adjustment before adjustment is less than preset value.
5. the method as described in claim any one of 1-4, it is characterised in that also include:
When there is network request response abnormality in terminal, and the network request response abnormality is related to the setting of MTU parameters, Prompting user presets MTU parameters to the machine of the terminal and is adjusted;
Receive the adjust instruction of the user;
Wherein, the target MTU parameters of the place network support of the terminal are detected according to the adjust instruction of the user.
6. the method as described in claim any one of 1-5, it is characterised in that detecting the place network support of the terminal Target MTU parameters after, in addition to:
Prompt whether the user presets the machine for stating terminal the mesh for the place network support that MTU parameter adjustments are the terminal Mark MTU parameters;
Wherein, after the confirmation for receiving the user instructs, it is the end that the machine for stating terminal is preset into MTU parameter adjustments The target MTU parameters of the place network support at end.
A kind of 7. adjusting apparatus of terminal MTU, it is characterised in that including:
Detecting module, for there is network request response abnormality, and the network request response abnormality and MTU parameters when terminal Setting correlation when, detect the target MTU parameters of the place network support of the terminal;
Adjusting module, for the machine for stating terminal to be preset into target of the MTU parameter adjustments for the place network support of the terminal MTU parameters.
8. device as claimed in claim 7, it is characterised in that wherein, if the network request of the terminal can not obtain Complete response, and the data link of the terminal is normal, it is determined that the network request response abnormality and the setting of MTU parameters It is related.
9. device as claimed in claim 7 or 8, it is characterised in that the detecting module includes:
Determining unit, it is to be measured for being determined according to the default MTU parameters of the machine of the terminal and default minimum MTU parameters MTU parameters;
Adjustment unit, for sending network request using the MTU parameters to be measured, and responded and adjusted according to obtained network request The whole MTU parameters to be measured determine the target MTU parameters of the place network support of the terminal.
10. device as claimed in claim 9, it is characterised in that the adjustment unit, for performing:
Network request is sent using the MTU parameters to be measured;
Judge whether the network request can obtain complete response;
If the network request can obtain complete response, the MTU parameters to be measured are increased according to preset strategy;
If the network request can not obtain complete response, the MTU parameters to be measured are reduced according to preset strategy;
Judge whether the difference of the MTU parameters to be measured before adjustment and the MTU parameters to be measured after adjustment is less than preset value;
If the difference of the MTU parameters to be measured and the MTU parameters to be measured after adjustment before adjustment is less than preset value, it is determined that described MTU parameters to be measured after adjustment are the target MTU parameters of the place network support of the terminal, if to be measured before adjustment The difference of MTU parameters and the MTU parameters to be measured after adjustment is not less than preset value, then adjusts the MTU parameters to be measured again, Until the difference of the MTU parameters to be measured and the MTU parameters to be measured after adjustment before adjustment is less than preset value.
11. the device as described in claim any one of 7-10, it is characterised in that also include:
First reminding module, for there is network request response abnormality, and the network request response abnormality and MTU when terminal During the setting correlation of parameter, prompt user to preset MTU parameters to the machine of the terminal and be adjusted;
Receiving module, for receiving the adjust instruction of the user;
Wherein, the target MTU parameters of the place network support of the terminal are detected according to the adjust instruction of the user.
12. the device as described in claim any one of 7-11, it is characterised in that also include:
Second reminding module, for after the target MTU parameters of place network support of the terminal are detected, described in prompting Whether user presets the machine for stating terminal the target MTU parameters for the place network support that MTU parameter adjustments are the terminal;
Wherein, the machine for stating terminal is preset MTU parameters by the adjusting module after the confirmation for receiving the user instructs It is adjusted to the target MTU parameters of the place network support of the terminal.
13. a kind of terminal device, it is characterised in that including the terminal maximum transmitted list as described in claim any one of 7-11 The adjusting apparatus of member.
CN201610290279.0A 2016-05-03 2016-05-03 Method of adjustment, device and the terminal device of terminal MTU Withdrawn CN107342885A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610290279.0A CN107342885A (en) 2016-05-03 2016-05-03 Method of adjustment, device and the terminal device of terminal MTU
PCT/CN2016/100842 WO2017190467A1 (en) 2016-05-03 2016-09-29 Adjustment method and apparatus for maximum transmission unit of terminal, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610290279.0A CN107342885A (en) 2016-05-03 2016-05-03 Method of adjustment, device and the terminal device of terminal MTU

Publications (1)

Publication Number Publication Date
CN107342885A true CN107342885A (en) 2017-11-10

Family

ID=60202653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610290279.0A Withdrawn CN107342885A (en) 2016-05-03 2016-05-03 Method of adjustment, device and the terminal device of terminal MTU

Country Status (2)

Country Link
CN (1) CN107342885A (en)
WO (1) WO2017190467A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111278011A (en) * 2020-02-13 2020-06-12 海信视像科技股份有限公司 Network distribution method of intelligent loudspeaker box and intelligent loudspeaker box
CN111711858A (en) * 2020-06-08 2020-09-25 苏州华兴源创科技股份有限公司 Data transmission method, device, integrated chip and video image processing system
WO2020259551A1 (en) * 2019-06-28 2020-12-30 北京金山云网络技术有限公司 Method and apparatus for handling network connection fault
CN112637882A (en) * 2020-12-29 2021-04-09 京信网络系统股份有限公司 Base station rate detection and repair method, base station and equipment
CN117319317A (en) * 2023-10-16 2023-12-29 广州通则康威科技股份有限公司 Method, device and storage medium for adjusting MTU of CPE (customer premise equipment) underhung equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654450B (en) * 2020-05-28 2023-08-08 北京小米移动软件有限公司 Data transmission method and device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1599361A (en) * 2003-09-17 2005-03-23 西门子公司 Method of transmitting packet data on network
CN1716943A (en) * 2004-06-28 2006-01-04 杭州华为三康技术有限公司 Method and system for obtaining path maximum transmission length in channel gateway environment
CN101197783A (en) * 2007-12-28 2008-06-11 华为技术有限公司 Method for data message transmission and converter
CN101924689A (en) * 2009-06-16 2010-12-22 中兴通讯股份有限公司 Negotiation method of maximum segmentation parameters and network forwarding equipment
CN102868609A (en) * 2012-09-27 2013-01-09 中兴通讯股份有限公司 Maximum transmission unit consultation method and data terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100574174C (en) * 2005-01-26 2009-12-23 华为技术有限公司 The control method that radio link control layer buffer area overflows
US9069727B2 (en) * 2011-08-12 2015-06-30 Talari Networks Incorporated Adaptive private network with geographically redundant network control nodes
CN102291318B (en) * 2011-09-22 2014-02-26 杭州华三通信技术有限公司 Method for consulting maximum transmission unit (MTU) and router

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1599361A (en) * 2003-09-17 2005-03-23 西门子公司 Method of transmitting packet data on network
CN1716943A (en) * 2004-06-28 2006-01-04 杭州华为三康技术有限公司 Method and system for obtaining path maximum transmission length in channel gateway environment
CN101197783A (en) * 2007-12-28 2008-06-11 华为技术有限公司 Method for data message transmission and converter
CN101924689A (en) * 2009-06-16 2010-12-22 中兴通讯股份有限公司 Negotiation method of maximum segmentation parameters and network forwarding equipment
CN102868609A (en) * 2012-09-27 2013-01-09 中兴通讯股份有限公司 Maximum transmission unit consultation method and data terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020259551A1 (en) * 2019-06-28 2020-12-30 北京金山云网络技术有限公司 Method and apparatus for handling network connection fault
CN111278011A (en) * 2020-02-13 2020-06-12 海信视像科技股份有限公司 Network distribution method of intelligent loudspeaker box and intelligent loudspeaker box
CN111711858A (en) * 2020-06-08 2020-09-25 苏州华兴源创科技股份有限公司 Data transmission method, device, integrated chip and video image processing system
CN112637882A (en) * 2020-12-29 2021-04-09 京信网络系统股份有限公司 Base station rate detection and repair method, base station and equipment
CN112637882B (en) * 2020-12-29 2023-05-12 京信网络系统股份有限公司 Base station rate detection and repair method, base station and equipment
CN117319317A (en) * 2023-10-16 2023-12-29 广州通则康威科技股份有限公司 Method, device and storage medium for adjusting MTU of CPE (customer premise equipment) underhung equipment

Also Published As

Publication number Publication date
WO2017190467A1 (en) 2017-11-09

Similar Documents

Publication Publication Date Title
CN107342885A (en) Method of adjustment, device and the terminal device of terminal MTU
CN107864228B (en) Connection establishment method and system in content distribution network
CN101132320B (en) Method for detecting interface trouble and network node equipment
CN102480753B (en) Link state detection method and device
CN101621802B (en) Method, system and device for authenticating portal in wireless network
CN107925629B (en) Method and device for sending data message in IPv6 network
US7272635B1 (en) Method of configuring and managing a network
CN101924689A (en) Negotiation method of maximum segmentation parameters and network forwarding equipment
CN108770008A (en) Configuration method, device and the storage medium that household appliance networks
CN101610535A (en) Multilink direct continuous show scape guarantees the method, system and device of BFD conversation stability down
CN108882305A (en) A kind of shunt method and device of data packet
CN105338535A (en) Method for wireless networking through employing mobile terminal
CN101425942A (en) Method, apparatus and system for bidirectional forwarding detection implementation
CN112769614B (en) Automatic management method of VPN (virtual private network) on demand and intercommunication system of heterogeneous network
CN109728967A (en) Communication quality detection method, communication equipment and system
CN105471613A (en) Temporary channel establishing method, device and system
WO2015094040A1 (en) Method and control node for handling data packets
CN108400911B (en) Device and method for realizing Micro-BFD protocol
CN109714742A (en) A kind of Internet of Things Wi-Fi module network self-adapting switching method
US20060002306A1 (en) Failure detection of path information corresponding to a transmission path
CN102469016B (en) Device and method for determining path maximum transmission unit (PMTU) reversely
US10708163B1 (en) Methods, systems, and computer readable media for automatic configuration and control of remote inline network monitoring probe
CN103457794A (en) Method and system for confirming faults of IP bearer network
CN104168132B (en) Method for diagnosing faults, equipment and system
CN108574615B (en) Content transmission method, device and system based on multipath MPTCP

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20171110