Network fault diagnosis method, device and storage medium

By generating colored messages in the network and transmitting and rendering them at multiple levels, the problem of locating abnormal user data across domains is solved, enabling rapid and accurate fault location and improving network maintenance efficiency.

CN117376104BActive Publication Date: 2025-11-25ZTE CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210759359.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2025-11-25
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

Existing technologies cannot quickly locate user data anomalies or packet loss, especially when it comes to cross-domain location between the user layer, access layer, and transport layer.

Method used

By discovering damaged service packets at the remote user layer, colored packets are generated and then sequentially transmitted and rendered at the near user layer, near access layer, transport layer, remote access layer, and remote user layer. The number of colored packets received at each layer is counted to determine the location of the network fault.

Benefits of technology

It enables rapid cross-domain location of network faults, improves the speed and accuracy of fault location, saves network maintenance costs, and enhances network maintainability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117376104B_ABST
    Figure CN117376104B_ABST
Patent Text Reader

Abstract

The application discloses a network fault diagnosis method and device and a storage medium, and is applied to a network manager. The network manager is connected with devices in a near-end user layer, a near-end access layer, a transmission layer, a far-end access layer and a far-end user layer in a network. The method comprises the following steps: when a damaged service message is found in the far-end user layer, the near-end user layer is informed to perform dyeing on the damaged service message, and a dyed message is generated; the dyed message is sequentially transmitted and rendered in the near-end user layer, the near-end access layer, the transmission layer, the far-end access layer and the far-end user layer, and the number of dyed messages received by each layer is acquired; and the position of network fault occurring in the communication network is determined according to the number of dyed messages received by each layer. The method can determine the position of network fault occurring in the communication network across domains, improves the speed and accuracy of network fault positioning, improves the maintainability of the network, and saves the maintenance cost of the network.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication, in particular to a network fault diagnosis method, device and storage medium. BACKGROUND

[0002] With the rapid development of 5G network and intelligent network, the requirements of network for operation and maintenance are also increasing. Network device groups are usually divided into different levels, including user layer, access layer, transmission layer, etc. Based on the perspective of the user layer, it can be seen whether the state of the user layer is normal, based on the access layer, it can be seen whether various network tunnel transmissions are normal, and based on the transmission layer, it can be seen whether the transmission of the transmission layer is normal. In the related art, the user layer, the access layer, the transmission layer, etc. can only realize the judgment of the service carried by the current level, and cannot quickly locate the abnormal user data or packet loss. SUMMARY

[0003] The embodiments of the present application provide a network fault diagnosis method, device and storage medium, which can quickly locate the network fault across domains and improve the speed and accuracy of fault location.

[0004] In a first aspect, the embodiments of the present application provide a network fault diagnosis method applied to a network manager, wherein the network manager is connected with devices of a near-end user layer, a near-end access layer, a transmission layer, a far-end access layer and a far-end user layer in a network, and the method comprises:

[0005] When a damaged service packet is found in the far-end user layer, the near-end user layer is notified to dye the damaged service packet to generate a dyed packet;

[0006] The dyed packets are sequentially transmitted and rendered in the near-end user layer, the near-end access layer, the transmission layer, the far-end access layer and the far-end user layer, and the number of dyed packets received by each layer is obtained;

[0007] According to the number of dyed packets received by each layer, the location of network fault in the communication network is determined.

[0008] In a second aspect, the embodiments of the present application provide a network fault diagnosis device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the network fault diagnosis method of the first aspect as described above when executing the computer program.

[0009] In a third aspect, the embodiments of the present application provide a computer storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the network fault diagnosis method of the first aspect as described above.

[0010] The embodiment of the present application comprises: when the remote user layer discovers a damaged service packet, the proximal user layer is informed to dye the damaged service packet to generate a dyed packet; the plurality of dyed packets are sequentially transmitted and rendered in the proximal user layer, the proximal access layer, the transmission layer, the remote access layer and the remote user layer, and the number of the dyed packets received by each layer is obtained; and the position of the network fault occurring in the communication network is determined according to the number of the dyed packets received by each layer. Based on this, compared with the existing network fault diagnosis method, the present application generates a dyed packet based on a damaged service packet, and sequentially transmits and renders the plurality of dyed packets in the proximal user layer, the proximal access layer, the transmission layer, the remote access layer and the remote user layer, so that each layer can identify the dyed packet, the number of the dyed packets received by each layer is obtained, the position of the network fault can be determined according to the number of the dyed packets received by each layer, the rapid cross-domain and cross-device positioning of the network fault is realized, the speed and accuracy of fault positioning are improved, the maintainability of the network is improved, and the maintenance cost of the network is saved.

[0011] Additional aspects and advantages of the application will be made apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS

[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments or related technical description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.

[0013] Figure 1 is a structural schematic diagram of a network fault diagnosis device provided by the embodiment of the present application;

[0014] Figure 2 is a main step diagram of a network fault diagnosis method provided by the embodiment of the present application;

[0015] Figure 3 is a main step diagram of dyeing packet transmission and rendering of a network fault diagnosis method provided by the embodiment of the present application;

[0016] Figure 4 is a step diagram of generating a dyed packet of a network fault diagnosis method provided by the embodiment of the present application;

[0017] Figure 5 is a step diagram of rendering a dyed packet in a proximal access layer of a network fault diagnosis method provided by the embodiment of the present application;

[0018] Figure 6 is a step diagram of the dyeing packet transmission and rendering in the transport layer of the network fault diagnosis method provided by the embodiment of the present application;

[0019] Figure 7 is another step diagram of the dyeing packet generation of the network fault diagnosis method provided by the embodiment of the present application;

[0020] Figure 8 is another step diagram of the dyeing packet rendering in the near-end access layer of the network fault diagnosis method provided by the embodiment of the present application;

[0021] Figure 9 is another step diagram of the dyeing packet transmission and rendering in the transport layer of the network fault diagnosis method provided by the embodiment of the present application;

[0022] Figure 10 is another step diagram of the dyeing packet generation of the network fault diagnosis method provided by the embodiment of the present application;

[0023] Figure 11 is a step diagram of the matching rule and dyeing strategy configuration of the network fault diagnosis method provided by the embodiment of the present application;

[0024] Figure 12 is a step diagram of the network fault position determination of the network fault diagnosis method provided by the embodiment of the present application;

[0025] Figure 13 is a step diagram of the network fault position display of the network fault diagnosis method provided by the embodiment of the present application;

[0026] Figure 14 is a schematic diagram of the dyeing packet transmission and rendering provided by the embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.

[0028] It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described in the flowchart can be performed in an order different from that in the flowchart. The terms "first", "second", etc. in the specification and claims and the above-described drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence.

[0029] It should also be understood that, in the description of the embodiments of the present application, the reference "one embodiment" or "some embodiments" and the like means that a specific feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in other some embodiments", "in further some embodiments" and the like appearing in various places in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "comprise", "include", "have" and their variants mean "including but not limited to", unless otherwise specifically emphasized.

[0030] In the description of the present application, greater than, less than, more than, etc. are understood as not including the number, above, below, within, etc. are understood as including the number. If the first, second is described, it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features or implicitly indicating the order of indicated technical features. It should be understood that the orientation description, such as up, down, front, back, left, right, etc. indicates the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and is only for the purpose of facilitating the description of the present application and simplifying the description, and therefore cannot be understood as indicating or implying that the device or element indicated must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application.

[0031] In the description of the embodiments of the present application, unless otherwise explicitly limited, the words such as setting, installing, connecting, etc. should be broadly understood, and the person skilled in the art can reasonably determine the specific meaning of the above words in the embodiments of the present application in combination with the specific content of the technical solution.

[0032] With the rapid development of 5G networks and intelligent networks, the requirements of network operation and maintenance are also increasing. Generally, network device networking will be divided into different levels: user layer, access layer, transmission layer, etc. From the perspective of the user layer, it can be seen whether the state of the user layer is normal, based on the access layer, it can be seen whether various network tunnel transmissions are normal, and based on the transmission layer, it can be seen whether the transmission of the transmission layer is normal.

[0033] In the prior art, the judgment of the health degree of a network usually includes four manners, which are implemented by a user layer, an access layer, a transmission layer and a network manager respectively. The health degree of the user layer data can be reflected on the application service of the user, especially whether the user data is lost or damaged, which is embodied on the actual application or the monitoring software of the actual application. The access layer data does not distinguish the actual service of the user, but only judges whether the data of the access layer is healthy. The access layer usually uses various tunnel technologies, and the health degree of the tunnel can be judged by various tunnel diagnosis manners. The transmission layer cannot see any tunnel information, and can only judge based on the service carried by the transmission layer. Although the network manager can see the state of the whole network, it cannot cross-domain locate the problem of the user data of each layer, but can only judge the problem of a device or a layer of the whole network or collect the alarm information of the related device. In summary, the user layer, the access layer and the transmission layer can only judge the service carried by the current layer, and cannot quickly locate the abnormal or lost user data.

[0034] Therefore, the embodiment of the present application provides a network fault diagnosis method, device and storage medium. The damaged service packet is used to generate a colored packet, the colored packet is identified according to the transmission of the colored packet in the near-end user layer, the near-end access layer, the transmission layer, the far-end access layer and the far-end user layer, the number of the colored packets received by each layer is obtained, and the network fault is cross-domain located, so that the maintainability of the network is improved.

[0035] The embodiment of the present application is further described below with reference to the drawings.

[0036] Reference Figure 1 , Figure 1 is a structure diagram of a network fault diagnosis device provided by the embodiment of the present application. The communication network includes a near-end user layer, a near-end access layer, a transmission layer, a far-end access layer and a far-end user layer, wherein the transmission layer includes multiple transmission layer devices. The service sent by the near-end user layer reaches the far-end user layer through the near-end access layer, the transmission layer and the far-end access layer, the near-end access layer encapsulates and transmits the transmission tunnel and the service packet to the far-end access layer, and the far-end access layer pops out the tunnel header field. The network manager is connected with the devices of the near-end user layer, the near-end access layer, the transmission layer, the far-end access layer and the far-end user layer in the network respectively.

[0037] When the damaged service message is found at the remote user layer, the network manager informs the near-end user layer to dye the damaged service message to generate a dyed message; and the plurality of dyed messages are sequentially transmitted and rendered at the near-end user layer, the near-end access layer, the transmission layer, the remote access layer and the remote user layer, and the number of the dyed messages received at each layer is acquired, and the position of the network fault occurring in the communication network is determined according to the number of the dyed messages received at each layer. The device can improve the speed and accuracy of network fault positioning, and the network fault positioning can facilitate subsequent network maintenance, improve the maintainability of the network, and save the maintenance cost of the network.

[0038] The device and application scenarios described in the embodiments of the present application are used to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art can know that, with the evolution of system architecture and the appearance of new application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.

[0039] Those skilled in the art can understand that, Figure 1 The device structure shown in the above-mentioned embodiments does not constitute a limitation on the embodiments of the present application, and can include more or fewer components than those shown in the figure, or combine certain components, or different component arrangements.

[0040] In Figure 1 In the device structure shown in the above-mentioned embodiments, each module can respectively call the network fault diagnosis program stored therein to execute the network fault diagnosis method.

[0041] Based on the above-mentioned device, each embodiment of the network fault diagnosis method of the embodiments of the present application is proposed.

[0042] Referring to Figure 2 , Figure 2 is the main step diagram of the network fault diagnosis method provided by the embodiments of the present application. The network diagnosis method includes but is not limited to the following steps:

[0043] Step S100, when the damaged service message is found at the remote user layer, informing the near-end user layer to dye the damaged service message to generate a dyed message.

[0044] Step S200, sequentially transmitting and rendering the plurality of dyed messages at the near-end user layer, the near-end access layer, the transmission layer, the remote access layer and the remote user layer, and acquiring the number of the dyed messages received at each layer.

[0045] Step S300, determining the position of the network fault occurring in the communication network according to the number of the dyed messages received at each layer.

[0046] It should be noted that the network fault diagnosis method provided by the embodiment of the present application is applied to a network manager, the network manager is connected with devices of a near-end user layer, a near-end access layer, a transmission layer, a far-end access layer and a far-end user layer in a network in sequence, the network manager can configure each layer of the network, and determine a location of a network fault in the network according to information of each layer acquired.

[0047] It should be noted that the communication network includes multiple layers, wherein the near-end user layer, the near-end access layer, the transmission layer, the far-end access layer and the far-end user layer are connected in sequence, a service message sent by the near-end user layer passes through the near-end access layer, the transmission layer and the far-end access layer in sequence to reach the far-end user layer, when the communication network is normally operated, the service message received by the far-end user layer is the same as the service message sent by the near-end user layer. When the service message received by the far-end user layer is damaged, that is, the number of the service message received by the far-end user layer is reduced or increased, it indicates that a fault occurs in a transmission path between the near-end user layer and the far-end user layer.

[0048] In this process, the statistics of each layer of the communication network is based on the staining information that each layer can identify, and the identification fields of each layer are different, therefore, the staining message needs to be transmitted between each layer to complete the statistics.

[0049] It should be noted that, in order to ensure that the number of staining messages can change due to the network fault, the number of staining messages sent by the near-end user layer needs to be sufficient, the number of staining messages can be set as a fixed value, or the number of staining messages can be set according to the number of staining messages sent by the near-end user layer corresponding to the damaged service message. According to the number of staining messages set according to the damaged service message, the number of staining messages can be reduced while ensuring that the change of the number of staining messages is detected, thereby reducing the burden of the communication network.

[0050] It should be noted that, according to the damaged service message, the network fault diagnosis method provided by the embodiment of the present application informs the near-end user layer to stain the damaged service message to generate staining messages, the generation of the staining messages facilitates the statistics of the number of staining messages, and the multiple staining messages are transmitted and rendered in the near-end user layer, the near-end access layer, the transmission layer, the far-end access layer and the far-end user layer in sequence, so that each layer can identify the rendered staining messages and count, thereby obtaining the number of staining messages received by each layer, and determining the number of staining messages at each layer of the network according to the number of staining messages received by each layer, thereby further determining the location of the network fault in the communication network, improving the speed and accuracy of network fault positioning, in addition, the positioning of the network fault can facilitate subsequent network maintenance, improving the maintainability of the network and saving the maintenance cost of the network.

[0051] As Figure 3As shown, Figure 3 is a main step diagram of the dyeing packet transmission and rendering of the network fault diagnosis method provided by the embodiment of the present application, and step S200 includes but is not limited to the following steps:

[0052] Step S210, the dyeing packet of the near-end user layer is sent to the near-end access layer so that the near-end access layer matches and counts the dyeing packet according to a preset matching rule, and the number of the dyeing packets received by the near-end access layer is obtained.

[0053] Step S220, a tunnel header field carrying tunnel dyeing information is added to the dyeing packet by the near-end access layer.

[0054] Step S230, the dyeing packet after adding the tunnel dyeing information is sequentially transmitted in the multiple devices of the transmission layer, so that each hop device of the transmission layer matches and counts the dyeing packet according to a preset matching rule, and the number of the dyeing packets received by each hop device of the transmission layer is obtained.

[0055] Step S240, the dyeing packet is transmitted to the far-end access layer, so that the far-end access layer pops the tunnel header field, and matches and counts the dyeing packet according to a preset matching rule, and the number of the dyeing packets received by the far-end access layer is obtained.

[0056] It should be noted that each layer of the communication network cannot directly identify and count the dyeing packet, therefore, in the process of dyeing packet transmission, the related performance of each layer is configured according to the dyeing packet, so that each layer can identify the dyeing packet. In the near-end access layer, the tunnel header field is added to the dyeing packet, and for the transmission layer, the dyeing information of the dyeing packet is invisible, therefore, the near-end access layer needs to be configured, so that the tunnel header field carries the tunnel dyeing information, and the transmission layer can determine that the corresponding packet is the dyeing packet by identifying the tunnel dyeing information.

[0057] It can be understood that the preset matching rules of the near-end access layer, the transmission layer and the far-end access layer are all access control lists.

[0058] It should be noted that the access control list (Access Control Lists, ACL) is an access control technology based on packet filtering, which can filter the data packets on the interface according to the set conditions, and allow them to pass or be discarded. The access control list is widely used in routers and switches, and with the help of the access control list, the access of users to the network can be effectively controlled, so as to maximize the security of the network.

[0059] It can be understood that the dyeing of the dyeing packet at least includes one of the following: modification of the packet priority field, carrying a specific virtual local area network, and carrying a specific field.

[0060] It should be noted that the message priority field is implemented by modifying the priority of the damaged service. Therefore, this coloring method is quite limited, requiring that all priority fields of the communication network be unusable.

[0061] It should be noted that if damaged service packets are colored by carrying a specific virtual LAN, the priority mapping of the communication network cannot be used.

[0062] It should be noted that generating colored messages with specific fields is applicable to most communication networks, but this coloring method requires real-time configuration of each layer of the communication network, which takes longer and is more complicated to implement compared to the other two methods.

[0063] It should be noted that the three coloring methods—modifying the message priority field, carrying a specific virtual LAN, and carrying a specific field—can be used individually, in combination, or simultaneously. In actual communication network use, adjustments and adaptations can be made based on the service requirements and network capacity of the near-end user layer.

[0064] like Figure 4 As shown, Figure 4 This is a flowchart illustrating the steps of generating colored packets in the network fault diagnosis method provided in this application embodiment. When the packet priority field modification is used as the coloring method, step S100 includes, but is not limited to, the following steps:

[0065] Step S110: Set the packet priority of the damaged service packet to the preset priority through the near-end user layer to obtain the colored packet.

[0066] It should be noted that the prerequisite for using message priority field modification as a coloring method is that the message priority field has no practical meaning for user messages.

[0067] like Figure 5 As shown, Figure 5 This is a flowchart illustrating the steps of coloring packets in the near-end access layer rendering of the network fault diagnosis method provided in this application embodiment. When packet priority field modification is used as the coloring method, step S220 includes, but is not limited to, the following steps:

[0068] Step S221: Map the colored message to tunnel priority through the near-end access layer so that the header priority of the transmission tunnel is the preset priority, and obtain the tunnel header field carrying tunnel coloring information.

[0069] Step S222: Encapsulate the transmission tunnel so that the tunnel header field is added to the colored message to obtain a colored message carrying tunnel coloring information.

[0070] It should be noted that, in order to enable the transmission layer to identify the colored packet, the near-end access layer needs to be configured with a priority tunnel mapping function, and the preset priority corresponding to the priority field on the colored packet is configured as the priority that needs to be mapped. When the near-end access layer encapsulates the transmission tunnel, the priority information of the colored packet is preferentially mapped to the priority of the transmission tunnel, so that the priority of the header of the transmission tunnel is the preset priority, and a tunnel header field carrying tunnel coloring information is obtained. Then, the near-end access layer encapsulates the transmission tunnel, so that the tunnel header field is added to the colored packet, and a colored packet carrying tunnel coloring information is obtained.

[0071] As shown in Figure 6 Figure 6 is a step diagram of the colored packet of the network fault diagnosis method provided by the embodiment of the application in the transmission layer transmission and rendering. When the packet priority field modification is used as the coloring method, step S230 includes but is not limited to the following steps:

[0072] Step S231, the colored packet after adding the tunnel coloring information is sequentially transmitted in the multiple devices in the transmission layer, so that each hop device in the transmission layer matches and counts the tunnel header field according to the access control list, and the number of tunnel header fields received by each hop device in the transmission layer is obtained.

[0073] Step S232, according to the number of tunnel header fields, the number of colored packets received by each hop device in the transmission layer is obtained.

[0074] It should be noted that the packet received by the transmission layer is a colored packet carrying tunnel encapsulation information. For the transmission layer, the coloring information of the colored packet cannot be directly identified, and the transmission layer can only obtain the number of tunnel header fields received by each hop device in the transmission layer by identifying the priority information of the tunnel mapping, that is, the tunnel coloring information, and further determine the number of colored packets received by each hop device in the transmission layer.

[0075] ​In some embodiments, the communication network is a bearer network accessed via VXLAN (Virtual eXtensible Local Area Network). When service A is found to be impaired at the remote user layer, the impaired service packet corresponding to service A is obtained, and the packet priority of the impaired service is set to 7. The number of colored packets sent by the near-end user layer is fixed. At this time, 1000 identical colored packets will be sent to the near-end access layer through the near-end user layer. The near-end access layer first identifies and matches the colored packets by accessing the registration list to obtain the number of colored packets received by the near-end access layer. Since the communication network is VXLAN, the near-end access layer uses VXLAN tunnels to access the network. The near-end access layer pre-sets packet priority 7 as the coloring priority and configures VXLAN tunnel priority mapping for priority 7. When the access layer receives a colorized packet from the near-end user layer, it maps the packet priority of the colorized packet to the VXLAN tunnel header through the VXLAN tunnel priority mapping, making the VXLAN tunnel header priority 7. This results in a tunnel header field carrying tunnel coloring information. The transmission tunnel is then encapsulated, and the tunnel header field is added to the colorized packet, resulting in a colorized packet carrying tunnel coloring information. The colorized packet is sequentially transmitted among multiple devices in the transport layer. Each hop in the transport layer matches and counts the tunnel header fields according to the access control list, obtaining the number of tunnel header fields received by each hop, and thus the number of colorized packets received by each hop. The stained packets are transmitted from the transport layer to the remote access layer. The remote access layer pops the tunnel header field, restoring the stained packets to their original structure. The remote access layer can then directly match and count the stained packets using access control lists to obtain the number of stained packets and send them to the remote user layer. Collecting and analyzing the number of stained packets at each layer allows for the identification of network faults. If the number of stained packets received by any device at any layer differs from the number received by the previous device, it indicates an error in packet processing or transmission between the previous and current devices.

[0076] like Figure 7 As shown, Figure 7 This is another step in generating colored packets in the network fault diagnosis method provided in this application embodiment. When using a specific virtual local area network as the coloring method for colored packets, step S100 includes, but is not limited to, the following steps:

[0077] Step S120: Add a preset virtual LAN label to the inside of the damaged service through the near-end user layer to obtain colored packets.

[0078] It should be noted that the dyeing manner of carrying a specific virtual local area network as the dyeing packet can be used in a scenario where the priority mapping is not available.

[0079] It should be noted that the precondition of adding a layer of preset virtual local area network label inside the packet of the damaged service by the near-end user layer is that the virtual local area network corresponding to the preset virtual local area network label is not used in the actual network service, at this time, the entire communication network needs to reserve the virtual local area network label.

[0080] It should be noted that the near-end access layer accesses the transmission tunnel through the outer virtual local area network of the dyeing packet, and the change of the outer virtual local area network of the dyeing packet can affect the transmission path of the original service packet, so that the transmission path of the dyeing packet is different from that of the damaged service packet, which can adversely affect the positioning of the network fault in the communication network. Therefore, the embodiment of the present application adds a layer of preset virtual local area network label inside the damaged service by the near-end user layer to obtain the dyeing packet.

[0081] As shown in Figure 8 , the step S220 includes but is not limited to the following steps: Figure 8 is another step diagram of the dyeing packet of the network fault diagnosis method provided by the embodiment of the present application rendered by the near-end access layer. When the dyeing manner of carrying a specific virtual local area network as the dyeing packet is used, the step S220 includes but is not limited to the following steps:

[0082] The step S223 translates the virtual local area network label to the inner layer virtual local area network of the transmission tunnel by the near-end access layer using the preset virtual local area network translation table, to obtain the tunnel header field carrying the tunnel dyeing information.

[0083] The step S224 encapsulates the transmission tunnel, so that the tunnel header field is added to the dyeing packet to obtain the dyeing packet carrying the tunnel dyeing information.

[0084] It should be noted that in order to enable the transmission layer to identify the dyeing packet, the near-end access layer translates the virtual local area network in the dyeing packet to the inner layer virtual local area network of the transmission tunnel header using the preset virtual local area network translation table. When the near-end access layer encapsulates the transmission tunnel, the inner layer virtual local area network of the transmission tunnel is consistent with the inner layer virtual local area network of the dyeing packet, so that the dyeing packet carrying the tunnel dyeing information can be obtained.

[0085] It should be noted that the preset virtual local area network translation table matches the virtual local area network label in the dyeing packet.

[0086] As shown in Figure 9 , the step S220 includes but is not limited to the following steps: Figure 9is another step diagram of the dyeing packet in the network fault diagnosis method provided by the embodiment of the application. When the dyeing mode of carrying a specific virtual local area network as the dyeing packet is used, step S230 includes but is not limited to the following steps:

[0087] Step S233, the dyeing packet after adding the tunnel dyeing information is sequentially transmitted in the multiple devices of the transmission layer, so that each hop device of the transmission layer matches and counts the inner layer virtual local area network of the transmission tunnel according to the access control list, and the number of tunnel header fields received by each hop device of the transmission layer is obtained.

[0088] Step S234, the number of dyeing packets received by each hop device of the transmission layer is obtained according to the number of tunnel header fields.

[0089] It should be noted that the dyeing packet after adding the tunnel dyeing information is sequentially transmitted in the multiple devices of the transmission layer, and the transmission layer can identify the inner layer virtual local area network of the tunnel header field to determine the number of dyeing data packets.

[0090] In some embodiments, the communication network is a bearer network of IPv6 (Internet Protocol Version 6) access, when a service A is damaged at a remote user layer, a damaged service packet corresponding to the service A is obtained, and the damaged service packet is colored by the near-end user layer using a specific virtual local area network (VLAN). In the embodiment of the application, the near-end user layer adds an inner VLAN 4094 as a colored VLAN (Virtual Local Area Network) to the damaged service, to obtain a colored packet, wherein the VLAN 4094 is a preset virtual local area network label. After receiving the colored packet from the near-end user layer, the near-end access layer performs access registration list matching according to the inner VLAN 4094 of the colored packet, and obtains a count value. The near-end access layer translates the VLAN 4094 in the inner layer of the colored packet to the inner VLAN in the IPv6 transmission tunnel header by using a preset virtual local area network translation table, so that the IPv6 tunnel carries the inner VLAN 4094, that is, the tunnel header field carrying the tunnel coloring information is obtained, and the colored packet carrying the tunnel coloring information is obtained. The transmission layer can perform access registration matching and counting according to the inner VLAN 4094 of the transmission tunnel header, to obtain the number of tunnel header fields received by each hop device of the transmission layer. After the colored packet passes through the transmission layer, it reaches the remote access layer, the remote access layer pops the IPv6 tunnel header, performs access registration list matching according to the inner VLAN 4094 of the colored packet and counts the count value, and delivers the colored packet to the remote user equipment. The number of colored packets at each level is analyzed and processed, if the number of colored packets received by any device at any layer is different from the number of colored packets received by the previous device, then the message processing or message transmission between the previous device and the device is wrong, and the location of the network fault in the network can be determined.

[0091] As Figure 10 shown, Figure 10 is another step diagram for generating a colored packet in the network fault diagnosis method provided by the embodiment of the application. When the colored packet is generated by carrying a specific field, step S100 includes but is not limited to the following steps:

[0092] Step S130, modifying a preset field of the damaged service packet by the near-end user layer to obtain a colored packet.

[0093] It should be noted that when the colored packet is generated by carrying a specific field, a special field of the damaged service packet which is not used in the actual communication network is modified by the near-end user layer to obtain the colored packet, for example, modifying the UDP (User Datagram Protocol) source port number as the identification of the colored packet.

[0094] AsFigure 11 as shown, Figure 11 is a step diagram of the matching rule and the dyeing strategy configuration of the network fault diagnosis method provided by the embodiment of the application. When the dyeing packet is generated by carrying a specific field, the following steps are further included between step S100 and step S200, but are not limited thereto:

[0095] Step S400, according to the dyeing packet, configuring the matching rule and the dyeing strategy of the near-end access layer, the transmission layer and the far-end access layer.

[0096] It should be noted that since the fields used by different service packets are different, the preset value segments of the corresponding modified service packets are also different, and the modification of the preset fields in the damaged service needs to be configured and issued, so as to ensure that the near-end access layer, the transmission layer and the far-end access layer can identify and count the dyeing packet.

[0097] It should be noted that after confirming the modified fields of the dyeing packet, the access control list of the access layer is configured, so that the configured access control list can match the dyeing packet. The matching action is to modify the information in the transmission tunnel that does not affect the forwarding of the service, for example, modifying the VLAN priority of the outer layer of the transmission tunnel, modifying the UDP source port number of the VXLAN transmission tunnel, the option bit of the IP (Internet Protocol) transmission tunnel, etc. The configuration of the access control list modifies the dyeing strategy according to the specific situation of the transmission layer of the network, and finally achieves the effect of dyeing without affecting the transmission of the transmission tunnel of the transmission layer. In this way, the access control list participates in the rendering of the dyeing packet at each level, and the encapsulation and path of the original service packet are not changed. Each hop device of the transmission layer can identify the dyeing packet.

[0098] In some embodiments, the communication network is a VXLAN (accessed bearer network), when the service A is damaged at the remote user layer, the damaged service message corresponding to the service A is obtained, and the message protocol field of the damaged service message is modified to 100 through the near-end user layer to identify the dyeing, and the dyeing message is obtained. According to the dyeing message, the access control list of the near-end access layer is configured in real time, so that the near-end access layer can match and count the message protocol field 100 of the dyeing message through the access control list. At the same time, the VXLAN encapsulation of the access layer is configured, and the UDP source port number of the transmission tunnel of the VXLAN encapsulation corresponding to the dyeing message is modified to 10100. In addition, the network management station configures the access control list of each hop device in the transmission layer, so that each hop device in the transmission layer can perform ACL matching and counting according to the UDP source port number of the VXLAN transmission tunnel as 10100. Complete the configuration of the dyeing strategy and matching rule of the whole network, send a certain number of dyeing messages from the near-end user layer to the remote user layer, and obtain the number of dyeing messages at each level. Analyze and process the number of dyeing messages at each level, if the number of dyeing messages received by any device at any layer is different from the number of dyeing messages received by the previous device, then the message processing or message transmission between the previous device and the device is wrong, and the location of the network fault in the network can be determined.

[0099] It should be noted that the three dyeing methods and the corresponding network fault diagnosis methods provided by the embodiments of the present application realize the cross-domain network fault diagnosis function by respectively controlling and processing the cross-domain devices. Among them, the message priority field modification and the dyeing method of carrying a specific virtual local area network are suitable for most communication networks, but they also have limitations. Among them, the message priority field modification as the prerequisite condition of the dyeing method is that the message priority field has no actual meaning for user messages, and the prerequisite condition of carrying a specific virtual local area network is that the specific virtual local area network is not used in the actual network service. The dyeing method of carrying a specific field as a dyeing message can be freely handled according to the situation of the communication network, but it needs to be configured in real time for each device, and the diagnosis can be initiated only after the configuration is completed. In practical application, the dyeing method can be selected according to the need to dye the damaged service message.

[0100] It should be noted that the dyeing method of carrying a specific field as a dyeing message can be freely handled according to the situation of the communication network, but it needs to be configured in real time for each device, and the diagnosis can be initiated only after the configuration is completed. In practical application, the dyeing method can be selected according to the need to dye the damaged service message. Figure 14 , Figure 14is a schematic diagram of the dyeing message transmission and rendering provided by the embodiment of the present application. The dyeing message of the near-end user layer is sent to the near-end access layer, the near-end access layer matches and counts the dyeing message, that is, pri (dyeing information) shown in the figure, according to a preset matching rule, to obtain the number of dyeing messages received by the near-end access layer, so as to determine the number of dyeing messages added or reduced by the user layer. The near-end access layer maps the user priority to the tunnel priority, and the near-end access layer adds a tunnel header field carrying tunnel dyeing information, that is, tunnel pri shown in the figure, to the dyeing message. The dyeing message is sequentially transmitted in a plurality of devices of the transmission layer, so that each hop device of the transmission layer matches and counts the dyeing message according to a preset matching rule, to obtain the number of dyeing messages received by each hop device of the transmission layer. The dyeing message is transmitted to the far-end access layer, the far-end access layer pops the tunnel header field, and matches and counts the dyeing message according to a preset matching rule, to obtain the number of dyeing messages received by the far-end access layer. The number of dyeing messages received by each layer is determined according to the number of dyeing messages received by each layer, so as to further determine the position of the network fault in the communication network, improve the speed and accuracy of network fault positioning, and further facilitate subsequent network maintenance, improve the maintainability of the network, and save the maintenance cost of the network.

[0101] As shown in Figure 12 , Figure 12 is a step diagram of the network fault position determination of the network fault diagnosis method provided by the embodiment of the present application. When the dyeing message is generated by carrying a specific field, step S300 includes but is not limited to the following steps:

[0102] Step S310, comparing the number of dyeing messages received by each layer to obtain a comparison result.

[0103] Step S320, determining the position of the network fault according to the comparison result.

[0104] It should be noted that when the communication network is normal, the number of dyeing messages received by each layer is the same. When the communication network has a network fault, whether the number of dyeing messages received by each layer changes relative to the number of dyeing messages of the previous layer is determined, if there is a change, the message processing or message transmission between the previous device and the device is wrong, and the position of the network fault in the network can be determined.

[0105] As shown in Figure 13 , Figure 13 is a step diagram of the network fault position display of the network fault diagnosis method provided by the embodiment of the present application. When the dyeing message is generated by carrying a specific field, the network fault diagnosis method further includes but the following steps:

[0106] Step S500, displaying the location where the fault occurs in the communication network.

[0107] It should be noted that in order to enable the user to know the location of the network fault, the network fault diagnosis method provided by the embodiments of the present application displays the location where the fault occurs in the communication network.

[0108] It should be noted that when the specific location where the fault occurs in the communication network is detected, the network fault diagnosis method can also alarm to remind the user.

[0109] The embodiments of the present application also provide a network fault diagnosis device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the network fault diagnosis method as above when executing the computer program.

[0110] The processor and the memory can be connected through a bus or other means.

[0111] The memory, as a non-transitory computer readable storage medium, can be used to store non-transitory software programs and non-transitory computer executable programs. In addition, the memory can include a high-speed random access memory, and can also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state memory device. In some embodiments, the memory can optionally include a memory disposed remotely relative to the processor, and these remote memories can be connected to the processor through a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0112] The non-transitory software programs and instructions required to implement the network fault diagnosis method of the above embodiments are stored in the memory, and when executed by the processor, the network fault diagnosis method in the above embodiments is executed, for example, the method steps S100 to S300 in the above described Figure 2 , the method steps S210 to S240 in the above described Figure 3 , the method steps S110 to S300 in the above described Figure 4 , the method steps S221 to S222 in the above described Figure 5 , the method steps S231 to S232 in the above described Figure 6 , the method steps S120 to S300 in the above described Figure 7 , the method steps S223 to S224 in the above described Figure 8 , the method steps S233 to S234 in the above described Figure 9 , the method steps S130 to S300 in the above described Figure 10 , the method step S400 in the above described Figure 11 , the method steps S310 to S320 in the above described Figure 12 , and the method step S400 in the above described Figure 13the method steps S100 to S500 in the method of

