CN106789717A - Dynamic adjusts method, device and the terminal of the MTU of communication protocol data message transmission - Google Patents

Dynamic adjusts method, device and the terminal of the MTU of communication protocol data message transmission Download PDF

Info

Publication number
CN106789717A
CN106789717A CN201611217896.4A CN201611217896A CN106789717A CN 106789717 A CN106789717 A CN 106789717A CN 201611217896 A CN201611217896 A CN 201611217896A CN 106789717 A CN106789717 A CN 106789717A
Authority
CN
China
Prior art keywords
terminal
server
network node
mtu value
mtu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611217896.4A
Other languages
Chinese (zh)
Other versions
CN106789717B (en
Inventor
唐荣政
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611217896.4A priority Critical patent/CN106789717B/en
Publication of CN106789717A publication Critical patent/CN106789717A/en
Application granted granted Critical
Publication of CN106789717B publication Critical patent/CN106789717B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/36Flow control; Congestion control by determining packet size, e.g. maximum transfer unit [MTU]
    • H04L47/365Dynamic adaptation of the packet size
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures

Abstract

The present invention relates to a kind of method of the MTU of dynamic adjustment communication protocol data message transmission, including:Terminal is set up with server by network node and is connected;Terminal receives the Internet Control Message Protocol ICMP bags of network node transmission in the communication process with server, and the current MTU value of network node is obtained according to the ICMP bags;The current MTU value of more new terminal is the current MTU value of the network node;MTU value after terminal is set up with server and is connected again, and notification server terminal updates, so that the MTU value after the server updates according to the terminal determines whether to be updated the current MTU value of server.Using the method, when occurring abnormal by receiving the ICMP bags that network node sends, terminal and server can be carried out dynamic MTU value and update, so that terminal and server can dynamically adjust itself MSS, network service can be recovered in Network Abnormal.Additionally, additionally providing a kind of device of the MTU of dynamic adjustment communication protocol data message transmission.

Description

Dynamic adjusts method, device and the terminal of the MTU of communication protocol data message transmission
Technical field
The present invention relates to communication technical field, more particularly to a kind of dynamic adjustment communication protocol data message transmission MTU Method, device and terminal.
Background technology
MTU (Maximum Transmission Unit, MTU) refers on a kind of a certain layer of communication protocol The face maximum data packet size to be passed through.MSS (Maximum Segment Size) maximum message segment segment length, refers to that TCP connects Connect when setting up, the maximum data length that each message segment can be accepted during receiving-transmitting sides negotiation communication.In terminal and server When setting up TCP connections, two ends all only can check the MTU of oneself, by TCP three-way handshake, it may be determined that the MSS of present communications, Wherein, MSS=MTU-IP packet header-TCP packet header.
In communication process, if certain network node (such as wireless network access point AP or gateway of current connection Deng) MSS less than three-way handshake determine MSS, may result in the MSS of the packet for receiving beyond itself current MSS's Size, then can abandon the message for receiving.Can so cause to send data failure between server and terminal, so as to cause network Communication occurs abnormal.
The content of the invention
Based on this, it is necessary to for above-mentioned technical problem, there is provided one kind is adapted dynamically MTU to avoid network service from occurring Abnormal dynamic adjusts method, device and the terminal of the MTU of communication protocol data message transmission.
A kind of method of the MTU MTU of dynamic adjustment communication protocol data message transmission, including:
Terminal is set up with server by network node and is connected;
Terminal receives the Internet Control Message Protocol ICMP of network node transmission in the communication process with server Bag, the current MTU value of network node is obtained according to the ICMP bags;
The current MTU value of more new terminal is the current MTU value of the network node;
MTU value after terminal is set up with server and is connected again, and notification server terminal updates, so that the server MTU value after being updated according to the terminal determines whether to be updated the current MTU value of server.
A kind of device of the MTU MTU of dynamic adjustment communication protocol data message transmission, described device includes:
First connection establishment module, is connected for being set up with server by network node;
ICMP bag receiver modules, for receiving the ICMP bags that network node sends, root in the communication process with server The current MTU value of network node is obtained according to the ICMP bags;
MTU update modules, are the current MTU value of the network node for the current MTU value of more new terminal;
After second connection establishment module, sets up with server and is connected again for terminal, and notification server terminal updates MTU value so that the server according to the terminal update after MTU value determine whether to carry out the current MTU value of server Update.
A kind of terminal, including above-mentioned dynamic adjusts the device of the MTU of communication protocol data message transmission.
The method of MTU of above-mentioned dynamic adjustment communication protocol data message transmission, device and terminal, terminal with server Communication process in by receiving the ICMP bags that network node sends, according to the ICMP bags acquisition current MTU value of network node, more The current MTU value of new terminal is the current MTU value of network node.Terminal after the MTU value for having updated itself again with server The MTU value set up after connection, and the renewal of notification server terminal, so that the MTU value after server can update according to terminal determines Whether the current MTU value of server is updated.So, when occurring abnormal terminal by receiving what network node sent ICMP bags update itself MTU value, by again with server set up be connected again may be updated server MTU value so that terminal with Server can be carried out dynamic MTU value and update, so that terminal and server can be with when network service occurs abnormal Dynamic adjusts itself MSS so that abnormal network can recover proper communication.
Brief description of the drawings
Fig. 1 be one embodiment in dynamically adjust communication protocol data message transmission MTU method applied environment figure;
Fig. 2 is the cut-away view of terminal in one embodiment;
Fig. 3 be one embodiment in dynamically adjust communication protocol data message transmission MTU method flow chart;
Fig. 4 is the flow chart of the method for the MTU that communication protocol data message transmission is dynamically adjusted in another embodiment;
Fig. 5 be one embodiment in dynamically adjust communication protocol data message transmission MTU method timing diagram;
Fig. 6 be one embodiment in dynamically adjust communication protocol data message transmission MTU device structured flowchart;
Fig. 7 is the structured flowchart of the device of the MTU that communication protocol data message transmission is dynamically adjusted in another embodiment.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
The method of the MTU of the dynamic adjustment communication protocol data message that the embodiment of the present invention is provided can be applied to such as Fig. 1 In shown environment.With reference to shown in Fig. 1, terminal 102 is set up with server 106 by network node 104 and is connected and is communicated, Wherein, network node 104 can be the equipment such as wireless network access point, gateway or router.Specifically, terminal 102 with During server 106 communicates, when the MSS of network node 104 is determined less than terminal 102 with the three-way handshake of server 106 MSS when, can cause to abandon send data failure between the message for receiving, that is, terminal 102 and server 106.Now, Network node 104 can to terminal 102 send ICMP bags, ICMP (Internet Control Message Protocol, Internet Control Message Protocol) be TCP/IP protocol suite a sub-protocol, between IP main frames, router transmit control Message processed.Terminal 102 gets the current MTU value of network node and more new terminal by receiving after ICMP bags according to ICMP bags The MTU value of itself.Then, terminal 102 is set up to server 106 and is connected again, the MTU value notification server after terminal is updated 106, so that server 106 determines the need for entering the current MTU value of server 106 according to the MTU value after the renewal of terminal 102 Row updates.Therefore, when data transmission exception between terminal 102 and server 106, can be by the dynamic more kimonos of new terminal 102 The MTU value of business device 106 causes that data transfer recovers normal.
Fig. 2 is the internal structure schematic diagram of terminal in one embodiment.The terminal includes the place connected by system bus Reason device, non-volatile memory medium, network interface, built-in storage, input unit.The wherein non-volatile memory medium of the terminal Be stored with operating system, and also including a kind of device of the MTU of dynamic adjustment communication protocol data message transmission, this dynamically adjusts logical Believe that the device of the MTU of agreement data message transmission is used to realize a kind of MTU's of dynamic adjustment communication protocol data message transmission Method.The processor is used to provide calculating and control ability, supports the operation of whole terminal.Built-in storage in terminal is non-easy The operation of the device of the MTU of the dynamic adjustment communication protocol data message transmission in the property lost storage medium provides environment, and network connects Mouth receives the ICMP bags that network node sends for being communicated with server or network node, such as, to network node transmission Packet etc..Input unit can be the equipment such as keyboard, mouse or touch-screen.Wherein, terminal can connect network section Various personal computers, personal digital assistant, notebook computer, panel computer, smart mobile phone, the wearable smart machine of point Deng.
As shown in figure 3, in one embodiment, there is provided a kind of MTU of dynamic adjustment communication protocol data message transmission Method, the method being applied to be illustrated in terminal as shown in Figure 1, including:
Step 302, terminal is set up with server by network node and is connected.
In one embodiment, terminal can set up TCP and be connected with server, be consulted by TCP three-way handshake current logical The maximum message segment segment length MSS of letter.Afterwards, can be communicated according to the MSS for consulting between terminal and server.
Step 304, terminal receives the ICMP bags of network node transmission in the communication process with server, according to ICMP bags Obtain the MTU value of network node.
In one embodiment, if network node finds the communication abnormality between terminal and server, such as network is worked as Nodal test, less than the MSS that terminal determines with server three-way handshake, may result in the packet for receiving and surpass to the MSS of itself Go out the size of itself current MSS, then can abandon the message for receiving.Network node finds the communication between terminal and server When abnormal, ICMP bags can be sent to terminal, to inform the MTU value of terminal network node itself by ICMP bags.Terminal is received The ICMP bags of network node, the size according to ICMP bags is the MTU value that can obtain network node.
The current MTU value of step 306, more new terminal is the MTU value of network node.
In one embodiment, to get network node according to the IMCP bags that the network node that receives sends current for terminal MTU value, itself current MTU value can be updated to the current MTU value of network node, to realize the MTU value to terminal itself It is adjusted.
MTU value after step 308, terminal is set up with server and is connected again, and notification server terminal updates, so that clothes MTU value after business device updates according to terminal determines whether to be updated the current MTU value of server.
In one embodiment, after terminal has updated itself MTU value, initiate to connect to server again, in Connection Service The MTU value after server terminal renewal is may be notified that during device, server gets the MTU value after terminal updates, according to end MTU value after end updates determines the need for updating itself MTU value.
In the present embodiment, terminal is in the communication process with server by receiving the ICMP bags that network node sends, root The current MTU value of network node is obtained according to ICMP bags, the current MTU value of more new terminal is the current MTU value of network node.Terminal Set up with server again after the MTU value for having updated itself and be connected, and the MTU value after the renewal of notification server terminal, so that MTU value after server can update according to terminal determines whether to be updated the current MTU value of server.So, it is different when occurring Terminal updates itself MTU value by receiving the ICMP bags that network node sends when often, is connected by being set up with server again The MTU value of server may be updated again so that terminal and server can be carried out dynamic MTU value and update, so that in net Terminal and server can dynamically adjust itself MSS when network communication occurs abnormal so that abnormal network can recover positive normal open Letter.
Specifically, in one embodiment, MTU value after terminal updates is less than the current MTU value of server, then update clothes The current MTU value of business device is the MTU value after terminal updates.
In the present embodiment, server gets the MTU value after terminal updates, and compares the current MTU value of server and terminal more The size of the MTU value after new, if the MTU value after the current MTU value of server updates more than terminal, if server is still according to working as Preceding MTU value sends message, and network node and terminal MSS now are both less than the current MSS of server, cause network node and end End cannot receive the message of server transmission.Therefore, if the current MTU value of server is more than the MTU value after terminal renewal, It is the MTU value after terminal updates to update the current MTU value of server.And if the MTU value after terminal updates is current more than server MTU value, then show the current MSS of server less than terminal or the current MSS of network node, and server sends according to current MSS and reports Wen Shi, terminal and network node can be received.So if the MTU value after terminal updates is more than the current MTU value of server, The current MTU value of server is not adjusted then, server still sends message according to current MTU value.
In one embodiment, terminal is set up with server and is connected, including:Terminal is set up TCP and is connected with server, passes through TCP three-way handshake, determines the maximum message segment segment length MSS of present communications.In the present embodiment, terminal is in the communication with server The ICMP bags that network node sends are received in journey, including:During terminal and server communication between terminal and server When the MSS of network node is less than the MSS that three-way handshake determines, terminal receives the ICMP bags that network node sends.
In one embodiment, after terminal is set up with server and is connected, also include:Terminal sends probe data packet to clothes Business device so that network node receive after probe data packet according to probe data packet detect network it is whether abnormal and in exception to end End sends ICMP bags.
Further, in one embodiment, network node detects net after receiving probe data packet according to probe data packet Whether network is abnormal and sends ICMP bags to terminal in exception, including:Network node obtains current network according to probe data packet The MSS of communication, as MSSs of the MSS less than current network communication for detecting network node itself, then sends ICMP bags to terminal.
As shown in figure 4, in one embodiment, there is provided a kind of MTU of dynamic adjustment procotol data message transmission Method, the method being applied to be illustrated in terminal as shown in Figure 1, including:
Step 402, terminal is set up TCP and is connected by network node and server.
In one embodiment, terminal can set up TCP and be connected with server.Specifically, TCP can be initiated tri- times to server Shake hands, the MSS of present communications can be consulted by TCP three-way handshake terminal and server.Afterwards, can terminal and server it Between can according to three-way handshake determine MSS be communicated.
In one embodiment, after terminal is established with server and is connected, terminal actively can send detection number to server According to bag, after network node receives probe data packet, obtaining terminal and server according to probe data packet currently carries out network and leads to The MSS of letter, when network node detects the MSS of network node itself less than the MSS that current network communicates, then network node meeting Dropping packets.Now network node detects exception, and ICMP bags are sent to terminal.Terminal can be according to network after receiving ICMP bags The current MTU value of node adjusts the MTU value of the adjustment server of itself MTU value and adaptability.Set up in terminal and server After connection, detect whether present communications are abnormal by actively sending probe data packet, can enter to there is abnormal network in time Row recovery is processed.
In another embodiment, during terminal and server communication, terminal can also be regularly or every default Time sends probe data packet by network node to server, detects whether just current network communicates with by probe data packet Often.Due to be possible between terminal and server be not always in transmitting message, by way of actively sending probe data packet, Can in time find whether network service is normal, so that occurring abnormal network in time carries out recovery treatment.
Step 404, the MSS of network node of the terminal in the communication process of server between terminal and server is less than During the MSS that three-way handshake determines, terminal receives the ICMP bags that network node sends, and it is current to obtain network node according to ICMP bags MTU value.
In one embodiment, in the communication process of terminal and server, network node can receive terminal or server The message of transmission, according to the MSS of Receive message to present communications, if network node detect the MSS of itself less than terminal with When server carries out the MSS of network service, then can abandon and receive message, now network node finds network service exception, meeting ICMP bags are sent to terminal.Terminal receives the ICMP bags of network node, and the size according to ICMP bags is that can obtain network node Current MTU value.
The current MTU value of step 406, more new terminal is the current MTU value of network node.
In one embodiment, to get network node according to the IMCP bags that the network node that receives sends current for terminal MTU value, itself current MTU value is updated to the current MTU value of network node.
Step 408, terminal is set up TCP and is connected with server again, and the current MTU value of notification server terminal, so that MTU value after server updates according to terminal determines whether to be updated the current MTU value of server.
In one embodiment, after terminal has updated itself MTU value, TCP three-way handshake is initiated to server again, so that MTU value notification server after can terminal be updated.Server gets the MTU value after terminal updates, and is updated according to terminal MTU value afterwards determines the need for updating the MTU value of itself.
Specifically, server gets the MTU value after terminal updates, after comparing the current MTU value of server and terminal renewal MTU value size, if the current MTU value of server more than terminal update after MTU value, if server is still according to current MTU value sends message, and network node and terminal MSS now are both less than the current MSS of server, cause network node and terminal The message of server transmission cannot be received.Therefore, if the current MTU value of server is more than the MTU value after terminal updates, more The current MTU value of new demand servicing device is the MTU value after terminal updates.And if the MTU value after terminal updates is more than the current MTU of server Value, then show the current MSS of server less than terminal or the current MSS of network node, and server sends message according to current MSS When, terminal and network node can be received.So if the MTU value after terminal updates is more than the current MTU value of server, then The current MTU value of server is not adjusted, server still sends message according to current MTU value.
In the present embodiment, set up after TCP is connected in terminal and server, can be by actively sending the side of probe data packet Whether formula causes network node abnormal with the communication of active detecting current network, such that it is able to enter to there is abnormal network in time Row recovers.Network node is by sending ICMP bags to terminal so that terminal can be current to adapt to the MTU value of adjust automatically itself Network.And after terminal has adjusted the MTU value of itself, connected by initiating TCP to server again so that server can also root According to the adjustment of the MTU value self adaptation after the terminal adjustment MTU value of itself, so as to recover network proper communication.
Fig. 5 shows the timing diagram of the MTU that communication protocol data message transmission is dynamically adjusted in one embodiment.Such as Fig. 5 Shown, the detailed process of the MTU of dynamic adjustment communication protocol data message transmission is:
Terminal is set up by network node and server be connected first, in the present embodiment, terminal and by TCP three-way handshake TCP is set up with server to be connected, the MSS of present communications is consulted by terminal and server after the three-way handshake of TCP.As determined The current MTU=1500 of terminal, MSS=1460, server current MTU=1500, MSS=1460.Now network node Current MTU=1480.Further, after terminal is set up with server and is connected, terminal can be by network node actively to service Device sends probe data packet, goes to detect the MTU value of current network.Network node is sent out after receiving the probe data packet that terminal sends MTU value of the MTU value of the now current MTU=1500 of terminal, that is, network node less than terminal.Then, network node is to end End sends ICMP bags to point out MTU exceptions.Terminal receives ICMP bags, and it is 1480 to update MTU, now the MSS=1440 of terminal. After terminal has updated the MTU value of itself, terminal is initiated TCP and is connected to server again, by TCP three-way handshake terminal and service The MSS for being communicated can be again consulted between device.Specifically, terminal can during TCP connections are initiated to server MTU value after the renewal of notification server terminal, server compares the size of the MTU value after itself current MTU value and terminal renewal, If the current MTU value of server updates the MTU after the MTU value of server updates for terminal more than the MTU value after terminal renewal Value.As in this example, final determination MSS=1440 is current MSS.Afterwards, network node can normally receive terminal or The message that server sends, recovers normal network service between terminal and server.
As shown in fig. 6, in one embodiment, there is provided a kind of MTU of dynamic adjustment communication protocol data message transmission Device, including the first connection establishment module 602, ICMP bags receiver module 604, MTU update modules 606, second connection set up Module 608, wherein:
First connection establishment module 602 is used to be connected with server foundation by network node.
ICMP bags receiver module 604 is used to receive the ICMP bags that network node sends in the communication process with server, The current MTU value of network node is obtained according to ICMP bags.
It is the current MTU value of network node that MTU update modules 606 are used for the current MTU value of more new terminal.
Second connection establishment module 608 is used to be connected with server foundation again, and the MTU that notification server terminal updates Value, so that the MTU value after server updates according to terminal determines whether to be updated the current MTU value of server.
In one embodiment, MTU value after terminal updates is less than the current MTU value of server, then update server and work as Preceding MTU value is the MTU value after terminal updates.
In one embodiment, the first connection establishment module 602 is used to setting up TCP with server and is connected, by TCP tri- times Shake hands, determine the maximum message segment segment length MSS of present communications;ICMP bags receiver module 604 is used to work as terminal and server communication During network node between terminal and server MSS less than the MSS that three-way handshake determines when, receive network node and send ICMP bags.
In one embodiment, as shown in fig. 7, the device of the MTU of dynamic adjustment communication protocol data message transmission is also wrapped Include:Active probe module 601, for after the first connection establishment module 602 and server are set up and be connected, sending probe data packet To server, so that whether network node detects network extremely and when abnormal after receiving probe data packet according to probe data packet ICMP bags are sent to terminal.
Further, in one embodiment, active probe module 601 is used to make network node be obtained according to probe data packet The MSS of current network communication is taken, as MSSs of the MSS less than current network communication for detecting network node itself, is then sent out to terminal Send ICMP bags.
In one embodiment, a kind of terminal, including the dynamic adjustment communication protocols that the various embodiments described above are provided are additionally provided Discuss the device of the MTU of data message transmission.
One of ordinary skill in the art will appreciate that all or part of flow in realizing above-described embodiment method, can be The hardware of correlation is instructed to complete by computer program, described program can be stored in a non-volatile computer and can read In storage medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage is situated between Matter can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, the scope of this specification record is all considered to be.
Embodiment described above only expresses several embodiments of the invention, and its description is more specific and detailed, but simultaneously Can not therefore be construed as limiting the scope of the patent.It should be pointed out that coming for one of ordinary skill in the art Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (11)

1. a kind of method that dynamic adjusts the MTU MTU of communication protocol data message transmission, including:
Terminal is set up with server by network node and is connected;
Terminal receives the Internet Control Message Protocol ICMP bags of network node transmission, root in the communication process with server The current MTU value of network node is obtained according to the ICMP bags;
The current MTU value of more new terminal is the current MTU value of the network node;
Terminal again with server set up be connected, and notification server terminal renewal after MTU value so that the server according to MTU value after the terminal updates determines whether to be updated the current MTU value of server.
2. method according to claim 1, it is characterised in that the MTU value after terminal updates is less than the service The current MTU value of device, then it is the MTU value after the terminal updates to update the current MTU value of the server.
3. method according to claim 1, it is characterised in that the terminal is set up with server and is connected, including:The end End is set up TCP and is connected with server, by TCP three-way handshake, determines the maximum message segment segment length MSS of present communications;
The terminal receives the Internet Control Message Protocol ICMP of network node transmission in the communication process with server Bag, including:The MSS of the network node during terminal and server communication between the terminal and server holds less than three times During the MSS that hand determines, the terminal receives the ICMP bags that the network node sends.
4. method according to claim 1, it is characterised in that after the terminal and server are set up and be connected, also wrap Include:
The terminal sends probe data packet to server, so that according to spy after the network node reception probe data packet Survey packet and detect whether network is abnormal and sends ICMP bags to terminal in exception.
5. method according to claim 4, it is characterised in that the network node receives basis after the probe data packet Whether probe data packet detection network is abnormal and sends ICMP bags to terminal in exception, including:
The network node obtains the MSS that current network communicates according to the probe data packet, when detecting network node itself MSS less than current network communication MSS, then to terminal send ICMP bags.
6. a kind of dynamic adjusts the device of the MTU MTU of communication protocol data message transmission, it is characterised in that described Device includes:
First connection establishment module, is connected for being set up with server by network node;
ICMP bag receiver modules, for receiving the ICMP bags that network node sends in the communication process with server, according to institute State ICMP bags and obtain the current MTU value of network node;
MTU update modules, are the current MTU value of the network node for the current MTU value of more new terminal;
MTU value after second connection establishment module, is connected for being set up with server again, and notification server terminal updates, So that the MTU value after the server updates according to the terminal determines whether to be updated the current MTU value of server.
7. device according to claim 6, it is characterised in that the MTU value after terminal updates is less than the service The current MTU value of device, then it is the MTU value after the terminal updates to update the current MTU value of the server.
8. device according to claim 6, it is characterised in that first connection establishment module is used for and server is set up TCP is connected, and by TCP three-way handshake, determines the maximum message segment segment length MSS of present communications;The ICMP bags receiver module is used Determine less than three-way handshake in the MSS of the network node during terminal and server communication between the terminal and server MSS when, receive the ICMP bags that the network node sends.
9. device according to claim 6, it is characterised in that described device also includes:
Active probe module, for after first connection establishment module and server are set up and be connected, sending probe data packet To server, so that the network node detects whether network is abnormal simultaneously after receiving the probe data packet according to probe data packet In exception ICMP bags are sent to terminal.
10. device according to claim 9, it is characterised in that the active probe module is used to make the network node The MSS that current network communicates is obtained according to the probe data packet, when the MSS for detecting network node itself is less than current network The MSS of communication, then send ICMP bags to terminal.
A kind of 11. terminals, including the dynamic adjustment communication protocol data message transmission described in claim 6 to 10 any one The device of MTU.
CN201611217896.4A 2016-12-26 2016-12-26 The method, apparatus and terminal of the MTU of dynamic adjustment communication protocol data message transmission Active CN106789717B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611217896.4A CN106789717B (en) 2016-12-26 2016-12-26 The method, apparatus and terminal of the MTU of dynamic adjustment communication protocol data message transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611217896.4A CN106789717B (en) 2016-12-26 2016-12-26 The method, apparatus and terminal of the MTU of dynamic adjustment communication protocol data message transmission

Publications (2)

Publication Number Publication Date
CN106789717A true CN106789717A (en) 2017-05-31
CN106789717B CN106789717B (en) 2019-08-16

Family

ID=58926034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611217896.4A Active CN106789717B (en) 2016-12-26 2016-12-26 The method, apparatus and terminal of the MTU of dynamic adjustment communication protocol data message transmission

Country Status (1)

Country Link
CN (1) CN106789717B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566173A (en) * 2017-08-29 2018-01-09 深圳天珑无线科技有限公司 Mobile terminal sets the method and device of MTU
CN112866133A (en) * 2019-11-26 2021-05-28 华为技术有限公司 Method and device for acquiring MSS (maximum segment size) in common
CN113271556A (en) * 2021-04-07 2021-08-17 维沃移动通信有限公司 Session message sending method and device and electronic equipment
CN115022252A (en) * 2022-05-31 2022-09-06 青岛海信移动通信技术股份有限公司 Method and equipment for configuring maximum length of transmission data packet
CN115022419A (en) * 2022-06-30 2022-09-06 武汉思普崚技术有限公司 Method, device and storage medium for automatically adjusting MSS
CN115190045A (en) * 2022-07-06 2022-10-14 南京云柜网络科技有限公司 Express cabinet system service monitoring method and device, electronic equipment and storage medium
WO2023173876A1 (en) * 2022-03-15 2023-09-21 深圳市广和通无线股份有限公司 Data communication method and apparatus, device and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909503A (en) * 2005-08-05 2007-02-07 华为技术有限公司 Method for detecting maximal transmission unit of path
CN101150520A (en) * 2007-11-02 2008-03-26 杭州华三通信技术有限公司 Method and device for adjusting path maximum transfer unit
CN103475596A (en) * 2013-08-30 2013-12-25 广州市动景计算机科技有限公司 MTU (Maximum Transmission Unit)-based middleware and mobile terminal data transmission method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909503A (en) * 2005-08-05 2007-02-07 华为技术有限公司 Method for detecting maximal transmission unit of path
CN101150520A (en) * 2007-11-02 2008-03-26 杭州华三通信技术有限公司 Method and device for adjusting path maximum transfer unit
CN103475596A (en) * 2013-08-30 2013-12-25 广州市动景计算机科技有限公司 MTU (Maximum Transmission Unit)-based middleware and mobile terminal data transmission method and system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566173A (en) * 2017-08-29 2018-01-09 深圳天珑无线科技有限公司 Mobile terminal sets the method and device of MTU
CN112866133A (en) * 2019-11-26 2021-05-28 华为技术有限公司 Method and device for acquiring MSS (maximum segment size) in common
WO2021103822A1 (en) * 2019-11-26 2021-06-03 华为技术有限公司 Method for acquiring common maximum segment size (mss), and device
CN112866133B (en) * 2019-11-26 2023-07-28 华为技术有限公司 Method and device for acquiring MSS (maximum segment size)
CN113271556A (en) * 2021-04-07 2021-08-17 维沃移动通信有限公司 Session message sending method and device and electronic equipment
WO2023173876A1 (en) * 2022-03-15 2023-09-21 深圳市广和通无线股份有限公司 Data communication method and apparatus, device and medium
CN115022252A (en) * 2022-05-31 2022-09-06 青岛海信移动通信技术股份有限公司 Method and equipment for configuring maximum length of transmission data packet
CN115022252B (en) * 2022-05-31 2024-04-09 青岛海信移动通信技术有限公司 Method and equipment for configuring maximum length of transmission data packet
CN115022419A (en) * 2022-06-30 2022-09-06 武汉思普崚技术有限公司 Method, device and storage medium for automatically adjusting MSS
CN115022419B (en) * 2022-06-30 2024-02-20 武汉思普崚技术有限公司 Method, device and storage medium for automatically adjusting MSS
CN115190045A (en) * 2022-07-06 2022-10-14 南京云柜网络科技有限公司 Express cabinet system service monitoring method and device, electronic equipment and storage medium
CN115190045B (en) * 2022-07-06 2024-04-09 南京云柜网络科技有限公司 Monitoring method and device for express cabinet system service, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN106789717B (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN106789717A (en) Dynamic adjusts method, device and the terminal of the MTU of communication protocol data message transmission
US11330469B2 (en) Increasing access point throughput by exceeding A-MPDU buffer size limitation in a 802.11 compliant station
JP6290397B2 (en) Data processing method and apparatus
US20040179546A1 (en) System and method for interfacing with a management system
US10355961B2 (en) Network traffic capture analysis
US9832276B2 (en) Dynamic disabling of multi-step transport layer handshake spoofing in performance enhancing proxies (PEPs) in broadband networks
WO2007044986A2 (en) System and method for remote monitoring in a wireless network
US20060182143A1 (en) System and method for filtering communications packets on electronic devices
CN102056227B (en) Donor evolved node B, relay node and communication method thereof
US20090037587A1 (en) Communication system, communication apparatus, communication method, and program
JP2009525708A (en) Protocol link layer
JP2013126244A (en) Packet communication device and method
JP2006211632A (en) Detection method of crc inspection error out of range
TWI580226B (en) Method for determining maximum segment size
WO2013097471A1 (en) Method, device and system for handling network failures
CN105359467A (en) Methods and systems for transmitting packets through aggregated end-to-end connection
CN105579989A (en) Methods and systems for transmitting packets through aggregated end-to-end connection
CN114629822A (en) Link detection method and device, electronic equipment and storage medium
CN107154917A (en) Data transmission method and server
CN111385263B (en) Method for maintaining data packet header compression information and communication equipment
JP2007520148A (en) Data frame retransmission method and network device using the method
EP4162654A1 (en) Diagnosing intermediary network nodes
WO2024032742A1 (en) Service processing method and apparatus, device, storage medium, and program product
EP4181431A1 (en) Service transmission method and apparatus, network device, and storage medium
JP3961415B2 (en) Protocol defect automatic detection method and protocol defect automatic detection device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant