CN115913910A - Method and device for determining message transmission path fault - Google Patents

Method and device for determining message transmission path fault Download PDF

Info

Publication number
CN115913910A
CN115913910A CN202111162061.4A CN202111162061A CN115913910A CN 115913910 A CN115913910 A CN 115913910A CN 202111162061 A CN202111162061 A CN 202111162061A CN 115913910 A CN115913910 A CN 115913910A
Authority
CN
China
Prior art keywords
target
message
transmission path
determining
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111162061.4A
Other languages
Chinese (zh)
Inventor
孙成恩
骆旭剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN202111162061.4A priority Critical patent/CN115913910A/en
Priority to PCT/CN2022/091516 priority patent/WO2023050817A1/en
Publication of CN115913910A publication Critical patent/CN115913910A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and a device for determining the fault of a message transmission path, wherein the method comprises the steps of determining the transmission path of a target message; acquiring a target identifier corresponding to the target message; determining the target message statistical quantity respectively corresponding to each node port passed by the transmission path according to the target identification; and determining the position of the fault in the transmission path according to the node port meeting a first condition, wherein the first condition is that the statistical quantity of the target messages corresponding to the node port is smaller than a preset quantity threshold value. The invention can accurately position the position of the fault in the network and determine the specific transmission link and equipment of the network fault.

Description