[0113] The device embodiments described above are merely illustrative, wherein the units described as separate components can or can not be physically separate, i.e., can be located in one place, or can also be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment scheme.

[0114] In addition, an embodiment of the present application also provides a computer readable storage medium, which stores computer executable instructions, wherein the computer executable instructions are executed by a processor or a controller, for example, a processor in the above device embodiment, so that the above processor executes the network fault diagnosis method in the above embodiment, for example, executes the method steps S100 to S500 in the method of Figure 2 the method steps S100 to S300 in the method of Figure 3 the method steps S210 to S240 in the method of Figure 4 the method steps S110 to S300 in the method of Figure 5 the method steps S221 to S222 in the method of Figure 6 the method steps S231 to S232 in the method of Figure 7 the method steps S120 to S300 in the method of Figure 8 the method steps S223 to S224 in the method of Figure 9 the method steps S233 to S234 in the method of Figure 10 the method steps S130 to S300 in the method of Figure 11 the method step S400 in the method of Figure 12 the method steps S310 to S320 in the method of Figure 13 the method steps S100 to S500 in the method of

[0115] As will be appreciated by one of ordinary skill in the art, all or some of the steps, systems, etc. in the above-disclosed methods can be embodied in software, firmware, hardware, and / or suitable combinations thereof. Some or all of the physical components can be implemented with software executed by a processor, such as a central processing unit, a digital signal processor, or microprocessor, or can be implemented as hardware, or as an integrated circuit, such as an application- specific integrated circuit. Such software can be distributed on computer readable media, which can comprise computer storage media (or non-transitory media), and communication media (or transitory media). As is well known to those of ordinary skill in the art, computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Further, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as carrier waves or other transport mechanisms, and includes any information delivery media.

[0116] The above description is that of the preferred embodiments of the application. Various modifications and changes can be made thereto without departing from the spirit of the application, which is defined by the appended claims. Each of the additional sequences disclosed herein is intended to be individually incorporated into the claims. The application also encompasses any and all equivalents of the sequences disclosed herein.

Claims

1. A network fault diagnosis method characterized by, The method is applied to a network manager connected with devices of a near-end user layer, a near-end access layer, a transmission layer, a far-end access layer and a far-end user layer in a network, and comprises the following steps of: When a damaged service packet is found in the far-end user layer, informing the near-end user layer to perform dyeing on the damaged service packet to generate a dyed packet; sending the dyed packet of the near-end user layer to the near-end access layer so that the near-end access layer performs matching and counting on the dyed packet according to a preset matching rule to obtain a number of the dyed packet received by the near-end access layer; adding a tunnel header field carrying tunnel dyeing information to the dyed packet through the near-end access layer; sequentially transmitting the dyed packet with added tunnel dyeing information among devices of the transmission layer so that each hop device of the transmission layer performs matching and counting on the dyed packet according to a preset matching rule to obtain a number of the dyed packet received by each hop device of the transmission layer; transmitting the dyed packet to the far-end access layer so that the far-end access layer pops the tunnel header field and performs matching and counting on the dyed packet according to a preset matching rule to obtain a number of the dyed packet received by the far-end access layer; determining a location of network failure in the network according to the numbers of the dyed packet received by each layer.

2. The network fault diagnosis method according to claim 1, characterized in that, The preset matching rules of the near-end access layer, the transmission layer and the far-end access layer are all access control lists.

3. The network fault diagnosis method according to claim 2, characterized in that, The dyeing mode of the dyed packet at least includes one of the following: packet priority field modification, carrying a specific virtual local area network and carrying a specific field.

4. The network fault diagnosis method according to claim 3, characterized in that, When the dyeing mode of the dyed packet is packet priority dyeing, the informing the near-end user layer to perform dyeing on the damaged service packet to generate a dyed packet comprises the following steps of: setting a packet priority of the damaged service packet to a preset priority through the near-end user layer to obtain a dyed packet.

5. The network fault diagnosis method according to claim 4, characterized in that, The adding a tunnel header field carrying tunnel dyeing information to the dyed packet through the near-end access layer comprises the following steps of: performing tunnel priority mapping on the dyed packet through the near-end access layer so that a head priority of a transmission tunnel is a preset priority to obtain a tunnel header field carrying tunnel dyeing information; encapsulating the transmission tunnel so that the tunnel header field is added to the dyed packet to obtain the dyed packet carrying tunnel dyeing information.

6. The network fault diagnosis method according to claim 5, characterized in that, The sequentially transmitting the dyed packet with added tunnel dyeing information among devices of the transmission layer so that each hop device of the transmission layer performs matching and counting on the dyed packet according to a preset matching rule to obtain a number of the dyed packet received by each hop device of the transmission layer comprises the following steps of: sequentially transmitting the dyed packet with added tunnel dyeing information among devices of the transmission layer so that each hop device of the transmission layer performs matching and counting on the tunnel header field according to an access control list to obtain a number of the tunnel header field received by each hop device of the transmission layer; According to the number of the tunnel header fields, the number of the colored packets received by each hop device of the transport layer is obtained.

7. The network fault diagnosis method according to claim 2, wherein When the coloring manner of the colored packet is carrying a specific virtual local area network, the method further comprises: Adding a preset virtual local area network label inside the damaged service through the near-end user layer to obtain the colored packet.

8. The network fault diagnosis method according to claim 7, characterized in that, The method further comprises: Adding a tunnel header field carrying tunnel coloring information to the colored packet through the near-end access layer; Translating the virtual local area network label to an inner layer virtual local area network of the transport tunnel through a preset virtual local area network translation table of the near-end access layer to obtain the tunnel header field carrying tunnel coloring information; 9. The network fault diagnosis method according to claim 8, characterized in that, The method further comprises: According to the number of the tunnel header fields, the number of the colored packets received by each hop device of the transport layer is obtained. When the coloring manner of the colored packet is carrying a specific field, the method further comprises:

10. The network fault diagnostic method according to claim 1, wherein Modifying a preset field of the damaged service packet through the near-end user layer to obtain the colored packet. The method further comprises:

11. The network fault diagnosis method according to claim 10, wherein According to the colored packet, the matching rules and coloring strategies of the near-end access layer, the transport layer and the far-end access layer are configured. The method further comprises:

12. The network fault diagnostic method according to claim 1, wherein Comparing the number of the colored packets received by each layer to obtain a comparison result; According to the comparison result, the location of the network fault is determined. The method further comprises:

13. The network fault diagnostic method of claim 1, wherein, Displaying the location of the network fault. The processor executes the computer program to implement the network fault diagnosis method in any one of claims 1 to 13.

14. A network fault diagnostic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The computer executable instructions are stored in the computer readable storage medium, and are used to execute the network fault diagnosis method in any one of claims 1 to 13.

15. A computer storage medium, comprising, ​

Citation Information

Patent Citations

  • Method, equipment and system for measuring quality of business at terminal

    CN105072629A

  • Data transmission quality inspection method and device

    CN106130825A