A method of path maximum transmission unit (MTU) discovery and related devices

By generating a twin IPv6 network and determining the target PMTU, potential problems and risks in the PMTU discovery process in IPv6 networks are resolved, improving network performance and security.

CN117061625BActive Publication Date: 2026-07-21CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER
Filing Date
2023-08-03
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

The potential problems and risks arising from the separation of the PMTU discovery process from segmentation and length limits in IPv6 networks, including ICMPv6 message storms and DoS attack risks, have not been fundamentally resolved by existing technologies.

Method used

Generate a twin IPv6 network corresponding to the IPv6 network, inject network device configuration information and activate the same routing protocol and parameters, determine the MTU under different routing policies by detecting ICMPv6 messages, select the target MTU and send it to the IPv6 network.

Benefits of technology

Improve network performance, reduce potential problems and risks, avoid ICMPv6 message storms, eliminate connection black holes, improve network resource utilization, and prevent DoS attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117061625B_ABST
    Figure CN117061625B_ABST
Patent Text Reader

Abstract

The application discloses a path maximum transmission unit detection method and related equipment. In the method, a network is an IPv6 network, network nodes corresponding to the network are generated according to network detection data, and a twin network of the network is established. Configuration information of network equipment in the network is injected into corresponding network equipment in the twin network, a routing protocol corresponding to the network is activated, and the same routing parameters and system parameters as the network are configured. ICMPv6 messages obtained after sending test messages are detected to determine MTUs of various routes under different routing strategies. Multiple MTUs are configured in the twin network, and a target MTU is selected from the multiple MTUs. The target MTU and a target route corresponding to the target MTU are sent to the network as a target PMTU. Potential problems and risks in message transmission of the IPv6 network are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of network transmission technology, and in particular to a method and related equipment for detecting the maximum transmission unit of a path. Background Technology

[0002] IPv6 networks have been deployed on a large scale and have become the information infrastructure for the next generation of the Internet. However, it is difficult to balance the efficiency and security of message transmission in IPv6 networks.

[0003] In related technologies, to improve packet transmission efficiency in IPv6 networks and simplify the functions of packet forwarding devices, packet forwarding network devices in IPv6 networks do not segment excessively long packets. Instead, they directly discard the packets and notify the packet sender of the reason for discarding and the supported packet length via ICMPv6 messages. The packet sender will segment and retransmit the packets according to the received packet length supported by the network device. When the packet reaches the packet receiver, the receiver reassembles the packet. Whether or not to segment the packet depends on the maximum packet length supported by the network device interface on the route or the defined packet length, but packet segmentation and reassembly are the responsibility of the packet sender and receiver. This separation between packet segmentation decision-making and segmentation behavior introduces potential risks to IPv6 networks. For example, ICMPv6 message storms may severely impact network performance or expose the network to the risk of DoS attacks.

[0004] Therefore, the PMTU discovery process in related technologies is considered segment by segment from a local perspective, without fundamentally solving the potential problems and risks caused by the PMTU discovery process in IPv6 networks and the separation of segmentation and length limits. Summary of the Invention

[0005] The exemplary embodiments of this application provide a method and related equipment for detecting the maximum transmission unit of a path, in order to reduce potential problems and risks in packet transmission in IPv6 networks.

[0006] According to a first aspect of an exemplary embodiment, a method for detecting the maximum transmission unit of a path is provided, the method comprising at least the following steps:

[0007] Based on the detection data of the IPv6 network, generate network nodes corresponding to the IPv6 network and establish a twin IPv6 network of the IPv6 network.

[0008] Inject the configuration information of network devices in the IPv6 network into the corresponding network devices in the twin IPv6 network, and activate the routing protocol corresponding to the IPv6 network, and configure the same routing parameters and system parameters as the IPv6 network.

[0009] The MTU of each route under different routing policies is determined by detecting the ICMPv6 messages obtained after sending test messages;

[0010] Configure multiple MTUs in a twin IPv6 network and select a target MTU from among the multiple MTUs;

[0011] Send the target MTU and the target route corresponding to the target MTU to the IPv6 network as the target PMTU.

[0012] According to a second aspect of an exemplary embodiment, a detection device for a path maximum transmission unit is provided, the device comprising:

[0013] The generation unit is used to: generate network nodes corresponding to the IPv6 network based on the probe data of the IPv6 network, and establish a twin IPv6 network of the IPv6 network.

[0014] The configuration unit is used to: inject the configuration information of network devices in the IPv6 network into the corresponding network devices in the twin IPv6 network, and activate the routing protocol corresponding to the IPv6 network, and configure the same routing parameters and system parameters as the IPv6 network;

[0015] The determination unit is used to: determine the MTU of each route under different routing policies by detecting the ICMPv6 messages obtained after sending test messages;

[0016] The selection unit is used to configure multiple MTUs in a twin IPv6 network and select a target MTU from among the multiple MTUs;

[0017] The transmission unit is used to send the target MTU and the target route corresponding to the target MTU to the IPv6 network as the target PMTU.

[0018] According to a third aspect of an exemplary embodiment, a path maximum transmission unit detection device is provided, including a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the computer program is executed by the processor, the path maximum transmission unit detection method as described in the first aspect is implemented.

[0019] According to a fourth aspect of an exemplary embodiment, a computer storage medium is provided, which stores computer program instructions that, when executed on a computer, cause the computer to perform a path maximum transmission unit detection method as described in the first aspect.

[0020] The technical effects of any of the implementation methods in the second to fourth aspects can be found in the technical effects of the corresponding implementation methods in the first aspect, and will not be repeated here.

[0021] In this embodiment, firstly, based on the probe data of the IPv6 network, a network node corresponding to the IPv6 network is generated, and a twin IPv6 network is established. Then, the configuration information of the network devices in the IPv6 network is injected into the corresponding network devices in the twin IPv6 network, and the routing protocol corresponding to the IPv6 network is activated, and the same routing parameters and system parameters as the IPv6 network are configured. This design ensures that the configuration and parameters of the twin IPv6 network are identical to those of the IPv6 network, thus enabling the twin IPv6 network to perform the functions of the IPv6 network. Therefore, by detecting the ICMPv6 messages obtained after sending test packets, the MTU of each route under different routing policies is determined. Multiple MTUs are configured and verified in the twin IPv6 network, and a target MTU is selected from among the multiple MTUs. The target MTU and its corresponding target route are sent to the IPv6 network as the target PMTU. The verified target PMTU is implemented in the IPv6 network, thereby improving network performance and reducing potential problems and risks in IPv6 network packet transmission. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 An exemplary illustration shows an application scenario diagram for discovering PMTUs provided in an embodiment of this application;

[0024] Figure 2 An exemplary flowchart illustrates a method for detecting the maximum transmission unit of a path provided in an embodiment of this application;

[0025] Figure 3 An exemplary schematic diagram of a PMTU optimization system provided in an embodiment of this application is shown;

[0026] Figure 4 A schematic diagram illustrating an example of PMTU optimization provided in an embodiment of this application is shown;

[0027] Figure 5 An exemplary schematic diagram of a path maximum transmission unit detection device provided in an embodiment of this application is shown;

[0028] Figure 6 An exemplary schematic diagram of an electronic device provided in an embodiment of this application is shown. Detailed Implementation

[0029] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0030] For ease of understanding, the terms used in the embodiments of this application are explained below:

[0031] (1) Maximum transmission unit (MTU) is used to inform the other party of the maximum size of the data service unit that can be received, indicating the size of the effective payload that the sender can receive.

[0032] (2) Path maximum transmission unit (PMTU) is defined as the minimum value of the maximum transmission unit of all IP hops along the "path" from the source address to the destination address.

[0033] (3) H100 and H101 both represent the host.

[0034] (4) C100 and C101 both represent network equipment from supplier A.

[0035] (5) F100, F101, and F102 all represent network equipment from supplier B.

[0036] (6) F200, F201, and F202 all represent network equipment from supplier C.

[0037] (7) XC100 and XC101 both represent edge network devices.

[0038] (8) XF100, XF101, XF102, XF200, XF201, and XF202 all represent forwarding network devices.

[0039] (9) XH100 indicates the selected network device; XH101 indicates the network device at the destination address.

[0040] (10) iNBrain is the core of the system, including functions such as data management, data analysis, network twinning, and routing policies. iNBrain is responsible for the establishment and driving of the IPv6 twin network. The system in this embodiment can be a system used to optimize PMTU.

[0041] (11) NDx, NDy, NDz, ... are mapping modules for virtual network devices. iNBrain calls and establishes twin network nodes according to the network configuration.

[0042] (12) NWDR is the data management system of IPv6 network. It is the interface between IPv6 network and iNBrain. It can be a network operation and maintenance system, a network device, or a network operation data center.

[0043] In related technologies, to improve packet transmission efficiency and simplify the functions of packet forwarding devices in IPv6 networks, packet forwarding network devices do not segment excessively long packets. Instead, they directly discard the packets and notify the packet sender of the reason for discarding and the supported packet length via ICMPv6 messages. The packet sender will then segment and retransmit the packets according to the supported packet length of the network device. When the packets reach the packet receiver, the receiver reassembles them. Whether or not to segment packets depends on the maximum packet length supported by the network device interface on the route or the defined packet length, but packet segmentation and reassembly are the responsibility of the packet sender and receiver. This separation between packet segmentation decision-making and segmentation behavior introduces potential risks to IPv6 networks. For example, ICMPv6 message storms may severely impact network performance or expose the network to the risk of DoS attacks.

[0044] ICMPv6 message storms can severely impact network performance. Due to network complexity, different manufacturers' equipment, planning, design, construction, and maintenance involve different entities and personnel, and different interface types. Even the same device may have multiple interfaces or multiple different types of interfaces. This can easily lead to human errors in configuring the maximum message length threshold for interfaces, or it may be subject to objective limitations of interface capabilities. If the maximum message length threshold for some critical network nodes is set improperly, it may cause a large number of excessively large ICMPv6 messages to be transmitted in the network, consuming a large amount of bandwidth resources, thereby significantly reducing network resource utilization efficiency, and even severely impacting network performance. It may even create connection black holes, resulting in situations where connections are established but communication is impossible.

[0045] In addition, in the DoS attack risk, since the PMTU of IPv6 networks in related technologies is discovered segment by segment, packets exceeding the PMTU length threshold will be dropped. Network attackers can severely affect the network by sending packets exceeding the PMTU at high intensity, causing connection failures or even network paralysis, or the excessively long messages will be intercepted, making it impossible for the sender to receive the excessively long messages. The sender will then have no way of knowing the PMTU length on the message transmission path, resulting in communication failure.

[0046] Therefore, the PMTU discovery process in related technologies is considered segment by segment from a local perspective, without fundamentally solving the potential problems and risks caused by the PMTU discovery process in IPv6 networks and the separation of segmentation and length limits.

[0047] To address this, this application provides a method for detecting the Path Maximum Transmission Unit (MTU). This method involves generating network nodes corresponding to the IPv6 network based on detection data from the IPv6 network, establishing a twin IPv6 network, injecting configuration information of network devices from the IPv6 network into the corresponding network devices in the twin IPv6 network, activating the routing protocol corresponding to the IPv6 network, and configuring the same routing and system parameters as the IPv6 network. This allows for the determination of the MTU of each route under different routing policies by detecting the ICMPv6 messages obtained after sending test packets. Multiple MTUs are then configured in the twin IPv6 network, and a target MTU is selected from among them. The target MTU and its corresponding target route are then sent to the IPv6 network as the target PMTU for implementation.

[0048] After introducing the design concept of the embodiments of this application, the following is a brief introduction to the application scenarios to which the technical solutions of the embodiments of this application can be applied. It should be noted that the application scenarios described below are only for illustrating the embodiments of this application and are not intended to limit the scope. In specific implementation, the technical solutions provided by the embodiments of this application can be flexibly applied according to actual needs.

[0049] refer to Figure 1 The diagram illustrates an application scenario for discovering PMTU, where H100 sends a message with an MTU of 1600 bytes.

[0050] In the first scenario, where C100 initially selects the route via F100: Since the MTUs of 200, 301, and 302 are 1600, 1800, and 1600 respectively, the packet is successfully forwarded. However, the MTU of 303 is 1500, which is less than the packet sent by H100 (MTU = 1600). F101 discards the packet and sends an ICMPv6 message to H100: "Packet too large (TYPE = 2)" informing H100 that F101 supports an MTU of 1500. After receiving the ICMPv6 message, H100 splits the packet into segments shorter than 1500 segments and retransmits them. C100 receives the retransmitted segments (MTU = 1500) from H100, and since C100 selects route 301, the packet can be successfully sent because the packet length supported by 304 and 201 is 1600 segments.

[0051] In the second scenario, where C100 initially selects the route via F200: C100 will return an ICMPv6 message to H100 carrying an MTU of 1500 and the reason for packet loss (packet too large). H100 will then resegment the packet (MTU = 1500) and retransmit it. F200 discovers that the split packet exceeds the MTU (=1400) supported by its route to H101. F200 discards the packet and returns an ICMPv6 message to H100 carrying MTU=1400 and the reason for packet discarding. H100 resegments the packet according to MTU=1400 and retransmits it. After receiving the packet, F202 discovers that the packet length exceeds the MTU (=1280) supported by its route to H101. F202 discards the packet and returns the reason for discarding and the MTU supported by the interface (=1280). H100 receives the ICMPv6 message returned by F202, resegments the packet according to the MTU in the message and retransmits it. The packet can successfully reach H101.

[0052] Routing policies can complicate the PMTU discovery process. For example, if the C100 uses a load-balancing routing policy on routes 301 and 401, retransmitted packets may not necessarily return to the route that previously dropped packets, preventing optimal network performance and full utilization of network resources. Using a priority routing policy, packets can be routed via the more efficient 301 route, reducing signaling traffic on the network.

[0053] To further illustrate the technical solutions provided in the embodiments of this application, a detailed description is provided below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiments of this application provide method operation steps as shown in the following embodiments or drawings, the method may include more or fewer operation steps based on conventional or non-inventive methods. In steps where there is no logically necessary causal relationship, the execution order of these steps is not limited to the execution order provided in the embodiments of this application.

[0054] The following is combined with Figure 1 The application scenarios shown are for reference. Figure 2 A flowchart illustrating a method for detecting Path Maximum Transmission Unit (PMTU) is provided, applicable to a PMTU detection device equipped with a system for optimizing PMTU. The technical solutions provided in the embodiments of this application will be described.

[0055] S201: Based on the probe data of the IPv6 network, generate network nodes corresponding to the IPv6 network and establish a twin IPv6 network of the IPv6 network.

[0056] S202: Inject the configuration information of the network devices in the IPv6 network into the corresponding network devices in the twin IPv6 network, and activate the routing protocol corresponding to the IPv6 network, and configure the same routing parameters and system parameters as the IPv6 network.

[0057] S203: Determine the MTU of each route under different routing policies by detecting the ICMPv6 messages obtained after sending test messages.

[0058] S204: Configure multiple MTUs in a twin IPv6 network and select a target MTU from among the multiple MTUs.

[0059] S205: Send the target MTU and the target route corresponding to the target MTU to the IPv6 network as the target PMTU.

[0060] In this embodiment, firstly, based on the probe data of the IPv6 network, a network node corresponding to the IPv6 network is generated, and a twin IPv6 network is established. Then, the configuration information of the network devices in the IPv6 network is injected into the corresponding network devices in the twin IPv6 network, and the routing protocol corresponding to the IPv6 network is activated, and the same routing parameters and system parameters as the IPv6 network are configured. This design ensures that the configuration and parameters of the twin IPv6 network are identical to those of the IPv6 network, thus enabling the twin IPv6 network to perform the functions of the IPv6 network. Therefore, by detecting the ICMPv6 messages obtained after sending test packets, the MTU of each route under different routing policies is determined. Multiple MTUs are configured and verified in the twin IPv6 network, and a target MTU is selected from among the multiple MTUs. The target MTU and its corresponding target route are sent to the IPv6 network as the target PMTU. The verified target PMTU is implemented in the IPv6 network, thereby improving network performance and reducing potential problems and risks in IPv6 network packet transmission.

[0061] This involves S201, where the probe data includes network configuration data, network device data, and topology data. Network configuration data is stored in a network configuration database, device data in a device database, and topology data in a topology database. These three databases can also be stored in the same database, called the target database; this is not a limitation. The contents of each database are updated in real time.

[0062] For example, iNBrain can collect probe data of the IPv6 network through NWDR. The network device data includes device configuration information, supported routing protocols and system parameters, etc. The probe data can also include routing information (active routing protocols and their related routing tables and parameters) and network operation data, etc.

[0063] This step can be specifically achieved through steps A1-A3:

[0064] A1: Determine the target database.

[0065] The target database here can include network configuration database, device database, and topology database.

[0066] A2: Identify the probe data in the target database to obtain the type, quantity, vendor, and virtual network devices of different vendors in the IPv6 network.

[0067] The network device type can be indicated by a prefix of C or F. Virtual network device modules from different vendors can perform the same functions as network devices but are not hardware devices.

[0068] A3: Based on the type, quantity, and vendor of network devices in the IPv6 network, as well as virtual network devices from different vendors, generate network nodes corresponding to the IPv6 network and establish a twin IPv6 network for the IPv6 network.

[0069] For example, network nodes corresponding to the IPv6 network are generated, and a twin IPv6 network is established by combining the topology database. The functions, network topology, and configuration of the twin IPv6 network are consistent with the IPv6 network; network devices in the twin network can be deployed centrally or in different regions.

[0070] Regarding S202: Inject the configuration information of network devices in the IPv6 network into the corresponding network devices in the twin IPv6 network, and activate the routing protocol corresponding to the IPv6 network, and configure the same routing parameters and system parameters as the IPv6 network.

[0071] Regarding S203, to verify the effect in the twin IPv6 network, the ICMPv6 message obtained after sending the test packet can be acquired to determine the MTU of each route under different routing policies. The test packet can be a specially sent packet or a packet normally transmitted in the IPv6 network. In this embodiment, the MTU of each route under different routing policies is determined by detecting the ICMPv6 message obtained after sending the test packet.

[0072] Here, each route refers to a route where iNBrain statistically analyzes ICMPv6 messages (TYPE=2, excessively long), sorts traffic in each direction based on IPv6 operational data, and focuses the PMTU optimization process on routes where the traffic ranks in the TOPN (N can be set based on network operational data analysis or network optimization goals) and the ICMPv6 messages (TYPE=2) rank in the TOPM (M needs to be set based on network operational data analysis or optimization goals). Each route is determined based on the traffic used to carry test packets and the number of ICMPv6 messages.

[0073] Taking any given route as an example, the process of determining the MTU of that route is achieved through steps B1-B4:

[0074] B1: For the first route, identify ICMPv6 messages belonging to the first route and obtain the MTU between each pair of adjacent network devices.

[0075] Here, the first route can be any one of the different routes. By combining the network configuration and the route configuration, we can obtain the network devices and interface types that the route passes through, as well as the packet length configured for each interface on the first route, and thus obtain the MTU between each pair of adjacent network devices.

[0076] B2: Among the MTUs between any two adjacent network devices, the largest MTU is taken as the first MTU.

[0077] For example, by comparing the MTU settings of different interfaces of the first route, the maximum packet length supported by the first route, which is the first MTU, is obtained, denoted as PMTUmax.

[0078] B3: Determine the second MTU supported by the vendor of the network device under the first route.

[0079] Based on the device database, obtain the network device interface type and the maximum packet length it supports. Compare the interface capabilities of the network devices on the first route. Based on the configuration of the network devices traversed by the first route, obtain the minimum value of the maximum packet length supported by the network device interface on the route, which is the second MTU, denoted as minMTUintmax.

[0080] B4: Use the smaller of the first MTU and the second MTU as the MTU of the first route.

[0081] For example, if minMTUintmax is not less than PMTUmax, then the MTUint of all interfaces on route R is set to PMTUmax; if minMTUintmax is less than PMTUmax, then the packet length supported by all interfaces on the first route is set to minMTUintmax.

[0082] In this embodiment, the relationship between the MTU of other routes and the MTU of the first route is determined according to the routing policy. For example, if the routing policy is a load balancing policy, the MTU of the corresponding other routes is the same as the MTU of the first route; if the routing policy is a priority routing policy or a single route, the MTU of the corresponding other routes is the same as the MTU supported by the vendor.

[0083] Specifically, the MTU setting for routes depends on the routing policy. For example, routes related to load balancing policies should, in principle, have the same PMTU configuration; however, for priority routes, the PMTU configuration can differ. For route groups using load balancing, the minimum MTU (minMTUintmax) and interface type supported by the network device interfaces are obtained through route configuration. Interfaces of the same type in the route group are set to an MTU no greater than minMTUintmax. If minMTUintmax is not less than PMTUmax, the interface MTU is set to no greater than PMTUmax; if minMTUintmax is less than PMTUmax, the interface MTU is set to no greater than minMTUintmax. For some interfaces where consistent MTU configuration is difficult to achieve due to interface type limitations, priority routing policies or separate routes should be considered. Devices on the same route should use interfaces of the same type as much as possible. The interface MTU configuration method for route groups using priority routing policies is the same as for separate routes.

[0084] S204: Configure multiple MTUs in a twin IPv6 network and select a target MTU from among the multiple MTUs.

[0085] This involves configuring and validating multiple MTUs in the twin IPv6 network. Specifically, iNBrain configures a series of MTU values ​​along with their respective routes in the twin IPv6 network and validates them using operational data from the IPv6 network. iNBrain selects a network device (e.g., XH100) to send packets to another network device (e.g., XH101) representing the destination address in the twin network to verify the effect of the optimized PMTU value: the edge network device (XC100) controls the packet size of the packet sending devices XH100 and XH101, and the forwarding network devices (XF100, XF101, XF102, XF200, XF201, XF202, etc.) and the edge network devices (XC100, XC101, etc.) and the forwarding network devices (XFx) should generate as few or no ICMPv6 messages (TYPE=2) as possible. The latency is reduced, indicating that the PMTU optimization is effective and the scheme is verified.

[0086] S205: Send the target MTU and the target route corresponding to the target MTU to the IPv6 network as the target PMTU.

[0087] This avoids the risks associated with IPv6 networks, which can be implemented directly based on the target PMTU.

[0088] This invention addresses the potential problems and risks associated with PMTU discovery within the IPv6 network as a whole. It constructs an IPv6 twin network using IPv6 network device data, topology relationships, and configuration data. Through continuous iterative optimization, it seeks the optimal PMTU solution for the IPv6 network. Verification within the twin network avoids human error and the uncertainties that may arise from implementing unverified PMTU solutions, thus improving network reliability. The constructed "soft" twin network is characterized by low cost, flexible deployment, and strong adaptability, quickly adapting to network topology adjustments, changes in network devices, and updates to network configurations. The PMTU solution is more closely aligned with the actual network conditions, eliminating ICMPv6 message storms and thus removing connection black holes. This significantly improves packet forwarding efficiency and network resource utilization, achieving cost reduction and efficiency improvement. Ultimately, it enables unimpeded flow and edge control within the IPv6 network, thereby eliminating the risk of PMTU-based DoS attacks and achieving self-optimization of PMTU within the IPv6 network.

[0089] To further improve the technical solution of this application, a specific example is used below to illustrate the process of an embodiment of this application:

[0090] Still with Figure 1 Taking network structure and configuration as an example, the network equipment is provided by three vendors: Cx is vendor A, F10x is vendor B, F20x is vendor C, and H10x is the host. Figure 3 This is a schematic diagram of a PMTU optimization system provided in an embodiment of this application. Figure 4 This is a schematic diagram illustrating an optimized example of PMTU provided in an embodiment of this application.

[0091] Referring to the diagram, iNBrain configures NDA, NDb, NDC, and the general host function Hx unit according to the network device type and vendor. Based on the network device configuration, it calls NDA, NDb, and NDc to construct XC100, XC101, XF100, XF101, XF102, and XF200, XF201, XF202 respectively, and calls Hx to construct XH100 and XH101.

[0092] See Figure 3 Based on the interface configuration and topology of the network devices, configure the corresponding interfaces for XC100, XC101, XF100, XF101, XF102, XF200, XF201, XF202, and XH100, XH101, construct their topology, and establish an IPv6 cloud twin network.

[0093] By analyzing ICMPv6 messages (TYPE=2, packet too large) in the IPv6 network, iNBrain can determine that packets sent from H100 to H101 are most likely to be dropped on the F20x route due to excessive packet length. Through network device configuration, iNBrain can identify devices including C100, F200, F201, F202, and C101. The interface MTU between H100 and C100 is 1600, between C100 and F200 is 1500, between F200 and F201 is 1400, between F201 and F202 is 1500, between F202 and C101 is 1280, and between C101 and H101 is 1600. Therefore, the PMTUmax configured on this route is 1600.

[0094] iNbrain queried the device database and found that the C10x device provided by vendor A supports an MTUintmax of 1600, while the F20x device provided by vendor C supports an MTUintmax of 1500. Through comparison, iNBrain determined that the device supports a minMTUintmax of 1500. Since minMTUintmax is less than PMTUmax, the MTU on the F20x route is set to 1500.

[0095] iNBrain's analysis shows that the route to H101 also includes F10x, and the F10x and F20x routes are load-sharing. The F10x equipment provided by vendor B supports an MTUintmax of 1800, but this is limited by the support capabilities of the C10x equipment. iNBrain's analysis of the load on both routes indicates that if the route is lightly loaded, and the difference between MTU=1500 and MTU=1600 is not significant, the MTU on the F10x route will be the same as the F20x configuration, i.e., MTU=1500. If the route is heavily loaded, it may be necessary to change the routing policy; the MTU of the F10x route will be set to 1800. It is also recommended to upgrade the C100 and C101 equipment to support the processing of longer packets.

[0096] After determining the PMTU solution, iNBrain will deploy it in the IPv6 cloud twin network and require XH100 to send multiple sets of packets of different sizes to XH101 to verify the effectiveness of the solution. If forwarding efficiency is improved without deteriorating forwarding efficiency on other routes, the solution is considered effective. iNBrain will automatically generate implementation instructions for network equipment from different vendors and submit them for implementation.

[0097] The goal of PMTU optimization is to improve packet forwarding efficiency. By optimizing PMTU, ICMPv6 messages with TYPE=2 are virtually eliminated from the network, and PMTU control only occurs on edge network devices, namely C10X.

[0098] like Figure 5 As shown, based on the same inventive concept, this application provides a detection device for the maximum transmission unit of a path, including a generation unit 51, a configuration unit 52, a determination unit 53, a selection unit 54, and a transmission unit 55.

[0099] The generation unit 51 is used to: generate network nodes corresponding to the IPv6 network based on the detection data of the IPv6 network, and establish a twin IPv6 network of the IPv6 network.

[0100] Configuration unit 52 is used to: inject the configuration information of the network devices in the IPv6 network into the corresponding network devices in the twin IPv6 network, and activate the routing protocol corresponding to the IPv6 network, and configure the same routing parameters and system parameters as the IPv6 network;

[0101] The determination unit 53 is used to: determine the MTU of each route under different routing policies by detecting the ICMPv6 message obtained after sending the test message;

[0102] Selection unit 54 is used to configure multiple MTUs in a twin IPv6 network and select a target MTU from the multiple MTUs;

[0103] The transmission unit 55 is configured to send the target MTU and the target route corresponding to the target MTU to the IPv6 network as the target PMTU.

[0104] In one possible implementation, the generating unit 51 is specifically used for:

[0105] The target database is determined; wherein, the target database includes a network configuration database, a device database, and a topology database, and the probe data includes network configuration data, network device data, and topology relationship data; the network configuration data is stored in the network configuration database, the device data is stored in the device database, and the topology relationship data is stored in the topology database;

[0106] Identify the probe data in the target database to obtain the type, quantity, vendor, and virtual network devices of different vendors in the IPv6 network;

[0107] Based on the type, quantity, and vendor of the network devices in the IPv6 network, as well as virtual network devices from different vendors, network nodes corresponding to the IPv6 network are generated, and a twin IPv6 network is established for the IPv6 network.

[0108] In one possible implementation, the determining unit 53 is specifically used for:

[0109] For the first route, identify the ICMPv6 messages belonging to the first route to obtain the MTU between every two adjacent network devices; wherein, the first route is any one of the different routes;

[0110] Among the MTUs between any two adjacent network devices, the largest MTU is taken as the first MTU;

[0111] Determine the second MTU supported by the vendor of the network device under the first route;

[0112] The smaller of the first MTU and the second MTU is used as the MTU of the first route.

[0113] In one possible implementation, if the routing policy is a load balancing policy, then the MTU of the corresponding other routes is the same as the MTU of the first route.

[0114] If the routing policy is a priority routing policy or a single route, then the MTU of the corresponding other routes is the same as the MTU supported by the vendor.

[0115] In one possible implementation, the respective routes are determined based on the traffic used to carry the test packets and the number of ICMPv6 messages.

[0116] In one possible implementation, the transmission unit 55 is specifically used for:

[0117] The probe data of the IPv6 network is obtained through the interface between the IPv6 network and the network.

[0118] In one possible implementation, the network devices in the twin IPv6 network are deployed centrally or in different regions.

[0119] Since this device is the same as the device in the method of this application embodiment, and the principle of the device in solving the problem is similar to that of the method, the implementation of the device can be referred to the implementation of the method, and the repeated parts will not be described again.

[0120] The detection device for the maximum transmission unit of the path provided in this application embodiment can be an electronic device. Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application; as shown below. Figure 6As shown in the embodiments of this application, taking an electronic device as an example, the electronic device 100 includes: a processor 101, a display 102, a memory 103, an input device 106, a bus 105, and a communication module 104; the processor 101, memory 103, input device 106, display 102, and communication module 104 are all connected through the bus 105, which is used for data transmission between the processor 101, memory 103, display 102, communication module 104, and input device 106.

[0121] The memory 103 can be used to store software programs and modules, such as the program instructions / modules corresponding to the path maximum transmission unit detection method in this embodiment. The processor 101 executes various functional applications and data processing of the electronic device 100 by running the software programs and modules stored in the memory 103, such as the path maximum transmission unit detection method provided in this embodiment. The memory 103 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs of at least one application, etc.; the data storage area may store data created according to the use of the electronic device 100 (such as vulnerability rules and other related data). In addition, the memory 103 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0122] The processor 101 is the control center of the electronic device 100. It connects various parts of the electronic device 100 via the bus 105 and various interfaces and lines. It performs various functions of the electronic device 100 and processes data by running or executing software programs and / or modules stored in the memory 103 and calling data stored in the memory 103. Optionally, the processor 101 may include one or more processing units, such as a CPU, GPU, digital processing unit, etc.

[0123] The processor 101 can display alarm information to the user via the display 102.

[0124] The processor 101 can also connect to the network via the communication module 104 to obtain user requests, etc.

[0125] Input device 106 is mainly used to obtain user input operations, and the input device 106 may also be different depending on the electronic device. For example, when the electronic device is a computer, the input device 106 can be an input device such as a mouse or keyboard; when the electronic device is a smartphone, tablet computer, or other portable device, the input device 106 can be a touch screen.

[0126] This application also provides a computing device readable storage medium for the method of detecting the maximum transmission unit of a path, meaning that the content is not lost after power failure. This storage medium stores a software program, including program code. When the program code runs on a computing device, the software program, when read and executed by one or more processors, can implement any of the maximum transmission unit detection methods described in this application.

[0127] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0128] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0129] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0130] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0131] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A method for detecting the maximum transmission unit (MTBF) along a path, characterized in that, include: Based on the detection data of the IPv6 network, generate network nodes corresponding to the IPv6 network, and establish a twin IPv6 network of the IPv6 network. The configuration information of the network devices in the IPv6 network is injected into the corresponding network devices in the twin IPv6 network, and the routing protocol corresponding to the IPv6 network is activated, and the routing parameters and system parameters are configured to be the same as those of the IPv6 network. The MTU of each route under different routing policies is determined by detecting the ICMPv6 messages obtained after sending test messages; Configure multiple MTUs in a twin IPv6 network and select a target MTU from among the multiple MTUs; The target MTU and the target route corresponding to the target MTU are sent to the IPv6 network as the target PMTU.

2. The method according to claim 1, characterized in that, The step of generating network nodes corresponding to the IPv6 network based on the detection data of the IPv6 network and establishing a twin IPv6 network of the IPv6 network includes: The target database is determined; wherein, the target database includes a network configuration database, a device database, and a topology database, and the probe data includes network configuration data, network device data, and topology relationship data; the network configuration data is stored in the network configuration database, the device data is stored in the device database, and the topology relationship data is stored in the topology database; Identify the probe data in the target database to obtain the type, quantity, vendor, and virtual network devices of different vendors in the IPv6 network; Based on the type, quantity, and vendor of the network devices in the IPv6 network, as well as virtual network devices from different vendors, network nodes corresponding to the IPv6 network are generated, and a twin IPv6 network is established for the IPv6 network.

3. The method according to claim 1, characterized in that, The process of determining the MTU of each route under different routing policies by detecting the ICMPv6 messages obtained after sending test messages includes: For the first route, identify the ICMPv6 messages belonging to the first route to obtain the MTU between every two adjacent network devices; wherein, the first route is any one of the different routes; Among the MTUs between any two adjacent network devices, the largest MTU is taken as the first MTU; The minimum value of the maximum message length supported by the vendor of the network device under the first route is taken as the second MTU; The smaller of the first MTU and the second MTU is used as the MTU of the first route.

4. The method according to claim 3, characterized in that, The method further includes: If the routing policy is a load balancing policy, then the MTU of the corresponding other routes is the same as the MTU of the first route; If the routing policy is a priority routing policy or a single route, then the MTU of the corresponding other routes is the same as the MTU supported by the vendor.

5. The method according to claim 3, characterized in that, The routes are determined based on the traffic used to carry the test packets and the number of ICMPv6 messages.

6. The method according to claim 1, characterized in that, The method further includes: The probe data of the IPv6 network is obtained through the interface between the IPv6 network and the network.

7. The method according to any one of claims 1-6, characterized in that, The network devices in the twin IPv6 network are deployed centrally or in different regions.

8. A detection device for the maximum transmission unit of a path, characterized in that, include: The generation unit is used to: generate network nodes corresponding to the IPv6 network based on the detection data of the IPv6 network, and establish a twin IPv6 network of the IPv6 network. The configuration unit is used to: inject the configuration information of the network devices in the IPv6 network into the corresponding network devices in the twin IPv6 network, and activate the routing protocol corresponding to the IPv6 network, and configure the same routing parameters and system parameters as the IPv6 network; The determination unit is used to: determine the MTU of each route under different routing policies by detecting the ICMPv6 messages obtained after sending test messages; The selection unit is used to configure multiple MTUs in a twin IPv6 network and select a target MTU from the multiple MTUs; The transmission unit is configured to send the target MTU and the target route corresponding to the target MTU to the IPv6 network as the target PMTU.

9. A detection device for the maximum transmission unit of a path, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program that can run on the processor, and when the computer program is executed by the processor, it implements the method for detecting the maximum transmission unit of the path as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the method for detecting the maximum transmission unit of the path as described in any one of claims 1 to 7.