WO2016184245A1 - Tunnel packet loss detecting method, apparatus and network communication device - Google Patents

Tunnel packet loss detecting method, apparatus and network communication device Download PDF

Info

Publication number
WO2016184245A1
WO2016184245A1 PCT/CN2016/076901 CN2016076901W WO2016184245A1 WO 2016184245 A1 WO2016184245 A1 WO 2016184245A1 CN 2016076901 W CN2016076901 W CN 2016076901W WO 2016184245 A1 WO2016184245 A1 WO 2016184245A1
Authority
WO
WIPO (PCT)
Prior art keywords
tunnel
node
detection request
statistics
request message
Prior art date
Application number
PCT/CN2016/076901
Other languages
French (fr)
Chinese (zh)
Inventor
李琴
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016184245A1 publication Critical patent/WO2016184245A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0695Management of faults, events, alarms or notifications the faulty arrangement being the maintenance, administration or management system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss

Definitions

  • the present invention relates to the field of MPLS (Multi-Protocol Label Switching) network technology, and in particular, to a tunnel packet loss detection method, apparatus, and network communication device.
  • MPLS Multi-Protocol Label Switching
  • Link packet loss detection is a common network maintenance function. Accurate and fast packet loss detection is extremely important for network maintenance. There are three main types of packet loss detection tools available:
  • the first category is OAM (Operations, Administration, and Maintenance, Operations Management and Maintenance) tools.
  • TMP T-MPLS Path
  • TMC T
  • MPLS Flash Loss Detection
  • MPLS-TP Multi-Protocol Label Switching Transport Profile
  • the MPLS function of the -MPLS Channel layer can only detect end-to-end packet loss based on the service path and cannot locate a specific packet loss point.
  • the LM frame of the TMS layer can detect the packet loss rate step by step, it can only count the packet loss of the segment layer link. Packet loss within a node cannot be counted.
  • the second type is the IP (Internet Protocol) Ping and the LSP (label switched path) Ping tool.
  • IP Internet Protocol
  • LSP label switched path
  • the third category is the performance statistics tool. Port performance statistics are often provided. This mode can only view the packet loss and error packets of the node. It can only be analyzed roughly and the accuracy is very low.
  • the technical problem to be solved by the embodiments of the present invention is to provide a tunnel packet loss detection method, device, and network communication device, which accurately locates the location and number of service packet loss in the network.
  • the tunnel packet loss detection method comprises a tunnel, a plurality of intermediate nodes, and a tail node, and the process performed by the head node includes:
  • the head node sends a detection request message to the intermediate node according to the set frequency, so that each intermediate node and the tail node report the statistics to the monitoring device for the number of the detection request messages sent and received by the intermediate node and the tail node; the set frequency is greater than The frequency of sending Ping packets used for network connectivity and network speed check;
  • the head node collects statistics on the sent detection request packets and sends the statistics to the monitoring device.
  • the tunnel includes a bidirectional path
  • the forward path in the tunnel is used to transmit a detection request message
  • the reverse path in the tunnel is used to transmit a corresponding detection response message
  • the head node sends a detection request message to the intermediate node according to the set frequency
  • the process performed by the foregoing head node further includes:
  • the head node collects statistics on the received detection response packets, and reports the statistics to the monitoring device.
  • the embodiment of the present invention further provides a tunnel packet loss detection method, where a node, a plurality of intermediate nodes, and a tail node form a tunnel, and the process performed by the intermediate node includes:
  • the intermediate node performs statistics on the number of the detection request packets sent and received, and reports the statistical result to the monitoring device; the frequency of the detection request message sent from the head node of the tunnel conforms to the setting.
  • the frequency set by the above is greater than the transmission frequency of the ping packet used for network connectivity and network speed check.
  • the number of the detection request packets sent and received is counted, including:
  • the number of the received detection request messages is counted according to an ACL (Access Control List) rule, based on the inbound label and the information indicating the type of the packet.
  • ACL Access Control List
  • the intermediate node On the basis of the outbound label of the forwarded detection request packet and the information of the packet type reflected by the forwarded detection request message, the intermediate node performs the quantity statistics on the sent detection request message according to the ACL rule.
  • the foregoing information that reflects the packet type includes: packet type information, and/or port information.
  • the tunnel includes a bidirectional path
  • the forward path in the tunnel is used to transmit a detection request message
  • the reverse path in the tunnel is used to transmit a corresponding detection response message
  • the process performed by the foregoing intermediate node specifically includes:
  • the intermediate node performs statistics on the number of the detection request packets sent and received on the forward path and the reverse path, and reports the statistics on the corresponding path to the monitoring device. .
  • the embodiment of the present invention further provides a tunnel packet loss detection method, where a node, a plurality of intermediate nodes, and a tail node form a tunnel, and the process performed by the tail node includes:
  • the statistics of the received detection request packets are reported to the monitoring device; the frequency of the detection request message sent from the head node of the tunnel conforms to the set frequency, and the set frequency is greater than the network connectivity and The sending frequency of the ping packets used in the network speed check.
  • the tunnel includes a bidirectional path
  • the forward path in the tunnel is used to transmit a detection request message
  • the reverse path in the tunnel is used to transmit a corresponding detection response message
  • the number of the received detection request packets is counted, and the statistics are reported to the monitoring device.
  • the process performed by the above tail node further includes:
  • the tail node finds a corresponding reverse path according to the forward path where the received detection request message is received;
  • the tail node sends a detection response message to the intermediate node, so that each intermediate node reports the statistics of the detection response packets sent and received by the intermediate node to the monitoring device;
  • the tail node performs statistics on the number of the above-mentioned detection response packets sent, and sends the statistics to the monitoring device.
  • the embodiment of the invention further provides a tunnel packet loss detecting device, which is located in a head node in a tunnel, and the device includes:
  • the sending module is configured to send a detection request message to the intermediate node according to the set frequency, so that each intermediate node and the tail node report the statistical result to the monitoring device for the number of the detection request messages sent and received by the intermediate node and the tail node;
  • the frequency of the ping packet is greater than the transmission frequency of the ping packet used for network connectivity check and network speed check;
  • the first statistic module is configured to collect statistics on the sent detection request packets by the head node, and send the statistics to the monitoring device.
  • the embodiment of the invention further provides a tunnel packet loss detecting device, which is located in any intermediate node in the tunnel, and the device includes:
  • the second statistic module is configured to collect, during the process of receiving and forwarding the detection request packet, the number of the detection request packets sent and received, and report the statistics to the monitoring device; the detection request message is sent from the head node of the tunnel.
  • the frequency meets the set frequency.
  • the frequency set above is greater than the transmission frequency of the ping packet used for network connectivity and network speed check.
  • the embodiment of the invention further provides a tunnel packet loss detecting device, which is located in a tail node in the tunnel, and the device includes:
  • the third statistic module is configured to perform statistics on the number of the received detection request messages, and report the statistics to the monitoring device; the frequency of the detection request message sent from the head node of the tunnel conforms to the set frequency, and the foregoing setting The frequency is greater than the transmission frequency of the ping packets used for network connectivity and network speed check.
  • the embodiment of the invention further provides a network communication device, which comprises at least one of the tunnel packet loss detecting devices located in the head node, the intermediate node and the tail node.
  • the embodiment of the present invention has at least the following advantages:
  • the tunnel packet loss detecting method, device, and network communication device are sent by lifting at the head node. Detects the sending frequency of the request packet and the statistics and reports of the number of packets sent and received in each node in the tunnel.
  • the fast and accurate tunnel packet loss detection can be applied to the bidirectional tunnel and the unidirectional tunnel.
  • Each node performs tunneling packet statistics, accurately determines the location and number of specific packet loss, and quickly locates the network fault point, providing an extremely convenient means for engineering maintenance and meeting the needs of network operation and maintenance.
  • FIG. 1 is a flowchart of a head node execution in a case where a tunnel includes only a one-way path according to the first embodiment of the present invention
  • FIG. 2 is a flowchart of execution of a head node in a case where a tunnel includes a bidirectional path according to the first embodiment of the present invention
  • FIG. 3 is a flowchart of an intermediate node execution in a case where a tunnel only includes a unidirectional path according to a second embodiment of the present invention
  • FIG. 4 is a flowchart of an intermediate node execution in a case where a tunnel includes a bidirectional path according to a second embodiment of the present invention
  • FIG. 5 is a flowchart of execution of a tail node in a case where a tunnel includes a bidirectional path according to a third embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a tunnel packet loss detecting apparatus according to a fourth embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a tunnel packet loss detecting apparatus according to a fifth embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a tunnel packet loss detecting apparatus according to a sixth embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a networking of an eighth embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a structure of a head node A according to an eighth embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of the intermediate nodes B and C according to the eighth embodiment of the present invention.
  • a tunnel packet loss detection method is composed of a node, a plurality of intermediate nodes, and a tail node.
  • the process performed by the head node includes the following specific steps:
  • step S101 the head node sends a set number of detection request messages to the intermediate node according to the set frequency, so that each intermediate node and the tail node report the statistics of the detection request packets sent and received by the intermediate node and the tail node to the monitoring device.
  • the frequency set by the above is greater than the transmission frequency of the ping packet used for the network connectivity check and the network speed check, but the transmission bandwidth of the tunnel is required to be the upper limit, and the transmission bandwidth of the tunnel is usually the physical port on the network side of the communication device. Transmission bandwidth.
  • Step S102 The head node performs quantity statistics on the sent detection request message, and sends the statistics result to the monitoring device.
  • a tunnel instance needs to be configured in the head node, the tail node, and each intermediate node, so that a corresponding tunnel can be formed in the head node, the plurality of intermediate nodes, and the tail node, and the tunnel instance specifies
  • each node needs to be marked with an outgoing label and an incoming label that needs to be identified.
  • the label needs to be marked on the detection request message, and the label is sent out.
  • the tag is used as an ingress tag carried by the detection request message when the intermediate node receives the detection request message, and when the intermediate node sends the detection request message, it will be tagged with the outbound label of the tunnel instance.
  • a detection instance needs to be configured in the head node and the tail node.
  • the detection instance specifies the encapsulation mode of the detection request message. If the tunnel is in the tunnel of the bidirectional path, the detection instance further specifies the detection request message. The corresponding detection response packet is encapsulated.
  • the tunnels are respectively a unidirectional path and a bidirectional path
  • the foregoing steps S101-102 are actually a technical solution in the case where the tunnel only includes a unidirectional path, and at this time, the head node follows the set frequency.
  • the unidirectional path sends a detection request message to the intermediate node.
  • the tunnel includes a bidirectional path
  • the forward path in the tunnel is used to transmit a detection request message and the reverse path in the tunnel is used to transmit a corresponding detection response message:
  • Step S101 is specifically: step S101-1, in the forward path, the head node sends a detection request message to the intermediate node according to the set frequency;
  • the flow performed by the foregoing head node includes, in addition to the step S101-1 and the step S102-1 which is identical to the step S102, the following:
  • Step S103-1 in the reverse path, the head node performs quantity statistics on the received detection response message, and reports the statistical result to the monitoring device.
  • the head node performs quantity statistics on the received detection response message, including:
  • the head node finds the detection instance in the corresponding tunnel instance according to the received ingress label carried in the foregoing detection response message, and the purpose is to determine that the detection response message belongs to the detection instance, and the detection response message is Perform quantitative statistics.
  • the second embodiment of the present invention is a tunnel packet loss detection method.
  • the method in this embodiment and the method in the first embodiment all belong to the same technical idea. The difference is that this embodiment describes the present invention from the perspective of an intermediate node. Technical solutions.
  • a tunnel is formed by a node, a plurality of intermediate nodes, and a tail node.
  • the process performed by the intermediate node includes:
  • step S201 the intermediate node performs the quantity statistics on the sent and received detection request messages in the process of receiving and forwarding the detection request message.
  • the frequency of the detection request message sent from the head node of the tunnel conforms to the set frequency, and the set frequency is greater than the transmission frequency of the ping message used in the network connectivity check and the network speed check, but the transmission bandwidth of the tunnel is required. The upper limit.
  • step S201 the number of the detection request messages sent and received is counted, including:
  • the intermediate node On the basis of the outbound label of the forwarded detection request packet and the information of the packet type reflected by the forwarded detection request message, the intermediate node performs the quantity statistics on the sent detection request message according to the ACL rule.
  • the above information reflecting the message type includes: message type information, and/or port information.
  • step S202 the statistical result is reported to the monitoring device.
  • the statistical result may be reported based on the instruction of the monitoring device, or the statistical result may be reported to the monitoring device.
  • the foregoing steps S201-202 are actually a technical solution in the case where the tunnel only includes a unidirectional path, and at this time, the intermediate node is on the unidirectional path.
  • the number of the detection request packets sent and received is counted separately, and the statistics are reported to the monitoring device.
  • the tunnel includes a bidirectional path
  • the forward path in the tunnel is used to transmit a detection request message and the reverse path in the tunnel is used to transmit a corresponding detection response message:
  • the step S201 is specifically the step S201-1: in the process of receiving and forwarding the detection request message, the intermediate node performs the quantity statistics on the detection request message sent and received on the forward path and the reverse path respectively;
  • the frequency of the request message sent from the head node of the tunnel conforms to the set frequency.
  • the set frequency is greater than the transmission frequency of the ping packet used for network connectivity and network speed check, but the upper limit of the transmission bandwidth of the tunnel is required. .
  • the step S202 is specifically reported to the step S202-1: the statistical result on the corresponding path is reported to the monitoring device.
  • the third embodiment of the present invention is a tunnel packet loss detection method.
  • the method in this embodiment and the method in the first embodiment all belong to the same technical idea. The difference is that the present embodiment describes the present invention in terms of the tail node. Technical solutions.
  • a tunnel is formed by a node, a plurality of intermediate nodes, and a tail node, and the process performed by the tail node includes:
  • Step S301 Performing quantity statistics on the received detection request message, and reporting the statistical result to the monitoring device; the frequency of the detection request message sent from the head node of the tunnel conforms to the set frequency, and the set frequency is greater than the network.
  • the transmission frequency of the ping packets used for the connectivity and network speed check must be based on the transmission bandwidth of the tunnel.
  • the foregoing step S301 is actually a technical solution in a case where the tunnel only includes a unidirectional path, and at this time, on the unidirectional path, the tail node is for receiving The number of the detection request packets is counted, and the statistics are reported to the monitoring device.
  • the tunnel includes a bidirectional path
  • the forward path in the tunnel is used to transmit a detection request message and the reverse path in the tunnel is used to transmit a corresponding detection response message:
  • the step S301 is specifically the step S301-1: in the forward path, the tail node performs the quantity statistics on the received detection request message, and reports the statistical result to the monitoring device;
  • the process performed by the above tail node further includes:
  • Step S302-1 The tail node finds a corresponding reverse path according to the forward path where the received detection request message is located;
  • Step S303-1 In the reverse path, the tail node sends a detection response message to the intermediate node, so that each intermediate node and the head node report the statistics to the monitoring device for the number of the detection response messages sent and received by the initiating node;
  • Step S304-1 The tail node performs quantity statistics on the sent detection response message sent, and sends the statistics result to the monitoring device.
  • this embodiment introduces a tunnel packet loss detecting device, which is located in a head node in a tunnel.
  • the device includes the following components:
  • the sending module 600 is configured to send a set number of detection request messages to the intermediate node according to the set frequency, so that each intermediate node and the tail node report the statistics of the detection request messages sent and received by the intermediate node and the tail node to the monitoring.
  • the frequency set by the above is limited to the transmission bandwidth of the tunnel;
  • the first statistic module 601 is configured to perform statistics on the number of the detection request packets sent by the head node, and send the statistics to the monitoring device.
  • the fifth embodiment of the present invention corresponds to the second embodiment.
  • This embodiment introduces a tunnel packet loss detecting device, which is located in any intermediate node in the tunnel. As shown in FIG. 7, the device includes the following components:
  • the second statistic module 700 is configured to perform statistics on the number of the detection request messages sent and received in the process of receiving and forwarding the detection request message, and report the statistics to the monitoring device.
  • the frequency of the detection request message sent from the head node of the tunnel conforms to the set frequency, and the set frequency is greater than the transmission frequency of the ping message used in the network connectivity check and the network speed check, but the transmission bandwidth of the tunnel is required. The upper limit.
  • the sixth embodiment of the present invention corresponds to the third embodiment.
  • This embodiment introduces a tunnel packet loss detecting device, which is located in a tail node in the tunnel. As shown in FIG. 8, the device includes the following components:
  • the third statistic module 800 is configured to perform statistics on the number of the received detection request messages, and report the statistical result to the monitoring device; the frequency of the detection request message sent from the head node of the tunnel conforms to the set frequency, and the foregoing setting
  • the fixed frequency is greater than the transmission frequency of the ping packet used for network connectivity and network speed check, but the upper limit of the transmission bandwidth of the tunnel is required.
  • a seventh embodiment of the present invention is a network communication device, which can be understood as a physical device.
  • the network communication device of the present embodiment includes at least the tunnel loss described in the fourth embodiment, the fifth embodiment, and the sixth embodiment.
  • One of the detection devices is one of the detection devices.
  • the eighth embodiment of the present invention is based on the foregoing embodiment, and how to perform fast Lsp ping between PTN devices in a PTN (Package Transport Network) network, as shown in FIG. 9 11 introduces an application example of the present invention.
  • PTN Package Transport Network
  • a fast Lsp Ping detection method in this embodiment can meet the requirement of rapidly forwarding a tunnel packet forwarding node at the engineering site.
  • the LspPing detection function of the tunnel with the bidirectional path is implemented by using the networking structure shown in FIG. 9, and the LspPing detection function needs to be enabled on the tunnel of each node of the networking.
  • Step 1 Enable LspPing detection on the tunnels of each node in the networking.
  • a service topology model is established according to the service configuration, and the tunnel instance is configured to form a tunnel composed of the head node A, the intermediate nodes B and C, and the tail node Z.
  • Head node A configuration Enable the fast tunnel ping function as required, and configure the packet length and the tunnel transmission bandwidth, and then bind the LspPing instance (similar to the detection instance in the above embodiment) to the intermediate nodes B and C.
  • the type of the head node A belongs to the PE node, that is, the edge node.
  • the composition of the node is as shown in Figure 10.
  • the LspPing packet processing module in the head node calculates the frequency of sending packets according to the configured packet length and the tunnel transmission bandwidth. The highest packet transmission frequency that can be set is obtained by dividing the transmission bandwidth of the tunnel by the packet length.
  • Intermediate node B and C configuration After the fast tunnel ping function is enabled, the ACL rule of the switch chip is configured, and the Request packet is sent according to the outgoing label, the incoming label, the port, and the packet type carried in the Request packet or the Reply packet. The number of text or Reply packets.
  • the types of the intermediate nodes B and C belong to the P node, that is, the non-edge node. The composition of the nodes is shown in Figure 11, where the NNI port is the port on the network side.
  • Tail node Z configuration After the fast tunnel ping function is enabled, the tunnel information including the bidirectional path is associated with the corresponding egress path information on the inbound path, so as to encapsulate the tunnel related information when the LspPing Reply message is sent back.
  • the inbound path in the tail node in this embodiment corresponds to the forward path in the foregoing embodiment, and the outbound path corresponds to the reverse path in the foregoing embodiment.
  • Step 2 Forward LspPing processing (Request message).
  • the LspPing packet processing module in the header node encapsulates the Request packet and sends the packet.
  • the LspPing packet processing module starts to collect and send Request packets for the LspPing instance, and configures the switch chip to extract the Request packet.
  • the intermediate node needs to forward the Request packet according to the service, and according to the outgoing packet carried in the Request packet or
  • the inbound label, port, and packet type collect statistics on the number of Request packets received and sent.
  • Both the outgoing label and the incoming label are tunnel labels that conform to the tunnel instance.
  • the tail node receives the request packet, and the ACL rule extracts the packet to the LspPing packet processing module of the tail node.
  • the LspPing packet processing module finds the corresponding LspPing instance according to the tunnel label, and obtains a forward path corresponding to the packet.
  • the reverse path encapsulates the Reply packet and sends it back according to the information about the reverse path. It also counts the number of received Request packets and the number of Reply packets sent.
  • Step 3 Reverse LspPing processing (Reply message).
  • the tail node After receiving the request packet, the tail node needs to find the outbound path corresponding to the inbound path of the LspPing instance, reply a Reply packet according to the service information of the outbound path, and count the number of Reply packets returned at the tail node.
  • the intermediate node needs to forward the Reply packet according to the service, and collect statistics on the number of Reply packets in the receiving and sending directions according to the outgoing label, the incoming label, the port, and the packet type carried in the Reply packet.
  • the head node After receiving the Reply packet, the head node extracts the packet and sends the packet to the LspPing packet processing module of the head node.
  • the LspPing packet processing module searches the corresponding LspPing instance according to the tunnel label, and performs the Reply packet. Finalize the process and count the corresponding number of packets received.
  • Step 4 After the LspPing test is stopped, query the number of packets sent and received by each node and display the statistics.
  • the number of packets sent and received based on the tunnel label, port, and packet type is queried from the switch chip that uses the ACL rule.
  • the LspPing function of the tunnel including the bidirectional path is used as an example.
  • the tunnel that only includes the unidirectional path only the sending and receiving of the Request packet is counted and displayed, which is similar to the implementation of this embodiment.
  • the tunnel packet loss detection method, device, and network communication device in the embodiment of the present invention can implement fast and accurate tunnel packet loss detection, and can be applied to a bidirectional tunnel and a unidirectional tunnel, and can perform tunneling packet transmission and reception statistics for each node on the link. Accurately determine the location and quantity of specific packet loss, and quickly locate the network fault point, providing an extremely convenient means for engineering maintenance, which can meet the needs of network operation and maintenance.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the head node sends a detection request message to the intermediate node according to the set frequency, so that each intermediate node and the tail node report the statistical result to the monitoring device for the number of the detection request messages sent and received by the intermediate node and the tail node; the set frequency
  • the head node performs quantity statistics on the sent detection request message, and sends the statistics result to the monitoring device.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the fast and accurate tunnel packet loss detection is implemented by using the sending frequency of the sending detection request message at the head node and the statistics and reporting of the number of the sending and receiving packets in each node in the tunnel. It can be applied to bidirectional tunnels and unidirectional tunnels. It can collect and collect statistics on tunnels for each node on the link, accurately determine the location and number of specific packet loss, and quickly locate the network fault point, providing an extremely convenient means for engineering maintenance. The need for network operation and maintenance.

Abstract

The present invention provides a tunnel packet loss detecting method, apparatus and network communication device. The transmitting frequency of transmitting detecting request packets at a head node is improved, and the quantity statistic and report of transmitted and received packets are performed at each node in a tunnel, so that a quick and exact tunnel packet loss detecting is achieved. The present invention can be applied in a two-way tunnel and a one-way tunnel, and can perform a statistic of transmitted and received packets in a tunnel for each node in a link, and therefore the specific packet loss location and quantity can be exactly determined, and the network fault point can be quickly located. A much convenient way is provided for the engineering maintenance, and requirements of the network operation and maintenance can be satisfied.

Description

一种隧道丢包检测方法、装置及网络通信设备Tunnel packet loss detection method, device and network communication device 技术领域Technical field
本发明涉及MPLS(Multi-Protocol Label Switching,多协议标签交换)网络技术领域,尤其涉及一种隧道丢包检测方法、装置及网络通信设备。The present invention relates to the field of MPLS (Multi-Protocol Label Switching) network technology, and in particular, to a tunnel packet loss detection method, apparatus, and network communication device.
背景技术Background technique
链路丢包检测是一种常用的网络维护功能,准确而快速的丢包检测对于网络维护有着极为重要的意义。目前已有的丢包检测工具主要有三类:Link packet loss detection is a common network maintenance function. Accurate and fast packet loss detection is extremely important for network maintenance. There are three main types of packet loss detection tools available:
第一类是OAM(Operations、Administration、and Maintenance,营运管理与维护)工具。在常用的MPLS-TP(Multi-Protocol Label Switching Transport Profile,多协议标签交换传输配置文件)OAM的LM(Frame Loss Measurement,丢包检测)功能中,TMP(T-MPLS Path)层、TMC(T-MPLS Channel)层的LM功能只能进行基于业务路径端到端丢包检测,无法定位具体的丢包故障点。TMS层的LM帧虽然可以逐段检测丢包率,却只能统计段层链路丢包。对于节点内丢包是无法统计到的。The first category is OAM (Operations, Administration, and Maintenance, Operations Management and Maintenance) tools. TMP (T-MPLS Path) layer, TMC (T) in the MPLS (Frame Loss Detection) function of the MPLS-TP (Multi-Protocol Label Switching Transport Profile) OAM The MPLS function of the -MPLS Channel layer can only detect end-to-end packet loss based on the service path and cannot locate a specific packet loss point. Although the LM frame of the TMS layer can detect the packet loss rate step by step, it can only count the packet loss of the segment layer link. Packet loss within a node cannot be counted.
第二类是IP(互联网协议)Ping以及LSP(label switched path,标签交换路径)Ping工具。该类工具可以进行接口间的连通性检测,同时在Ping报文速率较高时还可以进行丢包检测。但是该方式受限于软件处理性能,丢包统计不准,且还是不支持中间节点丢包检测。The second type is the IP (Internet Protocol) Ping and the LSP (label switched path) Ping tool. This type of tool can detect connectivity between interfaces and detect packet loss when the ping packet rate is high. However, this method is limited by the software processing performance, the packet loss statistics are not accurate, and the intermediate node packet loss detection is still not supported.
第三类是性能统计工具。常提供端口性能统计,该方式只能查看本节点的丢包、错包,只能粗略分析,准确度很低。The third category is the performance statistics tool. Port performance statistics are often provided. This mode can only view the packet loss and error packets of the node. It can only be analyzed roughly and the accuracy is very low.
发明内容Summary of the invention
本发明实施例要解决的技术问题是,提供一种隧道丢包检测方法、装置及网络通信设备,准确的定位出网络中业务丢包的位置及数量。The technical problem to be solved by the embodiments of the present invention is to provide a tunnel packet loss detection method, device, and network communication device, which accurately locates the location and number of service packet loss in the network.
本发明实施例采用的技术方案是,上述隧道丢包检测方法,由一头节点、若干中间节点以及一尾节点组成一条隧道,头节点执行的流程包括:The technical solution adopted by the embodiment of the present invention is that the tunnel packet loss detection method comprises a tunnel, a plurality of intermediate nodes, and a tail node, and the process performed by the head node includes:
头节点按照设定的频率向中间节点发送检测请求报文,以供各中间节点及尾节点针对自身收发的检测请求报文进行数量统计后将统计结果上报给监测设备;上述设定的频率大于网络连通性及网络速度检查时采用的Ping报文的发送频率;The head node sends a detection request message to the intermediate node according to the set frequency, so that each intermediate node and the tail node report the statistics to the monitoring device for the number of the detection request messages sent and received by the intermediate node and the tail node; the set frequency is greater than The frequency of sending Ping packets used for network connectivity and network speed check;
头节点针对发出的检测请求报文进行数量统计,将统计结果发送给监测设备。The head node collects statistics on the sent detection request packets and sends the statistics to the monitoring device.
可选的,在上述隧道包含双向路径、且在上述隧道中的正向路径用于传送检测请求报文而上述隧道中的反向路径用于传送相应的检测回应报文的情况下: Optionally, in the case that the tunnel includes a bidirectional path, and the forward path in the tunnel is used to transmit a detection request message, and the reverse path in the tunnel is used to transmit a corresponding detection response message:
在正向路径中,头节点按照设定的频率向中间节点发送检测请求报文;In the forward path, the head node sends a detection request message to the intermediate node according to the set frequency;
上述头节点执行的流程,还包括:The process performed by the foregoing head node further includes:
在反向路径中,头节点针对接收到的上述检测回应报文进行数量统计,将统计结果上报给监测设备。In the reverse path, the head node collects statistics on the received detection response packets, and reports the statistics to the monitoring device.
本发明实施例还提供一种隧道丢包检测方法,由一头节点、若干中间节点以及一尾节点组成一条隧道,中间节点执行的流程包括:The embodiment of the present invention further provides a tunnel packet loss detection method, where a node, a plurality of intermediate nodes, and a tail node form a tunnel, and the process performed by the intermediate node includes:
中间节点在接收并转发检测请求报文的过程中,针对收发的检测请求报文进行数量统计,将统计结果上报给监测设备;上述检测请求报文从隧道的头节点中发出的频率符合设定的频率,上述设定的频率大于网络连通性及网络速度检查时采用的Ping报文的发送频率。During the process of receiving and forwarding the detection request packet, the intermediate node performs statistics on the number of the detection request packets sent and received, and reports the statistical result to the monitoring device; the frequency of the detection request message sent from the head node of the tunnel conforms to the setting. The frequency set by the above is greater than the transmission frequency of the ping packet used for network connectivity and network speed check.
可选的,针对收发的检测请求报文进行数量统计,包括:Optionally, the number of the detection request packets sent and received is counted, including:
在接收到的检测请求报文携带的入标签和反映报文类型的信息的基础上,根据ACL(Access Control List,访问控制列表)规则针对接收的检测请求报文进行数量统计;The number of the received detection request messages is counted according to an ACL (Access Control List) rule, based on the inbound label and the information indicating the type of the packet.
在本中间节点针对转发的检测请求报文打上的出标签和该转发的检测请求报文携带的反映报文类型的信息的基础上,根据ACL规则针对发出的检测请求报文进行数量统计。On the basis of the outbound label of the forwarded detection request packet and the information of the packet type reflected by the forwarded detection request message, the intermediate node performs the quantity statistics on the sent detection request message according to the ACL rule.
可选的,上述反映报文类型的信息,包括:报文类型信息,和/或,端口信息。Optionally, the foregoing information that reflects the packet type includes: packet type information, and/or port information.
可选的,在上述隧道包含双向路径、且在上述隧道中的正向路径用于传送检测请求报文而上述隧道中的反向路径用于传送相应的检测回应报文的情况下:Optionally, in the case that the tunnel includes a bidirectional path, and the forward path in the tunnel is used to transmit a detection request message, and the reverse path in the tunnel is used to transmit a corresponding detection response message:
上述中间节点执行的流程,具体包括:The process performed by the foregoing intermediate node specifically includes:
中间节点在接收并转发检测请求报文的过程中,分别在上述正向路径和上述反向路径上,针对收发的检测请求报文进行数量统计,将相应路径上的统计结果均上报给监测设备。During the process of receiving and forwarding the detection request message, the intermediate node performs statistics on the number of the detection request packets sent and received on the forward path and the reverse path, and reports the statistics on the corresponding path to the monitoring device. .
本发明实施例还提供一种隧道丢包检测方法,由一头节点、若干中间节点以及一尾节点组成一条隧道,尾节点执行的流程包括:The embodiment of the present invention further provides a tunnel packet loss detection method, where a node, a plurality of intermediate nodes, and a tail node form a tunnel, and the process performed by the tail node includes:
针对接收到的检测请求报文进行数量统计,将统计结果上报给监测设备;上述检测请求报文从隧道的头节点中发出的频率符合设定的频率,上述设定的频率大于网络连通性及网络速度检查时采用的Ping报文的发送频率。The statistics of the received detection request packets are reported to the monitoring device; the frequency of the detection request message sent from the head node of the tunnel conforms to the set frequency, and the set frequency is greater than the network connectivity and The sending frequency of the ping packets used in the network speed check.
可选的,在上述隧道包含双向路径、且在上述隧道中的正向路径用于传送检测请求报文而上述隧道中的反向路径用于传送相应的检测回应报文的情况下:Optionally, in the case that the tunnel includes a bidirectional path, and the forward path in the tunnel is used to transmit a detection request message, and the reverse path in the tunnel is used to transmit a corresponding detection response message:
在正向路径中,针对接收到的检测请求报文进行数量统计,将统计结果上报给监测设备; In the forward path, the number of the received detection request packets is counted, and the statistics are reported to the monitoring device.
上述尾节点执行的流程,还包括:The process performed by the above tail node further includes:
尾节点根据接收到的上述检测请求报文所在的正向路径找到对应的反向路径;The tail node finds a corresponding reverse path according to the forward path where the received detection request message is received;
在反向路径中,尾节点向中间节点发送检测回应报文,以供各中间节点针对自身收发的检测回应报文进行数量统计后将统计结果上报给监测设备;In the reverse path, the tail node sends a detection response message to the intermediate node, so that each intermediate node reports the statistics of the detection response packets sent and received by the intermediate node to the monitoring device;
尾节点针对发出的上述检测回应报文进行数量统计,将统计结果发送给监测设备。The tail node performs statistics on the number of the above-mentioned detection response packets sent, and sends the statistics to the monitoring device.
本发明实施例还提供一种隧道丢包检测装置,位于隧道中的头节点中,上述装置包括:The embodiment of the invention further provides a tunnel packet loss detecting device, which is located in a head node in a tunnel, and the device includes:
发送模块,设置为按照设定的频率向中间节点发送检测请求报文,以供各中间节点及尾节点针对自身收发的检测请求报文进行数量统计后将统计结果上报给监测设备;上述设定的频率大于网络连通性及网络速度检查时采用的Ping报文的发送频率;The sending module is configured to send a detection request message to the intermediate node according to the set frequency, so that each intermediate node and the tail node report the statistical result to the monitoring device for the number of the detection request messages sent and received by the intermediate node and the tail node; The frequency of the ping packet is greater than the transmission frequency of the ping packet used for network connectivity check and network speed check;
第一统计模块,设置为头节点针对发出的检测请求报文进行数量统计,将统计结果发送给监测设备。The first statistic module is configured to collect statistics on the sent detection request packets by the head node, and send the statistics to the monitoring device.
本发明实施例还提供一种隧道丢包检测装置,位于隧道中的任一中间节点中,上述装置包括:The embodiment of the invention further provides a tunnel packet loss detecting device, which is located in any intermediate node in the tunnel, and the device includes:
第二统计模块,设置为在接收并转发检测请求报文的过程中,针对收发的检测请求报文进行数量统计,将统计结果上报给监测设备;上述检测请求报文从隧道的头节点中发出的频率符合设定的频率,上述设定的频率大于网络连通性及网络速度检查时采用的Ping报文的发送频率。The second statistic module is configured to collect, during the process of receiving and forwarding the detection request packet, the number of the detection request packets sent and received, and report the statistics to the monitoring device; the detection request message is sent from the head node of the tunnel. The frequency meets the set frequency. The frequency set above is greater than the transmission frequency of the ping packet used for network connectivity and network speed check.
本发明实施例还提供一种隧道丢包检测装置,位于隧道中的尾节点中,上述装置包括:The embodiment of the invention further provides a tunnel packet loss detecting device, which is located in a tail node in the tunnel, and the device includes:
第三统计模块,设置为针对接收到的检测请求报文进行数量统计,将统计结果上报给监测设备;上述检测请求报文从隧道的头节点中发出的频率符合设定的频率,上述设定的频率大于网络连通性及网络速度检查时采用的Ping报文的发送频率。The third statistic module is configured to perform statistics on the number of the received detection request messages, and report the statistics to the monitoring device; the frequency of the detection request message sent from the head node of the tunnel conforms to the set frequency, and the foregoing setting The frequency is greater than the transmission frequency of the ping packets used for network connectivity and network speed check.
本发明实施例还提供一种网络通信设备,至少包含上述位于头节点、中间节点、尾节点中的隧道丢包检测装置之一。The embodiment of the invention further provides a network communication device, which comprises at least one of the tunnel packet loss detecting devices located in the head node, the intermediate node and the tail node.
采用上述技术方案,本发明实施例至少具有下列优点:With the above technical solution, the embodiment of the present invention has at least the following advantages:
本发明实施例上述隧道丢包检测方法、装置及网络通信设备,通过在头节点出提升发送 检测请求报文的发送频率、以及在隧道中各个节点中均进行收发报文的数量统计和上报,实现快速准确的隧道丢包检测,可应用于双向隧道和单向隧道,能针对链路上各个节点进行隧道收发包统计,准确判断出具体丢包位置及数量,快速定位到网络故障点,为工程维护提供极为方便的手段,能满足网络运营维护的需求。In the embodiment of the present invention, the tunnel packet loss detecting method, device, and network communication device are sent by lifting at the head node. Detects the sending frequency of the request packet and the statistics and reports of the number of packets sent and received in each node in the tunnel. The fast and accurate tunnel packet loss detection can be applied to the bidirectional tunnel and the unidirectional tunnel. Each node performs tunneling packet statistics, accurately determines the location and number of specific packet loss, and quickly locates the network fault point, providing an extremely convenient means for engineering maintenance and meeting the needs of network operation and maintenance.
附图说明DRAWINGS
图1为本发明第一实施例的在隧道仅包含单向路径的情况下头节点执行的流程图;1 is a flowchart of a head node execution in a case where a tunnel includes only a one-way path according to the first embodiment of the present invention;
图2为本发明第一实施例的在隧道包含双向路径的情况下头节点执行的流程图;2 is a flowchart of execution of a head node in a case where a tunnel includes a bidirectional path according to the first embodiment of the present invention;
图3为本发明第二实施例的在隧道仅包含单向路径的情况下中间节点执行的流程图;3 is a flowchart of an intermediate node execution in a case where a tunnel only includes a unidirectional path according to a second embodiment of the present invention;
图4为本发明第二实施例的在隧道包含双向路径的情况下中间节点执行的流程图;4 is a flowchart of an intermediate node execution in a case where a tunnel includes a bidirectional path according to a second embodiment of the present invention;
图5为本发明第三实施例的在隧道包含双向路径的情况下尾节点执行的流程图;5 is a flowchart of execution of a tail node in a case where a tunnel includes a bidirectional path according to a third embodiment of the present invention;
图6为本发明第四实施例的隧道丢包检测装置组成示意图;6 is a schematic structural diagram of a tunnel packet loss detecting apparatus according to a fourth embodiment of the present invention;
图7为本发明第五实施例的隧道丢包检测装置组成示意图;FIG. 7 is a schematic structural diagram of a tunnel packet loss detecting apparatus according to a fifth embodiment of the present invention; FIG.
图8为本发明第六实施例的隧道丢包检测装置组成示意图;FIG. 8 is a schematic structural diagram of a tunnel packet loss detecting apparatus according to a sixth embodiment of the present invention; FIG.
图9为本发明第八实施例的组网结构示意图;9 is a schematic structural diagram of a networking of an eighth embodiment of the present invention;
图10为本发明第八实施例头节点A的组成结构示意图;10 is a schematic structural diagram of a structure of a head node A according to an eighth embodiment of the present invention;
图11为本发明第八实施例中间节点B和C的组成结构示意图。FIG. 11 is a schematic structural diagram of the intermediate nodes B and C according to the eighth embodiment of the present invention.
具体实施方式detailed description
为更进一步阐述本发明为达成预定目的所采取的技术手段及功效,以下结合附图及较佳实施例,对本发明进行详细说明如后。The present invention will be described in detail below with reference to the accompanying drawings and preferred embodiments.
本发明第一实施例,一种隧道丢包检测方法,由一头节点、若干中间节点以及一尾节点组成一条隧道,如图1所示,头节点执行的流程包括以下具体步骤:In the first embodiment of the present invention, a tunnel packet loss detection method is composed of a node, a plurality of intermediate nodes, and a tail node. As shown in FIG. 1, the process performed by the head node includes the following specific steps:
步骤S101,头节点按照设定的频率向中间节点发送设定数量的检测请求报文,以供各中间节点及尾节点针对自身收发的检测请求报文进行数量统计后将统计结果上报给监测设备;上述设定的频率大于网络连通性及网络速度检查时采用的Ping报文的发送频率但须以上述隧道的传输带宽为上限,而上述隧道的传输带宽通常默认为通信设备网络侧的物理端口的传输带宽。In step S101, the head node sends a set number of detection request messages to the intermediate node according to the set frequency, so that each intermediate node and the tail node report the statistics of the detection request packets sent and received by the intermediate node and the tail node to the monitoring device. The frequency set by the above is greater than the transmission frequency of the ping packet used for the network connectivity check and the network speed check, but the transmission bandwidth of the tunnel is required to be the upper limit, and the transmission bandwidth of the tunnel is usually the physical port on the network side of the communication device. Transmission bandwidth.
步骤S102,头节点针对发出的检测请求报文进行数量统计,将统计结果发送给监测设备。 Step S102: The head node performs quantity statistics on the sent detection request message, and sends the statistics result to the monitoring device.
具体的,在本发明实施例中,头节点、尾节点以及各中间节点中都需要配置隧道实例,由此才能在头节点、若干中间节点以及尾节点中形成相应的隧道,该隧道实例中规定了通过相应的隧道传输报文时,各节点需要打上的出标签和需要识别的入标签,比如:当头节点发出检测请求报文时,需要在该检测请求报文上打上出标签,而该出标签就作为中间节点接收到该检测请求报文时识别出的该检测请求报文携带的入标签,当中间节点发出该检测请求报文时又会再为其打上符合该隧道实例的出标签。Specifically, in the embodiment of the present invention, a tunnel instance needs to be configured in the head node, the tail node, and each intermediate node, so that a corresponding tunnel can be formed in the head node, the plurality of intermediate nodes, and the tail node, and the tunnel instance specifies When the packet is transmitted through the corresponding tunnel, each node needs to be marked with an outgoing label and an incoming label that needs to be identified. For example, when the head node sends a detection request message, the label needs to be marked on the detection request message, and the label is sent out. The tag is used as an ingress tag carried by the detection request message when the intermediate node receives the detection request message, and when the intermediate node sends the detection request message, it will be tagged with the outbound label of the tunnel instance.
另外,在头节点和尾节点中还需要配置检测实例,该检测实例中规定了对检测请求报文的封装方式,若在双向路径的隧道下,该检测实例中还规定了与检测请求报文相对应的检测回应报文的封装方式。In addition, a detection instance needs to be configured in the head node and the tail node. The detection instance specifies the encapsulation mode of the detection request message. If the tunnel is in the tunnel of the bidirectional path, the detection instance further specifies the detection request message. The corresponding detection response packet is encapsulated.
进一步的,由于隧道分别单向路径和双向路径两种,上述步骤S101~102实际上是在上述隧道仅包含单向路径的情况下的技术方案,此时,头节点按照设定的频率沿着上述单向路径向中间节点发送检测请求报文。Further, since the tunnels are respectively a unidirectional path and a bidirectional path, the foregoing steps S101-102 are actually a technical solution in the case where the tunnel only includes a unidirectional path, and at this time, the head node follows the set frequency. The unidirectional path sends a detection request message to the intermediate node.
如图2所示,在上述隧道包含双向路径、且在上述隧道中的正向路径用于传送检测请求报文而上述隧道中的反向路径用于传送相应的检测回应报文的情况下:As shown in FIG. 2, in the case where the tunnel includes a bidirectional path, and the forward path in the tunnel is used to transmit a detection request message and the reverse path in the tunnel is used to transmit a corresponding detection response message:
步骤S101具体应为:步骤S101-1,在正向路径中,头节点按照设定的频率向中间节点发送检测请求报文;Step S101 is specifically: step S101-1, in the forward path, the head node sends a detection request message to the intermediate node according to the set frequency;
上述头节点执行的流程,除了包含步骤S101-1、以及与步骤S102完全相同的步骤S102-1之外,还包括:The flow performed by the foregoing head node includes, in addition to the step S101-1 and the step S102-1 which is identical to the step S102, the following:
步骤S103-1,在反向路径中,头节点针对接收到的上述检测回应报文进行数量统计,将统计结果上报给监测设备。Step S103-1, in the reverse path, the head node performs quantity statistics on the received detection response message, and reports the statistical result to the monitoring device.
具体的,在步骤S103-1中,头节点针对接收到的上述检测回应报文进行数量统计,包括:Specifically, in step S103-1, the head node performs quantity statistics on the received detection response message, including:
头节点根据接收到的上述检测回应报文中携带的入标签找到对应的隧道实例中的检测实例,其目的是确定上述检测回应报文是属于该检测实例的,即可对上述检测回应报文进行数量统计。The head node finds the detection instance in the corresponding tunnel instance according to the received ingress label carried in the foregoing detection response message, and the purpose is to determine that the detection response message belongs to the detection instance, and the detection response message is Perform quantitative statistics.
本发明第二实施例,一种隧道丢包检测方法,本实施例的方法与第一实施例的方法均属于同一个技术思路,区别在于本实施例是以中间节点的角度来描述本发明的技术方案。The second embodiment of the present invention is a tunnel packet loss detection method. The method in this embodiment and the method in the first embodiment all belong to the same technical idea. The difference is that this embodiment describes the present invention from the perspective of an intermediate node. Technical solutions.
本实施例的隧道丢包检测方法,由一头节点、若干中间节点以及一尾节点组成一条隧道,如图3所示,中间节点执行的流程包括:In the tunnel packet loss detection method of the embodiment, a tunnel is formed by a node, a plurality of intermediate nodes, and a tail node. As shown in FIG. 3, the process performed by the intermediate node includes:
步骤S201,中间节点在接收并转发检测请求报文的过程中,针对收发的检测请求报文进行数量统计。上述检测请求报文从隧道的头节点中发出的频率符合设定的频率,上述设定的频率大于网络连通性及网络速度检查时采用的Ping报文的发送频率但须以上述隧道的传输带宽为上限。 In step S201, the intermediate node performs the quantity statistics on the sent and received detection request messages in the process of receiving and forwarding the detection request message. The frequency of the detection request message sent from the head node of the tunnel conforms to the set frequency, and the set frequency is greater than the transmission frequency of the ping message used in the network connectivity check and the network speed check, but the transmission bandwidth of the tunnel is required. The upper limit.
具体的,在步骤S201中,针对收发的检测请求报文进行数量统计,包括:Specifically, in step S201, the number of the detection request messages sent and received is counted, including:
在接收到的检测请求报文携带的入标签和反映报文类型的信息的基础上,根据ACL规则针对接收的检测请求报文进行数量统计;And performing, according to the ACL rule, the quantity of the received detection request message according to the ACL rule, based on the inbound label and the information indicating the type of the packet, which are received by the detection request message;
在本中间节点针对转发的检测请求报文打上的出标签和该转发的检测请求报文携带的反映报文类型的信息的基础上,根据ACL规则针对发出的检测请求报文进行数量统计。On the basis of the outbound label of the forwarded detection request packet and the information of the packet type reflected by the forwarded detection request message, the intermediate node performs the quantity statistics on the sent detection request message according to the ACL rule.
上述反映报文类型的信息,包括:报文类型信息,和/或,端口信息。The above information reflecting the message type includes: message type information, and/or port information.
步骤S202,将统计结果上报给监测设备。具体的,可以基于监测设备的指令而上报统计结果,也可以主动向监测设备上报统计结果。In step S202, the statistical result is reported to the monitoring device. Specifically, the statistical result may be reported based on the instruction of the monitoring device, or the statistical result may be reported to the monitoring device.
进一步的,由于隧道分别单向路径和双向路径两种,上述步骤S201~202实际上是在上述隧道仅包含单向路径的情况下的技术方案,此时,中间节点在上述单向路径上,针对收发的检测请求报文分别进行数量统计,将统计结果均上报给监测设备。Further, since the tunnels are respectively a unidirectional path and a bidirectional path, the foregoing steps S201-202 are actually a technical solution in the case where the tunnel only includes a unidirectional path, and at this time, the intermediate node is on the unidirectional path. The number of the detection request packets sent and received is counted separately, and the statistics are reported to the monitoring device.
如图4所示,在上述隧道包含双向路径、且在上述隧道中的正向路径用于传送检测请求报文而上述隧道中的反向路径用于传送相应的检测回应报文的情况下:As shown in FIG. 4, in the case where the tunnel includes a bidirectional path, and the forward path in the tunnel is used to transmit a detection request message and the reverse path in the tunnel is used to transmit a corresponding detection response message:
步骤S201具体应为步骤S201-1:中间节点在接收并转发检测请求报文的过程中,分别在上述正向路径和上述反向路径上,针对收发的检测请求报文进行数量统计;上述检测请求报文从隧道的头节点中发出的频率符合设定的频率,上述设定的频率大于网络连通性及网络速度检查时采用的Ping报文的发送频率但须以上述隧道的传输带宽为上限。The step S201 is specifically the step S201-1: in the process of receiving and forwarding the detection request message, the intermediate node performs the quantity statistics on the detection request message sent and received on the forward path and the reverse path respectively; The frequency of the request message sent from the head node of the tunnel conforms to the set frequency. The set frequency is greater than the transmission frequency of the ping packet used for network connectivity and network speed check, but the upper limit of the transmission bandwidth of the tunnel is required. .
步骤S202具体应为步骤S202-1:将相应路径上的统计结果均上报给监测设备。The step S202 is specifically reported to the step S202-1: the statistical result on the corresponding path is reported to the monitoring device.
本发明第三实施例,一种隧道丢包检测方法,本实施例的方法与第一实施例的方法均属于同一个技术思路,区别在于本实施例是以尾节点的角度来描述本发明的技术方案。The third embodiment of the present invention is a tunnel packet loss detection method. The method in this embodiment and the method in the first embodiment all belong to the same technical idea. The difference is that the present embodiment describes the present invention in terms of the tail node. Technical solutions.
本实施例的隧道丢包检测方法,由一头节点、若干中间节点以及一尾节点组成一条隧道,尾节点执行的流程包括:In the tunnel packet loss detection method of the embodiment, a tunnel is formed by a node, a plurality of intermediate nodes, and a tail node, and the process performed by the tail node includes:
步骤S301,针对接收到的检测请求报文进行数量统计,将统计结果上报给监测设备;上述检测请求报文从隧道的头节点中发出的频率符合设定的频率,上述设定的频率大于网络连通性及网络速度检查时采用的Ping报文的发送频率但须以上述隧道的传输带宽为上限。Step S301: Performing quantity statistics on the received detection request message, and reporting the statistical result to the monitoring device; the frequency of the detection request message sent from the head node of the tunnel conforms to the set frequency, and the set frequency is greater than the network. The transmission frequency of the ping packets used for the connectivity and network speed check must be based on the transmission bandwidth of the tunnel.
进一步的,由于隧道分别单向路径和双向路径两种,上述步骤S301实际上是在上述隧道仅包含单向路径的情况下的技术方案,此时,在上述单向路径上,尾节点针对接收到的检测请求报文进行数量统计,将统计结果均上报给监测设备。Further, since the tunnel is respectively a unidirectional path and a bidirectional path, the foregoing step S301 is actually a technical solution in a case where the tunnel only includes a unidirectional path, and at this time, on the unidirectional path, the tail node is for receiving The number of the detection request packets is counted, and the statistics are reported to the monitoring device.
如图5所示,在上述隧道包含双向路径、且在上述隧道中的正向路径用于传送检测请求报文而上述隧道中的反向路径用于传送相应的检测回应报文的情况下: As shown in FIG. 5, in the case where the tunnel includes a bidirectional path, and the forward path in the tunnel is used to transmit a detection request message and the reverse path in the tunnel is used to transmit a corresponding detection response message:
步骤S301具体应为步骤S301-1:在正向路径中,尾节点针对接收到的检测请求报文进行数量统计,将统计结果上报给监测设备;The step S301 is specifically the step S301-1: in the forward path, the tail node performs the quantity statistics on the received detection request message, and reports the statistical result to the monitoring device;
上述尾节点执行的流程,还包括:The process performed by the above tail node further includes:
步骤S302-1:尾节点根据接收到的上述检测请求报文所在的正向路径找到对应的反向路径;Step S302-1: The tail node finds a corresponding reverse path according to the forward path where the received detection request message is located;
步骤S303-1:在反向路径中,尾节点向中间节点发送检测回应报文,以供各中间节点以及头节点针对自身收发的检测回应报文进行数量统计后将统计结果上报给监测设备;Step S303-1: In the reverse path, the tail node sends a detection response message to the intermediate node, so that each intermediate node and the head node report the statistics to the monitoring device for the number of the detection response messages sent and received by the initiating node;
步骤S304-1:尾节点针对发出的上述检测回应报文进行数量统计,将统计结果发送给监测设备。Step S304-1: The tail node performs quantity statistics on the sent detection response message sent, and sends the statistics result to the monitoring device.
本发明第四实施例,与第一实施例对应,本实施例介绍一种隧道丢包检测装置,位于隧道中的头节点中,如图6所示,该装置包括以下组成部分:In the fourth embodiment of the present invention, corresponding to the first embodiment, this embodiment introduces a tunnel packet loss detecting device, which is located in a head node in a tunnel. As shown in FIG. 6, the device includes the following components:
发送模块600,设置为按照设定的频率向中间节点发送设定数量的检测请求报文,以供各中间节点及尾节点针对自身收发的检测请求报文进行数量统计后将统计结果上报给监测设备;上述设定的频率以上述隧道的传输带宽为限;The sending module 600 is configured to send a set number of detection request messages to the intermediate node according to the set frequency, so that each intermediate node and the tail node report the statistics of the detection request messages sent and received by the intermediate node and the tail node to the monitoring. The frequency set by the above is limited to the transmission bandwidth of the tunnel;
第一统计模块601,设置为头节点针对发出的检测请求报文进行数量统计,将统计结果发送给监测设备。The first statistic module 601 is configured to perform statistics on the number of the detection request packets sent by the head node, and send the statistics to the monitoring device.
本发明第五实施例,与第二实施例对应,本实施例介绍一种隧道丢包检测装置,位于隧道中的任一中间节点中,如图7所示,该装置包括以下组成部分:The fifth embodiment of the present invention corresponds to the second embodiment. This embodiment introduces a tunnel packet loss detecting device, which is located in any intermediate node in the tunnel. As shown in FIG. 7, the device includes the following components:
第二统计模块700,设置为在接收并转发检测请求报文的过程中,针对收发的检测请求报文进行数量统计,将统计结果上报给监测设备。上述检测请求报文从隧道的头节点中发出的频率符合设定的频率,上述设定的频率大于网络连通性及网络速度检查时采用的Ping报文的发送频率但须以上述隧道的传输带宽为上限。The second statistic module 700 is configured to perform statistics on the number of the detection request messages sent and received in the process of receiving and forwarding the detection request message, and report the statistics to the monitoring device. The frequency of the detection request message sent from the head node of the tunnel conforms to the set frequency, and the set frequency is greater than the transmission frequency of the ping message used in the network connectivity check and the network speed check, but the transmission bandwidth of the tunnel is required. The upper limit.
本发明第六实施例,与第三实施例对应,本实施例介绍一种隧道丢包检测装置,位于隧道中的尾节点中,如图8所示,该装置包括以下组成部分:The sixth embodiment of the present invention corresponds to the third embodiment. This embodiment introduces a tunnel packet loss detecting device, which is located in a tail node in the tunnel. As shown in FIG. 8, the device includes the following components:
第三统计模块800,设置为针对接收到的检测请求报文进行数量统计,将统计结果上报给监测设备;上述检测请求报文从隧道的头节点中发出的频率符合设定的频率,上述设定的频率大于网络连通性及网络速度检查时采用的Ping报文的发送频率但须以上述隧道的传输带宽为上限。 The third statistic module 800 is configured to perform statistics on the number of the received detection request messages, and report the statistical result to the monitoring device; the frequency of the detection request message sent from the head node of the tunnel conforms to the set frequency, and the foregoing setting The fixed frequency is greater than the transmission frequency of the ping packet used for network connectivity and network speed check, but the upper limit of the transmission bandwidth of the tunnel is required.
本发明第七实施例,一种网络通信设备,可以作为实体装置来理解,本实施例的上述网络通信设备中至少包含第四实施例、第五实施例、第六实施例上述的隧道丢包检测装置之一。A seventh embodiment of the present invention is a network communication device, which can be understood as a physical device. The network communication device of the present embodiment includes at least the tunnel loss described in the fourth embodiment, the fifth embodiment, and the sixth embodiment. One of the detection devices.
本发明第八实施例,本实施例是在上述实施例的基础上,以PTN(Package Transport Network,分组传送网)网络中的PTN设备之间如何进行快速Lsp Ping为例,结合附图9~11介绍一个本发明的应用实例。The eighth embodiment of the present invention is based on the foregoing embodiment, and how to perform fast Lsp ping between PTN devices in a PTN (Package Transport Network) network, as shown in FIG. 9 11 introduces an application example of the present invention.
本实施例的一种快速Lsp Ping检测方法,能满足工程现场快速定位隧道报文转发丢包节点的需求。A fast Lsp Ping detection method in this embodiment can meet the requirement of rapidly forwarding a tunnel packet forwarding node at the engineering site.
本实施例以图9中所示的组网结构来实现具备双向路径的隧道的LspPing检测功能,需要在组网的各个节点的隧道上启用LspPing检测功能。In this embodiment, the LspPing detection function of the tunnel with the bidirectional path is implemented by using the networking structure shown in FIG. 9, and the LspPing detection function needs to be enabled on the tunnel of each node of the networking.
步骤一:在组网的各个节点的隧道上启用LspPing检测功能。Step 1: Enable LspPing detection on the tunnels of each node in the networking.
1)隧道配置及对应的业务模型的建立。1) Tunnel configuration and establishment of corresponding business model.
根据业务配置建立业务拓扑模型,配置隧道实例以形成由头节点A、中间节点B和C、尾节点Z组成的隧道。A service topology model is established according to the service configuration, and the tunnel instance is configured to form a tunnel composed of the head node A, the intermediate nodes B and C, and the tail node Z.
2)头节点A配置:按照需要启用快速隧道Ping功能,并配置报文长度和隧道的传输带宽,再将LspPing实例(类似于上述实施例中的检测实例)绑定到中间节点B和C上,头节点A的类型属于PE节点即边缘节点,其组成结构如图10所示,头节点中的LspPing报文处理模块根据配置的报文长度和隧道的传输带宽计算发送报文的频率,通常是用隧道的传输带宽除以报文长度得到可以设定的最高的报文发送频率。2) Head node A configuration: Enable the fast tunnel ping function as required, and configure the packet length and the tunnel transmission bandwidth, and then bind the LspPing instance (similar to the detection instance in the above embodiment) to the intermediate nodes B and C. The type of the head node A belongs to the PE node, that is, the edge node. The composition of the node is as shown in Figure 10. The LspPing packet processing module in the head node calculates the frequency of sending packets according to the configured packet length and the tunnel transmission bandwidth. The highest packet transmission frequency that can be set is obtained by dividing the transmission bandwidth of the tunnel by the packet length.
3)中间节点B和C配置:启用快速隧道Ping功能后配置交换芯片的ACL规则,根据Request报文中或者中Reply报文携带的出标签、入标签、端口、报文类型等信息进行Request报文或者Reply报文的数量统计。中间节点B和C的类型属于P节点即非边缘节点,其组成结构如图11所示,其中NNI端口即为网络侧的端口。3) Intermediate node B and C configuration: After the fast tunnel ping function is enabled, the ACL rule of the switch chip is configured, and the Request packet is sent according to the outgoing label, the incoming label, the port, and the packet type carried in the Request packet or the Reply packet. The number of text or Reply packets. The types of the intermediate nodes B and C belong to the P node, that is, the non-edge node. The composition of the nodes is shown in Figure 11, where the NNI port is the port on the network side.
4)尾节点Z配置:启用快速隧道Ping功能后,对于包含双向路径的隧道,同时在入向路径上关联对应的出向路径信息,以便于回送LspPing Reply报文时封装隧道相关信息。本实施例中尾节点中的入向路径对应于前述实施例中的正向路径,出向路径对应于前述实施例中的反向路径。4) Tail node Z configuration: After the fast tunnel ping function is enabled, the tunnel information including the bidirectional path is associated with the corresponding egress path information on the inbound path, so as to encapsulate the tunnel related information when the LspPing Reply message is sent back. The inbound path in the tail node in this embodiment corresponds to the forward path in the foregoing embodiment, and the outbound path corresponds to the reverse path in the foregoing embodiment.
步骤二:正向LspPing的处理(Request报文)。Step 2: Forward LspPing processing (Request message).
头节点接收到LspPing启用配置后,头节点中的LspPing报文处理模块即按照隧道封装Request报文并发送。同时LspPing报文处理模块开始针对LspPing实例的收发Request报文进行统计,配置交换芯片提取该Request报文。After the LSR is enabled, the LspPing packet processing module in the header node encapsulates the Request packet and sends the packet. At the same time, the LspPing packet processing module starts to collect and send Request packets for the LspPing instance, and configures the switch chip to extract the Request packet.
中间节点需要按照业务对Request报文进行转发,同时根据Request报文中携带的出或者 入标签、端口、报文类型对接收和发送的Request报文的数量分别进行统计。该出标签及入标签均为符合隧道实例的隧道标签。The intermediate node needs to forward the Request packet according to the service, and according to the outgoing packet carried in the Request packet or The inbound label, port, and packet type collect statistics on the number of Request packets received and sent. Both the outgoing label and the incoming label are tunnel labels that conform to the tunnel instance.
尾节点收到Request报文,由ACL规则对该报文进行提取送给尾节点的LspPing报文处理模块,该LspPing报文处理模块根据隧道标签查到对应的LspPing实例,并获得正向路径对应的反向路径,按该反向路径的相关信息封装Reply报文并回送,同时统计Request报文的接收数量和Reply报文的发送数量。The tail node receives the request packet, and the ACL rule extracts the packet to the LspPing packet processing module of the tail node. The LspPing packet processing module finds the corresponding LspPing instance according to the tunnel label, and obtains a forward path corresponding to the packet. The reverse path encapsulates the Reply packet and sends it back according to the information about the reverse path. It also counts the number of received Request packets and the number of Reply packets sent.
步骤三:反向LspPing的处理(Reply报文)。Step 3: Reverse LspPing processing (Reply message).
当尾节点收到Request报文后,需要找到该LspPing实例的入向路径对应的出向路径,按该出向路径的业务信息回复一个Reply报文,并在尾节点统计回复的Reply报文数量。After receiving the request packet, the tail node needs to find the outbound path corresponding to the inbound path of the LspPing instance, reply a Reply packet according to the service information of the outbound path, and count the number of Reply packets returned at the tail node.
中间节点需要按照业务对Reply报文进行转发,同时根据该Reply报文中携带的出标签、入标签、端口、报文类型对接收和发送方向的Reply报文的数量分别进行统计。The intermediate node needs to forward the Reply packet according to the service, and collect statistics on the number of Reply packets in the receiving and sending directions according to the outgoing label, the incoming label, the port, and the packet type carried in the Reply packet.
头节点收到Reply报文后,由交换芯片对该报文进行提取送给头节点的LspPing报文处理模块,该LspPing报文处理模块根据隧道标签查到对应的LspPing实例,对Reply报文进行终结处理,同时统计对应的收包数量。After receiving the Reply packet, the head node extracts the packet and sends the packet to the LspPing packet processing module of the head node. The LspPing packet processing module searches the corresponding LspPing instance according to the tunnel label, and performs the Reply packet. Finalize the process and count the corresponding number of packets received.
步骤四:停止LspPing检测后,查询各个节点收发报文数量并显示统计结果。Step 4: After the LspPing test is stopped, query the number of packets sent and received by each node and display the statistics.
1)对于头尾节点,从LspPing报文处理模块查询其统计的报文收发数量。1) For the head-to-tail node, query the number of packets sent and received by the LspPing packet processing module.
2)对于中间节点,从采用ACL规则的交换芯片查询到基于隧道标签、端口、报文类型统计的报文收发数量。2) For the intermediate node, the number of packets sent and received based on the tunnel label, port, and packet type is queried from the switch chip that uses the ACL rule.
3)收集各个节点的统计信息,并显示。本实施例中正向路径中各节点的收发报文数量的统计情况如表1所示,反向路径中各节点的收发报文数量的统计情况如表2所示。3) Collect statistics of each node and display them. The statistics of the number of the packets sent and received by the nodes in the forward path are as shown in Table 1. The statistics of the number of packets sent and received by the nodes in the reverse path are shown in Table 2.
表1Table 1
Figure PCTCN2016076901-appb-000001
Figure PCTCN2016076901-appb-000001
表2Table 2
Figure PCTCN2016076901-appb-000002
Figure PCTCN2016076901-appb-000002
Figure PCTCN2016076901-appb-000003
Figure PCTCN2016076901-appb-000003
本实施例以包含双向路径的隧道的LspPing功能为例,对于仅包含单向路径的隧道只用对Request报文的发送接收进行统计和显示即可,与本实施例的实现类似。In this embodiment, the LspPing function of the tunnel including the bidirectional path is used as an example. For the tunnel that only includes the unidirectional path, only the sending and receiving of the Request packet is counted and displayed, which is similar to the implementation of this embodiment.
本发明实施例的所述隧道丢包检测方法、装置及网络通信设备,实现快速准确的隧道丢包检测,可应用于双向隧道和单向隧道,能针对链路上各个节点进行隧道收发包统计,准确判断出具体丢包位置及数量,快速定位到网络故障点,为工程维护提供极为方便的手段,能满足网络运营维护的需求。The tunnel packet loss detection method, device, and network communication device in the embodiment of the present invention can implement fast and accurate tunnel packet loss detection, and can be applied to a bidirectional tunnel and a unidirectional tunnel, and can perform tunneling packet transmission and reception statistics for each node on the link. Accurately determine the location and quantity of specific packet loss, and quickly locate the network fault point, providing an extremely convenient means for engineering maintenance, which can meet the needs of network operation and maintenance.
通过具体实施方式的说明,应当可对本发明为达成预定目的所采取的技术手段及功效得以更加深入且具体的了解,然而所附图示仅是提供参考与说明之用,并非用来对本发明加以限制。The technical means and functions of the present invention for achieving the intended purpose can be more deeply and specifically understood by the description of the specific embodiments. However, the accompanying drawings are only for the purpose of illustration and description, and are not intended to limit.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,头节点按照设定的频率向中间节点发送检测请求报文,以供各中间节点及尾节点针对自身收发的检测请求报文进行数量统计后将统计结果上报给监测设备;设定的频率大于网络连通性及网络速度检查时采用的Ping报文的发送频率;S1, the head node sends a detection request message to the intermediate node according to the set frequency, so that each intermediate node and the tail node report the statistical result to the monitoring device for the number of the detection request messages sent and received by the intermediate node and the tail node; the set frequency The sending frequency of the ping packets used when the network connectivity is checked and the network speed is checked.
S2,头节点针对发出的检测请求报文进行数量统计,将统计结果发送给监测设备。S2, the head node performs quantity statistics on the sent detection request message, and sends the statistics result to the monitoring device.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员 来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and is to those skilled in the art. Many variations and modifications of the invention are possible. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
在本发明实施例中,通过在头节点出提升发送检测请求报文的发送频率、以及在隧道中各个节点中均进行收发报文的数量统计和上报,实现快速准确的隧道丢包检测,可应用于双向隧道和单向隧道,能针对链路上各个节点进行隧道收发包统计,准确判断出具体丢包位置及数量,快速定位到网络故障点,为工程维护提供极为方便的手段,能满足网络运营维护的需求。 In the embodiment of the present invention, the fast and accurate tunnel packet loss detection is implemented by using the sending frequency of the sending detection request message at the head node and the statistics and reporting of the number of the sending and receiving packets in each node in the tunnel. It can be applied to bidirectional tunnels and unidirectional tunnels. It can collect and collect statistics on tunnels for each node on the link, accurately determine the location and number of specific packet loss, and quickly locate the network fault point, providing an extremely convenient means for engineering maintenance. The need for network operation and maintenance.

Claims (12)

  1. 一种隧道丢包检测方法,由一头节点、若干中间节点以及一尾节点组成一条隧道,头节点执行的流程包括:A tunnel packet loss detection method consists of a node, a plurality of intermediate nodes, and a tail node, and the process performed by the head node includes:
    头节点按照设定的频率向中间节点发送检测请求报文,以供各中间节点及尾节点针对自身收发的检测请求报文进行数量统计后将统计结果上报给监测设备;所述设定的频率大于网络连通性及网络速度检查时采用的Ping报文的发送频率;The head node sends a detection request message to the intermediate node according to the set frequency, so that each intermediate node and the tail node report the statistical result to the monitoring device for the number of the detection request messages sent and received by the intermediate node and the tail node; the set frequency The sending frequency of the ping packets used when the network connectivity is checked and the network speed is checked.
    头节点针对发出的检测请求报文进行数量统计,将统计结果发送给监测设备。The head node collects statistics on the sent detection request packets and sends the statistics to the monitoring device.
  2. 根据权利要求1所述的隧道丢包检测方法,其中,在所述隧道包含双向路径、且在所述隧道中的正向路径用于传送检测请求报文而所述隧道中的反向路径用于传送相应的检测回应报文的情况下:The tunnel packet loss detecting method according to claim 1, wherein the tunnel includes a bidirectional path, and a forward path in the tunnel is used to transmit a detection request message and a reverse path in the tunnel is used. In the case of transmitting the corresponding detection response message:
    在正向路径中,头节点按照设定的频率向中间节点发送检测请求报文;In the forward path, the head node sends a detection request message to the intermediate node according to the set frequency;
    所述头节点执行的流程,还包括:The process performed by the head node further includes:
    在反向路径中,头节点针对接收到的所述检测回应报文进行数量统计,将统计结果上报给监测设备。In the reverse path, the head node performs statistics on the number of the received detection response packets, and reports the statistics to the monitoring device.
  3. 一种隧道丢包检测方法,由一头节点、若干中间节点以及一尾节点组成一条隧道,中间节点执行的流程包括:A tunnel packet loss detection method consists of a node, a plurality of intermediate nodes and a tail node, and the process performed by the intermediate node includes:
    中间节点在接收并转发检测请求报文的过程中,针对收发的检测请求报文进行数量统计,将统计结果上报给监测设备;所述检测请求报文从隧道的头节点中发出的频率符合设定的频率,所述设定的频率大于网络连通性及网络速度检查时采用的Ping报文的发送频率。During the process of receiving and forwarding the detection request message, the intermediate node performs statistics on the number of the detection request packets sent and received, and reports the statistics to the monitoring device; the frequency of the detection request message is sent from the head node of the tunnel. The set frequency is greater than the transmission frequency of the ping packet used for network connectivity and network speed check.
  4. 根据权利要求3所述的隧道丢包检测方法,其中,针对收发的检测请求报文进行数量统计,包括:The tunnel packet loss detection method according to claim 3, wherein the number of the detection request packets sent and received is counted, including:
    在接收到的检测请求报文携带的入标签和反映报文类型的信息的基础上,根据访问控制列表ACL规则针对接收的检测请求报文进行数量统计;And performing, according to the access control list ACL rule, quantity statistics of the received detection request message, on the basis of the inbound label and the information indicating the packet type carried in the received detection request message;
    在本中间节点针对转发的检测请求报文打上的出标签和该转发的检测请求报文携带的反映报文类型的信息的基础上,根据ACL规则针对发出的检测请求报文进行数量统计。On the basis of the outbound label of the forwarded detection request packet and the information of the packet type reflected by the forwarded detection request message, the intermediate node performs the quantity statistics on the sent detection request message according to the ACL rule.
  5. 根据权利要求4所述的隧道丢包检测方法,其中,所述反映报文类型的信息,包括:报文类型信息,和/或,端口信息。The tunnel packet loss detecting method according to claim 4, wherein the information reflecting the packet type includes: packet type information, and/or port information.
  6. 根据权利要求3所述的隧道丢包检测方法,其中,在所述隧道包含双向路径、且在所述隧道中的正向路径用于传送检测请求报文而所述隧道中的反向路径用于传送相应的检测回应报文的情况下:The tunnel packet loss detecting method according to claim 3, wherein the tunnel includes a bidirectional path, and a forward path in the tunnel is used to transmit a detection request message and a reverse path in the tunnel is used. In the case of transmitting the corresponding detection response message:
    所述中间节点执行的流程,具体包括: The process performed by the intermediate node specifically includes:
    中间节点在接收并转发检测请求报文的过程中,分别在所述正向路径和所述反向路径上,针对收发的检测请求报文进行数量统计,将相应路径上的统计结果均上报给监测设备。During the process of receiving and forwarding the detection request message, the intermediate node performs statistics on the number of the detection request packets sent and received on the forward path and the reverse path, and reports the statistics on the corresponding path to the statistics. Monitoring equipment.
  7. 一种隧道丢包检测方法,由一头节点、若干中间节点以及一尾节点组成一条隧道,尾节点执行的流程包括:A tunnel packet loss detection method consists of a node, a plurality of intermediate nodes, and a tail node, and the process performed by the tail node includes:
    尾节点针对接收到的检测请求报文进行数量统计,将统计结果上报给监测设备;所述检测请求报文从隧道的头节点中发出的频率符合设定的频率,所述设定的频率大于网络连通性及网络速度检查时采用的Ping报文的发送频率。The tail node performs statistics on the received detection request message, and reports the statistical result to the monitoring device; the frequency of the detection request message sent from the head node of the tunnel conforms to the set frequency, and the set frequency is greater than The frequency of sending ping packets used for network connectivity and network speed check.
  8. 根据权利要求7所述的隧道丢包检测方法,其中,在所述隧道包含双向路径、且在所述隧道中的正向路径用于传送检测请求报文而所述隧道中的反向路径用于传送相应的检测回应报文的情况下:The tunnel packet loss detecting method according to claim 7, wherein the tunnel includes a bidirectional path, and a forward path in the tunnel is used to transmit a detection request message and a reverse path in the tunnel is used. In the case of transmitting the corresponding detection response message:
    在正向路径中,尾节点针对接收到的检测请求报文进行数量统计,将统计结果上报给监测设备;In the forward path, the tail node performs statistics on the number of the received detection request packets, and reports the statistics to the monitoring device.
    所述尾节点执行的流程,还包括:The process performed by the tail node further includes:
    尾节点根据接收到的所述检测请求报文所在的正向路径找到对应的反向路径;The tail node finds a corresponding reverse path according to the forward path of the received detection request message;
    在反向路径中,尾节点向中间节点发送检测回应报文,以供各中间节点针对自身收发的检测回应报文进行数量统计后将统计结果上报给监测设备;In the reverse path, the tail node sends a detection response message to the intermediate node, so that each intermediate node reports the statistics of the detection response packets sent and received by the intermediate node to the monitoring device;
    尾节点针对发出的所述检测回应报文进行数量统计,将统计结果发送给监测设备。The tail node performs statistics on the number of the detected response packets sent, and sends the statistics to the monitoring device.
  9. 一种隧道丢包检测装置,位于隧道中的头节点中,所述装置包括:A tunnel packet loss detecting device is located in a head node in a tunnel, and the device includes:
    发送模块,设置为按照设定的频率向中间节点发送检测请求报文,以供各中间节点及尾节点针对自身收发的检测请求报文进行数量统计后将统计结果上报给监测设备;所述设定的频率大于网络连通性及网络速度检查时采用的Ping报文的发送频率;The sending module is configured to send a detection request message to the intermediate node according to the set frequency, so that each intermediate node and the tail node report the statistics to the monitoring device for the number of the detection request messages sent and received by the intermediate node and the tail node; The fixed frequency is greater than the transmission frequency of the ping packet used for network connectivity and network speed check;
    第一统计模块,设置为头节点针对发出的检测请求报文进行数量统计,将统计结果发送给监测设备。The first statistic module is configured to collect statistics on the sent detection request packets by the head node, and send the statistics to the monitoring device.
  10. 一种隧道丢包检测装置,位于隧道中的任一中间节点中,所述装置包括:A tunnel packet loss detecting device is located in any intermediate node in a tunnel, and the device includes:
    第二统计模块,设置为在接收并转发检测请求报文的过程中,针对收发的检测请求报文进行数量统计,将统计结果上报给监测设备;所述检测请求报文从隧道的头节点中发出的频率符合设定的频率,所述设定的频率大于网络连通性及网络速度检查时采用的Ping报文的发送频率。The second statistic module is configured to collect, during the process of receiving and forwarding the detection request message, the number of the detection request packets sent and received, and report the statistics to the monitoring device; the detection request message is from the head node of the tunnel. The frequency of the transmission conforms to the set frequency, and the set frequency is greater than the transmission frequency of the ping packet used for network connectivity and network speed check.
  11. 一种隧道丢包检测装置,位于隧道中的尾节点中,所述装置包括:A tunnel packet loss detecting device is located in a tail node in a tunnel, and the device includes:
    第三统计模块,设置为针对接收到的检测请求报文进行数量统计,将统计结果上报 给监测设备;所述检测请求报文从隧道的头节点中发出的频率符合设定的频率,所述设定的频率大于网络连通性及网络速度检查时采用的Ping报文的发送频率。The third statistic module is configured to perform statistics on the received detection request packets and report the statistical results. The frequency of the detection request message sent from the head node of the tunnel is consistent with the set frequency, and the set frequency is greater than the network connection and the transmission frequency of the ping message used in the network speed check.
  12. 一种网络通信设备,至少包含如权利要求9、10、11所述的隧道丢包检测装置之一。 A network communication device comprising at least one of the tunnel packet loss detecting devices according to claims 9, 10 and 11.
PCT/CN2016/076901 2015-05-15 2016-03-21 Tunnel packet loss detecting method, apparatus and network communication device WO2016184245A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510249492.2A CN106301821A (en) 2015-05-15 2015-05-15 A kind of tunnel method for detecting packet loss, device and network communication equipment
CN201510249492.2 2015-05-15

Publications (1)

Publication Number Publication Date
WO2016184245A1 true WO2016184245A1 (en) 2016-11-24

Family

ID=57319369

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/076901 WO2016184245A1 (en) 2015-05-15 2016-03-21 Tunnel packet loss detecting method, apparatus and network communication device

Country Status (2)

Country Link
CN (1) CN106301821A (en)
WO (1) WO2016184245A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995071A (en) * 2021-02-05 2021-06-18 杭州迪普科技股份有限公司 Problem chip positioning method
CN113132140A (en) * 2019-12-31 2021-07-16 深信服科技股份有限公司 Network fault detection method, device, equipment and storage medium
CN114567574A (en) * 2022-03-01 2022-05-31 烽火通信科技股份有限公司 Method and device for realizing LM flow-free test based on time sequence control

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108400900B (en) * 2017-02-06 2023-03-14 中兴通讯股份有限公司 Message detection, configuration, forwarding and statistical method and device, controller and system
CN107872363B (en) * 2017-10-11 2020-10-30 东软集团股份有限公司 Data packet loss processing method and system, readable storage medium and electronic device
CN109981390B (en) * 2017-12-28 2020-11-24 北京金风科创风电设备有限公司 Network quality judgment system and method based on OPCUA message characteristics
CN110290017B (en) * 2019-07-26 2022-06-10 新华三大数据技术有限公司 Fault node positioning method and PE equipment
CN113132171A (en) * 2019-12-31 2021-07-16 华为技术有限公司 Communication method, terminal device, network device and collector
CN112491646A (en) * 2020-11-13 2021-03-12 中盈优创资讯科技有限公司 VPN end-to-end performance monitoring method and device
CN113691421B (en) * 2021-08-27 2022-08-02 烽火通信科技股份有限公司 Message generation method and device
CN115913910A (en) * 2021-09-30 2023-04-04 中兴通讯股份有限公司 Method and device for determining message transmission path fault

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1815970A (en) * 2005-02-01 2006-08-09 华为技术有限公司 Method for detecting network chain fault and positioning said fault
CN101772194A (en) * 2008-12-26 2010-07-07 中兴通讯股份有限公司 General packet radio service tunnel user plane path keep-alive method and system
CN102118277A (en) * 2009-12-30 2011-07-06 华为技术有限公司 Method and device for packet loss detection, and a router
CN102137431A (en) * 2010-01-21 2011-07-27 杭州华三通信技术有限公司 Method, system and device for WLAN (Wireless Local Area Network) multicasting transmission
CN102273136A (en) * 2009-09-01 2011-12-07 华为技术有限公司 Method and apparatus for detecting multi-service performance in tunnel

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1815970A (en) * 2005-02-01 2006-08-09 华为技术有限公司 Method for detecting network chain fault and positioning said fault
CN101772194A (en) * 2008-12-26 2010-07-07 中兴通讯股份有限公司 General packet radio service tunnel user plane path keep-alive method and system
CN102273136A (en) * 2009-09-01 2011-12-07 华为技术有限公司 Method and apparatus for detecting multi-service performance in tunnel
CN102118277A (en) * 2009-12-30 2011-07-06 华为技术有限公司 Method and device for packet loss detection, and a router
CN102137431A (en) * 2010-01-21 2011-07-27 杭州华三通信技术有限公司 Method, system and device for WLAN (Wireless Local Area Network) multicasting transmission

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113132140A (en) * 2019-12-31 2021-07-16 深信服科技股份有限公司 Network fault detection method, device, equipment and storage medium
CN113132140B (en) * 2019-12-31 2023-02-03 深信服科技股份有限公司 Network fault detection method, device, equipment and storage medium
CN112995071A (en) * 2021-02-05 2021-06-18 杭州迪普科技股份有限公司 Problem chip positioning method
CN112995071B (en) * 2021-02-05 2022-06-28 杭州迪普科技股份有限公司 Problem chip positioning method
CN114567574A (en) * 2022-03-01 2022-05-31 烽火通信科技股份有限公司 Method and device for realizing LM flow-free test based on time sequence control
CN114567574B (en) * 2022-03-01 2023-11-10 烽火通信科技股份有限公司 Method and device for realizing LM flow-free test based on time sequence control

Also Published As

Publication number Publication date
CN106301821A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
WO2016184245A1 (en) Tunnel packet loss detecting method, apparatus and network communication device
JP5462954B2 (en) Packet loss detection method and apparatus, and router
US11870690B2 (en) Packet processing method and apparatus, device, and storage medium
EP2884697B1 (en) Measuring method, device and system for network packet loss
US10673709B2 (en) Scalable service level agreement (SLA) verification and action using a data plane
WO2018210213A1 (en) Method and device for implementing ioam packaging and storage medium
US20220078106A1 (en) Packet Measurement Method, Device, and System
WO2016177120A1 (en) Measurement method and system for packet loss of link packet, target node and initiating-end node
US10771363B2 (en) Devices for analyzing and mitigating dropped packets
KR20140088206A (en) Service assurance using network measurement triggers
WO2018107882A1 (en) Fault positioning method and network device
WO2017000802A1 (en) Service fault location method and device
JP2017530645A (en) Packet sampling to measure network performance
CN103825819A (en) Methods and devices for sending and receiving messages
US11258702B2 (en) Routing path analysis method and device
EP3913862B1 (en) Traffic detection method, apparatus, and system
CN114697202B (en) Detection method and device
WO2014000509A1 (en) Transmission monitoring method and device
US9813319B1 (en) Method of detecting packet loss in a communication network
CN110933002B (en) Method and device for realizing switching chip of MPLS in-band detection OAM
US20230318978A1 (en) Tunnel Management Method, Apparatus, and System
WO2022222544A1 (en) Method and apparatus for operation administration and maintenance (oam) detection
CN117835297A (en) Slice service quality detection method and device, router and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16795732

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16795732

Country of ref document: EP

Kind code of ref document: A1