CN103581041B - The method to set up and electronic equipment of MTU value - Google Patents

The method to set up and electronic equipment of MTU value Download PDF

Info

Publication number
CN103581041B
CN103581041B CN201310446694.7A CN201310446694A CN103581041B CN 103581041 B CN103581041 B CN 103581041B CN 201310446694 A CN201310446694 A CN 201310446694A CN 103581041 B CN103581041 B CN 103581041B
Authority
CN
China
Prior art keywords
mtu
network
network environment
value
electronic equipment
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.)
Active
Application number
CN201310446694.7A
Other languages
Chinese (zh)
Other versions
CN103581041A (en
Inventor
成厚富
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Coolpad Software Technology Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Coolpad Software Technology Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd, Coolpad Software Technology Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201310446694.7A priority Critical patent/CN103581041B/en
Publication of CN103581041A publication Critical patent/CN103581041A/en
Application granted granted Critical
Publication of CN103581041B publication Critical patent/CN103581041B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses the method to set up and electronic equipment of a kind of MTU value, are related to communication technical field, the problem that network transmission performance declines caused by MTU because of Network Interface Unit and network transmission environmental inadequacies is can solve the problem that.The method of the present invention can include:The electronic equipment obtains the network environment information of current network;Search the MTU value of the correspondence network environment information;If finding the MTU value, the MTU value that the MTU of Network Interface Unit is set to find.Can be applicable in the setting of MTU value.

Description

The method to set up and electronic equipment of MTU value
Technical field
The present invention relates to communication technical field, more particularly to the method to set up and electronic equipment of MTU value.
Background technology
MTU(Maximum Transmission Unit, MTU)Refer on a kind of a certain layer of communication protocol The maximum data packet size that can pass through(In units of byte).Before transmission data to be transmitted bag, it is necessary first to will be to be passed Transmission of data bag splits into multiple packets, and the size of the packet after generally splitting is less than or equal to transmission number to be transmitted According to the MTU of the Network Interface Unit of bag.It is bigger that the MTU of Network Interface Unit is arranged, and is transmitted by the Network Interface Unit Packet may be bigger.But the MTU of Network Interface Unit is not to be the bigger the better, if the packet for receiving is excessive, net The transmittability of network possibly cannot be supported to transmit the packet, and the packet may be dropped.Therefore how network interface is set Standby MTU is configured, and enables on the premise of not packet loss as far as possible by packet as big as possible.
In prior art, in order to avoid packet is dropped, network O&M personnel need before data transfer to connect network The MTU of jaws equipment carries out Initialize installation(The default value of MTU is set), using artificial setting during subsequent transmission MTU(The MTU of network interface equipment can be set to MTU default values).In actual applications, network O&M personnel generally will It is less that the MTU of Network Interface Unit is arranged(I.e. so that less by the packet of Network Interface Unit transmission), as such, it is possible to Ensure that the packet sent by Network Interface Unit smoothly can be transmitted in all of network, i.e. the transmission energy of all-network Power supports the transmission of the packet.
During stating the setting of MTU value in realization, inventor has found that at least there are the following problems in prior art:If The Network Interface Unit for being set to the MTU of default value is not necessarily suitable any network, and particular network is not being gone up in the same time Transmission conditions are also not quite similar, if the MTU for arranging is not suitable for current network, may cause the transporting of Network Interface Unit Can decline.
For example:If the MTU of Network Interface Unit is configured to less value, data to be transmitted bag can be split into more Packet, due to being required to add corresponding packet information in each packet(Such as header etc.), therefore, increased net Network resource occupation amount;Further, since the data every time by Network Interface Unit transmission are less, therefore, increased transmission to be passed The total time of transmission of data.
The content of the invention
Embodiments of the invention provide a kind of method to set up and electronic equipment of MTU value, can solve the problem that and set because of network interface The problem that network transmission performance declines caused by standby MTU and network transmission environmental inadequacies.
On the one hand, a kind of method to set up of MTU value is embodiments provided, methods described is applied to support and network Carry out on the electronic equipment of data interaction, including:
The electronic equipment obtains the network environment information of current network;
Search the MTU value of the correspondence network environment information;
If finding the MTU value, the MTU value that the MTU of Network Interface Unit is set to find.
On the other hand, the embodiment of the present invention additionally provides a kind of electronic equipment, and the electronic equipment is supported to carry out with network Data interaction, including:
Acquiring unit, for obtaining the network environment information of current network;
Searching unit, for searching the MTU value of the correspondence network environment information;
Setting unit, if for finding the MTU value, the MTU that the MTU of Network Interface Unit is set to find Value.
The method to set up and electronic equipment of MTU value provided in an embodiment of the present invention, after such scheme, electronic equipment is obtained Take the network environment information for being currently located network;Corresponding MTU is searched according to the network environment information;If finding described general MTU, then the MTU of Network Interface Unit is set to the MTU for finding.So, electronic equipment can be according to current network rings Border determines the MTU of Network Interface Unit, in prior art, the MTU of Network Interface Unit is used as default and is compared, can be with Increase the motility that MTU is arranged, be capable of the network of compatible difference transmission environment using the Network Interface Unit arranged after MTU, from And improve the data transmission performance of network.
Description of the drawings
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to making needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, can be obtaining other according to these accompanying drawings Accompanying drawing.
A kind of flow chart of the method to set up of MTU value that Fig. 1 is provided for the present embodiment;
The flow chart of the method to set up of another kind of MTU value that Fig. 2 is provided for the present embodiment;
The data interaction figure of the system logic structure of the specific example that methods of the Fig. 3 shown in Fig. 2 is applied;
The structural representation of a kind of electronic equipment that Fig. 4 is provided for the present embodiment;
The structural representation of another kind of electronic equipment that Fig. 5 is provided for the present embodiment.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
In the prior art, generally the MTU of Network Interface Unit is used as default, but, use as default The Network Interface Unit of MTU is not necessarily suitable any network, and particular network in the transmission conditions not gone up in the same time not yet It is identical to the greatest extent, if the MTU for arranging is not suitable for current network, the transmission performance of Network Interface Unit may be caused to decline.
For example:If the MTU of Network Interface Unit is configured to less value, data to be transmitted bag can be split into more Packet, due to being required to add corresponding packet information in each packet(Such as header etc.), therefore, increased net Network resource occupation amount;Further, since the data every time by Network Interface Unit transmission are less, therefore, increased transmission to be passed The total time of transmission of data.
In order to solve the above problems, the present embodiment provides a kind of method to set up of MTU value, is applied to support to carry out with network The electronic equipment of data interaction, as shown in figure 1, including:
101st, electronic equipment obtains the network environment information of current network.
The data transmission performance of heterogeneous networks may be different, if the data transmission performance of network is higher, will can perform The MTU of the Network Interface Unit of data transfer is set to larger value, as such, it is possible to quickly transmission data, if the number of network It is relatively low according to transmission performance, then the MTU for performing the Network Interface Unit of data transfer can be set to less value, so, can It is not dropped with ensureing data successfully can be transmitted.
In the present embodiment, electronic equipment can arrange MTU value according to the network environment information of current network, in order to for follow-up The step of arranging MTU value is laid the groundwork, and electronic equipment can obtain the network environment information of current network first.
Electronic equipment in the present embodiment can be, but not limited to for:Mobile phone, panel computer etc..
102nd, search the MTU value of the correspondence network environment information.
Can be stored with electronic equipment MTU value corresponding with different network environments information, can search the correspondence net The MTU value of network environmental information.
If the 103, finding the MTU value, the MTU value that the MTU of Network Interface Unit is set to find.
The MTU of Network Interface Unit is set to after MTU value corresponding with the network environment information, it is ensured that network Interface equipment adapts to current network conditions, can efficiently be transmitted data.
After such scheme, electronic equipment obtains the network environment information for being currently located network;According to the network rings Environment information searches corresponding MTU;If finding described by MTU, the MTU that the MTU of Network Interface Unit is set to find. So, electronic equipment can determine the MTU of Network Interface Unit according to current network environment, in prior art, by network The MTU of interface equipment uses as default and compares, and can increase the motility of MTU settings, using the network interface arranged after MTU Equipment is capable of the network of compatible difference transmission environment, so as to improve the data transmission performance of network.
The present embodiment provides the method to set up of another kind of MTU value, and methods described can apply to support to enter line number with network According on interactive electronic equipment, and the method is further expanding and optimize to the method shown in Fig. 1, as shown in Fig. 2 can be with Including:
201st, electronic equipment receives the MTU data bases for pre-seting.
Used as an embodiment of the present embodiment, developer can be done by experiment, test etc. on stream Method obtains the different corresponding MTU values of network environment information, and sets up MTU data bases with this, for depositing different network rings Corresponding relation between environment information and MTU value;The MTU data bases are implanted into into electronic equipment when electronic equipment dispatches from the factory simultaneously In.
Further, the method for setting up MTU data bases can include:
Roam test by way of or combine PMTU(Path MTU, path mtu)Discovery technical limit spacings from it is different The corresponding MTU value of network environment information, and store the different network environment information it is corresponding with the MTU value for getting close System, obtains MTU data bases.
Further, the MTU data bases can also include MTU default values.
Wherein, the MTU value that the MTU default values are generally arranged in being prior art.
Wherein, the corresponding relation for being obtained between different network environment informations and MTU value by the method for roaming test can To include:
Roaming tester tests each IP of all types of operators in roaming place(Internet Protocol, network Between the agreement that interconnects)The miscellaneous service of address family, so as to obtain the corresponding pass between different network environment informations and MTU value System.
Can be with reference to the corresponding relation between the different network environment information of PMTU Discovery technical limit spacings and MTU value Including:
By PMTU Discovery technologies, the MTU value being adapted to during the ground IP races business is found, it is different so as to obtain Corresponding relation between network environment information and MTU value.
The present embodiment is not construed as limiting to the method and PMTU Discovery technologies of roaming test, is those skilled in the art Well known technology, will not be described here.
Wherein, the MTU data bases can include the corresponding relation between different network environment informations and MTU value, institute State at least one that network environment information can be, but not limited to include in following information:Operator types information, network type letter Breath, access point APN(Access Point Name)Protocol suite type information, APN traffic type informations or geographical location information.
Operator types information can include:China Telecom, China Mobile etc., network type information can include:2G、3G Deng access point APN protocol suites type information can include:IPV4(Internet Protocol Version4, Internet protocol version This 4)、IPV6(Internet Protocol Version6, IPv6)Deng APN traffic type informations can be wrapped Include:Business of networking, MMS etc., geographical location information can include:Beijing, Shenzhen etc..
As an embodiment of the present embodiment, for subsequent content sake of clarity, now can be by a network environment Corresponding relation between information and MTU value is referred to as a relation list item, and thus, MTU data bases can include multiple relation list items.
If any information included in network environment information is differed, MTU value corresponding with the network environment information can Can differ.
As shown in table 1, MTU data bases can be, but not limited to present in the way of table 1:
Table 1
Such as table 1 as can be seen that when electronic equipment is in different network environments and/or performs different business, will can be somebody's turn to do The MTU of the Network Interface Unit of electronic equipment is arranged to the Network Interface Unit after different numerical value, and setting MTU and can fit For current network environment.
The present embodiment is not construed as limiting to the content that MTU data bases include, can be set according to actual needs, not limited Content in table 1, will not be described here.
The present embodiment to got by way of test from the method for the corresponding MTU value of different network environment informations not It is construed as limiting, is technology well known to those skilled in the art, and can be set according to actual needs, will not be described here.
202nd, according to the operator types information, the network type information, described access point APN protocol suite type letter In breath, the APN traffic type informations, the geographical location information, at least one information is ranked up to relation list item.
Electronic equipment can search MTU value corresponding with network environment parameters by way of traveling through MTU data bases, in order to The step of simplifying electronic equipment traversal MTU data bases, then electronic equipment can be first according to described at least one information to MTU numbers It is ranked up according to the relation list item in storehouse so that described at least one information identical relation list item arranged adjacent, as such, it is possible to Simplify the ergodic process of electronic equipment.
As an embodiment of the present embodiment, the method that MTU data bases are ranked up can be, but not limited to include:
First, according to operator types information to MTU data bases in each relation list item classify so that operator's class Type information identical relation list item arranged adjacent, then, for operator types information identical relation list item, further according to network Type information is classified to the relation list item, makes operator types information and network type information identical relation list item adjacent Arrangement, according to above-mentioned steps, can with but be not limited to again successively according to APN protocol suite type informations, the APN types of service believe In breath, the geographical location information, at least one information is ranked up to network environment information.
Specifically, if electronic equipment is only ranked up to the relation list item in MTU data bases according to operator types information, Then the relation list item after sequence can be:Relation list item arranged adjacent of the operator types information for " China Telecom ", operator Relation list item arranged adjacent of the type information for " China Mobile ".
The present embodiment is not construed as limiting to the sort method of MTU data bases, can be set according to actual needs, and here is not Repeat again.
For example, can be successively according to operator types information and network type information to the relation list item in MTU data bases It is ranked up, to obtain table 2.
Table 2
203rd, the original position mark of the relation list item of at least one different information is recorded respectively.
As an embodiment of the present embodiment, as shown in table 2, it is successively according to operator types information and the net Network type information is ranked up to relation list item, then record the start bit of the relation list item of at least one different information respectively Putting mark includes:Record first includes the original position mark of " China Mobile ", the relation list item of " 2G ", as sequence number " 1 ", Record first includes the original position mark of " China Mobile ", the relation list item of " 3G ", as sequence number " p ", record first Identify including the original position of " China Telecom ", the relation list item of " 2G ", as sequence number " m ", record first includes " China's electricity The original position mark of letter ", the relation list item of " 3G ", as sequence number " n ".
The present embodiment is not construed as limiting to original position mark, can be set according to actual needs, be will not be described here.
204th, the electronic equipment obtains the network environment information of current network.
Further, as electronic equipment ceaselessly may moved, so, network environment that electronic equipment is presently in May change, therefore, electronic equipment can obtain the network environment information according to prefixed time interval, and then can protect Card can get corresponding MTU value after network environment information changes.
The present embodiment is not construed as limiting to prefixed time interval, can be set according to actual needs, e.g., can with but do not limit In for 1 minute etc., will not be described here.
205th, at least one information information identical relation list item corresponding with the network environment information described in obtaining Original position mark.
As an embodiment of the present embodiment, if the network environment information that step 204 gets includes:" China moves It is dynamic ", " 3G ", " IPV6 ", " business of networking ", " Shenzhen ", then as shown in table 2, then electronic equipment can first determine whether sequence number " 1 ", Cross in " p ", " m ", " n " corresponding relation list item and whether include " China Mobile ", " 3G ", obtain comprising " China Mobile ", " 3G " Relation list item sequence number, as " p ".
206th, corresponding relation list item is identified from the original position for getting to start to be traveled through one by one, search comprising described The corresponding relation list item of network environment information.If finding MTU value, execution step 207, if not finding MTU value, is performed Step 209.
As an embodiment of the present embodiment, as shown in table 2, the original position mark for getting in step 205 For sequence number " p ", electronic equipment can proceed by traversal from " p " corresponding relation list item, you can find comprising network environment The relation list item of information.
So, the MTU data bases after to being ranked up travel through, it is possible to reduce the traversal number to relation list item, Simplify ergodic process.Specifically, electronic equipment only traversal serial number " p " to the relation list item between serial number " m ", can be wrapped Include the relation list item of serial number " p ".
What deserves to be explained is, if the network environment information that step 204 gets is only included:" China Mobile ", " 3G ", then it is electric Sub- equipment is obtained multiple relation list items comprising " China Mobile ", " 3G " after MTU data bases have been traveled through, then can be from this A relation list item is obtained in multiple relation list items arbitrarily.
207th, read the MTU value in the corresponding relation list item
The 208th, the MTU of Network Interface Unit is set to the MTU value for finding.
As an embodiment of the present embodiment, after electronic equipment is attached with network, at least one can be configured Individual Network Interface Unit, at least one Network Interface Unit can correspond to different types of service respectively, e.g., MMS, Equipotential business etc..
Such as, when electronic equipment performs MMS, electronic equipment can be first looked for and be obtained and network environment information Corresponding MTU value, wherein, the APN traffic type informations that the network environment information includes can be " MMS ", then, The MTU of MMS corresponding Network Interface Unit is set to into the MTU value for getting.
Flow process terminates.
209th, the MTU of Network Interface Unit is set to into MTU default values.
The present embodiment is not construed as limiting to MTU default values, can according to be need set, and establishing method be this area Technology known to technical staff, will not be described here.
It is further alternative, if electronic equipment does not find the MTU value of the correspondence network environment information, can also lead to Cross the mode of roaming test or combine PMTU Discovery technical limit spacings MTU value corresponding with the network environment information, and The MTU value that the MTU of the Network Interface Unit is set to get, or it is directly disposed as MTU default values.
210th, MTU data bases are updated.
As an embodiment of the present embodiment, if not finding from MTU data bases corresponding with network environment information MTU value, then can also update MTU data bases, you can to add new relation list item in MTU data bases, so as to follow-up MTU value corresponding with the network environment information can be found in step.
Further, updating MTU data bases can include:
It is by way of roaming test or corresponding with the network environment information with reference to PMTU Discovery technical limit spacings MTU value;The network environment information is added into the MTU data bases with the corresponding relation of the MTU value for getting.
If in addition, find MTU data bases there is inaccurate MTU value, can also roam test by way of or knot Close the existing MTU value of PMTU Discovery technology modification MTU data bases.
Wherein, the method by roaming test obtains MTU value corresponding with the network environment information and can specifically include:
Roaming tester tests the miscellaneous service of each IP address race of all types of operators in roaming place, so as to obtain Take MTU value corresponding with the network environment information, and by the relation list item(Between i.e. described network environment information and MTU value Corresponding relation)It is stored in MTU data bases, to update MTU data bases.
Can include with reference to PMTU Discovery technical limit spacings MTU value corresponding with the network environment information:
By PMTU Discovery technologies, find the MTU value being adapted to during the ground IP races business, so as to obtain with it is described The corresponding MTU value of network environment information, and the relation list item is stored in MTU data bases, to update MTU data bases.
After such scheme, electronic equipment obtains the network environment information for being currently located network;According to the network rings Environment information searches corresponding MTU;If finding described by MTU, the MTU that the MTU of Network Interface Unit is set to find. So, electronic equipment can determine the MTU of Network Interface Unit according to current network environment, in prior art, by network The MTU of interface equipment uses as default and compares, and can increase the motility of MTU settings, using the network interface arranged after MTU Equipment is capable of the network of compatible difference transmission environment, so as to improve the data transmission performance of network.
Specifically, electronic equipment can obtain MTU corresponding with network environment information by way of traveling through MTU data bases Value, furthermore it is also possible to be ranked up to the relation list item in MTU data bases according to network environment information, reduces electronic equipment The quantity of traversal relation list item, simplifies ergodic process.
In order to preferably understand to above-described embodiment, a specific example is provided below, with electronic equipment Illustrate as a example by performing MMS.As shown in figure 3, the data interaction figure of the system logic structure for this example, the system Can apply in electronic equipment, concrete steps can include:
1. data cube computation manager connects to network initiated data, so that electronic equipment can carry out data friendship with network Mutually;
If 2. data cube computation success, data cube computation manager configures Network Interface Unit corresponding with MMS;
3. data cube computation manager obtains the network environment information that electronic equipment is presently in from communication module;
4. data cube computation manager searches MTU value corresponding with the network environment information for getting in MTU data bases;If MTU value, execution step 5 are found, if not finding MTU value, execution step 6;
5. the MTU of Network Interface Unit corresponding with MMS is set to the MTU for getting by data cube computation manager Value;Execution step 7;
6. the MTU of Network Interface Unit corresponding with MMS is set to MTU default values by data cube computation manager;
7. the MTU value of setting is informed TCP/IP by Network Interface Unit(Transmission Control Protocol/ Internet Protocol, transmission control protocol/Internet Protocol)Protocol stack;
8.TCP/IP protocol stacks adjust the data by Network Interface Unit according to the MTU value for reporting of Network Interface Unit The size of bag.
Some device embodiments are provided below, corresponding embodiment of the method phase of the device embodiment respectively at above-mentioned offer Correspondence.
The present embodiment provides a kind of electronic equipment, and the electronic equipment is supported to carry out data interaction with network, such as Fig. 4 institutes Show, can include:
Acquiring unit 41, for obtaining the network environment information of current network;
Searching unit 42, for searching the MTU value of the correspondence network environment information;
Setting unit 43, if for finding the MTU value, the MTU of Network Interface Unit is set to what is found MTU value.
After such scheme, electronic equipment obtains the network environment information for being currently located network;According to the network rings Environment information searches corresponding MTU;If finding described by MTU, the MTU that the MTU of Network Interface Unit is set to find. So, electronic equipment can determine the MTU of Network Interface Unit according to current network environment, in prior art, by network The MTU of interface equipment uses as default and compares, and can increase the motility of MTU settings, using the network interface arranged after MTU Equipment is capable of the network of compatible difference transmission environment, so as to improve the data transmission performance of network.
The present embodiment provides another kind of electronic equipment, and the electronic equipment is the further expansion to the electronic equipment shown in Fig. 4 Exhibition and optimization, as shown in figure 5, can include:
Acquiring unit 51, for obtaining the network environment information of current network;
Searching unit 52, for searching the MTU value of the correspondence network environment information;
Setting unit 53, if for finding the MTU value, the MTU of Network Interface Unit is set to what is found MTU value.
Further, the electronic equipment that the present embodiment is provided can also include:
Receiving unit 54, for before the network environment information that the electronic equipment obtains current network, receiving default The MTU data bases for putting, the MTU data bases include the corresponding relation between different network environment informations and MTU value, the net Network environmental information includes at least one in following information:Operator types information, network type information, access point APN agreements Race's type information, APN traffic type informations or geographical location information;
The MTU data bases also include MTU default values.
Further, the MTU data bases that the receiving unit 54 is received are by way of roaming test or combination PMTU Discovery technical limit spacings and the corresponding MTU value of different network environment informations, and store the different network environment Obtain after information and the corresponding relation of the MTU value for getting.
Further, the setting unit 53, if being additionally operable to not find the MTU value, the network interface is set Standby MTU is set to the MTU default values;
The electronic equipment also includes:
Updating block 55, for updating the MTU data bases.
Further, the updating block 55 includes:
Acquisition module 551, for roam test by way of or combine PMTU Discovery technical limit spacings with it is described The corresponding MTU value of network environment information;
Add module 552, for the network environment information and the corresponding relation of the MTU value for getting are added to described In MTU data bases.
After such scheme, electronic equipment obtains the network environment information for being currently located network;According to the network rings Environment information searches corresponding MTU;If finding described by MTU, the MTU that the MTU of Network Interface Unit is set to find. So, electronic equipment can determine the MTU of Network Interface Unit according to current network environment, in prior art, by network The MTU of interface equipment uses as default and compares, and can increase the motility of MTU settings, using the network interface arranged after MTU Equipment is capable of the network of compatible difference transmission environment, so as to improve the data transmission performance of network.
Specifically, electronic equipment can obtain MTU corresponding with network environment information by way of traveling through MTU data bases Value, furthermore it is also possible to be ranked up to the relation list item in MTU data bases according to network environment information, reduces electronic equipment The quantity of traversal relation list item, simplifies ergodic process.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be borrowed Software is helped to add the mode of required common hardware to realize, naturally it is also possible to which by hardware, but the former is more preferably in many cases Embodiment.Based on such understanding, the portion that technical scheme is substantially contributed to prior art in other words Divide and can be embodied in the form of software product, the computer software product is stored in the storage medium that can read, such as count The floppy disk of calculation machine, hard disk or CD etc., use so that a computer equipment including some instructions(Can be personal computer, Server, or the network equipment etc.)Perform the method described in each embodiment of the invention.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (10)

1. a kind of method to set up of MTU MTU value, methods described are applied to support to carry out data interaction with network On electronic equipment, it is characterised in that methods described includes:
The electronic equipment obtains the network environment information of current network;
Search the MTU value of the correspondence network environment information;
If finding the MTU value, the MTU value that the MTU of Network Interface Unit is set to find;
Wherein, the network environment information includes at least one in following information:Operator types information, network type letter Breath, access point APN protocol suite type informations, APN traffic type informations or geographical location information.
2. the method to set up of MTU value according to claim 1, it is characterised in that obtain current net in the electronic equipment Before the network environment information of network, also include:
The MTU data bases that reception is pre-seted, it is right between different network environment informations and MTU value that the MTU data bases include Should be related to;
The MTU data bases also include MTU default values.
3. the method to set up of MTU value according to claim 2, it is characterised in that the MTU data bases are surveyed by roaming The mode of examination or with reference to PMTU Discovery technical limit spacings and the corresponding MTU value of different network environment informations, and store should Obtain after different network environment informations and the corresponding relation of the MTU value for getting.
4. the method to set up of MTU value according to claim 2, it is characterised in that if not finding the MTU value, institute Stating method also includes:
The MTU of the Network Interface Unit is set to into the MTU default values.
5. the method to set up of MTU value according to claim 4, it is characterised in that if not finding the MTU value, institute Stating method also includes:
Update the MTU data bases;
It is described to update the MTU data bases and include:
By way of roaming test or with reference to PMTU Discovery technical limit spacings MTU corresponding with the network environment information Value;
The network environment information is added into the MTU data bases with the corresponding relation of the MTU value for getting.
6. a kind of electronic equipment, the electronic equipment are supported to carry out data interaction with network, it is characterised in that include:
Acquiring unit, for obtaining the network environment information of current network;
Searching unit, for searching the MTU value of the correspondence network environment information;
Setting unit, if for finding the MTU value, the MTU value that the MTU of Network Interface Unit is set to find;
Wherein, the network environment information includes at least one in following information:Operator types information, network type letter Breath, access point APN protocol suite type informations, APN traffic type informations or geographical location information.
7. electronic equipment according to claim 6, it is characterised in that also include:
Receiving unit, for, before the network environment information that the electronic equipment obtains current network, receiving the MTU for pre-seting Data base, the MTU data bases include the corresponding relation between different network environment informations and MTU value;
The MTU data bases also include MTU default values.
8. electronic equipment according to claim 7, it is characterised in that the MTU data bases that the receiving unit is received It is by way of roaming test or with reference to PMTU Discovery technical limit spacings MTU corresponding from different network environment informations Value, and obtain after storing the different network environment information and the corresponding relation of the MTU value for getting.
9. electronic equipment according to claim 7, it is characterised in that
The MTU of the Network Interface Unit, if being additionally operable to not find the MTU value, is set to institute by the setting unit State MTU default values.
10. electronic equipment according to claim 9, it is characterised in that
The electronic equipment also includes updating block;
The updating block includes:
Acquisition module, for by way of roaming test or with reference to PMTU Discovery technical limit spacings and the network environment The corresponding MTU value of information;
Add module, for the network environment information is added to the MTU data with the corresponding relation of the MTU value for getting In storehouse.
CN201310446694.7A 2013-09-26 2013-09-26 The method to set up and electronic equipment of MTU value Active CN103581041B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310446694.7A CN103581041B (en) 2013-09-26 2013-09-26 The method to set up and electronic equipment of MTU value

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310446694.7A CN103581041B (en) 2013-09-26 2013-09-26 The method to set up and electronic equipment of MTU value

Publications (2)

Publication Number Publication Date
CN103581041A CN103581041A (en) 2014-02-12
CN103581041B true CN103581041B (en) 2017-04-05

Family

ID=50052002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310446694.7A Active CN103581041B (en) 2013-09-26 2013-09-26 The method to set up and electronic equipment of MTU value

Country Status (1)

Country Link
CN (1) CN103581041B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704084A (en) * 2014-11-24 2016-06-22 中兴通讯股份有限公司 Processing method of TCP connection, processing device and mobile terminal
CN106533969B (en) * 2016-11-17 2020-05-08 东软集团股份有限公司 Maximum transmission unit value setting method and device
CN107222371A (en) * 2017-08-04 2017-09-29 北京奇艺世纪科技有限公司 A kind of client heartbeat inspecting method and system
CN107566173A (en) * 2017-08-29 2018-01-09 深圳天珑无线科技有限公司 Mobile terminal sets the method and device of MTU
US10608947B2 (en) * 2018-02-26 2020-03-31 Qualcomm Incorporated Per-flow jumbo MTU in NR systems
CN110017575A (en) * 2019-04-16 2019-07-16 珠海格力电器股份有限公司 Information carrying means, method and system, air-conditioning

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101521622A (en) * 2008-02-29 2009-09-02 华为技术有限公司 Method and device for determining maximum transmission unit
CN102036304A (en) * 2009-09-28 2011-04-27 华为技术有限公司 Method for providing maximum transmission unit length for terminal and packet switch gateway

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE535078T1 (en) * 2004-07-23 2011-12-15 Citrix Systems Inc METHOD AND SYSTEM FOR SECURING REMOTE ACCESS TO PRIVATE NETWORKS
CN102571966B (en) * 2012-01-16 2014-10-29 北大方正集团有限公司 Network transmission method for large extensible markup language (XML) document

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101521622A (en) * 2008-02-29 2009-09-02 华为技术有限公司 Method and device for determining maximum transmission unit
CN102036304A (en) * 2009-09-28 2011-04-27 华为技术有限公司 Method for providing maximum transmission unit length for terminal and packet switch gateway

Also Published As

Publication number Publication date
CN103581041A (en) 2014-02-12

Similar Documents

Publication Publication Date Title
CN103581041B (en) The method to set up and electronic equipment of MTU value
CN101621414B (en) Method and apparatus for discovering network resource and topology
CN103051725B (en) Application and identification method, data digging method, Apparatus and system
CN102422600B (en) Method provided in mixed nodes, network thereof and network units thereof
CN104718733B (en) The method and system of packet-based identifier finger URL procotol (ILNP) load balance and Route Selection
CN102056152B (en) Implementation method of automatic configuration for network addresses of wireless sensors based on Internet protocol version 6 over low power wireless personal area network (6LoWPAN)
CN109600768A (en) Management method, equipment and the system of network slice
RU2464722C2 (en) Method, device and system for distribution of messages
CN101374089B (en) Neighbor discovery method and apparatus for mobile node in heterogeneous network environment
CN103888928A (en) Business strategy control method and system
CN104320499B (en) The method for building up and device of a kind of service transmission link
CN107547349A (en) A kind of method and device of virtual machine (vm) migration
CN102780779A (en) Gateway equipment and method and device for optimization of campus network export P2P (peer-to-peer) traffic
Iannone et al. Implementing the locator/id separation protocol: Design and experience
CN101420337A (en) Method, device and indexing server for resource positioning
CN104040964A (en) Method, device and data center network for cross-service zone communication
CN112448887B (en) Segmented routing method and device
CN103686929B (en) A kind of method and apparatus informing WAP Service Virtual provider
CN102055641A (en) Distribution method for virtual local area network and related device
CN103503413B (en) Method and device for transmitting network information
CN101321118A (en) Method and apparatus for implementing wireless router proxy
CN106357723A (en) Synchronous system and method for multi-cluster information caching based on cloud host
CN102447703B (en) A kind of heat backup method and system, CGN equipment
CN102201996A (en) Method and equipment for forwarding message in network address translation (NAT) environment
CN103746768A (en) Data packet identification method and equipment thereof

Legal Events

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