Method and device for determining message transmission path fault
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for determining a failure of a packet transmission path, an electronic device, and a storage medium.
Background
In the related art, the judgment of network faults, packet loss and other conditions is end-to-end, for example, only whether the network faults, packet loss and other conditions occur between a source node and a sink node can be judged, the fault position in the network cannot be quickly and accurately positioned, the time affected by the network faults is prolonged, and the loss which cannot be estimated is generated to an operator.
Disclosure of Invention
The embodiment of the invention provides a method, a device, electronic equipment and a storage medium for determining a message transmission path fault, which can accurately position the fault position in a network.
In a first aspect, an embodiment of the present invention provides a method for determining a failure of a packet transmission path, where the method includes:
determining a transmission path of a target message;
acquiring a target identifier corresponding to the target message;
determining the target message statistics quantity corresponding to each node port passed by the transmission path according to the target identification;
and determining the position of the fault in the transmission path according to the node port meeting a first condition, wherein the first condition is that the statistical quantity of the target messages corresponding to the node port is less than a preset quantity threshold value.
In a second aspect, an embodiment of the present invention provides an apparatus for determining a failure of a packet transmission path, where the apparatus includes:
the path determining module is used for determining a transmission path of the target message;
a sending module, configured to send a message modification request to an initial node in the transmission path, so as to modify the target message according to the message modification request by the initial node, where the target message carries a target identifier;
the statistical module is used for determining the statistical quantity of the target messages respectively corresponding to each node port passed by the transmission path according to the target identification;
and the fault determining module is used for determining the position of the fault in the transmission path according to the node port meeting a first condition, wherein the first condition is that the statistical quantity of the target messages corresponding to the node port is smaller than a preset quantity threshold value.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
a memory for storing a program;
a processor for executing the memory-stored program, the processor being configured to perform, when the processor executes the memory-stored program: the method for determining a failure of a message transmission path as provided in the first aspect above.
In a fourth aspect, an embodiment of the present invention provides a storage medium storing computer-executable instructions for performing: the method for determining a failure of a message transmission path as provided in the first aspect above.
In the embodiment of the present invention, a transmission path of a target packet is determined, a target identifier corresponding to the target packet is obtained, a statistical quantity of the target packet corresponding to each node port through which the transmission path passes is determined according to the target identifier, and whether a failure occurs in the transmission path is determined according to a relationship between the statistical quantity of the target packet corresponding to the node port and a preset quantity threshold, that is, whether the statistical quantity of the corresponding target packet is smaller than the preset quantity threshold, and a location where the failure occurs in the transmission path can be located, that is, a specific transmission link and a specific device where a network failure occurs are determined. Therefore, the time of the influence of the network fault is shortened, and the loss caused by the fault is reduced.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a schematic view of an application scenario of a method for determining a failure of a packet transmission path according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for determining a failure of a packet transmission path according to an embodiment of the present invention;
fig. 3 is a schematic specific flowchart of step S230 in the method for determining a message transmission path failure in fig. 2;
fig. 4 is a schematic structural diagram of a physical device in a physical layer according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for determining a failure of a packet transmission path according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In addition, the technical features related to the respective embodiments of the present invention described below may be combined with each other as long as they do not form a conflict with each other.
With the development of virtualization technology, three-layer networking is generated: a physical layer, a virtual layer, and an application layer. Although the special requirements of operators on the network are well met by the virtualization three-layer networking, the positioning and recovery of service faults are complex compared with the traditional network, and the requirements for rapid positioning and recovery of faults cannot be met by a pure manual mode.
In the related art, the conditions of network failure, packet loss and the like are determined end to end, for example, it can only be determined whether the network failure, packet loss and the like occur between a source node and a sink node, and it cannot be quickly determined which layer, which link and which device the network failure occurs on, which prolongs the time affected by the network failure and generates an unpredictable loss to an operator.
Based on this, the embodiments of the present invention provide a method, an apparatus, an electronic device, and a storage medium for determining a message transmission path fault, which can accurately locate a specific location where a fault occurs in a network, and determine a specific transmission link and a specific device where a network fault occurs.
For facilitating those skilled in the art to understand the embodiment of the present invention, the following first describes the architecture of the virtualized three-tier network provided in the embodiment of the present invention.
Fig. 1 is a schematic view of an application scenario of a method for determining a failure of a packet transmission path according to an embodiment of the present invention. Referring to fig. 1, an application scenario of the method for determining a message transmission path fault provided in the embodiment of the present invention includes a virtualized network, where the virtualized network adopts a three-layer networking architecture and includes a physical layer, a virtual layer, and an application layer.
In the above-described virtualized network, the physical layer includes a router 100, an EOR (End of Row) switch 110, a TOR (Top of Rack) switch 120, and a host 130.
In the above virtualization network, the virtual layer includes the virtual switch 140 and the virtual machine 150, the virtual machine 150 is deployed in the host 130, and the physical port of the host 130 and the virtual machine port of the virtual machine 150 can be managed through the virtual switch 140.
In the above-described virtualized network, the application layer includes various types of network elements 160, and various virtual machines 150 responsible for different functions are provided in the network elements 160.
A network element 160 may include multiple virtual machines 150, different virtual machines 150 may be deployed on the same host 130 or on different hosts 130, one host 130 may link multiple TOR switches 120, and one TOR switch 120 may link multiple EOR switches 110. Therefore, there are multiple optional message transmission paths between the sending device and the receiving device. It is to be understood that the sending device refers to a specific sending location, such as a network element, an intra-network element module, a service, a microservice or software, etc.
Fig. 2 is a schematic flowchart of a method for determining a failure of a packet transmission path according to an embodiment of the present invention. Referring to fig. 2, the method for determining a failure of a packet transmission path according to the embodiment of the present invention includes the following steps:
step S210, determining a transmission path of the target packet.
In some embodiments, based on the virtualized three-tier networking, a transmission path of the target packet includes a virtual node and a physical node, where the virtual node includes a virtual machine, and the physical node includes at least one of: the system comprises a host, a TOR switch, an EOR switch and a router; the node ports passed by the transmission path comprise a virtual machine port, a host incoming port, a host outgoing port, a TOR switch incoming port, a TOR switch outgoing port, an EOR switch incoming port, an EOR switch outgoing port, a router incoming port and a router outgoing port.
It can be understood that, based on the above virtualized three-layer networking, a transmission path of a target packet from a sending device to a receiving device is different, and nodes and node ports included in the transmission path are also different, for example, a target packet sent from a sending device passes through a virtual machine and returns to a receiving device when reaching a host, that is, the transmission path of the target packet includes a node: virtual machine, and node port: the virtual machine port, or alternatively, a target packet sent from the sending device, passes through the virtual machine and the host, and returns to the receiving device when reaching the TOR switch, that is, a transmission path of the target packet includes a node: virtual machine, host and TOR switch, and node port: in addition, the target message may also be returned to the receiving device at the EOR switch or the router, which is not described herein again.
In some embodiments, determining the transmission path of the target packet includes obtaining packet information of the target packet, where the packet information includes at least one of: a message location characteristic, a message service characteristic, and a message Internet Protocol (IP) characteristic; and determining a transmission path of the target message according to the message information.
The message location characteristics include, for example, sending equipment, receiving equipment, and the like, and it should be noted that the sending equipment refers to a specific location for sending a message, such as a network element, an intra-network element module, a service, a micro-service, or software.
Illustratively, the message service characteristics include, user, service type, and the like.
Illustratively, the packet IP characteristics include a source destination address, a source destination port, a protocol type, virtual Routing Forwarding (VRF), and the like.
It should be noted that, in the foregoing embodiment, determining, according to the message information, a transmission path of the target message may include: determining transmission paths of target messages at different sending positions according to the message position characteristics; or, according to the message service characteristics, determining the transmission path of a specific service message; or, according to the IP characteristics of the message, determining a transmission path of the target message from the sending equipment to the receiving equipment; the transmission path of the target message from the sending device to the receiving device can be determined according to any combination of message position characteristics, message service characteristics and message IP characteristics. According to different message information, transmission paths containing different information of different target messages can be determined, which is not listed herein. It should be understood that the transmission path defined herein includes the node and node port information on the transmission path.
Before determining the transmission path of the target message according to the message information, the embodiment of the present invention may further include the following steps:
and acquiring the adjacency relation of each node in the network, and determining an optional transmission link in the network according to the adjacency relation of each node.
It will be appreciated that each node in the network comprises nodes in the physical, virtual and application layers of a virtualized three-layer network as described above, i.e. the optional transmission link is a link comprising a physical, virtual and application layer three-layer network.
In a specific embodiment, according to the message position characteristic position, the message service information and the message IP characteristic, a virtual machine which interacts with the outside in the message sending equipment is determined, and then the relation between the application layer and the virtual layer is determined. According to the virtual machine which interacts with the outside in the message sending equipment, the host where the virtual machine is located is determined, and the contact between the virtual layer and the physical layer can be determined. Thus, the links between physical layer, virtual layer and application layer three-layer networking can be determined.
In another specific embodiment, based on the above virtualized three-Layer networking, referring to fig. 4, fig. 4 is a schematic structural diagram of physical devices in a physical Layer provided in the embodiment of the present invention, in which a router 200, an EOR switch 210, a TOR switch 220, a host 230, a Link Layer Discovery Protocol (LLDP) are started, a device identification number (session identification) and a device Port identification number (Port ID) of the host are notified to each other, and an adjacent relationship between the devices may be stored as follows:
router 200 stores adjacency relationships with its adjoining EOR switches 210;
EOR switch 210 stores the adjacency relationship of TOR switch 220 and router 200 adjacent thereto;
TOR switch 220 stores the adjacency relationship with its adjoining hosts 230 and EOR switch 210;
the host 230 stores the adjacency relationship with the TOR switch 220 adjacent thereto.
It should be noted that, in the above embodiment, the optional transmission link between the acknowledgement host and the TOR switch may be: acquiring the Chassis ID of opposite-end equipment of the host and the Port ID of an opposite-end Port, comparing the acquired Chassis ID with the Chassis IDs of all TOR switches in a physical layer, after matching, comparing the acquired Port ID with the Port IDs of all ports of the TOR switches, and if the acquired Port ID and the Port IDs of all ports of the TOR switches are the same, the two ports are linked by a link.
It should be noted that, in the above embodiment, the optional transmission link between the TOR switch and the EOR switch may be: acquiring the Chassis ID of opposite-end equipment of the TOR switch and the Port ID of an opposite-end Port, comparing the acquired Chassis ID with the Chassis IDs of all EOR switches in a physical layer, after matching, comparing the acquired Port ID with the Port IDs of all ports of the EOR switches matched, and if the Port IDs are the same, enabling the two ports to have link connection. In addition, the above steps are also applicable to confirm the optional transmission link between the EOR switch and the router, and are not described herein again. Thus, the link between physical devices within the physical layer may be determined.
It can be understood that, a link between the sending device and the receiving device may change, a virtual machine in a network element of the application layer may migrate to a different host, and links between the host, the TOR switch, the EOR switch, and the router change, so that the link between the sending device and the receiving device is uncertain, and when the failure detection of the packet transmission path is performed again, the adjacency relation of each node in the network is obtained again, and the optional transmission link in the network is re-determined according to the adjacency relation of each node.
It should be understood that, determining the link between the physical devices in the physical layer may also be, when an instruction interface is opened between the physical devices, by obtaining configured device configuration information and message information, finding the outgoing interface and next hop information of each physical device, and finally forming a transmission path of the message between the physical devices.
In the embodiment of the present invention, determining a transmission path of a packet according to packet information includes: and determining a transmission path of the target message from the optional transmission link according to the message information.
It should be noted that, based on the above virtualization three-layer networking, the optional transmission link includes all transmission paths of the physical layer, the virtual layer, and the application layer, and the target packet is sent from the sending device and may return to the receiving device from the host, the TOR switch, the EOR switch, or the router, so that the actual transmission path of the target packet may not completely include all nodes and node ports on the optional transmission path.
Step S220, obtaining a target identifier corresponding to the target packet. It should be noted that the target identifier may be set in a data field of the target packet, or may be set in an identifier field of the target packet.
Step S230, determining the statistical number of the target packets corresponding to each node port through which the transmission path passes according to the target identifier.
And according to the target identifier arranged in the target message, counting the message quantity of the target message corresponding to the target identifier at each node port passed by the transmission path.
It is understood that, based on the above-described virtualized three-tier networking, the node ports through which the transmission path passes may be a virtual machine port, a host ingress port, a host egress port, a TOR switch ingress port, a TOR switch egress port, an EOR switch ingress port, an EOR switch egress port, a router ingress port, and a router egress port. For example, when a target message is sent from a sending device, a TOR switch is reached and returns to a receiving device, node ports through which a transmission path of the target message passes include a virtual machine port, a host ingress port, a host egress port, a TOR switch ingress port and a TOR switch egress port, and thus, the statistical number of the target message of corresponding target identifiers at the virtual machine port, the host ingress port, the host egress port, the TOR switch ingress port and the TOR switch egress port is determined.
In some embodiments, the target identifier is set in a Differentiated Services Code Point (DSCP) field of the target packet, and determines the statistical number of the target packet corresponding to each node port through which the transmission path passes, where, referring to fig. 3, the method includes:
step S310, for each node port passed by the transmission path, respectively obtaining the message received by the node port;
step S320, when the DSCP field in the message received by the node port is a preset field value, determining the message as a target message;
step S330, counting the number of the target messages received by the node ports to obtain the counted number of the target messages corresponding to the node ports.
Based on the above-mentioned virtualized three-layer networking, the description will be given by taking an example in which a target message is sent from a sending device and returns to a receiving device when arriving at a TOR switch. The node ports through which the transmission path of the target message passes include a virtual machine port, a host incoming port, a host outgoing port, a TOR switch incoming port and a TOR switch outgoing port, so that the messages received by the node ports are respectively acquired, when a DSCP field in the received messages is a preset field value, the messages are determined as the target messages, and then the number of the target messages received by the node ports is counted to obtain the counted number of the target messages corresponding to the node ports.
It should be noted that the DSCP uses 6 bits in the TOS flag byte of the service class of each datagram IP header to classify the service class and prioritize the service, where the DSCP value ranges from 0 to 63. The DSCP value of the message is modified to mark the message, so that the function of identifying the target message is achieved, and meanwhile, the DSCP value of the message is modified, so that the length of the target message cannot be increased, and data information carried by the target message cannot be influenced.
It should be understood that the data field or other identification field of the target packet is modified, so that the target packet carries the target identification, and the target packet can be identified as such. When the target identifier is set in the data field or other identifier fields of the target packet, determining the statistical number of the target packets corresponding to each node port through which the transmission path passes is also applicable to the above method steps, and details are not repeated here.
In some embodiments, the last two bits of the DSCP field of the target packet are both fixed values of 1.
And modifying the DSCP value of the target message to mark the message, thereby achieving the purpose of identifying the target message. In order to more accurately identify the target message and avoid the conflict with the commonly used DSCP value, when the target message is modified, the last two bits of the DSCP field are both fixed values of 1.
It should be noted that the last two bits refer to 2 bits of the DSCP field except for 6 bits used for dividing the service class, specifically, two bits of the last two bits of the DSCP field, for example, the DSCP field is set to 101111B, that is, the DSCP value is 47, or the DSCP field is set to 110111B, that is, the DSCP value is 55.
After determining the transmission path of the packet and before determining the statistical number of the target packets respectively corresponding to each node port through which the transmission path passes, the embodiments of the present invention may further include: and sending a message modification request to an initial node passed by the transmission path so as to modify the target message through the initial node according to the message modification request, so that the target message carries a target identifier.
After the transmission path of the message is determined, a message modification request is sent to an initial node passed by the transmission path, so that the initial node modifies a target message according to the message modification request, the target message carries a target identifier, and then the statistical quantity of the target message corresponding to each node port passed by the transmission path can be determined.
It will be appreciated that the originating node through which the transmission path passes may be a node in the physical, virtual and application layers of a virtualized three-layer network as described above. Optionally, the originating node modifies the target packet according to the packet modification request, which may be modifying a data field of the target packet so that the target packet carries the target identifier, or modifying an identifier field of the target packet so that the target packet carries the target identifier.
Step S240, determining a location of the transmission path where the failure occurs according to the node port meeting a first condition, where the first condition is that the statistical number of the target packets corresponding to the node port is smaller than a preset number threshold.
And determining the position of the fault in the transmission path, namely determining the specific transmission link and equipment with the network fault according to the relation between the statistical quantity of the target messages corresponding to the node ports and the preset quantity threshold, namely whether the statistical quantity of the corresponding target messages is smaller than the preset quantity threshold.
It can be understood that the preset number threshold is the total number of target packets carrying the target identifier, and in a specific embodiment, the preset number threshold is the total number of target packets carrying the target identifier, which is sent by an initial node through which a transmission path passes through modifying a DSCP field of the target packet according to a packet modification request, that is, the total number of target packets whose DSCP is set to a specific value.
Based on the above-mentioned virtualized three-layer networking, the description will be given by taking an example in which a target message is sent from a sending device and returns to a receiving device when reaching an EOR switch. The node ports through which the transmission path of the target message passes include a virtual machine port, a host ingress port, a host egress port, a TOR switch ingress port, a TOR switch egress port, an EOR switch ingress port and an EOR switch egress port, and the embodiments of the present invention determine the statistical number of the target message of the node ports, and then determine the position of a transmission fault in the transmission path, including the following conditions:
if the number of the target packets carrying the target identifier is 1200, that is, the preset number threshold is 1200, the statistical number of the target packets at the virtual machine port is 1200, the statistical number of the target packets at the host ingress port is 1200, the statistical number of the target packets at the host egress port is 1100, and the statistical number of the target packets at the other node ports is 1100, it may be determined that the location where the failure occurs in the transmission path is the host device in the physical layer.
For another example, if the number of the target packets carrying the target identifier is 1400, that is, the preset number threshold is 1400, the statistical number of the target packets at the ports of the virtual machine is 1400, the statistical number of the target packets at the outgoing ports of the host is 1400, the statistical number of the target packets at the incoming ports of the TOR switch is 1300, and the statistical number of the target packets at the ports of other nodes is 1300, it can be determined that the failure position in the transmission path is on the link from the host to the TOR switch in the physical layer.
For another example, if the number of target packets carrying the target identifier is 1600, that is, the preset number threshold is 1600, the statistical number of target packets at the virtual machine port is 1500, and the statistical number of target packets at other node ports is 1500, it may be determined that the location where the failure occurs in the transmission path is on the link from the application layer to the virtual layer.
When a failure occurs in the transmission path at another position of the virtualized three-layer networking, the above method steps are also applicable, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments are focused, and for parts that are not described or recited in detail in a certain embodiment, reference may be made to the descriptions of other embodiments.
In the embodiment of the invention, the transmission path of the target message is determined, the target identifier corresponding to the target message is obtained, the statistical quantity of the target message corresponding to each node port through which the transmission path passes is determined according to the target identifier, and the position where the fault occurs in the transmission path is positioned according to the relation between the statistical quantity of the target message corresponding to the node port and the preset quantity threshold value, namely whether the statistical quantity of the corresponding target message is smaller than the preset quantity threshold value, namely the specific transmission link and equipment where the network fault occurs are determined.
Fig. 5 is a schematic structural diagram of an apparatus 300 for determining a failure of a packet transmission path according to an embodiment of the present invention. Referring to fig. 5, an apparatus 300 for determining a failure of a packet transmission path according to an embodiment of the present invention includes:
a path determining module 310, configured to determine a transmission path of the target packet;
a sending module 320, configured to send a message modification request to an initial node in a transmission path, so as to modify a target message according to the message modification request by the initial node, where the target message carries a target identifier;
a counting module 330, configured to determine, according to the target identifier, a counted number of target packets corresponding to each node port through which the transmission path passes;
the failure determining module 340 is configured to determine a location of a failure occurring in the transmission path according to the node port meeting a first condition, where the first condition is that a statistical number of target packets corresponding to the node port is smaller than a preset number threshold.
It should be noted that, because the above-mentioned information interaction between the modules, the execution process, and other contents are based on the same concept, specific functions, and technical effects brought by the method embodiment of the present application may be specifically referred to a part of the method embodiment, and are not described herein again.
In the embodiment of the invention, a transmission path of a target message is determined by a path determination module, then a message modification request is sent to an initial node in the transmission path by a sending module, the target message is modified by the initial node according to the message modification request, so that the target message carries a target identifier, a statistical module determines the statistical quantity of the target message corresponding to each node port through which the transmission path passes according to the target identifier on the modified target message after the initial node modifies the target message, and finally, a fault determination module determines whether the statistical quantity of the corresponding target message is smaller than a preset quantity threshold value or not according to the relation between the statistical quantity of the target message corresponding to the node port and the preset quantity threshold value, namely whether the statistical quantity of the corresponding target message is smaller than the preset quantity threshold value or not, so as to locate the position of a fault in a network.
Fig. 6 illustrates an electronic device 400 provided by an embodiment of the invention. As shown in fig. 6, the electronic device 400 includes, but is not limited to:
a memory 420 for storing a program;
the processor 410 is configured to execute the program stored in the memory 420, and when the processor 410 executes the program stored in the memory 420, the processor 410 is configured to perform the above-mentioned method for determining the message transmission path failure.
The processor 410 and the memory 420 may be connected by a bus or other means.
The memory 420, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs and non-transitory computer executable programs, such as the method for determining a message transmission path failure described in any of the embodiments of the present invention. The processor 410 implements the above-described method of determining a message transmission path failure by executing a non-transitory software program and instructions stored in the memory 420.
The memory 420 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data for performing the above-described method of determining a failure of a message transmission path. Further, the memory 420 may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 420 may optionally include memory located remotely from the processor 410, which may be connected to the processor 410 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The non-transitory software programs and instructions necessary to implement the above-described method of determining a message transmission path failure are stored in the memory 420 and, when executed by the one or more processors 410, perform the method of determining a message transmission path failure described in any of the embodiments of the present invention, e.g., perform the method steps S210 to S240 described in fig. 2 and the method steps S310 to S330 described in fig. 3.
The embodiment of the invention also provides a storage medium, which stores computer-executable instructions, and the computer-executable instructions are used for executing the method for determining the message transmission path fault.
In one embodiment, the storage medium stores computer-executable instructions, which are executed by one or more control processors, for example, by one or more processors 410 of the electronic device 400, and enable the one or more processors 410 to execute the method for determining a message transmission path fault according to any embodiment of the present invention, for example, execute the method steps S210 to S240 described in fig. 2 and the method steps S310 to S330 described in fig. 3.
The embodiments described above are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also be distributed over a plurality of network elements. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
It will be understood by those of ordinary skill in the art that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, or suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes 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, as is well known to those skilled in the art. 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 accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
While the preferred embodiments of the present invention have been described in detail, the present invention is not limited to the above embodiments, and those skilled in the art will appreciate that the present invention is not limited thereto. Under the shared conditions, various equivalent modifications or substitutions can be made, and the equivalent modifications or substitutions are included in the scope of the invention defined by the claims.

Claims (10)

1. A method of determining a message transmission path failure, the method comprising:
determining a transmission path of a target message;
acquiring a target identifier corresponding to the target message;
determining the statistical quantity of target messages respectively corresponding to each node port passed by the transmission path according to the target identification;
and determining the position of the fault in the transmission path according to the node port meeting a first condition, wherein the first condition is that the statistical quantity of the target messages corresponding to the node port is smaller than a preset quantity threshold value.
2. The method of claim 1, wherein the destination identifier is set in a DSCP field of the destination packet;
the determining the statistical number of the target packets corresponding to each node port through which the transmission path passes includes:
for each node port passed by the transmission path, respectively acquiring messages received by the node ports;
when the DSCP field in the message received by the node port is a preset field value, determining the message as a target message;
and counting the number of the target messages received by the node port to obtain the counted number of the target messages corresponding to the node port.
3. The method of claim 2, wherein the last two bits of the DSCP field of the target packet are both fixed values of 1.
4. The method of claim 1, wherein the determining the transmission path of the target packet comprises:
acquiring message information of the target message, wherein the message information comprises at least one of the following: message location characteristics, message service characteristics and message IP characteristics;
and determining the transmission path of the target message according to the message information.
5. The method of claim 4, wherein before said determining a transmission path of the target packet according to the packet information, the method further comprises:
acquiring the adjacency relation of each node in a network, and determining an optional transmission link in the network according to the adjacency relation of each node;
the determining a transmission path of the packet according to the packet information includes:
and determining the transmission path of the target message from the optional transmission link according to the message information.
6. The method of claim 1, wherein the transmission path comprises a virtual node and a physical node, wherein the virtual node comprises a virtual machine, and wherein the physical node comprises at least one of: the system comprises a host, a TOR switch, an EOR switch and a router;
the node ports passed by the transmission path comprise a virtual machine port, a host incoming port, a host outgoing port, a TOR switch incoming port, a TOR switch outgoing port, an EOR switch incoming port, an EOR switch outgoing port, a router incoming port and a router outgoing port.
7. The method according to claim 1, wherein after the determining the transmission path of the packet, before the determining the statistical number of the target packets corresponding to each node port through which the transmission path passes, the method further comprises:
and sending a message modification request to an initial node passed by the transmission path, so that the initial node modifies the target message according to the message modification request, and the target message carries a target identifier.
8. An apparatus for determining a failure of a message transmission path, the apparatus comprising:
the path determining module is used for determining a transmission path of the target message;
a sending module, configured to send a message modification request to an initial node in the transmission path, so as to modify the target message according to the message modification request by the initial node, where the target message carries a target identifier;
the statistical module is used for determining the statistical quantity of the target messages respectively corresponding to each node port passed by the transmission path according to the target identification;
and the fault determining module is used for determining the position of the fault in the transmission path according to the node port meeting a first condition, wherein the first condition is that the statistical quantity of the target messages corresponding to the node port is smaller than a preset quantity threshold value.
9. An electronic device, comprising:
a memory for storing a program;
a processor for executing the memory-stored program, the processor being configured to perform, when the processor executes the memory-stored program: the method of any one of claims 1 to 7.
10. A storage medium having stored thereon computer-executable instructions for performing: the method of any one of claims 1 to 7.
CN202111162061.4A 2021-09-30 2021-09-30 Method and device for determining message transmission path fault Pending CN115913910A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111162061.4A CN115913910A (en) 2021-09-30 2021-09-30 Method and device for determining message transmission path fault
PCT/CN2022/091516 WO2023050817A1 (en) 2021-09-30 2022-05-07 Method and apparatus for determining packet transmission path fault

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111162061.4A CN115913910A (en) 2021-09-30 2021-09-30 Method and device for determining message transmission path fault

