CN106789717B - The method, apparatus and terminal of the MTU of dynamic adjustment communication protocol data message transmission - Google Patents

The method, apparatus and terminal of the MTU of dynamic adjustment communication protocol data message transmission Download PDF

Info

Publication number
CN106789717B
CN106789717B CN201611217896.4A CN201611217896A CN106789717B CN 106789717 B CN106789717 B CN 106789717B CN 201611217896 A CN201611217896 A CN 201611217896A CN 106789717 B CN106789717 B CN 106789717B
Authority
CN
China
Prior art keywords
terminal
server
mtu value
network node
current
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
CN201611217896.4A
Other languages
Chinese (zh)
Other versions
CN106789717A (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 the methods of the MTU of dynamic adjustment communication protocol data message transmission a kind of, comprising: terminal establishes connection by network node and server;Terminal receives the Internet Control Message Protocol ICMP packet of network node transmission in the communication process with server, obtains the current MTU value of network node according to the ICMP packet;The current MTU value of more new terminal is the current MTU value of the network node;Terminal establishes connection, and the updated MTU value of tell the server terminal with server again, so that the server determines whether to be updated the current MTU value of server according to the updated MTU value of the terminal.Using this method, the ICMP packet sent when occurring abnormal by receiving network node, terminal and server can be carried out dynamic MTU value and update, so that terminal and server can dynamically adjust itself MSS, can restore network communication in Network Abnormal.In addition, additionally providing the device of the MTU of dynamic adjustment communication protocol data message transmission a kind of.

Description

The method, apparatus and terminal of the MTU of dynamic adjustment communication protocol data message transmission
Technical field
The present invention relates to fields of communication technology, adjust communication protocol data message transmission MTU more particularly to a kind of dynamic Method, apparatus and terminal.
Background technique
MTU (Maximum Transmission Unit, maximum transmission unit) refers on a kind of a certain layer of communication protocol The maximum data packet size that face can pass through.MSS (Maximum Segment Size) maximum message segment segment length refers to that TCP connects It connects when establishing, the maximum data length that each message segment can be accepted when receiving-transmitting sides negotiation communication.In terminal and server When establishing TCP connection, both ends all only can check that the MTU of oneself can determine the MSS of present communications by TCP three-way handshake, Wherein, the packet header the packet header MSS=MTU-IP-TCP.
In communication process, if some network nodes (such as the wireless network access point AP or gateway currently connected Deng) MSS be less than the MSS that three-way handshake determines, the MSS that will lead to the data packet received has exceeded itself current MSS's Size can then abandon the message received.It will lead in this way and send data failure between server and terminal, so as to cause network Communication occurs abnormal.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide one kind and be adapted dynamically MTU to avoid network communication appearance The method, apparatus and terminal of the MTU of abnormal dynamic adjustment communication protocol data message transmission.
A kind of method of the maximum transmission unit MTU of dynamic adjustment communication protocol data message transmission, comprising:
Terminal establishes connection by network node and server;
Terminal receives the Internet Control Message Protocol ICMP of network node transmission in the communication process with server Packet obtains the current MTU value of network node according to the ICMP packet;
The current MTU value of more new terminal is the current MTU value of the network node;
Terminal establishes connection, and the updated MTU value of tell the server terminal with server again, so that the server Determine whether to be updated the current MTU value of server according to the updated MTU value of the terminal.
A kind of device of the maximum transmission unit MTU of dynamic adjustment communication protocol data message transmission, described device include:
First connection establishment module, for establishing connection by network node and server;
ICMP packet receiving module, the ICMP packet sent for receiving network node in the communication process with server, root The current MTU value of network node is obtained according to the ICMP packet;
MTU update module, the MTU value current for more new terminal are the current MTU value of the network node;
After second connection establishment module establishes connection for terminal with server again, and tell the server terminal updates MTU value so that the server according to the updated MTU value of the terminal determine whether to the current MTU value of server carry out It updates.
A kind of terminal, the device of the MTU including above-mentioned dynamic adjustment communication protocol data message transmission.
The method, apparatus and terminal of the MTU of above-mentioned dynamic adjustment communication protocol data message transmission, terminal with server Communication process in the ICMP packet that is sent by receiving network node, according to the current MTU value of ICMP packet acquisition 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 Connection, and the updated MTU value of tell the server terminal are established, so that server can be determined according to the updated MTU value of terminal Whether the current MTU value of server is updated.In this way, terminal is by receiving network node transmission when occurring abnormal ICMP packet update itself MTU value, by established again with server connection 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 communication occurs abnormal Dynamic adjusts itself MSS, and abnormal network is allowed to restore normal communication.
Detailed description of the invention
Fig. 1 is the applied environment figure that the method for MTU of communication protocol data message transmission is dynamically adjusted in one embodiment;
Fig. 2 is the internal structure chart of terminal in one embodiment;
Fig. 3 is the flow chart that the method for MTU of communication protocol data message transmission is dynamically adjusted in one embodiment;
Fig. 4 is the flow chart that the method for MTU of communication protocol data message transmission is dynamically adjusted in another embodiment;
Fig. 5 is the timing diagram that the method for MTU of communication protocol data message transmission is dynamically adjusted in one embodiment;
Fig. 6 is the structural block diagram that the device of MTU of communication protocol data message transmission is dynamically adjusted in one embodiment;
Fig. 7 is the structural block diagram that the device of MTU of communication protocol data message transmission is dynamically adjusted in another embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right 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 dynamic adjustment communication protocol data message provided by the embodiment of the present invention can be applied to such as Fig. 1 Shown in environment.Refering to what is shown in Fig. 1, terminal 102 is established connection with server 106 and is communicated by network node 104, 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, determined when the MSS of network node 104 is less than terminal 102 with 106 three-way handshake of server MSS when, will lead to and abandon the message that receives, that is, send data failure between terminal 102 and server 106.At this point, Network node 104 can to terminal 102 send ICMP packet, ICMP (Internet Control Message Protocol, Internet Control Message Protocol) be TCP/IP protocol suite a sub-protocol, between IP host, router transmit control Message processed.Terminal 102 can get the current MTU value of network node and more new terminal after receiving ICMP packet according to ICMP packet The MTU value of itself.Then, terminal 102 establishes connection to server 106 again, by the updated MTU value tell the server of terminal 106 so that server 106 determined the need for according to the updated MTU value of terminal 102 to the current MTU value of server 106 into Row updates.Therefore, when data transmission exception between terminal 102 and server 106, dynamically more 102 kimonos of new terminal can be passed through The MTU value of business device 106 makes data transmission restore normal.
Fig. 2 is the schematic diagram of internal structure of terminal in one embodiment.The terminal includes the place connected by system bus Manage device, non-volatile memory medium, network interface, built-in storage, input unit.The wherein non-volatile memory medium of the terminal It is stored with operating system, further includes the device of the MTU of dynamic adjustment communication protocol data message transmission a kind of, which adjusts logical Believe the device of the MTU of agreement data message transmission for realizing a kind of MTU of dynamic adjustment communication protocol data message transmission Method.The processor supports the operation of entire terminal for providing calculating and control ability.Built-in storage in terminal is non-easy The operation of the device of the MTU of dynamic adjustment communication protocol data message transmission in the property lost storage medium provides environment, and network connects Mouth such as receives the ICMP packet that network node is sent for being communicated with server or network node, to network node transmission Data packet etc..Input unit can be the equipment such as keyboard, mouse or touch screen.Wherein, terminal, which can be, can connect network section The various personal computers of point, personal digital assistant, laptop, tablet computer, smart phone, wearable smart machine Deng.
As shown in figure 3, in one embodiment, providing a kind of MTU of dynamic adjustment communication protocol data message transmission Method, this method be applied to terminal as shown in Figure 1 in be illustrated, comprising:
Step 302, terminal establishes connection by network node and server.
In one embodiment, terminal can establish TCP connection with server, be consulted by TCP three-way handshake current logical The maximum message segment segment length MSS of letter.Later, it can be communicated according to the MSS consulted between terminal and server.
Step 304, terminal receives the ICMP packet of network node transmission in the communication process with server, according to ICMP packet Obtain the MTU value of network node.
In one embodiment, if network node finds the communication abnormality between terminal and server, such as work as network The nodal test MSS determining less than terminal and server three-way handshake to the MSS of itself, it is super to will lead to the data packet received The size for having gone out itself current MSS, then can abandon the message received.Network node finds the communication between terminal and server When abnormal, ICMP packet can be sent to terminal, to inform the MTU value of terminal network node itself by ICMP packet.Terminal receives The ICMP packet of network node, the MTU value of network node can be obtained according to the size of ICMP packet.
Step 306, the current MTU value of more new terminal is the MTU value of network node.
In one embodiment, it is current according to the IMCP packet that the network node that receives is sent to get network node for terminal MTU value, itself current MTU value can be updated to the current MTU value of network node, to realize to the MTU value of terminal itself It is adjusted.
Step 308, terminal establishes connection, and the updated MTU value of tell the server terminal with server again, so that clothes Business device determines whether to be updated the current MTU value of server according to the updated MTU value of terminal.
In one embodiment, it after terminal has updated itself MTU value, initiates the connection to server, is serviced in connection again It may be notified that the updated MTU value of server terminal during device, server gets the updated MTU value of terminal, according to end Updated MTU value is held to determine the need for updating itself MTU value.
In the present embodiment, the ICMP packet that terminal is sent in the communication process with server by receiving network node, root The current MTU value of network node is obtained according to ICMP packet, the current MTU value of more new terminal is the current MTU value of network node.Terminal Establish connection, and the updated MTU value of tell the server terminal with server again after the MTU value for having updated itself, so that Server can determine whether to be updated the current MTU value of server according to the updated MTU value of terminal.In this way, different when occurring Terminal updates itself MTU value by receiving the ICMP packet of network node transmission when often, by establishing connection 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, and abnormal network is allowed to restore positive normal open Letter.
Specifically, in one embodiment, when the updated MTU value of terminal is less than the current MTU value of server, then clothes are updated The business current MTU value of device is the updated MTU value of terminal.
In the present embodiment, server gets the updated MTU value of terminal, compares the current MTU value of server and terminal more The size of MTU value after new, if the current MTU value of server is greater than the updated MTU value of terminal, if server is still according to working as Preceding MTU value sends message, and the MSS of network node and terminal at this time is both less than the current MSS of server, leads to network node and end End can not receive the message of server transmission.Therefore, if the current MTU value of server is greater than the updated MTU value of terminal, The update current MTU value of server is the updated MTU value of terminal.And if the updated MTU value of terminal is current greater than server MTU value then shows that the current MSS of the server MSS current less than terminal or network node, server send according to current MSS and report Wen Shi, terminal and network node can receive.So if the updated MTU value of terminal is greater 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 and server establish connection, comprising: terminal and server establish TCP connection, pass 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 packet that network node is sent is received in journey, comprising: 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 packet that network node is sent.
In one embodiment, terminal and server are established after connection, further includes: terminal sends probe data packet to clothes Business device, so as to whether detect network extremely and when abnormal to end according to probe data packet after network node reception probe data packet End sends ICMP packet.
Further, in one embodiment, net is detected according to probe data packet after network node reception probe data packet Whether network is abnormal and sends ICMP packet to terminal when abnormal, comprising: network node obtains current network according to probe data packet The MSS of communication, when the MSS for detecting network node itself is less than the MSS that current network communicates, then to terminal transmission ICMP packet.
As shown in figure 4, in one embodiment, providing a kind of MTU of dynamic adjustment network protocol data message transmission Method, this method be applied to terminal as shown in Figure 1 in be illustrated, comprising:
Step 402, terminal establishes TCP connection by network node and server.
In one embodiment, terminal can establish TCP connection with server.Specifically, TCP can be initiated three times to server It shakes hands, the MSS of present communications can be consulted by TCP three-way handshake terminal and server.Later, can terminal and server it Between can according to three-way handshake determine MSS be communicated.
In one embodiment, after terminal and server establish connection, terminal actively can send detection number to server According to packet, after network node receives probe data packet, terminal is obtained according to probe data packet and server 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.Network node detects exception at this time, sends ICMP packet to terminal.Terminal can be according to network after receiving ICMP packet The current MTU value of node adjusts the MTU value of the adjustment server of itself MTU value and adaptability.It is established in terminal and server After connection, by active transmission probe data packet to detect whether present communications abnormal, can in time to occur abnormal network into Row recovery processing.
In another embodiment, during terminal and server communication, terminal can also be periodically or every default Time sends probe data packet to server by network node, whether just to detect current network communication by probe data packet Often.Due between terminal and server be possible to be not always in transmitting message, by way of active transmission probe data packet, Can find whether network communication is normal in time, so that occurring abnormal network in time carries out recovery processing.
Step 404, the MSS of network node of the terminal in the communication process of server between terminal and server is less than When the MSS that three-way handshake determines, terminal receives the ICMP packet that network node is sent, current according to ICMP packet acquisition network node 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 itself MSS be less than terminal with When server carries out the MSS of network communication, then it can abandon and receive message, the network communication of network node discovery at this time is abnormal, meeting ICMP packet is sent to terminal.Terminal receives the ICMP packet of network node, and network node can be obtained according to the size of ICMP packet Current MTU value.
Step 406, the current MTU value of more new terminal is the current MTU value of network node.
In one embodiment, it is current according to the IMCP packet that the network node that receives is sent to get network node for terminal MTU value, itself current MTU value is updated to the current MTU value of network node.
Step 408, terminal establishes TCP connection, and the MTU value that tell the server terminal is current with server again, so that Server determines whether to be updated the current MTU value of server according to the updated MTU value of terminal.
In one embodiment, after terminal has updated itself MTU value, TCP three-way handshake is initiated to server again, thus It can be by the updated MTU value tell the server of terminal.Server gets the updated MTU value of terminal, is updated according to terminal MTU value afterwards determines the need for updating the MTU value of itself.
Specifically, server gets the updated MTU value of terminal, after comparing the current MTU value of server and terminal update MTU value size, if the current MTU value of server be greater than the updated MTU value of terminal, if server is still according to current MTU value sends message, and the MSS of network node and terminal at this time is both less than the current MSS of server, leads to network node and terminal The message of server transmission can not be received.Therefore, if the current MTU value of server is greater than the updated MTU value of terminal, more The current MTU value of new demand servicing device is the updated MTU value of terminal.And if the updated MTU value of terminal is greater than the current MTU of server Value then shows that the current MSS of the server MSS current less than terminal or network node, server send message according to current MSS When, terminal and network node can receive.So if the updated MTU value of terminal is greater 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, after terminal and server establish TCP connection, the side of active transmission probe data packet can be passed through Whether formula communicate network node can with active detecting current network abnormal, so as in time to occur abnormal network into Row restores.Network node is by sending ICMP packet to terminal, so that terminal can be current to adapt to the MTU value of adjust automatically itself Network.And after terminal has adjusted itself MTU value, by initiating TCP connection to server again, so that server can also root According to the MTU value of the adaptive adjustment of terminal MTU value adjusted itself, to restore network normal communication.
Fig. 5 shows the timing diagram that the MTU of communication protocol data message transmission is dynamically adjusted in one embodiment.Such as Fig. 5 Shown, dynamic adjusts the detailed process of the MTU of communication protocol data message transmission are as follows:
Terminal passes through network node first and server establishes connection, in the present embodiment, terminal and passes through TCP three-way handshake TCP connection is established with server, the MSS of present communications is consulted by terminal and server after the three-way handshake of TCP.Such as determination The current MTU=1500 of terminal, MSS=1460, server current MTU=1500, MSS=1460.Network node at this time Current MTU=1480.Further, after terminal and server establish connection, terminal can be by network node actively to service Device sends probe data packet, goes the MTU value of detection current network.Network node is sent out after receiving the probe data packet that terminal is sent The current MTU=1500 of existing terminal, that is, the MTU value of network node are less than the MTU value of terminal.Then, network node is to end End sends ICMP packet to prompt MTU abnormal.Terminal receives ICMP packet, and updating MTU is 1480, at this time the MSS=1440 of terminal. After terminal has updated the MTU value of itself, terminal initiates TCP connection to server again, passes through TCP three-way handshake terminal and service The MSS communicated can be consulted between device again.Specifically, terminal can during initiating TCP connection to server The updated MTU value of tell the server terminal, server compare the size of itself current MTU value and the updated MTU value of terminal, If the current MTU value of server is greater than the updated MTU value of terminal, the MTU value for updating server is the updated MTU of terminal Value.It is final to determine that MSS=1440 is current MSS in this example.Later, network node can normally receive terminal or The message that server is sent, restores normal network communication between terminal and server.
As shown in fig. 6, in one embodiment, providing a kind of MTU of dynamic adjustment communication protocol data message transmission Device, including the first connection establishment module 602, ICMP packet receiving module 604, MTU update module 606, second connection establish Module 608, in which:
First connection establishment module 602 is used to establish connection by network node and server.
The ICMP packet that ICMP packet receiving module 604 is sent for receiving network node in the communication process with server, The current MTU value of network node is obtained according to ICMP packet.
The MTU value current for more new terminal of MTU update module 606 is the current MTU value of network node.
Second connection establishment module 608 with server for establishing connection, and the MTU that tell the server terminal updates again Value, so that server determines whether to be updated the current MTU value of server according to the updated MTU value of terminal.
In one embodiment, when the updated MTU value of terminal be less than the current MTU value of server, then update server and work as Preceding MTU value is the updated MTU value of terminal.
In one embodiment, the first connection establishment module 602 is used to establish TCP connection with server, three times by TCP It shakes hands, determines the maximum message segment segment length MSS of present communications;ICMP packet receiving module 604 is used to work as terminal and server communication When the MSS of the network node between terminal and server is less than the MSS that three-way handshake determines in the process, receives network node and send ICMP packet.
In one embodiment, as shown in fig. 7, the device of the MTU of dynamic adjustment communication protocol data message transmission also wraps It includes: active probe module 601, for sending probe data packet after the first connection establishment module 602 establishes connection with server To server, whether so that network node receives after probe data packet, to detect network according to probe data packet abnormal and when abnormal ICMP packet is sent to terminal.
Further, in one embodiment, active probe module 601 is for obtaining network node according to probe data packet The MSS for taking current network to communicate, when the MSS for detecting network node itself is less than the MSS that current network communicates, then to terminal hair Send ICMP packet.
In one embodiment, a kind of terminal is additionally provided, adjusts communication protocols including the dynamic that the various embodiments described above provide Discuss the device of the MTU of data message transmission.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read In storage medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage is situated between Matter can be magnetic disk, CD, read-only memory (Read-Only Memory, ROM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies 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, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (7)

1. a kind of method of the maximum transmission unit MTU of dynamic adjustment communication protocol data message transmission, comprising:
Terminal establishes TCP connection by network node and server, by TCP three-way handshake, determines the maximum report of present communications Literary segment length MSS, is communicated according to the MSS determined;
Terminal is in the communication process with server, when network node detects that the MSS of itself is less than terminal and determines with server When the MSS got well, the Internet Control Message Protocol ICMP packet that network node is sent is received, network is obtained according to the ICMP packet The current MTU value of node;
The current MTU value of more new terminal is the current MTU value of the network node;
Terminal establishes connection, and the updated MTU value of tell the server terminal with server again so that the server according to The updated MTU value of terminal determines whether to be updated the current MTU value of server, so that terminal and server can Realize that the dynamic of MTU value updates;
When the updated MTU value of the terminal be less than the current MTU value of the server, then update the current MTU value of the server For the updated MTU value of the terminal, when the updated MTU value of the terminal is greater than the current MTU value of server, then not to service The current MTU value of device is adjusted.
2. the method according to claim 1, wherein also being wrapped after the terminal and server establish connection It includes:
The terminal sends probe data packet to server, so that according to spy after the network node reception probe data packet Whether measured data packet detection network is abnormal and sends ICMP packet to terminal when abnormal.
3. according to the method described in claim 2, it is characterized in that, the network node receives basis after the probe data packet Whether probe data packet detection network is abnormal and sends ICMP packet to terminal when abnormal, comprising:
The network node obtains the MSS of current network communication according to the probe data packet, when detecting network node itself MSS be less than current network communication MSS, then to terminal send ICMP packet.
4. a kind of device of the maximum transmission unit MTU of dynamic adjustment communication protocol data message transmission, which is characterized in that described Device includes:
First connection establishment module, by TCP three-way handshake, is determined for establishing TCP connection by network node and server The maximum message segment segment length MSS of present communications, is communicated according to the MSS determined;
ICMP packet receiving module, in the communication process with server, when network node detects that the MSS of itself is less than eventually When the MSS that end is determined with server, the ICMP packet that network node is sent is received, network node is obtained according to the ICMP packet and is worked as Preceding MTU value;
MTU update module, the MTU value current for more new terminal are the current MTU value of the network node;
Second connection establishment module, for connection, and the updated MTU value of tell the server terminal to be established with server again, So that the server determines whether to be updated the current MTU value of server according to the updated MTU value of the terminal, so that Terminal and server can realize that the dynamic of MTU value updates;
When the updated MTU value of the terminal be less than the current MTU value of the server, then update the current MTU value of the server For the updated MTU value of the terminal, when the updated MTU value of the terminal is greater than the current MTU value of server, then not to service The current MTU value of device is adjusted.
5. device according to claim 4, which is characterized in that described device further include:
Active probe module, for sending probe data packet after first connection establishment module and server establish connection To server, so that whether abnormal simultaneously according to probe data packet detection network after the network node reception probe data packet ICMP packet is sent to terminal when abnormal.
6. device according to claim 5, which is characterized in that the active probe module is for making the network node root The MSS that current network communication is obtained according to the probe data packet, when detecting that the MSS of network node itself is logical less than current network The MSS of letter then sends ICMP packet to terminal.
7. a kind of terminal, including the adjustment communication protocol data message transmission of dynamic described in claim 4 to 6 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 CN106789717A (en) 2017-05-31
CN106789717B true 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)

Families Citing this family (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
CN112866133B (en) * 2019-11-26 2023-07-28 华为技术有限公司 Method and device for acquiring MSS (maximum segment size)
CN113271556B (en) * 2021-04-07 2023-04-11 维沃移动通信有限公司 Session message sending method and device and electronic equipment
CN114697269A (en) * 2022-03-15 2022-07-01 深圳市广和通无线股份有限公司 Data communication method, apparatus, device and medium
CN115022252B (en) * 2022-05-31 2024-04-09 青岛海信移动通信技术有限公司 Method and equipment for configuring maximum length of transmission data packet
CN115022419B (en) * 2022-06-30 2024-02-20 武汉思普崚技术有限公司 Method, device and storage medium for automatically adjusting MSS
CN115190045B (en) * 2022-07-06 2024-04-09 南京云柜网络科技有限公司 Monitoring method and device for express cabinet system service, electronic equipment and storage 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

Also Published As

Publication number Publication date
CN106789717A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106789717B (en) The method, apparatus and terminal of the MTU of dynamic adjustment communication protocol data message transmission
CN103812728B (en) A kind of network diagnosis method, system and router
CN105635084B (en) Terminal authentication apparatus and method
CN102014416B (en) Method and system for bidirectional detection of connection
US10355961B2 (en) Network traffic capture analysis
EP3161653B1 (en) Dynamic disabling of multi-step transport layer handshake spoofing in performance enhancing proxies (peps) in broadband networks
JP2016526863A (en) Data processing method and apparatus
US8024483B1 (en) Selective compression for network connections
WO2019101208A1 (en) Transmission rate adjustment method, node device and server
TWI580226B (en) Method for determining maximum segment size
CN114629822A (en) Link detection method and device, electronic equipment and storage medium
JP2010213037A (en) Communication apparatus
CN106656966A (en) Method and device for intercepting service processing request
Fu et al. Performance comparison of congestion control strategies for multi-path TCP in the NORNET testbed
US10594584B2 (en) Network analysis and monitoring tool
CN114071544B (en) Network testing method and device and electronic equipment
CN1980232A (en) Telnet session maitenance method, telnet proxy and computer network system
US8447878B2 (en) Receiving apparatus, transmitting apparatus, communication system, and method of detecting buffer setting of relay server
EP4162654A1 (en) Diagnosing intermediary network nodes
CN104869118B (en) A kind of method and system for realizing DDoS defence based on dynamic tunneling technique
CN107666465B (en) Data transmission method and device
JP2018142927A (en) System and method for addressing malware unauthorized communication
EP2204953A1 (en) Method, apparatus and system for realizing dynamic correlation of control plane traffic rate
JP2013243534A (en) Delay time evaluation device and method for evaluating delay time
JP2004200773A (en) Automatic detecting method for protocol nonconformity and automatic detecting apparatus for protocol nonconformity

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