This application relates to the field of computer technologies, and in particular, to a method and a device for detecting network reliability.
A network of computing devices may be used to transmit data. With the continuous development of network-based data transmission 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.
Embodiments of this application provide a method and a device for detecting network reliability, to quickly and accurately detect and evaluate network reliability.
In some embodiments (sometimes referred to as, “a first aspect”), the present application provides a method for detecting network reliability. The method includes: A 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 detection apparatus obtains 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 detection apparatus calculates communication service availability CSA of a network channel from the first network node to the second network node based on the first quantity and/or the second quantity.
In the foregoing method, 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/or the second quantity of data packets included in the first packet received by the second network node; and/or 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/or the second quantity. In some embodiments, the communication service availability may be used as an indicator to evaluate the network reliability. In some embodiments, there is no need to manually detect a network channel between a single device and/or another network device in sequence, and reliability between network nodes in a network can be quickly and accurately detected and/or evaluated.
With reference to the first aspect, in some embodiments, that a 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 includes: 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.
With reference to the first aspect, in some embodiments, that a 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 includes: 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/or the first packet includes the data packets of the first quantity.
With reference to the first aspect, in some embodiments, that a 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 includes: 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.
With reference to the first aspect, in some embodiments, the first packet is a special packet sent by the first network node to the second network node. That a 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 includes: 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.
With reference to the first aspect, in some embodiments, that the detection apparatus calculates communication service availability CSA of a network channel from the first network node to the second network node based on the first quantity and/or the second quantity includes: The detection apparatus calculates a ratio of the second quantity to the first quantity; and/or determines the ratio as the communication service availability of the network channel from the first network node to the second network node.
With reference to the first aspect, in some embodiments, the detection apparatus determines, 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.
With reference to the first aspect, in some embodiments, there are a plurality of network channels from the first network node to the second network node, and/or the method includes: The detection apparatus determines CSA of each of the plurality of network channels from the first network node to the second network node. The detection apparatus selects 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 some embodiments (sometimes referred to as, “a second aspect”), the present application provides another method for detecting network reliability, applied to a network element, where the network element includes at least one of a detection module, a first module, and a second module. The method includes: The detection module obtains a first quantity of data packets included in a first packet sent by the first module to the second module. The detection module obtains first feedback information sent by the second module, where the first feedback information includes a second quantity of data packets included in the first packet received by the second module. The detection module calculates communication service availability CSA of a network channel from the first module to the second module based on the first quantity and/or the second quantity.
In the foregoing method, 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/or the second quantity of data packets included in the first packet received by the second module; and/or 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/or the second quantity. In some embodiments, the communication service availability may be used as an indicator to evaluate the network reliability. In some embodiments, there is no need to manually detect a network channel between a single device and/or another network device in sequence, and reliability between modules in a network can be quickly and accurately detected and/or evaluated.
With reference to the second aspect, in some embodiments, that the detection module obtains a first quantity of data packets included in a first packet sent by the first module to the second module includes: 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.
With reference to the second aspect, in some embodiments, that the detection module obtains a first quantity of data packets included in a first packet sent by the first module to the second module includes: 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/or the first packet includes the data packets of the first quantity.
With reference to the second aspect, in some embodiments, that the detection module obtains a first quantity of data packets included in a first packet sent by the first module to the second module includes: 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.
With reference to the second aspect, in some embodiments, the first packet is a special packet sent by the first module to the second module. That the detection module obtains a first quantity of data packets included in a first packet sent by the first module to the second module includes: 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.
With reference to the second aspect, in some embodiments, that the detection module calculates communication service availability CSA of a network channel from the first module to the second module based on the first quantity and/or the second quantity includes: The detection module calculates a ratio of the second quantity to the first quantity; and/or determines the ratio as the communication service availability of the network channel from the first module to the second module.
With reference to the second aspect, in some embodiments, the detection module determines, 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.
With reference to the second aspect, in some embodiments, the detection module determines CSA of each of a plurality of network channels from the first module to the second module. The detection module selects 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 some embodiments (sometimes referred to as, “a third aspect”), the present application provides a detection apparatus. The apparatus includes a first obtaining unit, a second obtaining unit, and/or a calculation unit. 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/or the second quantity.
With reference to the third aspect, in some embodiments, the first obtaining unit is configured to: send the first packet to the first network node; and/or 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.
With reference to the third aspect, in some embodiments, the first obtaining unit is configured to: determine the first quantity; and/or 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/or the first packet includes the data packets of the first quantity.
With reference to the third aspect, in some embodiments, the first obtaining unit is 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/or 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.
With reference to the third aspect, in some embodiments, the first packet is a special packet sent by the first network node to the second network node. The first obtaining unit is 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.
With reference to the first aspect, in some embodiments, the calculation unit is configured to: calculate a ratio of the second quantity to the first quantity; and/or determine the ratio as the communication service availability of the network channel from the first network node to the second network node.
With reference to the third aspect, in some embodiments, the apparatus includes a determining unit. The determining unit is 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.
With reference to the third aspect, in some embodiments, there are a plurality of network channels from the first network node to the second network node, and/or the apparatus includes a selection unit. The selection unit is configured to: determine CSA of each of the plurality of network channels from the first network node to the second network node; and/or 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 some embodiments (sometimes referred to as, “a fourth aspect”), the present application provides a network element, where the network element includes at least a detection module, a first module, and/or a second module. The detection module includes a first obtaining submodule, a second obtaining submodule, and/or a calculation submodule. The first obtaining submodule is configured to obtain a first quantity of data packets included in a first packet sent by the first module to the second module. The second obtaining submodule is configured to obtain first feedback information sent by the second module, where the first feedback information includes a second quantity of data packets included in the first packet received by the second module. The calculation submodule is configured to calculate communication service availability CSA of a network channel from the first module to the second module based on the first quantity and/or the second quantity.
With reference to the fourth aspect, in some embodiments, the first obtaining submodule is configured to: send the first packet to the first module; and/or 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.
With reference to the fourth aspect, in some embodiments, the first obtaining submodule is configured to: determine the first quantity; and/or 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/or the first packet includes the data packets of the first quantity.
With reference to the fourth aspect, in some embodiments, the first obtaining subunit is 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/or 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.
With reference to the fourth aspect, in some embodiments, the first packet is a special packet sent by the first module to the second module. The first obtaining subunit is 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.
With reference to the fourth aspect, in some embodiments, the calculation submodule is configured to: calculate a ratio of the second quantity to the first quantity; and/or determine the ratio as the communication service availability of the network channel from the first module to the second module.
With reference to the fourth aspect, in some embodiments, the network element includes a determining module: The determining module is 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.
With reference to the fourth aspect, in some embodiments, there are a plurality of network channels from the first module to the second module, and/or the network element 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/or 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 some embodiments (sometimes referred to as, “a fifth aspect”), the present application provides another detection apparatus, including a processor and a memory, where the processor and the memory are interconnected. The memory is configured to store program instructions, and/or the processor is configured to invoke the program instructions in the memory to perform (e.g., execute, implement) the method described in any one of the first aspect or the possible implementations of the first aspect.
In some embodiments (sometimes referred to as, “a sixth aspect”), the present application provides another network element, including a processor and a memory, where the processor and the memory are interconnected. The memory is configured to store program instructions, and/or the processor is configured to invoke the program instructions in the memory to perform the method described in any one of the second aspect or the possible implementations of the second aspect.
In some embodiments (sometimes referred to as, “a seventh aspect”), the present application provides a computer-readable storage medium. The computer storage medium stores program instructions, and when the program instructions are run by a processor, the processor performs the method described in any one of the first aspect or the possible implementations of the first aspect.
In some embodiments (sometimes referred to as, “an eighth aspect”), the present application provides another computer-readable storage medium. The computer storage medium stores program instructions, and when the program instructions are run by a processor, the processor performs the method described in any one of the second aspect or the possible implementations of the second aspect.
In some embodiments (sometimes referred to as, “a ninth aspect”), the present application provides a computer program, and when the computer program is run on a processor, the processor performs the method described in any one of the first aspect or the possible implementations of the first aspect.
In some embodiments (sometimes referred to as, “a tenth aspect”), the present application provides a computer program, and when the computer program is run on a processor, the processor performs the method described in any one of the second aspect or the possible implementations of the second aspect.
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/or the second quantity of data packets included in the first packet received by the second network node; and/or 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/or the second quantity. In some embodiments, the communication service availability may be used as the indicator to evaluate the network reliability. In some embodiments, there is no need to manually detect the network channel between the single device and/or 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.
The detection apparatus is an apparatus for detecting the network reliability in the solutions, and may send (e.g., transmits, provides, delivers) 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/or 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/or the plurality of network nodes may communicate with each other. The plurality of network nodes each may include a detection submodule. After receiving (e.g., retrieving, obtaining, acquiring) 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
The detection module may send a packet to the first module and/or the second module, and/or 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/or 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.
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. In some embodiments, 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. In some embodiments, 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 (e.g., producing, constructing, creating) 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 (e.g., identifies, assesses) 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/or the first packet includes the data packets of the first quantity.
In some embodiments, 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 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 a third 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. In some embodiments, 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 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/or the first node sends the special packet to the second network node.
In some embodiments, 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 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/or 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. In some embodiments, a detection submodule in the second network node sends the first feedback information to the detection apparatus, and/or the detection apparatus receives the first feedback information. In some embodiments, 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/or the second quantity.
In some embodiments, a 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/or the second quantity is: calculating a ratio of the second quantity to the first quantity; and/or 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 36, and the first quantity is 40, the detection apparatus calculates that a quotient of the second quantity 36 and the first quantity 40 is 0.9, and determines 0.9 as the CSA of the network channel from the first network node to the second network node.
In some embodiments, 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. In some embodiments, 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 0.95, and a first threshold of a network channel from the transmission bearer device to a terminal processing device may be 0.9.
In some embodiments, 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/or 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/or 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 some embodiments, 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 0.85, and CSA of the second network channel is 0.9, the detection apparatus determines the second network channel as the target network channel. In some embodiments, 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 20, and the latency calculation coefficient is −1, it is determined that the CSA of the first network channel is 0.85, and a latency is 5 milliseconds; and the CSA of the second network channel is 0.9, and a latency is 6 milliseconds. A capability score, of the first network channel, calculated based on the CSA calculation coefficient 20, the latency calculation coefficient −1, the CSA 0.85 of the first network channel, and the latency 5 of the first network channel is 12. A capability score, of the first network channel, calculated based on the CSA calculation coefficient 20, the latency calculation coefficient −1, the CSA 0.9 of the first network channel, and the latency 6 of the first network channel is 17. In this case, the detection apparatus determines the second network channel as the target network channel. In some embodiments, 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
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.
The first packet includes a plurality of data packets. In some embodiments, 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 module. In some embodiments, 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 some embodiments, 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 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 a third 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. In some embodiments, 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 be generated by another module. After generating the special packet, the another module sends the special packet to the first module, and/or the first node sends the special packet to the second module.
In some embodiments, 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 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. In some embodiments, 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. In some embodiments, 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.
In some embodiments, a 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 36, and the first quantity is 40, the detection module calculates that a quotient of the second quantity 36 and the first quantity 40 is 0.9, and determines 0.9 as the CSA of the network channel from the first module to the second module.
In some embodiments, 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. In some embodiments, 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 0.8, and a first threshold of a network channel from the second module to the third module may be 0.9.
In some embodiments, 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/or 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/or 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 some embodiments, 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 0.85, and CSA of the second network channel is 0.9, the detection module determines the second network channel as the target network channel. In some embodiments, 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 20, and the latency calculation coefficient is −1, it is determined that the CSA of the first network channel is 0.85, and a latency is 5 milliseconds; and the CSA of the second network channel is 0.9, and a latency is 6 milliseconds. A capability score, of the first network channel, calculated based on the CSA calculation coefficient 20, the latency calculation coefficient −1, the CSA 0.85 of the first network channel, and the latency 5 of the first network channel is 12. A capability score, of the first network channel, calculated based on the CSA calculation coefficient 20, the latency calculation coefficient −1, the CSA 0.9 of the first network channel, and the latency 6 of the first network channel is 17. In this case, the detection module determines the second network channel as the target network channel. In some embodiments, 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
The foregoing describes the method embodiments of this application, and the following describes corresponding apparatus embodiments.
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 some embodiments, the first obtaining unit is 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 some embodiments, the first obtaining unit is 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 some embodiments, the first obtaining unit is 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 some embodiments, the first packet is a special packet sent by the first network node to the second network node. The first obtaining unit is 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 some embodiments, the calculation unit is 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 some embodiments, the apparatus includes a determining unit. The determining unit is 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 some embodiments, there are a plurality of network channels from the first network node to the second network node, and the apparatus includes a selection unit. The selection unit is 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 some embodiments, for implementation of each operation in
The detection apparatus shown in
The first obtaining submodule 6011 is configured to obtain a first quantity of data packets included in a first packet sent by the first module 602 to the second module 603.
The second obtaining submodule 6012 is configured to obtain first feedback information sent by the second module 603, where the first feedback information includes a second quantity of data packets included in the first packet received by the second module 603.
The calculation submodule 6013 is configured to calculate communication service availability CSA of a network channel from the first module 602 to the second module 603 based on the first quantity and the second quantity.
In some embodiments, the first obtaining submodule is 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 some embodiments, the first obtaining submodule is 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 some embodiments, the first obtaining subunit is 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.
In some embodiments, the first packet is a special packet sent by the first module to the second module. The first obtaining subunit is 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.
In some embodiments, the calculation submodule is 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 some embodiments, the network element includes a determining module. The determining module is 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 some embodiments, there are a plurality of network channels from the first module to the second module, and the network element 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 some embodiments, for implementation of each operation in
In the network element shown in
The processor 701 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 702 may include a communications interface, a data line, and the like. The output device 703 may include a data line, a communications interface, and the like.
The memory 704 may include a read-only memory and a random access memory, and provide instructions and data to the processor 701. A part of the memory 704 may include a nonvolatile random access memory. For example, the memory 704 may store information of a device type.
The processor 701 is configured to run the instructions stored in the memory 704 to perform the following operations:
obtaining a first quantity of data packets included in a first packet sent by a first network node to a second network node;
obtaining 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; and
calculating 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 some embodiments, the processor 701 is 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 some embodiments, the processor 701 is 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 some embodiments, the processor 701 is 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 some embodiments, the first packet is a special packet sent by the first network node to the second network node. The processor 701 is 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 some embodiments, the processor 701 is 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 some embodiments, the processor 701 is 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 some embodiments, there are a plurality of network channels from the first network node to the second network node, and the processor 701 is 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 some embodiments, for implementation of each operation in
The detection apparatus shown in
The processor 801 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 802 may include a communications interface, a data line, and the like. The output device 803 may include a data line, a communications interface, and the like.
The memory 804 may include a read-only memory and a random access memory, and provide instructions and data to the processor 801. A part of the memory 804 may include a nonvolatile random access memory. For example, the memory 804 may store information of a device type.
The processor 801 is configured to run the instructions stored in the memory 804 to perform the following operations:
obtaining a first quantity of data packets included in a first packet sent by a first module to a second module;
obtaining first feedback information sent by the second module, where the first feedback information includes a second quantity of data packets included in the first packet received by the second module; and
calculating communication service availability CSA of a network channel from the first module to the second module based on the first quantity and the second quantity.
In some embodiments, the processor 801 is 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 some embodiments, the processor 801 is 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 some embodiments, the processor 801 is 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.
In some embodiments, the first packet is a special packet sent by the first module to the second module. The processor 801 is 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.
In some embodiments, the processor 801 is 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 some embodiments, the processor 801 is 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 some embodiments, the processor 801 is 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.
In the network element shown in
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
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
The foregoing descriptions are merely specific implementations of this application, but are not intended to limit the protection scope of this application. Any modification or replacement readily figured out by a person skilled in the art within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
201811464642.1 | Nov 2018 | CN | national |
This application is a continuation of International Application No. PCT/CN2019/121076, filed on Nov. 26, 2019, which claims priority to Chinese Patent Application No. 201811464642.1, filed on Nov. 30, 2018, The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties.
Number | Name | Date | Kind |
---|---|---|---|
7953020 | Breslau | May 2011 | B2 |
8223655 | Heinz | Jul 2012 | B2 |
8937870 | Callaghan | Jan 2015 | B1 |
10263869 | Dzierwinski | Apr 2019 | B1 |
10827413 | Railkar | Nov 2020 | B2 |
10880046 | Kashiwazaki | Dec 2020 | B2 |
11153887 | Krishnan | Oct 2021 | B2 |
20070115847 | Strutt | May 2007 | A1 |
20130103821 | Gonia | Apr 2013 | A1 |
20130308471 | Krzanowski | Nov 2013 | A1 |
20140105058 | Hu | Apr 2014 | A1 |
20150208316 | Mosko | Jul 2015 | A1 |
20160191402 | Anderson | Jun 2016 | A1 |
20160269260 | Kazmi | Sep 2016 | A1 |
20170019463 | Tsunoda | Jan 2017 | A1 |
20170366983 | Gunasekara | Dec 2017 | A1 |
20180048581 | Suga | Feb 2018 | A1 |
20180206110 | Chaki | Jul 2018 | A1 |
20180302313 | Blanchard | Oct 2018 | A1 |
20190253195 | Kashiwazaki | Aug 2019 | A1 |
20200008085 | Chakraborty | Jan 2020 | A1 |
20200336932 | Jiang | Oct 2020 | A1 |
20210288899 | Jiang | Sep 2021 | A1 |
20210289518 | Huang | Sep 2021 | A1 |
Number | Date | Country |
---|---|---|
102201947 | Sep 2011 | CN |
202167018 | Mar 2012 | CN |
102195341 | Apr 2013 | CN |
103369416 | Oct 2013 | CN |
103491636 | Jan 2014 | CN |
104022999 | Sep 2014 | CN |
104967635 | Oct 2015 | CN |
105071961 | Nov 2015 | CN |
105323121 | Feb 2016 | CN |
105488739 | Apr 2016 | CN |
105515915 | Apr 2016 | CN |
105634840 | Jun 2016 | CN |
105704771 | Jun 2016 | CN |
105847611 | Aug 2016 | CN |
105897613 | Aug 2016 | CN |
102238651 | Sep 2016 | CN |
102790699 | Sep 2016 | CN |
103561427 | Nov 2016 | CN |
106100771 | Nov 2016 | CN |
106302226 | Jan 2017 | CN |
106487605 | Mar 2017 | CN |
106658644 | May 2017 | CN |
107454000 | Dec 2017 | CN |
107579869 | Jan 2018 | CN |
108513703 | Sep 2018 | CN |
3188413 | Jul 2017 | EP |
2008106768 | Sep 2008 | WO |
2017015965 | Feb 2017 | WO |
2017162115 | Sep 2017 | WO |
Entry |
---|
Huawei, Siemens, cyberCAV 22.104 Annex: Communication service availability vs PER . 3GPP TSG SA WG1 Meeting #83, West Palm Beach, Aug. 20-24, 2018, S1-182213, 6 pages. |
Siemens AG and Nokia, Smarter Comparison of two concepts: communication service availability and reliability. 3GPP TSG-SA WG1 Meeting #77, Jeju Island, South Korea, Feb. 13-17, 2017, S1-171196, 6 pages. |
Huawei et al.: “cyberCAV—22.104—network performance: Communication service availability”, 3GPP Draft; S1-183134-22, Nov. 12-16, 2018, XP051563019, total 5 pages. |
Siemens AG and Nokia: “Smarter Comparison of two concepts: communication service availability and reliability”,3GPP Draft; S1-171196, Feb. 20, 2017, XP051240220, total 6 pages. |
Number | Date | Country | |
---|---|---|---|
20210288899 A1 | Sep 2021 | US |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2019/121076 | Nov 2019 | US |
Child | 17334583 | US |