Publications (1)

Publication Number Publication Date
CN115913910A true CN115913910A (en) 2023-04-04

Family

ID=85729496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111162061.4A Pending CN115913910A (en) 2021-09-30 2021-09-30 Method and device for determining message transmission path fault

Country Status (2)

Country Link
CN (1) CN115913910A (en)
WO (1) WO2023050817A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4704120B2 (en) * 2005-06-13 2011-06-15 富士通株式会社 Network failure detection apparatus and network failure detection method
CN101848474B (en) * 2010-05-07 2013-10-02 华为技术有限公司 Communication link monitoring method and device
CN106301821A (en) * 2015-05-15 2017-01-04 中兴通讯股份有限公司 A kind of tunnel method for detecting packet loss, device and network communication equipment
CN105743711B (en) * 2016-04-13 2019-10-18 华为技术有限公司 A kind of fault detection method of network path, device and the network equipment
CN108400900B (en) * 2017-02-06 2023-03-14 中兴通讯股份有限公司 Message detection, configuration, forwarding and statistical method and device, controller and system

Also Published As

Publication number Publication date
WO2023050817A1 (en) 2023-04-06

Similar Documents

Publication Publication Date Title
US11240066B2 (en) System and method for distributed flow state P2P setup in virtual networks
US11431554B2 (en) Mechanism for control message redirection for SDN control channel failures
CN108702326B (en) Method, device and non-transitory machine-readable medium for detecting SDN control plane loops
CN108353006B (en) Non-intrusive method for testing and profiling network service functions
CN109076018B (en) Method and equipment for realizing network element in segmented routing network by using IS-IS protocol
EP3304812B1 (en) Method and system for resynchronization of forwarding states in a network forwarding device
CN112262549B (en) Robust node failure detection mechanism for SDN controller clusters
CN107078963B (en) Route tracing in virtual extensible local area networks
EP3183849A1 (en) Forwarding packet fragments using l4-l7 headers without reassembly in a software-defined networking (sdn) system
KR102066978B1 (en) Method and apparatus for data plane for monitoring differentiated service code point (DSCP) and explicit congestion notification (ECN)
CN108604997B (en) Method and apparatus for a control plane to configure monitoring of Differentiated Services Coding Points (DSCPs) and Explicit Congestion Notifications (ECNs)
US20210258251A1 (en) Method for Multi-Segment Flow Specifications
CN111614505B (en) Message processing method and gateway equipment
US11522792B2 (en) Method for discovering forwarding path and related device thereof
WO2018150223A1 (en) A method and system for identification of traffic flows causing network congestion in centralized control plane networks
WO2018154352A1 (en) Mechanism to detect data plane loops in an openflow network
US20220247679A1 (en) Method and apparatus for layer 2 route calculation in a route reflector network device
CN104506369A (en) Packet loss position detecting method and device
CN115913910A (en) Method and device for determining message transmission path fault
WO2023011200A1 (en) Information verification method and device, storage medium, and electronic device
CN108462635A (en) A kind of communication network path in more place networks and status information
KR20230093015A (en) Information processing method, node and computer readable storage medium
CN114450671A (en) Method and system for cache management in a network device
WO2021216043A1 (en) Distributed network flow record
CN115668883A (en) Transient loop prevention in Ethernet virtual private network egress fast reroute

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication