Patent Description:
Network-based data transmission has always been a commonly used data transmission manner. With the continuous development of technologies, people have increasingly higher requirements on network reliability. Currently, detection of network reliability is implemented inside a network mainly by using a packet Internet groper (packet Internet groper, PING) to: check whether the network is connected, and help a user analyze and determine the network reliability. However, the packet Internet groper needs to be offline and is manually used to perform measurement, and can only detect reliability of a network channel between a device of the packet Internet groper and another network device, but cannot detect reliability of an entire network including a plurality of network devices. How to quickly and accurately detect and evaluate the network reliability is a problem that urgently needs to be resolved by a person skilled in the art.

<NPL>; <CIT> and <NPL>all disclose methods and devices for detecting network reliability.

Embodiments of this application provide a method and a device for detecting network reliability, to quickly and accurately detect and evaluate network reliability.

In the embodiments of this application, the detection apparatus may obtain the first quantity of data packets included in the first packet sent by the first network node to the second network node, and the second quantity of data packets included in the first packet received by the second network node; and then obtain the communication service availability CSA of the network channel from the first network node to the second network node through calculation based on the first quantity and the second quantity, as a ratio of the second quantity to the first quantity. In this manner, the communication service availability may be used as the indicator to evaluate the network reliability. In addition, in this manner, there is no need to manually detect the network channel between the single device and the another network device in sequence, and the reliability between the network nodes in the network can be quickly and accurately detected and evaluated.

To describe the technical solutions in embodiments of this application or in the conventional technology more clearly, the following briefly describes the accompanying drawings for describing the embodiments or the conventional technology.

The following describes the technical solutions in embodiments of this application in more detail.

<FIG> is a schematic architectural diagram of a system for detecting network reliability according to an embodiment of this application. The system includes a detection apparatus and a plurality of network nodes. The detection apparatus communicates with the plurality of network nodes by using a network. The following describes the detection apparatus and the plurality of network nodes.

The detection apparatus is an apparatus for detecting the network reliability in the solutions, and may send a packet to the plurality of network nodes, and calculate the network reliability by obtaining messages fed back by the plurality of network nodes based on the packet; or calculate the network reliability by obtaining information in a special packet in the network and feedback information of the special packet.

The plurality of network nodes are devices that jointly form the network. The plurality of network nodes may communicate with the detection apparatus, and the plurality of network nodes may also communicate with each other. The plurality of network nodes each may include a detection submodule. After receiving a first packet in the solutions, the detection submodule sends feedback information to the detection apparatus. The feedback information includes a quantity of data packets included in the first packet received by the network node. The plurality of network nodes may be network devices of different types. For example, the plurality of network nodes in <FIG> are radio access network RAN (radio access network) devices, transmission bearer devices, and terminal processing devices.

<FIG> is a schematic architectural diagram of another system for detecting network reliability according to an embodiment of this application. The system is a network element. The network element includes a detection module and at least two modules other than the detection module. The figure shows a first module and a second module. The following describes the foregoing modules.

The detection module may send a packet to the first module and/or the second module, and calculate the network reliability by obtaining messages fed back by the two modules based on the packet; or calculate the network reliability by obtaining information in a special packet in a network and feedback information of the special packet.

The first module and second module are modules that jointly form the network element, and the two modules may communicate with each other. The two modules may be modules of different types. The first module and the second module each may include a detection submodule. After receiving a first packet in the solutions, the detection submodule sends feedback information to the detection module. The feedback information includes a quantity of data packets included in the first packet received by the module.

<FIG> is a flowchart of a method for detecting network reliability according to an embodiment of this application. The method may be implemented based on the architecture shown in <FIG>. An apparatus described below may be the detection apparatus in the system architecture shown in <FIG>. The method includes but is not limited to the following steps.

S301: The detection apparatus obtains a first quantity of data packets included in a first packet sent by a first network node to a second network node.

The first packet includes a plurality of data packets. Specifically, the first packet may have two possible cases. The following describes the two possible cases.

In a first manner, the first packet is a test packet generated by the detection apparatus. Specifically, each of the plurality of network nodes includes a detection module. When receiving the test packet sent by the detection apparatus, the detection module sends feedback information to the detection apparatus. The feedback message includes a quantity of data packets in the test packet received by the network node. A manner in which the detection apparatus obtains the first quantity of data packets included in the first packet sent by the first network node to the second network node may be: The detection apparatus sends the first packet to the first network node; the detection apparatus receives second feedback information sent by the first network node, where the second feedback information includes the first quantity of data packets included in the first packet.

In a second manner, the first packet is a test packet that the detection apparatus indicates the first network node to generate. After generating the test packet, the first network node sends the first packet to the second network node. A manner in which the detection apparatus obtains the first quantity of data packets included in the first packet sent by the first network node to the second network node may be: The detection apparatus determines the first quantity; the detection apparatus sends indication information to the first network node, where the indication information is used to indicate the first network node to send the first packet to the second network node, and the first packet includes the data packets of the first quantity.

In another possible implementation, a manner in which the detection apparatus obtains the first quantity of data packets included in the first packet sent by the first network node to the second network node may alternatively be: The detection apparatus sends indication information to the first network node, where the indication information is used to indicate the first network node to send the first packet; the detection apparatus receives second feedback information sent by the first network node, where the second feedback information includes the first quantity of data packets included in the first packet.

In the claimed manner, the first packet is a special packet. It should be noted that the special packet is a packet that exists in the network and that is used to implement a specific function. After the second network node receives the special packet, the second network node sends feedback information to the first network node. For example, the feedback information may be an access request sent by a terminal to a radio access network. After receiving the access application, the radio access network sends feedback information to the terminal. Specifically, the special packet may be generated by the first network node. After generating the special packet, the first network node sends the special packet to the second network node. The special packet may alternatively be generated by another network node. After generating the special packet, the another network node sends the special packet to the first network node, and then the first node sends the special packet to the second network node.

Specifically, the claimed manner in which the detection apparatus obtains the first quantity of data packets included in the first packet sent by the first network node to the second network node is: The detection apparatus receives second feedback information sent by the first network node, where the second feedback information includes the first quantity of data packets included in the first packet, and the second feedback information is generated by a detection submodule in the first network node.

S302: The detection apparatus obtains first feedback information sent by the second network node.

The feedback information includes a second quantity of data packets included in the first packet received by the second network node. Specifically, a detection submodule in the second network node sends the first feedback information to the detection apparatus, and the detection apparatus receives the first feedback information. Then, the detection apparatus may determine, based on the first feedback information, the second quantity of data packets included in the first packet received by the second network node.

S303: The detection apparatus calculates communication service availability (communication service availability, CSA) of a network channel from the first network node to the second network node based on the first quantity and the second quantity.

Specifically, as claimed, the manner in which the detection apparatus calculates the CSA of the network channel from the first network node to the second network node based on the first quantity and the second quantity is: calculating a ratio of the second quantity to the first quantity; and determining the ratio as the CSA of the network channel from the first network node to the second network node. In a specific implementation process, the CSA of the network channel from the first network node to the second network node may be calculated in a preset time period. In another manner, the CSA of the network channel from the first network node to the second network node is calculated by using a preset time period as a periodicity.

For example, if the second quantity is <NUM>, and the first quantity is <NUM>, the detection apparatus calculates that a quotient of the second quantity <NUM> and the first quantity <NUM> is <NUM>, and determines <NUM> as the CSA of the network channel from the first network node to the second network node.

Optionally, the detection apparatus determines, based on the communication service availability CSA between the first network node and the second network node, whether a fault occurs on the network channel from the first network node to the second network node. Specifically, a manner in which the detection apparatus determines, based on the communication service availability CSA between the first network node and the second network node, whether the fault occurs on the network channel from the first network node to the second network node may be: If the CSA of the network channel from the first network node to the second network node is less than a first threshold, the detection apparatus determines that the fault occurs on the network channel from the first network node to the second network node. The first threshold may be preset. For different network channels, the first threshold may have different values. For example, a first threshold of a network channel from a radio access network RAN (radio access network) device to a transmission bearer device may be <NUM>, and a first threshold of a network channel from the transmission bearer device to a terminal processing device may be <NUM>.

Optionally, after the detection apparatus detects that the fault occurs on the network channel from the first network node to the second network node, the detection apparatus may send an alarm. The alarm is used to prompt that the fault occurs on the network channel from the first network node to the second network node.

In a possible case, there may be a plurality of network channels from the first network node to the second network node. The detection apparatus may determine CSA of each of the plurality of network channels from the first network node to the second network node, and then generate a key performance indicator (key performance indicator, KPI) report based on the CSA of each network channel. A user can directly obtain CSA information of each channel from the KPI report.

In another possible case, there may be a plurality of network channels from the first network node to the second network node. The detection apparatus may determine CSA of each of the plurality of network channels from the first network node to the second network node, and then select a target network channel from the plurality of network channels based on the CSA of each network channel, where the target network channel is used to transmit data from the first network node to the second network node.

Specifically, the following describes methods in which the detection apparatus selects the target network channel from the plurality of network channels based on the CSA of each network channel.

According to a first method, the detection apparatus determines the CSA of each of the plurality of network channels from the first network node to the second network node, and determines a network channel with highest CSA among the plurality of network channels as the target network channel. For example, in a network, optional network channels from the first network node to the second network node are a first network channel and a second network channel. If it is determined that CSA of the first network channel is <NUM>, and CSA of the second network channel is <NUM>, the detection apparatus determines the second network channel as the target network channel. In this manner, the network channel with the highest CSA may be selected for data transmission in the network, thereby improving the network reliability.

According to a second method, the detection apparatus determines a latency of each of the plurality of network channels from the first network node to the second network node, calculates a capability score based on a CSA calculation coefficient, a latency calculation coefficient, the CSA of each network channel, and the latency of each network channel, and determines a network channel with a highest capability score among the plurality of network channels as the target network channel. The CSA calculation coefficient and the latency calculation coefficient may be set by the user.

For example, if in the network, the optional network channels from the first network node to the second network node are the first network channel and the second network channel, the CSA calculation coefficient is <NUM>, and the latency calculation coefficient is -<NUM>, it is determined that the CSA of the first network channel is <NUM>, and a latency is <NUM> milliseconds; and the CSA of the second network channel is <NUM>, and a latency is <NUM> milliseconds. A capability score, of the first network channel, calculated based on the CSA calculation coefficient <NUM>, the latency calculation coefficient -<NUM>, the CSA <NUM> of the first network channel, and the latency <NUM> of the first network channel is <NUM>. A capability score, of the first network channel, calculated based on the CSA calculation coefficient <NUM>, the latency calculation coefficient -<NUM>, the CSA <NUM> of the first network channel, and the latency <NUM> of the first network channel is <NUM>. In this case, the detection apparatus determines the second network channel as the target network channel. In this manner, a network channel suitable for data transmission may be selected from a plurality of optional network channels by comprehensively considering the CSA and the latency of the network channel.

In the method described in <FIG>, the detection apparatus may obtain the first quantity of data packets included in the first packet sent by the first network node to the second network node, and the second quantity of data packets included in the first packet received by the second network node; and then obtain the communication service availability CSA of the network channel from the first network node to the second network node through calculation based on the first quantity and the second quantity. In this manner, the communication service availability may be used as an indicator to evaluate the network reliability. In addition, in this manner, there is no need to manually detect a network channel between a single device and another network device in sequence, and reliability between network nodes in a network can be quickly and accurately detected and evaluated.

<FIG> shows another method for detecting network reliability according to an embodiment of this application. The method may be implemented based on the architecture shown in <FIG>. A network element described below may be the network element in the system architecture shown in <FIG>. The method includes but is not limited to the following steps.

S401: A detection module obtains a first quantity of data packets included in a first packet sent by a first module to a second module.

In a first manner, the first packet is a test packet generated by the detection module. Specifically, each of the plurality of modules includes a detection submodule. When receiving the test packet sent by the detection module, the detection submodule sends feedback information to the detection module. The feedback message includes a quantity of data packets in the test packet received by the module. A manner in which the detection module obtains the first quantity of data packets included in the first packet sent by the first module to the second module may be: The detection module sends the first packet to the first module; the detection module receives second feedback information sent by the first module, where the second feedback information includes the first quantity of data packets included in the first packet.

In a second manner, the first packet is a test packet that the detection module indicates the first module to generate. After generating the test packet, the first module sends the first packet to the second module. A manner in which the detection module obtains the first quantity of data packets included in the first packet sent by the first module to the second module may be: The detection module determines the first quantity; the detection module sends indication information to the first module, where the indication information is used to indicate the first module to send the first packet to the second module, and the first packet includes the data packets of the first quantity.

In another possible implementation, a manner in which the detection module obtains the first quantity of data packets included in the first packet sent by the first module to the second module may alternatively be: The detection module sends indication information to the first module, where the indication information is used to indicate the first module to send the first packet. The detection module receives second feedback information sent by the first module, where the second feedback information includes the first quantity of data packets included in the first packet.

In the claimed manner, the first packet is a special packet. It should be noted that the special packet is a packet that exists in the network element and that is used to implement a specific function. After the second module receives the special packet, the second module sends feedback information to the first module. Specifically, the special packet may be generated by the first module. After generating the special packet, the first module sends the special packet to the second module. The special packet may alternatively be generated by another module. After generating the special packet, the another module sends the special packet to the first module, and then the first node sends the special packet to the second module.

Specifically, the claimed manner in which the detection module obtains the first quantity of data packets included in the first packet sent by the first module to the second module is: The detection module receives second feedback information sent by the first module, where the second feedback information includes the first quantity of data packets included in the first packet. The second feedback information is generated by a detection submodule in the first module.

S402: The detection module obtains first feedback information sent by the second module.

The feedback information includes a second quantity of data packets included in the first packet received by the second module. Specifically, a detection submodule in the second module sends the first feedback information to the detection module, and the detection module receives the first feedback information. Then, the detection module may determine, based on the first feedback information, the second quantity of data packets included in the first packet received by the second module.

S403: The detection module calculates communication service availability of a network channel from the first module to the second module based on the first quantity and the second quantity.

Specifically, the claimed manner in which the detection module calculates the CSA of the network channel from the first module to the second module based on the first quantity and the second quantity is: calculating a ratio of the second quantity to the first quantity; and determining the ratio as the CSA of the network channel from the first module to the second module. In a specific implementation process, the CSA of the network channel from the first module to the second module may be calculated in a preset time period. In another manner, the CSA of the network channel from the first module to the second module is calculated by using a preset time period as a periodicity.

For example, if the second quantity is <NUM>, and the first quantity is <NUM>, the detection module calculates that a quotient of the second quantity <NUM> and the first quantity <NUM> is <NUM>, and determines <NUM> as the CSA of the network channel from the first module to the second module.

Optionally, the detection module determines, based on the communication service availability CSA between the first module and the second module, whether a fault occurs on the network channel from the first module to the second module. Specifically, a manner in which the detection module determines, based on the communication service availability CSA between the first module and the second module, whether the fault occurs on the network channel from the first module to the second module may be: If the CSA of the network channel from the first module to the second module is less than a first threshold, the detection module determines that the fault occurs on the network channel from the first module to the second module. The first threshold may be preset. For different network channels, the first threshold may have different values. For example, the network element includes a first module, a second module, and a third module. A first threshold of a network channel from the first module to the second module may be <NUM>, and a first threshold of a network channel from the second module to the third module may be <NUM>.

Optionally, after the detection module detects that the fault occurs on the network channel from the first module to the second module, the detection module may send an alarm. The alarm is used to prompt that the fault occurs on the network channel from the first module to the second module.

In a possible case, there may be a plurality of network channels from the first module to the second module. The detection apparatus may determine CSA of each of the plurality of network channels from the first module to the second module, and then generate a key performance indicator (key performance indicator, KPI) report based on the CSA of each network channel. A user can directly obtain CSA information of each channel from the KPI report.

In another possible case, there may be a plurality of network channels from the first module to the second module. The detection module may determine CSA of each of the plurality of network channels from the first module to the second module, and then select a target network channel from the plurality of network channels based on the CSA of each network channel, where the target network channel is used to transmit data from the first module to the second module.

Specifically, the following describes methods in which the detection module selects the target network channel from the plurality of network channels based on the CSA of each network channel.

According to a first method, the detection module determines the CSA of each of the plurality of network channels from the first module to the second module, and determines a network channel with highest CSA among the plurality of network channels as the target network channel. For example, in a network, optional network channels from the first module to the second module are a first network channel and a second network channel. If it is determined that CSA of the first network channel is <NUM>, and CSA of the second network channel is <NUM>, the detection module determines the second network channel as the target network channel. In this manner, the network channel with the highest CSA may be selected for data transmission in the network element, thereby improving reliability of the network element.

According to a second method, the detection module determines a latency of each of the plurality of network channels from the first module to the second module, calculates a capability score of each network channel based on a CSA calculation coefficient, a latency calculation coefficient, the CSA of each network channel, and the latency of each network channel, and determines a network channel with a highest capability score among the plurality of network channels as the target network channel. The CSA calculation coefficient and the latency calculation coefficient may be set by the user.

For example, if in the network element, the optional network channels from the first module to the second module are the first network channel and the second network channel, the CSA calculation coefficient is <NUM>, and the latency calculation coefficient is -<NUM>, it is determined that the CSA of the first network channel is <NUM>, and a latency is <NUM> milliseconds; and the CSA of the second network channel is <NUM>, and a latency is <NUM> milliseconds. A capability score, of the first network channel, calculated based on the CSA calculation coefficient <NUM>, the latency calculation coefficient -<NUM>, the CSA <NUM> of the first network channel, and the latency <NUM> of the first network channel is <NUM>. A capability score, of the first network channel, calculated based on the CSA calculation coefficient <NUM>, the latency calculation coefficient -<NUM>, the CSA <NUM> of the first network channel, and the latency <NUM> of the first network channel is <NUM>. In this case, the detection module determines the second network channel as the target network channel. In this manner, a network channel suitable for data transmission may be selected from a plurality of optional network channels by comprehensively considering the CSA and the latency of the network channel.

In the method described in <FIG>, the detection module may obtain the first quantity of data packets included in the first packet sent by the first module to the second module, and the second quantity of data packets included in the first packet received by the second module; and then obtain the communication service availability CSA of the network channel from the first module to the second module through calculation based on the first quantity and the second quantity. In this manner, the communication service availability may be used as an indicator to evaluate the network reliability. In addition, in this manner, there is no need to manually detect a network channel between a single device and another network device in sequence, and reliability between modules in a network can be quickly and accurately detected and evaluated.

The foregoing describes the method embodiments of this application, and the following describes corresponding apparatus embodiments.

<FIG> is a schematic diagram of a detection apparatus according to an embodiment of this application. The detection apparatus <NUM> includes a first obtaining unit <NUM>, a second obtaining unit <NUM>, and a calculation unit <NUM>. The following describes the first obtaining unit <NUM>, the second obtaining unit <NUM>, and the calculation unit <NUM>.

The first obtaining unit is configured to obtain a first quantity of data packets included in a first packet sent by a first network node to a second network node.

The second obtaining unit is configured to obtain first feedback information sent by the second network node, where the first feedback information includes a second quantity of data packets included in the first packet received by the second network node.

The calculation unit is configured to calculate communication service availability CSA of a network channel from the first network node to the second network node based on the first quantity and the second quantity.

In the invention as claimed, the first obtaining unit is specifically configured to: send the first packet to the first network node; and receive second feedback information sent by the first network node, where the second feedback information includes the first quantity of data packets included in the first packet.

In a possible implementation, the first obtaining unit is specifically configured to: determine the first quantity; and send indication information to the first network node, where the indication information is used to indicate the first network node to send the first packet to the second network node, and the first packet includes the data packets of the first quantity.

In a possible implementation, the first obtaining unit is specifically configured to: send indication information to the first network node, where the indication information is used to indicate the first network node to send the first packet; and receive second feedback information sent by the first network node, where the second feedback information includes the first quantity of data packets included in the first packet.

In the invention as claimed, the first packet is a special packet sent by the first network node to the second network node. The first obtaining unit is specifically configured to receive second feedback information sent by the first network node, where the second feedback information includes the first quantity of data packets included in the first packet.

In the invention as claimed, the calculation unit is specifically configured to: calculate a ratio of the second quantity to the first quantity; and determine the ratio as the communication service availability of the network channel from the first network node to the second network node.

In a possible implementation, the apparatus further includes a determining unit. The determining unit is specifically configured to determine, based on the communication service availability CSA of the network channel from the first network node to the second network node, whether a fault occurs on the network channel from the first network node to the second network node.

In a possible implementation, there are a plurality of network channels from the first network node to the second network node, and the apparatus further includes a selection unit. The selection unit is specifically configured to: determine CSA of each of the plurality of network channels from the first network node to the second network node; and select a target network channel from the plurality of network channels based on the CSA of each network channel, where the target network channel is used to transmit data from the first network node to the second network node.

In addition, for implementation of each operation in <FIG>, refer to corresponding descriptions in the method embodiment shown in <FIG>.

The detection apparatus shown in <FIG> may obtain the first quantity of data packets included in the first packet sent by the first network node to the second network node, and the second quantity of data packets included in the first packet received by the second network node; and then obtain the communication service availability CSA of the network channel from the first network node to the second network node through calculation based on the first quantity and the second quantity. In this manner, the communication service availability may be used as an indicator to evaluate network reliability. In addition, in this manner, there is no need to manually detect a network channel between a single device and another network device in sequence, and reliability between network nodes in a network can be quickly and accurately detected and evaluated.

<FIG> is a schematic diagram of a network element according to an embodiment of this application. The network element <NUM> includes at least a detection module <NUM>, a first module <NUM>, and a second module <NUM>. The detection module includes a first obtaining submodule <NUM>, a second obtaining submodule <NUM>, and a calculation submodule <NUM>. The following describes the first obtaining submodule <NUM>, the second obtaining submodule <NUM>, and the calculation submodule <NUM>.

The first obtaining submodule <NUM> is configured to obtain a first quantity of data packets included in a first packet sent by the first module <NUM> to the second module <NUM>.

The second obtaining submodule <NUM> is configured to obtain first feedback information sent by the second module <NUM>, where the first feedback information includes a second quantity of data packets included in the first packet received by the second module <NUM>.

The calculation submodule <NUM> is configured to calculate communication service availability CSA of a network channel from the first module <NUM> to the second module <NUM> based on the first quantity and the second quantity.

In a possible implementation, the first obtaining submodule is specifically configured to: send the first packet to the first module; and receive second feedback information sent by the first module, where the second feedback information includes the first quantity of data packets included in the first packet.

In a possible implementation, the first obtaining submodule is specifically configured to: determine the first quantity; and send indication information to the first module, where the indication information is used to indicate the first module to send the first packet to the second module, and the first packet includes the data packets of the first quantity.

In a possible implementation, the first obtaining subunit is specifically configured to: send indication information to the first module, where the indication information is used to indicate the first module to send the first packet; and receive second feedback information sent by the first module, where the second feedback information includes the first quantity of data packets included in the first packet.

The first packet is a special packet sent by the first module to the second module. The first obtaining subunit is specifically configured to receive second feedback information sent by the first module, where the second feedback information includes the first quantity of data packets included in the first packet.

The calculation submodule is specifically configured to: calculate a ratio of the second quantity to the first quantity; and determine the ratio as the communication service availability of the network channel from the first module to the second module.

In a possible implementation, the network element further includes a determining module. The determining module is specifically configured to: determine, based on the communication service availability CSA of the network channel from the first module to the second module, whether a fault occurs on the network channel from the first module to the second module.

In a possible implementation, there are a plurality of network channels from the first module to the second module, and the network element further includes a selection module. The selection module is configured to: determine CSA of each of the plurality of network channels from the first module to the second module; and select a target network channel from the plurality of network channels based on the CSA of each network channel, where the target network channel is used to transmit data from the first module to the second module.

In the network element shown in <FIG>, the detection module may obtain the first quantity of data packets included the first packet sent by the first module to the second module, and the second quantity of data packets included in the first packet received by the second module; and then obtain the communication service availability CSA of the network channel from the first module to the second module through calculation based on the first quantity and the second quantity. In this manner, the communication service availability may be used as an indicator to evaluate network reliability. In addition, in this manner, there is no need to manually detect a network channel between a single device and another network device in sequence, and reliability between modules in a network can be quickly and accurately detected and evaluated.

<FIG> is a schematic diagram of another detection device according to an embodiment of this application, which is not claimed as such. The first device <NUM> may include one or more processors <NUM>, one or more input devices <NUM>, one or more output devices <NUM>, and a memory <NUM>. The processor <NUM>, the input device <NUM>, the output device <NUM>, and the memory <NUM> are connected by using a bus <NUM>. The memory <NUM> is configured to store instructions.

The processor <NUM> may be a central processing unit, or the processor may be another general purpose processor, a digital signal processor, an application-specific integrated circuit, another programmable logic device, or the like. The general purpose processor may be a microprocessor, or the processor may be any conventional processor or the like.

The input device <NUM> may include a communications interface, a data line, and the like. The output device <NUM> may include a data line, a communications interface, and the like.

The memory <NUM> may include a read-only memory and a random access memory, and provide instructions and data to the processor <NUM>. A part of the memory <NUM> may further include a nonvolatile random access memory. For example, the memory <NUM> may further store information of a device type.

The processor <NUM> is configured to run the instructions stored in the memory <NUM> to perform the following operations:.

In a possible implementation, the processor <NUM> is specifically configured to: send the first packet to the first network node; and receive second feedback information sent by the first network node, where the second feedback information includes the first quantity of data packets included in the first packet.

In a possible implementation, the processor <NUM> is specifically configured to: determine the first quantity; and send indication information to the first network node, where the indication information is used to indicate the first network node to send the first packet to the second network node, and the first packet includes the data packets of the first quantity.

In a possible implementation, the processor <NUM> is specifically configured to: send indication information to the first network node, where the indication information is used to indicate the first network node to send the first packet; and receive second feedback information sent by the first network node, where the second feedback information includes the first quantity of data packets included in the first packet.

The first packet is a special packet sent by the first network node to the second network node. The processor <NUM> is specifically configured to receive second feedback information sent by the first network node, where the second feedback information includes the first quantity of data packets included in the first packet.

The processor <NUM> is specifically configured to: calculate a ratio of the second quantity to the first quantity; and determine the ratio as the communication service availability of the network channel from the first network node to the second network node.

In a possible implementation, the processor <NUM> is further configured to determine, based on the communication service availability CSA of the network channel from the first network node to the second network node, whether a fault occurs on the network channel from the first network node to the second network node.

In a possible implementation, there are a plurality of network channels from the first network node to the second network node, and the processor <NUM> is further configured to: determine CSA of each of the plurality of network channels from the first network node to the second network node; and select a target network channel from the plurality of network channels based on the CSA of each network channel, where the target network channel is used to transmit data from the first network node to the second network node.

<FIG> is a schematic diagram of another network element according to an embodiment of this application, which is not claimed as such. The first device <NUM> may include one or more processors <NUM>, one or more input devices <NUM>, one or more output devices <NUM>, and a memory <NUM>. The processor <NUM>, the input device <NUM>, the output device <NUM>, and the memory <NUM> are connected by using a bus <NUM>. The memory <NUM> is configured to store instructions.

In a possible implementation, the processor <NUM> is specifically configured to: send the first packet to the first module; and receive second feedback information sent by the first module, where the second feedback information includes the first quantity of data packets included in the first packet.

In a possible implementation, the processor <NUM> is specifically configured to: determine the first quantity; and send indication information to the first module, where the indication information is used to indicate the first module to send the first packet to the second module, and the first packet includes the data packets of the first quantity.

In a possible implementation, the processor <NUM> is specifically configured to: send indication information to the first module, where the indication information is used to indicate the first module to send the first packet; and receive second feedback information sent by the first module, where the second feedback information includes the first quantity of data packets included in the first packet.

The first packet is a special packet sent by the first module to the second module. The processor <NUM> is specifically configured to receive second feedback information sent by the first module, where the second feedback information includes the first quantity of data packets included in the first packet.

The processor <NUM> is specifically configured to: calculate a ratio of the second quantity to the first quantity; and determine the ratio as the communication service availability of the network channel from the first module to the second module.

In a possible implementation, the processor <NUM> is further configured to: determine, based on the communication service availability CSA of the network channel from the first module to the second module, whether a fault occurs on the network channel from the first module to the second module.

In a possible implementation, the processor <NUM> is further configured to: determine CSA of each of a plurality of network channels from the first module to the second module; and select a target network channel from the plurality of network channels based on the CSA of each network channel, where the target network channel is used to transmit data from the first module to the second module.

Another embodiment of this application provides a computer program product. When the computer program product runs on a computer, the method in the embodiment shown in <FIG> is implemented.

Another embodiment of this application provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the method in the embodiment shown in <FIG> is implemented.

Claim 1:
A method for detecting network reliability, comprising:
obtaining, by a detection apparatus (<NUM>), a first quantity of data packets comprised in a first packet sent by a first network node to a second network node, said obtaining comprising receiving, by the detection apparatus (<NUM>), second feedback information sent by the first network node, wherein the second feedback information comprises the first quantity of data packets comprised in the first packet;
obtaining, by the detection apparatus, first feedback information sent by the second network node, wherein the first feedback information comprises a second quantity of data packets comprised in the first packet received by the second network node; and
calculating, by the detection apparatus, communication service availability, CSA, of a network channel from the first network node to the second network node, as a ratio of the second quantity to the first quantity;
wherein the first packet is a special packet sent by the first network node to the second network node, the special packet being a packet in a network element and which is used to implement a special function.