CN117319270A - Network testing method and related device - Google Patents

Network testing method and related device Download PDF

Info

Publication number
CN117319270A
CN117319270A CN202210712878.2A CN202210712878A CN117319270A CN 117319270 A CN117319270 A CN 117319270A CN 202210712878 A CN202210712878 A CN 202210712878A CN 117319270 A CN117319270 A CN 117319270A
Authority
CN
China
Prior art keywords
host
message
network management
ping
tunnel
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
CN202210712878.2A
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.)
Beijing Huawei Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN202210712878.2A priority Critical patent/CN117319270A/en
Publication of CN117319270A publication Critical patent/CN117319270A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • 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/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/34Source routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application discloses a network testing method which is used for realizing a PING function and a trace routing function between two hosts in different ISIS domains. The method comprises the following steps: the network management equipment sends a test command to the first host, wherein the test command is used for the first host to send a ping message to the second host through the SR-TP tunnel, and the first host and the second host are located in different ISIS domains. The network management equipment determines the network condition between the first host and the second host based on whether a ping response message from the second host is received within a preset time length, wherein the ping message is sent to the network management equipment by the second host through a management channel with the network management equipment.

Description

Network testing method and related device
Technical Field
The embodiment of the application relates to the field of networks, in particular to a network testing method and a related device.
Background
An internet packet probe (packet internet groper, PING) is a tool for determining whether a clear network exists between two hosts, one host determining whether a network is clear with the other host by sending a PING message to the other host and based on whether a PING response message from the other host is received. In a sliced packet network (slicing packet network, SPN), host a may send a ping message to host B over an SR-TP tunnel to determine whether the SR-TP tunnel between host a and host B is normal. However, if the host a and the host B belong to different intermediate system-to-intermediate system (intermediate system to intermediate system, ISIS) domains, since the routes between the different ISIS domains are not mutually communicated, the host B cannot send a ping response message to the host a through the IP route, so that a correct result cannot be known.
In existing solutions, the IP route between two ISIS domains may be opened so that the ping response message may be transmitted to host a based on the IP route. However, the above approach may disrupt the ISIS domain planning, affecting network stability.
Disclosure of Invention
The embodiment of the application provides a network testing method and a related device, which are used for realizing a PING function and a trace routing function between two hosts in different ISIS domains.
A first aspect of an embodiment of the present application provides a network testing method:
the network management device sends a test command to the first host, wherein the test command is used for the first host to send a ping message to the second host through a segment-routing transport profile (SR-TP) tunnel facing transmission, and the first host and the second host are located in different ISIS domains. The network management equipment determines the network condition between the first host and the second host based on whether a ping response message from the second host is received within a preset time length, wherein the ping response message is used for indicating the second host to receive the ping message, and the ping message is sent to the network management equipment by the second host through a management channel with the network management equipment.
In this embodiment of the present invention, if the second host receives the PING message, the second host may directly reply to the network management device by means of the management channel with the network management device, so that the PING function can be implemented even if the first host and the second host are located in different ISIS domains.
In one possible implementation manner, if the network management device does not receive the ping response message within a preset duration, the network management device determines that the SR-TP tunnel between the first host and the second host has a fault.
In one possible implementation manner, if the network management device receives the ping response message within a preset duration, the network management device determines that an SR-TP tunnel between the first host and the second host is normal.
In one possible implementation, the ping message and the ping response message carry a quadruple, where the quadruple includes an internet protocol (internet protocol, IP) address of the first host, an IP address of the second host, an identifier of the SR-TP tunnel, and an identifier of a label switched path (label switching path, LSP), and the LSP is used for transmission of the ping message Wen Xiangdi by the two hosts, where the LSP belongs to the SR-TP tunnel.
In the embodiment of the application, the network management equipment can determine the SR-TP tunnel and LSP corresponding to PING based on the four-tuple information.
In one possible implementation manner, the ping message includes indication information, where the indication information is used to instruct the second host to send a ping response message to the network management device.
A second aspect of an embodiment of the present application provides a network testing method:
The network management equipment sends a test command to the first host, wherein the test command is used for the first host to send a trace route message to the second host through the SR-TP tunnel, and the first host and the second host are located in different intermediate system-to-intermediate system ISIS domains. The network management equipment receives a trace route response message from a target host through a management channel with the target host, wherein the target host is a host on an LSP, the LSP is used for transmission of trace route message Wen Xiangdi two hosts, the LSP belongs to an SR-TP tunnel, and the trace route response message is sent to the network management equipment by the target host based on the received trace route message.
In the embodiment of the present application, the target host may reply to the network management device by using the management channel of the network management device to trace the route response message, so that even if the first host and the second host are located in different ISIS domains, the trace route function can be implemented.
In one possible implementation, the target host includes a second host.
In one possible implementation, the network management device may also display the identity of the target host.
In one possible implementation, the traceroute message and the traceroute reply message carry a quadruple, where the quadruple includes an IP address of the first host, an IP address of the second host, an identifier of the SR-TP tunnel, and an identifier of the LSP.
In the embodiment of the application, the network management equipment can determine the SR-TP tunnel and LSP corresponding to the tracking route based on the four-tuple information.
In one possible implementation manner, the trace route message includes indication information, where the indication information is used to instruct the target host to send a trace route response message to the network management device.
A third aspect of the embodiments of the present application provides a network testing method:
the second host receives a ping message from the first host, wherein the ping message is an indication of the first host based on network management equipment and is sent to the second host through an SR-TP tunnel, and the first host and the second host are located in different ISIS domains. The second host sends a ping response message to the network management equipment through a management channel with the network management equipment, wherein the ping response message is used for indicating the second host to receive the ping message.
In this embodiment of the present invention, if the second host receives the PING message, the second host may directly reply to the network management device by means of the management channel with the network management device, so that the PING function can be implemented even if the first host and the second host are located in different ISIS domains.
In one possible implementation manner, the ping message and the ping response message carry a quadruple, where the quadruple includes an IP address of the first host, an IP address of the second host, an identifier of the SR-TP tunnel, and an identifier of a label switched path LSP, where the LSP is used for transmission by two hosts of the ping message Wen Xiangdi, and the LSP belongs to the SR-TP tunnel.
In the embodiment of the application, the network management equipment can determine the SR-TP tunnel and LSP corresponding to PING based on the four-tuple information.
In one possible implementation manner, the ping message includes indication information, where the indication information is used to instruct the second host to send a ping response message to the network management device.
A fourth aspect of the embodiments of the present application provides a network testing method:
the target host receives a tracking route message from the first host, wherein the tracking route message is an indication of the first host based on network management equipment and is sent to the second host through an SR-TP tunnel, the target host is a host on an LSP, the LSP is used for transmission of the second host of the tracking route message Wen Xiangdi, the LSP belongs to the SR-TP tunnel, and the first host and the second host are located in different ISIS domains. The target host sends a trace route response message to the network management equipment through a management channel with the network management equipment based on the trace route message.
In the embodiment of the present application, the target host may reply to the network management device by using the management channel of the network management device to trace the route response message, so that even if the first host and the second host are located in different ISIS domains, the trace route function can be implemented.
In one possible implementation, the target host includes a second host.
In one possible implementation, the traceroute message and the traceroute reply message carry a quadruple, where the quadruple includes an IP address of the first host, an IP address of the second host, an identifier of the SR-TP tunnel, and an identifier of the LSP.
In the embodiment of the application, the network management equipment can determine the SR-TP tunnel and LSP corresponding to the tracking route based on the four-tuple information.
In one possible implementation manner, the trace route message includes indication information, where the indication information is used to instruct the target host to send a trace route response message to the network management device.
A fifth aspect of the embodiments of the present application provides a network management device:
the system comprises a receiving and transmitting unit, a transmitting unit and a receiving unit, wherein the receiving and transmitting unit is used for transmitting a test command to a first host, the test command is used for the first host to transmit a ping message to a second host through an SR-TP tunnel, and the first host and the second host are located in different ISIS domains. The determining unit is used for determining the network condition between the first host and the second host based on whether a ping response message from the second host is received within a preset duration, wherein the ping response message is used for indicating the second host to receive the ping message, and the ping message is sent to the network management equipment by the second host through a management channel with the network management equipment.
In one possible implementation manner, the determining unit is specifically configured to determine that a failure exists in the SR-TP tunnel between the first host and the second host if the ping response packet is not received within a preset duration.
In one possible implementation manner, the determining unit is specifically configured to determine that the SR-TP tunnel between the first host and the second host is normal when the ping response message is received within a preset duration.
In one possible implementation, the ping message and the ping response message carry a quadruple, where the quadruple includes an IP address of the first host, an IP address of the second host, an identifier of the SR-TP tunnel, and an identifier of the LSP, where the LSP is used for transmission of the ping message Wen Xiangdi by the two hosts, and the LSP belongs to the SR-TP tunnel.
In one possible implementation manner, the ping message includes indication information, where the indication information is used to instruct the second host to send a ping response message to the network management device.
A sixth aspect of the embodiments of the present application provides a network management device:
the system comprises a receiving and transmitting unit, a first host and a second host, wherein the receiving and transmitting unit is used for transmitting a test command to the first host, the test command is used for transmitting a trace route message to the second host through an SR-TP tunnel, and the first host and the second host are located in different ISIS domains. The receiving and transmitting unit is further configured to receive a trace route reply message from the target host through a management channel with the target host, where the target host is a host on an LSP, the LSP is used for transmission of the trace route message Wen Xiangdi, the LSP belongs to an SR-TP tunnel, and the trace route reply message is sent to the network management device by the target host based on the received trace route message.
In one possible implementation, the target host includes a second host.
In one possible implementation manner, the network management device further includes a display unit, where the display unit is configured to display the identifier of the target host.
In one possible implementation, the traceroute message and the traceroute reply message carry a quadruple, where the quadruple includes an IP address of the first host, an IP address of the second host, an identifier of the SR-TP tunnel, and an identifier of the LSP.
In one possible implementation manner, the trace route message includes indication information, where the indication information is used to instruct the target host to send a trace route response message to the network management device.
A seventh aspect of embodiments of the present application provides a host that may be used as a second host:
the system comprises a receiving and transmitting unit, a sending unit and a receiving unit, wherein the receiving and transmitting unit is used for receiving a ping message from a first host, the ping message is an indication of the first host based on network management equipment and is sent to a second host through an SR-TP tunnel, and the first host and the second host are located in different ISIS domains. The receiving and transmitting unit is further configured to send a ping response message to the network management device through a management channel with the network management device, where the ping response message is used to instruct the second host to receive the ping message.
In one possible implementation manner, the ping message and the ping response message carry a quadruple, where the quadruple includes an IP address of the first host, an IP address of the second host, an identifier of the SR-TP tunnel, and an identifier of an LSP, where the LSP is used for transmission by the two hosts of the ping message Wen Xiangdi, and the LSP belongs to the SR-TP tunnel.
In one possible implementation manner, the ping message includes indication information, where the indication information is used to instruct the second host to send a ping response message to the network management device.
A seventh aspect of the embodiments of the present application provides a host that may be used as a target host:
the system comprises a receiving and transmitting unit, a first host and a second host, wherein the receiving and transmitting unit is used for receiving a tracking route message from the first host, the tracking route message is an indication of the first host based on network management equipment, the first host transmits the tracking route message to the second host through an SR-TP tunnel, the target host is a host on an LSP, the LSP is used for transmitting the tracking route message Wen Xiangdi, the LSP belongs to the SR-TP tunnel, and the first host and the second host are located in different ISIS domains. The receiving and transmitting unit is also used for transmitting the trace route response message to the network management equipment through the management channel of the network management equipment based on the trace route message by the target host.
In one possible implementation, the target host includes a second host.
In one possible implementation, the traceroute message and the traceroute reply message carry a quadruple, where the quadruple includes an IP address of the first host, an IP address of the second host, an identifier of the SR-TP tunnel, and an identifier of the LSP.
In one possible implementation manner, the trace route message includes indication information, where the indication information is used to instruct the target host to send a trace route response message to the network management device.
An eighth aspect of the embodiments of the present application provides a network management device, including a processor and a memory, where the processor is coupled to the memory, and the memory is configured to store instructions, where the instructions, when executed by the processor, cause the network management device to perform the method in the first aspect or the second aspect.
An eighth aspect of the embodiments provides a host, for use as a second host, comprising a processor and a memory, the processor being coupled to the memory, the memory being for storing instructions which, when executed by the processor, cause the host to perform the method of the third aspect.
A ninth aspect of the embodiments of the present application provides a host for use as a target host, comprising a processor and a memory, the processor being coupled to the memory, the memory being for storing instructions which, when executed by the processor, cause the host to perform the method of the fourth aspect described above.
A tenth aspect of the embodiments of the present application provides a computer-readable storage medium having stored thereon computer instructions or programs which, when executed, cause a computer to perform a method as in any of the preceding aspects.
An eleventh aspect of the embodiments of the present application provides a computer program product comprising computer instructions or a program which, when executed, cause a computer to perform a method as in any of the preceding aspects.
Drawings
Fig. 1a is a schematic diagram of an SR-TP tunnel forwarding message in an embodiment of the present application;
FIG. 1b is a schematic diagram of the division of different ISIS domains in an embodiment of the present application;
fig. 2 is a schematic diagram of an application scenario in an embodiment of the present application;
FIG. 3 is a schematic flow chart of a network testing method according to an embodiment of the present application;
fig. 4 is a schematic diagram of a ping packet in an embodiment of the present application;
fig. 5 is a schematic diagram of TLV in an embodiment of the present application;
FIG. 6 is a schematic diagram of another flow chart of a network testing method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a network management device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a network management device according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a second host according to an embodiment of the present disclosure;
FIG. 10 is a schematic diagram of a target host according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a network management device, a second host, or a target host in the embodiment of the present application.
Detailed Description
Embodiments of the present application will now be described with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some, but not all embodiments of the present application. As a person of ordinary skill in the art can know, with the development of technology and the appearance of new scenes, the technical solutions provided in the embodiments of the present application are applicable to similar technical problems.
The terms first, second and the like in the description and in the claims of the present application and in the above-described figures, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
To facilitate an understanding of the present application, concepts related to the present application are described below:
PING: PING is a network diagnostic tool that can be used to determine whether a network between a local host and another host is clear. The local host sends a ping message to the other host, if the ping response message replied by the other host can be received within the preset time, the network between the two hosts is considered to be smooth, otherwise, the network between the two hosts is considered to have faults.
Tracking routes: for determining a route from the host a to the host B, the host a sends a plurality of trace route messages to the host B, wherein a lifetime in a first trace route message is 1, and then the lifetime in the trace route message sent is sequentially increased by one. After receiving the trace route message, the host and the host B along the way reduce the survival time in the trace route message by one, and if the survival time is zero after reducing by one, the host and the host B along the way reply the trace route response message to the host A; if the survival time is reduced by one and is not zero, the host along the way can continue to transmit the trace routing message to the next host. In this way, the host a can identify each host with the host B.
Slice packet networks (slicing packet network, SPN) are enterprise standard technologies for metropolitan area transport networks oriented to the 5G age. The SPN is architecturally divided into three layers, including a slice transport layer (slicing transport layer, STL), a slice channel layer (slicing channel layer, SCL), and a slice packet layer (slicing packet layer, SPL). Among other things, STL is used to solve the cost-effective high capacity problem, SCL is based on flexible ethernet (Flex) slicing technology, which fuses time-division multiplexing (time-division multiplexing, TDMA) and packets, providing differentiated service level agreements (service level agreement, SLA). SPL introduces segment-routing (SR) technology based on multiprotocol label switching (MPLS) technology, where transport-oriented segment-routing (SR-TP) tunneling is a SPL connection-oriented layer three packet transport technology.
Referring to fig. 1a, the sr-TP tunnel uses the source routing technology, if the host a needs to send a message to the host F, the controller, that is, the network management device, issues label stacks of 1003, 1006, and 100 to the host a, and issues label stacks of 1005, 1009, and 1010 to the host C, where 100 is an adhesive label and is associated with label stacks of 1005, 1009, and 1010. The host A is used as an ingress node, label stacks of 1003, 1006 and 100 are added in the message, a corresponding link is found according to the adjacent label 1003 at the top of the stack, and after the adjacent label 1003 is popped up, the message is sent to the host B. After receiving the message, the host B finds a corresponding link according to the adjacent label 1006 at the stack top, pops up the adjacent label 1006, and sends the message to the host C. The host C serves as an adhesion node, replaces the adhesion label 100 in the packet with label stacks of 1005, 1009 and 1010, and performs subsequent forwarding, which is not described in detail herein, and it should be understood that the path taken by the packet is an LSP of the SR-TP tunnel, that is, the hosts on the LSP are host a, host B, host C, host D, host E and host F in sequence. The SR-TP tunnel has the characteristic of unidirectional forwarding in forwarding, and a host along the way does not perceive the SR-TP tunnel to which the message being forwarded belongs, and is effectively a virtual tunnel.
If PING is performed on the SR-TP tunnel, the IP route is needed to be reachable between the host A and the host F, and the host F can reply a PING response message to the host A through the IP route. If the SR-TP tunnel is routed in a trace way, IP routing is needed to reach the host A, the host B, the host C, the host D and the host E, and the trace route response message replied by the host through the IP routing can be received. In SPN networking, however, hosts deployed in different locations may belong to different ISIS domains. For example, referring to fig. 1b, the access ring, the convergence ring, and the core ring in the spn networking are partitioned into different ISIS domains, and IP routes between the different ISIS domains are not interworking. Therefore, if the host a and the host F are located in different ISIS domains, PING and traceroute cannot be performed normally. In the prior art, the above problem can be solved by opening an IP route between ISIS domains, however, this approach can affect the planning of the ISIS domains and affect the stability of the network; alternatively, the above problem may be solved by means of a reverse SR-TP tunnel, for example, the host F replies a PING response message to the host a through the reverse SR-TP tunnel, thereby implementing the PING function. However, this approach relies on the corresponding configuration of the SR-TP tunnel between host a and host F, which is not a necessary option in practical applications.
The embodiment of the application provides a network testing method and a related device, which are used for realizing a PING function and a trace routing function between two hosts in different ISIS domains.
The embodiment of the application can be applied to the scene of PING and trace routing of the SR-TP tunnel between two cross ISIS domain hosts. Illustratively, as shown in fig. 2, the network includes a host 1, a host 2, a host 3, a host 4, and a network management device. Wherein host 1 is located in ISIS domain 1 and host 2 is located in ISIS domain 2. The network management device establishes management channels with the host 1, the host 2, the host 3 and the host 4 respectively, so that management of each host is realized.
Referring to fig. 3, the following describes a flow of a network testing method in an embodiment of the present application:
301. the network management equipment sends a test command to a first host;
in this embodiment, the first host may be understood as the host 1 shown in fig. 2, and the second host may be understood as the host 4 shown in fig. 2. The network management equipment sends a test command to the first host through the management channel, wherein the test command is used for the first host to initiate PING to the second host through the SR-TP tunnel. After receiving the test command, the first host acquires the configuration of the corresponding SR-TP tunnel, generates a ping message, and sends the ping message to the second host through the SR-TP tunnel, the ping message is transmitted to the second host through an LSP, and the hosts on the LSP are host 1, host 2, host 3 and host 4 in sequence, namely the ping message is transmitted to the host 4 through the host 2 and the host 3 in sequence. Referring to fig. 4, the ping packet adopts standard payload, which includes fields such as version number, global identifier, message type, response mode, return code, sub-return code, source handle, sequence number, second-level transmission time stamp, millisecond-level transmission time stamp, second-level reception time stamp, millisecond-level reception time stamp, and Type Length Value (TLV). The response mode is "do not reply", so as to instruct the second host to directly reply the ping response message to the network management equipment after receiving the ping message. The type of TLV in the ping message is "Target FEC Stack", and the subtype can select "RSVP IPv4 LSP" or "RSVP IPv6 LSP". Referring to fig. 5, fig. 5 shows a schematic diagram of TLV contents, including an IP address of a tunnel sink node, an SR-TP tunnel identifier, an extension identifier, an IP address of a tunnel source node, and an LSP identifier. It should be understood that the IP address of the tunnel destination node is the IP address of the second host, the IP address of the tunnel source node is the IP address of the first host, and the SR-TP tunnel identifier and the LSP identifier indicate the SR-TP tunnel and the LSP used for transmitting the ping message from the first host to the second host.
302. The network management equipment determines the network condition between the first host and the second host based on whether the ping response message from the second host is received within the preset time length.
The network management equipment starts a timer when sending a test command to the first host, and if the network management equipment receives a ping response message sent by the second host through the management channel within a preset duration, the network management equipment indicates that the second host receives the ping message, and an SR-TP tunnel between the first host and the second host is normal. If the network management equipment fails to receive the ping response message sent by the second host through the management channel within the preset duration, the fact that the second host does not receive the ping message is indicated that the SR-TP tunnel between the first host and the second host has faults. It should be noted that the ping response message also carries the same quadruple as the ping message.
In this embodiment of the present invention, if the second host receives the PING message, the second host may directly reply to the network management device by means of the management channel with the network management device, so that the PING function can be implemented even if the first host and the second host are located in different ISIS domains.
The above describes one flow of the network testing method in the embodiment of the present application, please refer to fig. 6, and the following describes another flow of the network testing method in the embodiment of the present application:
601. The network management equipment sends a test command to a first host;
the network management equipment sends a test command to the first host through the management channel, wherein the test command is used for the first host to initiate tracking route to the second host through the SR-TP tunnel. After receiving the test command, the first host acquires the configuration of the corresponding SR-TP tunnel, and sequentially sends a plurality of trace routing messages to the second host through the SR-TP tunnel. The format of the trace routing message is similar to that shown in fig. 4, and the TLV in the trace routing message is similar to that in the ping message, and will not be described again here. It should be noted that, the trace route message will carry a lifetime, and the lifetime of the first trace route message sent to the second host is 1, and the lifetime of the following trace route messages is sequentially added with 1.
602. The network management equipment receives the tracking route response message from the target host through a management channel with the target host.
The trace routing message sent from the first host to the second host is transmitted to the second host through the LSP, where the LSP is similar to that described in step 301, and the hosts on the LSP are host 1, host 2, host 3, and host 4 in sequence, that is, the trace routing message is transmitted to host 4 through host 2 and host 3 in sequence. After the first traceroute packet is transmitted to the host 2, the host 2 decreases the lifetime of the first traceroute packet by 1, so that the lifetime of the first traceroute packet becomes zero. The host 2 may also acquire the four-tuple in the traceroute message, and it should be noted that the four-tuple in the plurality of traceroute messages sent by the first host is similar to that described in the foregoing step 301, and will not be described herein again. Because the response mode in the trace route message is "do not reply", the host 2 can directly send the trace route response message to the network management device through the management channel, the obtained quadruple is carried in the trace route response message, and the network management device can obtain the IP address of the host 2 in the trace route response message after receiving the trace route response message.
After the second traceroute message is transmitted to the host 2, the host 2 subtracts 1 from the lifetime of the second traceroute message, and since the original lifetime of the second traceroute message is 2, the lifetime of the second traceroute message is 1 and becomes 1, and the host 2 transmits the second traceroute message to the host 3. After receiving the second traceroute message, the host 3 reduces the survival time in the second traceroute message by 1, so that the survival time in the second traceroute message becomes zero. The host 3 obtains the same quadruple in the trace route message and sends a trace route response message to the network management equipment through the management channel, the trace route response message also carries the obtained quadruple, and the network management equipment can obtain the IP address of the host 3 in the trace route response message.
The host 2 and the host 3 respectively reduce the survival time in the third trace routing message by 1, and the host 3 transmits the third trace routing message to the host 4. The host 4 also decreases the lifetime in the third traceroute message by 1, when the lifetime in the third traceroute message becomes zero. The host 4 obtains the quadruple in the trace route message, and sends a trace route response message to the network management device through the management channel, the trace route response message also carries the obtained quadruple, and the network management device can obtain the IP address of the host 4 in the trace route response message.
After the network management device sends a test command to the first host, a timer is started, and after a preset duration is reached, the network management device counts the target host replying to the trace route response message and displays the identification of the target host, which may be an IP address, for example. If the SR-TP tunnel between the first host and the second host is normal, the target host may include the above-described host 2, host 3, and host 4. If the SR-TP tunnel between the first host and the second host has a failure, for example, the link between the host 3 and the host 4 is broken, the traceroute message cannot be transmitted from the host 3 to the host 4, so that the host 4 cannot reply to the network management device with the traceroute reply message. In this case, the target host includes the host 2 and the host 3, and the network management device displays the identifiers of the host 2 and the host 3, and also displays a prompt that the link between the host 3 and the host 4 may have a fault.
In the embodiment of the present application, the target host on the LSP may directly reply to the trace route reply packet to the network management device through the management channel between the target host and the network management device, so that even if the first host and the second host are located in different ISIS domains, the trace route function may be implemented.
The network testing method in the embodiment of the present application is described above, and the device in the embodiment of the present application is described below:
referring to fig. 7, a network management device 700 in the embodiment of the present application includes a transceiver unit 701 and a determining unit 702.
The transceiver unit 701 is configured to send a test command to a first host, where the test command is used for the first host to send a ping packet to a second host through an SR-TP tunnel, and the first host and the second host are located in different ISIS domains.
The determining unit 702 is configured to determine, based on whether a ping response message from the second host is received within a preset duration, a network condition between the first host and the second host, where the ping response message is used to instruct the second host to receive a ping message, where the ping message is sent by the second host to the network management device through a management channel with the network management device.
In one possible implementation of the present invention,
the determining unit 702 is specifically configured to determine that a failure exists in the SR-TP tunnel between the first host and the second host if the ping response message is not received within a preset duration.
In one possible implementation of the present invention,
the determining unit 702 is specifically configured to determine that the SR-TP tunnel between the first host and the second host is normal when the ping response message is received within a preset duration.
In one possible implementation manner, the ping message and the ping response message carry a quadruple, where the quadruple includes an IP address of the first host, an IP address of the second host, an identifier of the SR-TP tunnel, and an identifier of an LSP, where the LSP is used for transmission by the two hosts of the ping message Wen Xiangdi, and the LSP belongs to the SR-TP tunnel.
In one possible implementation manner, the ping message includes indication information, where the indication information is used to instruct the second host to send a ping response message to the network management device.
Referring to fig. 8, a network management device 800 in the embodiment of the present application includes a transceiver unit 801 and a display unit 802.
The transceiver 801 is configured to send a test command to a first host, where the test command is used for the first host to send a trace routing packet to a second host through an SR-TP tunnel, and the first host and the second host are located in different ISIS domains.
The transceiver unit 801 is further configured to receive, through a management channel with a target host, a trace route reply packet from the target host, where the target host is a host on an LSP, the LSP is used for transmission of a trace route packet Wen Xiangdi, the LSP belongs to an SR-TP tunnel, and the trace route reply packet is sent to the network management device by the target host based on the received trace route packet.
In one possible implementation, the target host includes a second host.
In one possible implementation of the present invention,
a display unit 802, configured to display the identifier of the target host.
In one possible implementation, the traceroute message and the traceroute reply message carry a quadruple, where the quadruple includes an IP address of the first host, an IP address of the second host, an identifier of the SR-TP tunnel, and an identifier of the LSP.
In one possible implementation manner, the trace route message includes indication information, where the indication information is used to instruct the target host to send a trace route response message to the network management device.
Referring to fig. 9, a second host 900 in the embodiment of the present application includes a transceiver unit 901.
The transceiver 901 is configured to receive a ping packet from a first host, where the ping packet is an indication of the first host based on a network management device, and sent to a second host through an SR-TP tunnel, where the first host and the second host are located in different ISIS domains.
The transceiver unit 901 is further configured to send a ping response message to the network management device through a management channel of the network management device, where the ping response message is used to instruct the second host to receive the ping message.
In one possible implementation manner, the ping message and the ping response message carry a quadruple, where the quadruple includes an IP address of the first host, an IP address of the second host, an identifier of the SR-TP tunnel, and an identifier of an LSP, where the LSP is used for transmission by the two hosts of the ping message Wen Xiangdi, and the LSP belongs to the SR-TP tunnel.
In one possible implementation manner, the ping message includes indication information, where the indication information is used to instruct the second host to send a ping response message to the network management device.
Referring to fig. 10, a target host 1000 in the embodiment of the present application includes a transceiver unit 1001.
The transceiver 1001 is configured to receive a trace routing packet from a first host, where the trace routing packet is an indication of the first host based on network management equipment, and is sent to a second host through an SR-TP tunnel, and the target host is a host on an LSP, where the LSP is used for transmission of a trace routing packet Wen Xiangdi, and the LSP belongs to the SR-TP tunnel, and the first host and the second host are located in different ISIS domains.
The transceiver 1001 is further configured to send a trace route reply packet to the network management device through a management channel with the network management device based on the trace route packet.
In one possible implementation, the target host includes a second host.
In one possible implementation, the traceroute message and the traceroute reply message carry a quadruple, where the quadruple includes an IP address of the first host, an IP address of the second host, an identifier of the SR-TP tunnel, and an identifier of the LSP.
In one possible implementation manner, the trace route message includes indication information, where the indication information is used to instruct the target host to send a trace route response message to the network management device.
Fig. 11 is a schematic structural diagram of an apparatus provided in the present application, where the apparatus may be a network management device, a second host, or a target host, for implementing the methods in the foregoing embodiments. The apparatus 1100 may include one or more central processing units (central processing units, CPU) 1101 and a memory 1105, the memory 1105 having one or more application programs or data stored therein.
Wherein the memory 1105 may be volatile storage or persistent storage. The program stored in the memory 1105 may include one or more modules, each of which may include a series of instruction operations on the server. Still further, the central processor 1101 may be arranged to communicate with the memory 1105, executing a series of instruction operations in the memory 1105 on the apparatus 1100.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM, random access memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.

Claims (25)

1. A network testing method, comprising:
the network management equipment sends a test command to a first host, wherein the test command is used for the first host to send a ping message to a second host through a transmission-oriented segmented routing technology (SR-TP) tunnel, and the first host and the second host are positioned in different intermediate system-to-intermediate system (ISIS) domains;
the network management equipment determines the network condition between the first host and the second host based on whether a ping response message from the second host is received within a preset duration, wherein the ping response message is used for indicating the second host to receive the ping message, and the ping message is sent to the network management equipment by the second host through a management channel with the network management equipment.
2. The method of claim 1, wherein the network management device determining a network condition between the first host and the second host based on whether a ping response message is received within a preset time period comprises:
if the network management equipment does not receive the ping response message within a preset duration, the network management equipment determines that the SR-TP tunnel between the first host and the second host has a fault.
3. The method of claim 1, wherein the network management device determining a network condition between the first host and the second host based on whether a ping response message is received within a preset time period comprises:
and if the network management equipment receives the ping response message within the preset duration, the network management equipment determines that the SR-TP tunnel between the first host and the second host is normal.
4. A method according to any one of claims 1 to 3, wherein the ping message and the ping response message carry a quadruple, the quadruple comprising an internet protocol IP address of the first host, an IP address of the second host, an identity of the SR-TP tunnel, and an identity of a label switched path, LSP, the LSP being used for the transmission of the ping message to the second host, the LSP belonging to the SR-TP tunnel.
5. The method of claim 4 wherein the ping message includes indication information, the indication information being used to instruct the second host to send the ping response message to the network management device.
6. A network testing method, comprising:
The network management equipment sends a test command to a first host, wherein the test command is used for the first host to send a trace route message to a second host through a transmission-oriented segmented routing technology (SR-TP) tunnel, and the first host and the second host are positioned in different intermediate system-to-intermediate system (ISIS) domains;
the network management equipment receives a trace route response message from a target host through a management channel with the target host, wherein the target host is a host on a label switched path LSP, the LSP is used for transmitting the trace route message to the second host, the LSP belongs to the SR-TP tunnel, and the trace route response message is sent to the network management equipment by the target host based on the received trace route message.
7. The method of claim 6, wherein the target host comprises the second host.
8. The method according to claim 6 or 7, characterized in that the method further comprises:
the network management equipment displays the identification of the target host.
9. The method of claim 8, wherein the traceroute message and the traceroute reply message carry a quadruple, the quadruple including an internet protocol IP address of the first host, an IP address of the second host, an identity of the SR-TP tunnel, and an identity of the LSP.
10. The method of claim 9, wherein the traceroute message includes indication information, where the indication information is used to instruct the target host to send the traceroute reply message to the network management device.
11. A network testing method, comprising:
a second host receives a ping message from a first host, wherein the ping message is an indication of network management equipment-based indication of the first host, the ping message is sent to the second host through a transmission-oriented segment routing technology (SR-TP) tunnel, and the first host and the second host are located in different intermediate system-to-intermediate system (ISIS) domains;
and the second host sends a ping response message to the network management equipment through a management channel with the network management equipment, wherein the ping response message is used for indicating the second host to receive the ping message.
12. The method of claim 11 wherein the ping message and the ping response message carry a quad, the quad comprising an internet protocol IP address of the first host, an IP address of the second host, an identity of the SR-TP tunnel, and an identity of a label switched path, LSP, the LSP being used for transmission of the ping message to the second host, the LSP belonging to the SR-TP tunnel.
13. The method of claim 12 wherein the ping message includes indication information, the indication information being used to instruct the second host to send the ping response message to the network management device.
14. A network testing method, comprising:
a target host receives a tracking route message from a first host, wherein the tracking route message is an indication of network management equipment-based network management equipment of the first host, the tracking route message is sent to a second host through a segmentation routing technology (SR-TP) tunnel facing transmission, the target host is a host on a Label Switched Path (LSP), the LSP is used for transmitting the tracking route message to the second host, the LSP belongs to the SR-TP tunnel, and the first host and the second host are positioned in different intermediate system-to-intermediate system (ISIS) domains;
and the target host sends a tracking route response message to the network management equipment through a management channel with the network management equipment based on the tracking route message.
15. The method of claim 14, wherein the target host comprises the second host.
16. The method of claim 15 wherein the traceroute message and the traceroute reply message carry a quadruple, the quadruple comprising an internet protocol IP address of the first host, an IP address of the second host, an identity of the SR-TP tunnel, and an identity of the LSP.
17. The method of claim 16, wherein the traceroute message includes indication information, the indication information being used to instruct the target host to send the traceroute reply message to the network management device.
18. A network management device comprising a plurality of functional modules that interact to implement the method of any of the preceding claims 1 to 10. A plurality of functional modules may be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules may be arbitrarily combined or divided based on a specific implementation.
19. A host computer, characterized in that it is used as a second host computer, comprising a plurality of functional modules, which interact with each other, implementing the method according to any of the preceding claims 11 to 13. A plurality of functional modules may be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules may be arbitrarily combined or divided based on a specific implementation.
20. A host for use as a target host comprising a plurality of functional modules which interact to implement the method of any of the preceding claims 14 to 17. A plurality of functional modules may be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules may be arbitrarily combined or divided based on a specific implementation.
21. A network management device comprising a processor and a memory, the processor being coupled to the memory, the memory for storing instructions that, when executed by the processor, cause the network management device to perform the method of any of the preceding claims 1 to 10.
22. A host for use as a second host comprising a processor and a memory, the processor being coupled to the memory, the memory for storing instructions which, when executed by the processor, cause the second host to perform the method of any one of the preceding claims 11 to 13.
23. A host for use as a target host, comprising a processor and a memory, the processor being coupled to the memory, the memory for storing instructions which, when executed by the processor, cause the target host to perform the method of any one of the preceding claims 14 to 17.
24. A computer readable storage medium having stored thereon computer instructions or programs which, when executed, cause a computer to perform the method of any of claims 1 to 17.
25. A computer program product comprising computer instructions or a program which, when executed, cause a computer to perform the method of any of claims 1 to 17.
CN202210712878.2A 2022-06-22 2022-06-22 Network testing method and related device Pending CN117319270A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210712878.2A CN117319270A (en) 2022-06-22 2022-06-22 Network testing method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210712878.2A CN117319270A (en) 2022-06-22 2022-06-22 Network testing method and related device

Publications (1)

Publication Number Publication Date
CN117319270A true CN117319270A (en) 2023-12-29

Family

ID=89254106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210712878.2A Pending CN117319270A (en) 2022-06-22 2022-06-22 Network testing method and related device

Country Status (1)

Country Link
CN (1) CN117319270A (en)

Similar Documents

Publication Publication Date Title
WO2021170092A1 (en) Message processing method and apparatus, and network device and storage medium
CN111953604B (en) Method and device for providing business service for business flow
EP1856862B1 (en) System and method for network reachability detection
US7486622B2 (en) OAM echo messaging to verify a service-based network distribution path
JP7468969B2 (en) Apparatus for use in a first network node and an apparatus for use in a controller
US8098649B2 (en) Using network transport tunnels to provide service-based data transport
CN108964943B (en) Method and device for realizing IOAM packaging
EP2509261B1 (en) Monitoring of a network element in a packet-switched network
CN113556259B (en) Message processing method and device based on stream following detection
US9094323B2 (en) Probe packet discovery of entropy values causing specific paths to be taken through a network
EP2629468A1 (en) Failure localisation in a MPLS-TP network
JP2004328752A (en) Inserting address for performing oam functions
US8824451B2 (en) Method and system for establishing an associated bidirectional label-switched path
US11962491B2 (en) Source routing tunnel ingress protection
US10972381B2 (en) Network operations reactive to operations data included in seamless bidirectional forwarding detection (S-BFD) packets
US10833975B2 (en) Operations processing of multiple-protocol packets by packet switching devices in a network
CN103580894A (en) Method, device and system for operation, administration and maintenance (OAM) configuration
KR20140117993A (en) Mpls-tp network and method for link failure trace
CN113489646B (en) VXLAN-based segmented route transmission method, server, source node and storage medium
CN109561023A (en) The methods, devices and systems of transport multicast message
CN117319270A (en) Network testing method and related device
CN114760244B (en) Method, device and network equipment for transmitting Binding Segment Identification (BSID)
CN113872843B (en) Route generation method, route processing method and device
US11082540B2 (en) Network operations including protocol processing of a packet updating an operations data field of a different protocol
CN116057911A (en) Load balancing and OAM in service function chains using multiprotocol label switching

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication