WO2020238799A1 - 一种基于twamp的检测方法及相关设备 - Google Patents

一种基于twamp的检测方法及相关设备 Download PDF

Info

Publication number
WO2020238799A1
WO2020238799A1 PCT/CN2020/091837 CN2020091837W WO2020238799A1 WO 2020238799 A1 WO2020238799 A1 WO 2020238799A1 CN 2020091837 W CN2020091837 W CN 2020091837W WO 2020238799 A1 WO2020238799 A1 WO 2020238799A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
twamp
packet
detection result
sending
Prior art date
Application number
PCT/CN2020/091837
Other languages
English (en)
French (fr)
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 WO2020238799A1 publication Critical patent/WO2020238799A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • 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/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • 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
    • 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/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • 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
    • 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/0852Delays
    • 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/0852Delays
    • H04L43/087Jitter

Definitions

  • the embodiments of the present application relate to, but are not limited to, a packet transport network (Packet Transport Network, PTN), for example, relate to a detection method and related equipment based on the Two-Way Active Measurement Protocol (TWAMP).
  • PTN Packet Transport Network
  • TWAMP Two-Way Active Measurement Protocol
  • IP Internet Protocol
  • Packet transport network PTN has become a trend in the industry. PTN requires the provision of effective delivery of packet services and telecommunications -Level operation and maintenance management (Operation Administration and Maintenance, OAM) and protected packet transmission technology.
  • OAM Operaation Administration and Maintenance
  • the transport architecture OAM Transport Profile OAM, TP-OAM
  • TP-OAM Transaction Profile OAM
  • L2VPN Layer 2 Virtual Private Network
  • L3VPN Layer 3 Virtual Private Network
  • the use of this bearer solution requires the Provider Edge (PE) of L3VPN.
  • PE Provider Edge
  • the node performs L2-L3 bridging.
  • the IP service realizes L2 transparent transmission in the access aggregation layer L2VPN network, and can only be monitored through Label Switching Path (LSP)/Pseudowire (PW) OAM.
  • LSP Label Switching Path
  • PW Packeudowire
  • the LSP layer OAM monitoring mechanism can be used for L3VPN processing in the core network.
  • the related technology is: after the base station is connected, initiate a ping to the base station from the L2 interface of the L2/L3 bridge point to detect the difference between the PTN equipment and the base station.
  • the connectivity between the PTN device and the XGW is then initiated from the L3 interface of the L2/L3 bridging point to the Serving Gateway (X-Serving GateWay, XGW) to detect the connectivity between the PTN device and the XGW.
  • the TWAMP function realizes end-to-end connectivity, delay, and packet loss detection.
  • the TWAMP function can only perform end-to-end connectivity, delay, and packet loss detection based on the packets transmitted by the transmitting end being reflected back to the node by the reflecting end. Therefore, when the transmission path in the L2VPN or L3VPN network changes, When the TWAMP message is no longer reflected back to the node where the transmitter is located, the TWAMP detection function becomes invalid.
  • the embodiment of the application provides a detection method based on the two-way active measurement protocol TWAMP, including:
  • the second device on the TWAMP transmitting end receives the first packet through the fourth device, and the first packet is the first TWAMP packet sent by the first device on the TWAMP transmitting end to the third device on the TWAMP reflector through the fourth device. Reflection of text;
  • the second device determines the detection result between the first device and the third device according to the first message; or, the second device sends the first message to the first device So that the first device determines the detection result between the first device and the third device according to the sending situation of the first TWAMP message and the receiving situation of the first message.
  • the embodiment of the present application also provides a detection method based on the two-way active measurement protocol TWAMP, including:
  • the first device on the TWAMP transmitter sends the first TWAMP packet to the third device on the TWAMP reflector through the fourth device, so that the third device reflects the first packet to the second device on the TWAMP transmitter through the fourth device ,
  • the first message is a reflection message of the first TWAMP message
  • the first device receives the detection result between the first device and the third device sent by the second device through the communication channel with the second device, and the first device and the The detection result between the third device is determined by the second device according to the received first message; or, the first device receives the second device through the communication channel with the second device
  • the reception situation of the first message is determined according to the transmission situation of the first TWAMP message and the reception situation of the first message to determine the detection result between the first device and the third device.
  • the embodiment of the present application also provides a detection method based on the two-way active measurement protocol TWAMP, including:
  • the first device at the transmitting end of TWAMP sends the first TWAMP message to the third device at the reflecting end of TWAMP through the fourth device;
  • the third device After receiving the first TWAMP message, the third device reflects the first message to the second device on the TWAMP transmitting end through the fourth device, where the first message is the first TWAMP message Reflection of text;
  • the second device receives the first message, and determines the detection result between the first device and the third device according to the first message; or, the second device sends the message to the first message
  • a device sends the reception status of the first packet, and the first device also determines the first device and the first device according to the transmission status of the first TWAMP packet and the reception status of the first packet The test result between the third device.
  • the embodiment of the present application also provides a second device, which is applied to the TWAMP transmitter, and includes:
  • the receiving unit is configured to receive a first message through a fourth device, the first message being the first TWAMP message sent by the first device on the TWAMP transmitting end to the third device on the TWAMP reflector through the fourth device Reflected message;
  • the determining unit is configured to determine the detection result between the first device and the third device according to the first message; or, configured to send the reception status of the first message to the first device , So that the first device determines the detection result between the first device and the third device according to the sending situation of the first TWAMP message and the receiving situation of the first message.
  • the embodiment of the present application also provides a first device, which is applied to the TWAMP transmitter, and includes:
  • the sending unit is configured to send the first TWAMP packet to the third device at the reflecting end of the TWAMP through the fourth device, so that the third device reflects the first packet to the second device at the transmitting end of the TWAMP through the fourth device,
  • the first message is a reflection message of the first TWAMP message
  • the receiving unit is configured to receive the detection result between the first device and the third device sent by the second device through the communication channel with the second device, the first device and the third device
  • the detection result between the third device is determined by the second device according to the received first message; or, it is set to receive the second device sent by the second device through the communication channel with the second device.
  • the reception situation of the first message, the detection result between the first device and the third device is determined according to the transmission situation of the first TWAMP message and the reception situation of the first message.
  • the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores an information processing program.
  • the information processing program is executed by a processor, the two-way-based Active measurement protocol TWAMP detection method.
  • FIG. 1 is a schematic flowchart of a TWAMP-based detection method provided by an embodiment of the application
  • FIG. 2 is a schematic flow chart of a TWAMP-based detection method provided by another embodiment of the application.
  • FIG. 3 is a schematic flowchart of a TWAMP-based detection method provided by another embodiment of the application.
  • FIG. 4 is a schematic flowchart of a TWAMP-based detection method provided by another embodiment of the application.
  • FIG. 5 is a schematic flowchart of a TWAMP-based detection method provided by another embodiment of the application.
  • FIG. 6 is a schematic flowchart of a TWAMP-based detection method provided by another embodiment of the application.
  • FIG. 7 is a schematic diagram of the structure of a packet transport network PTN provided by an embodiment of the application.
  • FIG. 8 is a schematic flowchart of a TWAMP-based detection method provided by another embodiment of the application.
  • FIG. 9 is a schematic diagram of the structure of a packet transport network PTN provided by another embodiment of this application.
  • FIG. 10 is a schematic structural diagram of a second device provided by an embodiment of this application.
  • FIG. 11 is a schematic structural diagram of a first device provided by an embodiment of this application.
  • FIG. 12 is a schematic structural diagram of a third device provided by an embodiment of this application.
  • FIG. 13 is a schematic structural diagram of a detection system based on the two-way active measurement protocol TWAMP provided by an embodiment of the application.
  • the TWAMP function can only perform end-to-end connectivity, delay, and packet loss detection based on the packets transmitted by the transmitting end being reflected back to the node by the reflecting end. Therefore, when the transmission path in the network changes, TWAMP packets can be detected. When the text is no longer reflected back to the node where the transmitter is located, the TWAMP detection function becomes invalid.
  • Fig. 1 is a schematic flow chart of a TWAMP-based detection method provided by an embodiment of the application. As shown in Fig. 1, the method includes:
  • Step 110 The second device on the TWAMP transmitting end receives the first packet through the fourth device, and the first packet is the first packet sent by the first device on the TWAMP transmitting end to the third device on the TWAMP reflector through the fourth device.
  • a reflection message of a TWAMP message A reflection message of a TWAMP message.
  • Step 120 The second device determines the detection result between the first device and the third device according to the first message; or, the second device sends the first device to the first device.
  • the reception status of a message so that the first device determines the detection between the first device and the third device according to the transmission status of the first TWAMP message and the reception status of the first message result.
  • the second device is configured with a reflection message recovery rule, and the characteristic word of the reflection message recovery rule includes at least one of the following: a destination Internet Protocol (IP) address, a source IP address, and a destination user datagram protocol (User Datagram Protocol, UDP) port number, source UDP port number, virtual private network identifier (Virtual Private Network identification number, VPNID), Internet Protocol Differentiated Services Code Point (IP DSCP).
  • IP Internet Protocol
  • UDP User Datagram Protocol
  • VPNID Virtual Private Network identification number
  • IP DSCP Internet Protocol Differentiated Services Code Point
  • the clock synchronization is maintained between the first device and the second device; the second device determines the detection result between the first device and the third device according to the first message,
  • the method includes: the second device identifies and checks the content of the first message according to the reflected message recovery rule, the first message includes the sending timestamp of the first message, the first message The sending timestamp of the TWAMP message and the receiving timestamp of the first TWAMP message; the second device is based on the time of receiving the first message, the sending timestamp of the first message, and the first message The sending timestamp of a TWAMP message and the receiving timestamp of the first TWAMP message determine the delay and/or delay jitter between the first device and the third device.
  • the second device and the first device are connected through a communication channel; the method further includes: the second device transmits the delay and/or delay jitter through the communication channel Give the first device.
  • the second device and the first device are connected through a communication channel; after the second device receives the first packet through the fourth device, the second device Before the first message determines the detection result between the first device and the third device, the method further includes: the second device obtains the first device from the first device through the communication channel. The sending status of TWAMP packets.
  • the second device determining the detection result between the first device and the third device according to the first message includes: the second device according to the reflected message recycling rule Identify and verify the content of the first message; the second device determines the first device and the third device according to the sending situation of the first TWAMP message and the receiving situation of the first message Connectivity and/or packet loss rate between.
  • the second device sends the connectivity and/or packet loss rate to the first device through the communication channel.
  • the second device and the first device are connected through a communication channel; after the second device receives the first packet through the fourth device, the second device The communication channel sends the reception status of the first message to the first device.
  • the first device and the second device are Layer 3 packet transport network L3PTN devices; the third device is a Layer 2 packet transport network L2PTN device, and the fourth device is Layer 2 L2/3 Layer L3 bridge device.
  • the reflected message recovery rule is automatically generated according to the format of the first TWAMP message, or generated through configuration.
  • Fig. 2 is a schematic flowchart of a TWAMP-based detection method provided by another embodiment of the application. As shown in Fig. 2, the method includes:
  • Step 210 The first device on the TWAMP transmitting end sends the first TWAMP packet to the third device on the TWAMP reflecting end through the fourth device, so that the third device reflects the first packet to the second device on the TWAMP transmitting end through the fourth device.
  • the first message is a reflection message of the first TWAMP message.
  • Step 220 The first device receives the detection result between the first device and the third device sent by the second device through the communication channel with the second device, and the first device The detection result with the third device is determined by the second device according to the received first message; or, the first device receives the first message through a communication channel with the second device The receiving situation of the first message sent by the second device, and determining the connection between the first device and the third device according to the sending situation of the first TWAMP message and the receiving situation of the first message The test results.
  • the first device after the first device sends the first TWAMP message to the third device at the TWAMP reflector through the fourth device, the first device receives the first device and the third device sent by the second device. Before the detection result between the third device, the method further includes: the first device receives a first request through a communication channel with the second device, and the first request is the second device Sent to the first device after receiving the first packet, the first request is used to obtain the sending status of the first TWAMP packet; the first device sends the first device to the second device The sending situation of a TWAMP message.
  • the detection result between the first device and the third device includes: delay and/or delay jitter between the first device and the third device, and/or, The connectivity and/or packet loss rate between the first device and the third device.
  • the method further includes: the first device sends a second TWAMP packet to the third device through the fifth device, so that the third device reflects the first device to the first device through the fifth device.
  • the second packet the second packet is a reflection packet of the second TWAMP packet; the first device receives the second packet through the fifth device; the first device receives the second packet according to the second The message determines the detection result between the first device and the third device.
  • the first device is configured with TWAMP message sending information
  • the TWAMP message sending information includes at least one of the following: IP address, Media Access Control (MAC) address, UDP port number , Outsourcing mode, outsourcing enablement, client mode, outsourcing cycle.
  • IP address IP address
  • MAC Media Access Control
  • the first device sending the first TWAMP packet to the third device at the TWAMP reflector through the fourth device includes: the first device generates the first TWAMP packet according to the TWAMP packet sending information, And send a first TWAMP message to the third device through the fourth device; the first device sends a second TWAMP message to the third device through the fifth device, including: the first device The TWAMP message sending information generates a second TWAMP message, and the second TWAMP message is sent to the third device through the fifth device.
  • the first device is configured with a reflected packet recycling rule
  • the characteristic word of the reflected packet recycling rule includes at least one of the following: destination IP address, source IP address, destination UDP port number, source UDP Port number, VPNID, IP DSCP.
  • the first device determining the detection result between the first device and the third device according to the second message includes: the first device according to the reflected message recycling rule Identify and verify the content of the second message, the second message including the sending timestamp of the second message, the sending timestamp of the second TWAMP message, and the second TWAMP message The receiving timestamp of the first device; the first device according to the time of receiving the second message, the sending timestamp of the second message, the sending timestamp of the second TWAMP message, and the second TWAMP message The receiving timestamp of the text determines the delay and/or delay jitter between the first device and the third device.
  • the first device determining the detection result between the first device and the third device according to the second message includes: the first device according to the reflected message recycling rule Identify and verify the content of the second message; the first device determines the first device and the third device according to the sending situation of the second TWAMP message and the receiving situation of the second message Connectivity and/or packet loss rate between.
  • the first device and the second device are Layer 3 packet transport network L3PTN devices; the third device is a Layer 2 packet transport network L2PTN device, and the fourth device and the fifth device are It is a two-layer L2/three-layer L3 bridge device.
  • FIG. 3 is a schematic flowchart of a TWAMP-based detection method provided by another embodiment of the application. As shown in FIG. 3, the method includes:
  • Step 310 The third device on the TWAMP reflector receives the first TWAMP message sent by the first device on the TWAMP transmitter through the fourth device.
  • Step 320 After receiving the first TWAMP message, the third device reflects the first message to the second device on the TWAMP transmitting end through the fourth device, so that the second device can reflect the first message according to the first device.
  • a message determines a detection result between the first device and the third device, and the first message is a reflection message of the first TWAMP message.
  • the third device is configured with TWAMP packet reflection information
  • the TWAMP packet reflection information includes at least one of the following: IP address, MAC address, UDP port number, packet sending mode, client mode, reflection mode .
  • the third device reflecting the first packet to the second device at the TWAMP transmitting end through the fourth device includes: the third device identifying the first packet according to the TWAMP packet reflection information The content of a TWAMP message, the first message is generated and the first message is reflected to the second device through the fourth device.
  • the method further includes: the third device receives the second TWAMP packet sent by the first device through the fifth device; after receiving the second TWAMP packet, the third device passes The fifth device reflects the second packet to the first device, so that the first device determines the detection result between the first device and the third device according to the second packet, the The second message is a reflection message of the second TWAMP message.
  • the third device reflecting the second packet to the first device through the fifth device includes: the third device identifying the second TWAMP packet according to the TWAMP packet reflection information The content of the message, the second message is generated and the second message is sent and reflected to the first device through the fifth device.
  • the first device and the second device are Layer 3 packet transport network L3PTN devices; the third device is a Layer 2 packet transport network L2PTN device, and the fourth device and the fifth device are It is a two-layer L2/three-layer L3 bridge device.
  • FIG. 4 is a schematic flowchart of a TWAMP-based detection method provided by another embodiment of the application. As shown in FIG. 4, the method includes:
  • Step 410 The first device on the TWAMP transmitting end sends the first TWAMP message to the third device on the TWAMP reflecting end through the fourth device.
  • Step 420 After receiving the first TWAMP message, the third device reflects the first message to the second device on the TWAMP transmitting end through the fourth device, where the first message is the TWAMP The reflected message of the message.
  • Step 430 The second device receives the first message, and determines the detection result between the first device and the third device according to the first message; or, the second device sends The first device sends the receiving situation of the first packet, and the first device determines the first device and the receiving situation according to the sending situation of the first TWAMP packet and the receiving situation of the first packet. The test result between the third device.
  • the method further includes: the first device sends a second TWAMP message to the third device through a fifth device; after receiving the second TWAMP message, the third device The fifth device reflects a second packet to the first device, and the second packet is a reflected packet of the second TWAMP packet; the first device receives the second packet, and according to The second message determines the detection result between the first device and the third device.
  • clock synchronization is maintained between the first device and the second device.
  • the first device and the second device are Layer 3 packet transport network L3PTN devices; the third device is a Layer 2 packet transport network L2PTN device, and the fourth device and the fifth device are It is a two-tier/three-tier L2/L3 bridge device.
  • FIG. 5 is a schematic flowchart of a TWAMP-based detection method provided by another embodiment of the application. As shown in FIG. 5, the method includes:
  • Step 510 Configure the TWAMP message sending information on the first device at the TWAMP transmitting end.
  • the TWAMP message sending information includes at least one of the following: IP address, MAC address, UDP port number, packet sending mode, packet sending enable, client mode, and packet sending cycle.
  • the TWAMP message sending information is used to generate and send TWAMP messages.
  • the first device enables the TWAMP function (packet sending enable), it can be based on the configured packet sending cycle and packet sending mode (message format), and according to The client mode encapsulates the message header, stamps the sending timestamp, and generates and sends a TWAMP message.
  • the TWAMP message carries the sending timestamp.
  • the header of the TWAMP message carries the source IP address, destination IP address, source UDP port number, Destination UDP port number and other information.
  • the client mode refers to the user network side interface (User Networks interface, UNI) mode of the transmitting end, for example, it can be a three-layer L3UNI, a two-layer UNI, or a bridged-layer two UNI.
  • Step 520 Configure a reflected packet recovery rule on the first device and the second device at the TWAMP transmitting end.
  • the characteristic word of the reflected message recovery rule includes at least one of the following: destination IP address, source IP address, destination UDP port number, source UDP port number, VPNID, IP DSCP.
  • the reflected message recovery rule is used to identify and verify the content of the reflected message after receiving the reflected message of the TWAMP message. For example, when the first device receives a reflection message after sending a TWAMP message, it recognizes that the source IP address and destination IP address of the reflection message are respectively the same as the source IP address and destination IP in the reflection message recovery rule. If the addresses are consistent, it can be determined that the reflected message is the reflected message of the TWAMP message.
  • Reflected message recycling rules can be automatically generated or configured, and can be composed of a combination of source IP address, destination IP address, source UDP port number, and destination UDP port number.
  • the reflected message recycling rule can be automatically generated according to the content of the TWAMP message sending information configured in step 510.
  • the IP address, MAC address, and UDP port number in the TWAMP message sending information can be automatically constructed
  • the characteristic words in the reflected message recovery rule for example, the source IP address, source MAC address, and source UDP port number in the TWAMP message sending information can be directly constructed as the destination IP address in the reflected message recovery rule , Destination MAC address, destination UDP port number.
  • the reflected packet recycling rule can also be constructed through configuration. For example, it can be directly generated according to user configuration information.
  • the characteristic words in the reflected packet recycling rule can be directly configured: destination IP address, Destination MAC address, destination UDP port number, etc.
  • the first device and the second device are different network element devices at the transmitting end, and the first device and the second device are connected through a communication channel, and information can be exchanged.
  • the first device and the second device also need to maintain clock synchronization. Since the first device can be used as both the transmitting device of the TWAMP transmitter and the recycling device of the TWAMP transmitter at the same time, that is, it can send TWAMP packets and recover reflected packets. Therefore, the first device needs to be configured to send TWAMP packets. Information, you also need to configure the reflected packet recycling rules; and the second device, if it is only used as a reflected packet recycling device, you can configure only the reflected packet recycling rules.
  • the second device can also be used as both the transmitting device and the recycling device of the transmitting end.
  • the corresponding TWAMP message sending information and reflected message recycling rules need to be configured for the second device.
  • the recycling of the second device If the device is another device, the corresponding reflected packet recovery rule can be configured on the other device, and the second device and the other device are also connected through a communication channel and keep clock synchronization.
  • Step 530 Configure TWAMP packet reflection information on the third device at the TWAMP reflection end.
  • the TWAMP message reflection information includes at least one of the following: IP address, MAC address, UDP port number, packet sending mode, client mode, and reflection mode.
  • the TWAMP message reflection information is used to identify the content of the received TWAMP message, and to generate and reflect the reflection message of the TWAMP message. For example, after receiving a TWAMP message from the transmitter, the message content is identified, and the MAC address, IP address, and UDP port number in the message content are exchanged according to the reflection mode, and the receiving timestamp and sending timestamp are marked to generate a reflection report. And send the reflected message back to the transmitter.
  • the TWAMP message carries a sending timestamp
  • the reflection message carries the sending timestamp and the receiving timestamp carried in the TWAMP message, and the sending timestamp of the reflection message itself
  • the source MAC address of the TWAMP message The source IP address and source UDP port number are converted into the destination MAC address, destination IP address, and destination UDP port number of the reflection message, and the destination MAC address, destination IP address, and destination UDP port number of the TWAMP message are converted into the reflection message
  • a TWAMP packet reflector may be configured on the third device, and the TWAMP packet reflector reflects the packet according to the TWAMP packet reflection information.
  • Step 540 The first device sends a second TWAMP packet to the third device through the fifth device.
  • the first device and the third device are connected through the fifth device, and the first device is also connected to the third device through the second device and the fourth device in turn.
  • the first device and the second device are Layer 3 packet transport network L3PTN devices; the third device is a Layer 2 packet transport network L2PTN device, and the fourth and fifth devices are Layer 2 L2/Layer 3 devices. L3 bridge device.
  • the first device sending the second TWAMP message to the third device through the fifth device includes: generating a second TWAMP message according to the TWAMP message sending information, and passing the first TWAMP message The fifth device sends a second TWAMP message to the third device.
  • Step 550 After the third device receives the second TWAMP packet through the fifth device, it reflects the reflection packet of the second TWAMP packet to the first device through the fifth device.
  • the third device reflects the reflection packet of the second TWAMP packet (also referred to as the second packet) to the first device through the fifth device, including: the third device Identify the content of the second TWAMP message according to the TWAMP message reflection information, generate a reflection message of the second TWAMP message, and reflect the second device to the first device through the fifth device Reflected packets of TWAMP packets.
  • Step 560 After receiving the reflection message of the second TWAMP message, the first device determines the communication between the first device and the third device according to the reflection message of the second TWAMP message. Test results.
  • the first device determining the detection result between the first device and the third device according to the reflection message of the second TWAMP message includes: the first device according to the The reflected packet recovery rule identifies and checks the content of the reflected packet of the second TWAMP packet, and the reflected packet of the second TWAMP packet includes the transmission timestamp of the reflected packet of the second TWAMP packet , The sending timestamp of the second TWAMP message and the receiving timestamp of the second TWAMP message; the first device receives the reflected message of the second TWAMP message according to the time, the second The sending timestamp of the reflected message of the TWAMP message, the sending timestamp of the second TWAMP message, and the receiving timestamp of the second TWAMP message determine the communication between the first device and the third device Delay and/or delay jitter; or, the first device recognizes and checks the content of the reflected packet of the second TWAMP packet according to the reflected packet recovery rule; the first device according to the first 2.
  • the sending status of the second TWAMP packet refers to the number of sent second TWAMP packets
  • the receiving status of the reflection packet (ie, the second packet) of the second TWAMP packet refers to the The number of second messages received, etc.
  • the first device may report the detection result in a format such as a report and present it to the user.
  • the fifth device when the fifth device fails, that is, when the internal path of the network changes, so that TWAMP packets are no longer reflected back to the network element node (ie, the first device) where the transmitting end is located, the first device cannot be normal Perform TWAMP test.
  • the first device when the fifth device fails, the first device can still perform TWAMP detection normally through the following steps, including:
  • Step 570 The first device sends a first TWAMP packet to the third device through the fourth device.
  • the first TWAMP message is sent to the third device through the second device and the fourth device, and the first TWAMP message is only transparently transmitted without any processing when it passes through the second device.
  • the first device sending the first TWAMP message to the third device at the TWAMP reflector through the fourth device includes: the first device generates the first TWAMP message according to the TWAMP message sending information, and passes the The fourth device sends the first TWAMP message to the third device.
  • Step 580 After receiving the first TWAMP packet, the third device reflects the reflection packet of the first TWAMP packet to the second device through the fourth device.
  • the third device reflects the reflection message (also referred to as the first message) of the first TWAMP message to the second device through the fourth device, including:
  • the three devices identify the content of the first TWAMP message according to the TWAMP message reflection information, generate a reflection message of the first TWAMP message, and reflect the content of the first TWAMP message to the second device through the fourth device The reflection message of the first TWAMP message.
  • a TWAMP packet reflector may be configured on the third device, and the TWAMP packet reflector reflects the packet according to the TWAMP packet reflection information.
  • Step 590 After the second device receives the reflected packet of the first TWAMP packet through the fourth device, it determines the relationship between the first device and the third device according to the first packet. The detection result of determines the detection result between the first device and the third device.
  • the second device determining the detection result between the first device and the third device according to the reflection message of the first TWAMP message includes: the second device according to the The reflected packet recovery rule identifies and checks the content of the reflected packet of the first TWAMP packet.
  • the first packet includes the transmission timestamp of the reflected packet of the first TWAMP packet, and the first packet.
  • the sending timestamp of the TWAMP message and the receiving timestamp of the first TWAMP message; the second device is based on the time when the reflection message of the first TWAMP message is received, and the reflection of the first TWAMP message
  • the sending timestamp of the message, the sending timestamp of the first TWAMP message, and the receiving timestamp of the first TWAMP message determine the delay and/or between the first device and the third device Delay jitter.
  • the precondition for the second device to be able to calculate accurate delay information is that the clocks of the network element where the first device and the second device are located are synchronized.
  • the second device determining the detection result between the first device and the third device according to the reflected message of the first TWAMP message includes: the second device according to the The reflected message recovery rule identifies and checks the content of the first message; the second device determines that the first device and the first message are sent according to the sending situation of the first TWAMP message and the receiving situation of the first message The connectivity and/or packet loss rate between the third devices.
  • the first device and the second device are connected through a communication channel to exchange information, for example: after the second device receives the first packet through the fourth device, Before determining the detection result between the first device and the third device according to the first message, the method further includes: the second device notifies the first device of the reception through the communication channel To the reflection message of the first TWAMP message, and obtain the sending situation of the first TWAMP message.
  • the sending status of the first TWAMP message refers to the number of sent first TWAMP messages
  • the receiving status of the reflected message (ie, the first message) of the first TWAMP message refers to the The number of received first messages, etc.
  • the second device may directly report the detection result in a report format and other formats and present it to the user; the second device may also send the detection result to the first device through a communication channel, and the first device The test results are reported and presented to users in a format such as reports.
  • the communication channel between the first device and the second device may use Inter-Chassis Communication Protocol (ICCP) and other methods to communicate.
  • ICCP Inter-Chassis Communication Protocol
  • steps 540-560 and steps 570-590 there is no fixed sequence between steps 540-560 and steps 570-590. Steps 540-560 can be performed when the fifth device is normal, and steps 570-590 can be performed when the fifth device is abnormal. .
  • the fifth device when the fifth device returns to normal, that is, the internal path of the network changes again, causing the TWAMP message to be reflected back to the network element node (ie, the first device) where the transmitting end is located, that is, the first device can When the TWAMP test is performed normally, you can go back to steps 540-560 for TWAMP test.
  • the TWAMP detection can still be performed normally, and the TWAMP detection message can be prevented from being Leak to the external equipment of the transmission network to ensure the normal operation of the TWAMP function under various conditions.
  • the difference from the previous embodiment is that in step 590, after the second device receives the reflected packet of the first TWAMP packet through the fourth device, , Not locally determining the detection result between the first device and the third device based on the first message; instead, the The second device sends the reception status of the first packet to the first device through the communication channel with the first device, and then the first device sends the received status of the first TWAMP packet to the first device according to the transmission status of the first TWAMP packet and the first device. The reception of the message determines the detection result between the first device and the third device.
  • Fig. 6 is a schematic flow chart of a TWAMP-based detection method provided by another embodiment of the application.
  • a network element (NE) 1 is a Layer 2 packet transport network L2PTN device, which is used as a TWAMP reflector device in this embodiment;
  • NE2 and NE5 are Layer 2 L2/Layer 3 L3 bridging devices;
  • NE3 and NE4 are Layer 3 packet transport network L3PTN devices.
  • it is used as a TWAMP transmitter device, where NE3 is a transmitter device that transmits TWAMP packets and a recycling device that recovers reflected packets.
  • NE3 and NE4 are connected to core network elements through UNI.
  • NE3 and NE4 are connected to XGW .
  • TWAMP needs to be turned on.
  • the method includes:
  • Step 610 Configure TWAMP message sending information and reflected message recovery rules on the L3VPN service equipment NE3.
  • configure the message format of the TWAMP transmitter select the UNI-side board that sends the package, configure the TWAMP message to "L3 UNI-side send package", and configure the packet sending cycle to be 100ms, and configure the source IP address and destination IP address, UPD port number, DSCP information.
  • Step 620 Configure TWAMP packet reflection information on the L2VPN service equipment NE1.
  • the TWAMP reflector is configured on the L2VPN service equipment NE1, the UNI side board of the reflector is selected, and the source IP address, destination IP address, UPD port number, and DSCP information are configured. These IP addresses and other information need to be consistent with the NE3 value of the transmitter.
  • Step 630 Turn on the transmission of the TWAMP message of the NE3 device.
  • the TWAMP packet flow is sent from the UNI-side board of NE3, passes through the metro L3VPN core network, passes through the bridge network element NE2 of L2VPN and L3VPN, and then passes through the access and aggregation L2VPN
  • the TWAMP packet stream is extracted by the TWAMP reflector on NE1 and reflected back to the NE3 device.
  • step 640 the NE3 device determines the detection result between NE3 and NE1 according to the reflected message of the TWAMP message.
  • the TWAMP packet stream is reflected by the reflector back to the NE3 device, and the NE3 device recycles the TWAMP packet, calculates the delay and delay jitter according to the timestamp carried in the packet, and judges the connectivity according to the transmission and reception of the packet And calculate the packet loss situation, and report the calculation results through reports and other formats and present them to users.
  • FIG 8 is a schematic flow chart of a TWAMP-based detection method provided by another embodiment of the application.
  • This embodiment is applied to the packet transport network PTN architecture shown in Figure 9.
  • NE1 is a Layer 2 packet transport network L2PTN Equipment, in this embodiment as TWAMP reflector equipment;
  • NE2 and NE5 are two-layer L2/three-layer L3 bridging equipment;
  • NE3 and NE4 are three-layer packet transport network L3PTN equipment, in this embodiment as TWAMP transmitter equipment, Among them, NE3 is used as a transmitting device for transmitting TWAMP packets and a recycling device for recycling reflected packets, and NE4 is used as a recycling device for recycling reflected packets;
  • NE3 and NE4 are connected to the core network network elements through UNI.
  • NE3 and NE4 are connected with XGW connection. Assume that the PTN equipment line card single board and the switching board are operating normally. Before and after the base station service is activated, after completing the end-to-end configuration of L2VPN+L3VPN, in order to check whether the connectivity and performance of the service path are normal, TWAMP needs to be turned on, but the bridge device NE2 is faulty, and the service and TWAMP detect packet flow from the alternate path (NE3-NE4-NE5-NE1) is sent to the client device.
  • the method includes:
  • Step 810 Configure TWAMP message sending information and reflected message recovery rules on the L3VPN service equipment NE3.
  • Step 820 Configure a reflected packet recovery rule on the L3VPN service equipment NE4.
  • the TWAMP message is only transparently transmitted in the NE4 device without any processing.
  • NE3 and NE4 are connected through a communication channel, as shown by the dotted line between NE3 and NE4 in Figure 9.
  • Step 830 Configure TWAMP packet reflection information on the L2VPN service equipment NE1.
  • the TWAMP reflector is configured on the L2VPN service equipment NE1, the UNI side board of the reflector is selected, and the source IP address, destination IP address, UPD port number, and DSCP information are configured. These IP addresses and other information need to be consistent with the value of NE3 at the transmitter.
  • Step 840 enable the sending of TWAMP packets of the NE3 device
  • the TWAMP packet flow is sent from the UNI-side board of NE3, passes through the metro L3VPN core network, passes through the L2VPN and L3VPN bridge network element NE5, and then passes through the access and aggregation L2VPN
  • the TWAMP packet stream is extracted by the TWAMP reflector on NE1 and reflected back to the NE4 device.
  • step 850 the NE4 device determines the detection result between NE3 and NE1 according to the reflected message of the TWAMP message.
  • the TWAMP packet stream is reflected by the reflector to the NE4 device, and the NE4 device recycles the TWAMP packet, informs NE3 through the communication channel, and calculates the delay and delay jitter according to the timestamp carried in the packet, according to the information obtained from NE3
  • the calculation results will be reported to the user in a format such as reports.
  • the technical solution provided by the embodiments of this application separates the sending and recycling functions of the TWAMP transmitter, and adopts a distributed manner to realize the mechanism for the transmitter to receive the reflected message, and solves the problem that when the transmission path in the L2VPN or L3VPN network changes, the TWAMP message When it is no longer reflected back to the device where the transmitter is located, the TWAMP detection function becomes invalid and prevents the TWAMP detection message from being leaked to the external device of the transmission network.
  • the difference from the previous embodiment is that in step 850, after the NE4 device receives the reflected packet of the TWAMP packet through the NE5 device, it does not determine locally The result of the detection between the NE3 device and the NE1 device; instead, the NE4 device sends the received status of the reflection message of the TWAMP message to the NE3 device through the communication channel with the NE3 device, Then, the NE3 device determines the detection result between the NE3 device and the NE1 device according to the reception situation of the reflected message of the TWAMP message and the transmission situation of the TWAMP message.
  • FIG. 10 is a schematic structural diagram of a second device provided by an embodiment of this application.
  • the second device is applied to the TWAMP transmitter and includes a receiving unit 1010 configured to receive the first device through a fourth device.
  • the first message is a reflection message of the first TWAMP message sent by the first device of the TWAMP transmitter to the third device of the TWAMP reflector through the fourth device;
  • the determining unit 1020 is set to be based on The first message determines the detection result between the first device and the third device; or, it is set to send the reception status of the first message to the first device so that the first
  • the device determines the detection result between the first device and the third device according to the sending situation of the first TWAMP message and the receiving situation of the first message.
  • the second device is configured with a reflection message recovery rule, and the characteristic word of the reflection message recovery rule includes at least one of the following: destination IP address, source IP address, destination UDP port number, source UDP port number, VPNID, IP DSCP.
  • the clock synchronization is maintained between the first device and the second device; the determining unit 1020 is configured to determine the first device and the third device according to the first message in the following manner Result of the detection: identifying and checking the content of the first message according to the reflected message recovery rule, the first message including the sending timestamp of the first message, the first TWAMP The sending timestamp of the message and the receiving timestamp of the first TWAMP message; according to the time of receiving the first message, the sending timestamp of the first message, and the sending of the first TWAMP message The time stamp and the reception time stamp of the first TWAMP message determine the delay and/or delay jitter between the first device and the third device.
  • the second device and the first device are connected through a communication channel; the second device further includes: a sending unit configured to transmit the delay and/or time through the communication channel The delayed jitter is sent to the first device.
  • the second device and the first device are connected through a communication channel; the second device further includes: an acquiring unit configured to receive the first device through a fourth device in the second device After a message, before determining the detection result between the first device and the third device according to the first message, obtain the first TWAMP message from the first device through the communication channel The delivery of the text.
  • the determining unit 1020 is configured to determine the detection result between the first device and the third device according to the first message in the following manner: identify according to the reflected message recovery rule And checking the content of the first message; determining the connectivity between the first device and the third device according to the sending situation of the first TWAMP message and the receiving situation of the first message / Or packet loss rate.
  • the sending unit is further configured to send the connectivity and/or the packet loss rate to the first device through the communication channel.
  • the second device and the first device are connected through a communication channel; the sending unit is further configured to pass the first message after the second device receives the first message via the fourth device The communication channel sends the reception status of the first message to the first device.
  • the first device and the second device are Layer 3 packet transport network L3PTN devices; the third device is a Layer 2 packet transport network L2PTN device, and the fourth device is Layer 2 L2/Three Layer L3 bridge device.
  • the reflected message recovery rule is automatically generated according to the format of the first TWAMP message, or generated through configuration.
  • FIG. 11 is a schematic structural diagram of a first device provided by an embodiment of this application.
  • the first device is applied to the TWAMP transmitting end and includes: a sending unit 1110 configured to reflect to TWAMP through a fourth device The third device at the end sends the first TWAMP packet, so that the third device reflects the first packet to the second device at the TWAMP transmitting end through the fourth device, and the first packet is the first TWAMP packet
  • the receiving unit 1120 is configured to receive the detection result between the first device and the third device sent by the second device through the communication channel with the second device, the The detection result between the first device and the third device is determined by the second device according to the received first message; or, it is set to receive the first message through a communication channel with the second device The receiving situation of the first message sent by the second device, and determining the communication between the first device and the third device according to the sending situation of the first TWAMP message and the receiving situation of the first message Test results.
  • the receiving unit 1120 is further configured to receive the first TWAMP packet sent by the second device after the first device sends the first TWAMP packet to the third device at the TWAMP reflector through the fourth device Before the detection result between the first device and the third device, a first request is received through the communication channel with the second device, and the first request is that the second device receives the first message Later sent to the first device, the first request is used to obtain the sending status of the first TWAMP message; the sending unit 1110 is further configured to send the first TWAMP to the second device The sending of the message.
  • the detection result between the first device and the third device includes: delay and/or delay jitter between the first device and the third device, and/or, The connectivity and/or packet loss rate between the first device and the third device.
  • the sending unit 1110 is further configured to send a second TWAMP packet to the third device through the fifth device, so that the third device reflects the second TWAMP packet to the first device through the fifth device.
  • the second message is a reflection message of the second TWAMP message.
  • the receiving unit 1120 is further configured to receive a second message through the fifth device; and determine the detection result between the first device and the third device according to the second message.
  • the TWAMP message sending information is configured on the first device, and the TWAMP message sending information includes at least one of the following: IP address, MAC address, UDP port number, packet sending mode, packet sending enable, client Mode and contract period.
  • the sending unit 1110 is configured to send the first TWAMP message to the third device at the TWAMP reflector through the fourth device in the following manner: according to the TWAMP message sending information, the first TWAMP message is generated and Send the first TWAMP message to the third device through the fourth device; the sending unit 1110 is configured to send the second TWAMP message to the third device through the fifth device in the following manner: TWAMP message sending information, generating a second TWAMP message, and sending the second TWAMP message to the third device through the fifth device.
  • the first device is configured with a reflected packet recycling rule
  • the characteristic word of the reflected packet recycling rule includes at least one of the following: destination IP address, source IP address, destination UDP port number, source UDP Port number, VPNID, IP DSCP.
  • the receiving unit 1120 is configured to determine the detection result between the first device and the third device according to the second message in the following manner: identify according to the reflected message recovery rule And checking the content of the second message, the second message including the sending timestamp of the second message, the sending timestamp of the second TWAMP message, and the sending timestamp of the second TWAMP message Receiving timestamp; determined according to the time when the second message is received, the sending timestamp of the second message, the sending timestamp of the second TWAMP message, and the receiving timestamp of the second TWAMP message The delay and/or delay jitter between the first device and the third device.
  • the receiving unit 1120 is configured to determine the detection result between the first device and the third device according to the second message in the following manner: identify according to the reflected message recovery rule And checking the content of the second message; determining the connectivity between the first device and the third device according to the sending situation of the second TWAMP message and the receiving situation of the second message / Or packet loss rate.
  • the first device and the second device are Layer 3 packet transport network L3PTN devices; the third device is a Layer 2 packet transport network L2PTN device, and the fourth device and the fifth device are It is a two-layer L2/three-layer L3 bridge device.
  • FIG. 12 is a schematic structural diagram of a third device provided by an embodiment of this application.
  • the third device is applied to the TWAMP reflector and includes: a receiving unit 1210 configured to receive TWAMP transmission through the fourth device The first TWAMP message sent by the first device at the end; the reflecting unit 1220 is configured to reflect the first message to the second device at the TWAMP transmitting end through the fourth device after receiving the first TWAMP message, So that the second device determines the detection result between the first device and the third device according to the first packet, and the first packet is a reflected packet of the first TWAMP packet.
  • the third device is configured with TWAMP message reflection information, and the TWAMP message reflection information includes at least one of the following: IP address, MAC address, UDP port number, packet sending mode, client mode, reflection mode .
  • the reflecting unit 1220 is configured to reflect the first packet to the second device at the TWAMP transmitting end through the fourth device in the following manner: identify the first packet according to the reflection information of the TWAMP packet The content of the TWAMP message is generated and the first message is reflected to the second device through the fourth device.
  • the receiving unit 1210 is further configured to receive the second TWAMP message sent by the first device through the fifth device; the reflecting unit 1220 is further configured to receive the second TWAMP message Then, the second message is reflected to the first device through the fifth device, so that the first device determines the detection result between the first device and the third device according to the second message ,
  • the second message is a reflection message of the second TWAMP message.
  • the reflection unit 1220 is configured to reflect the second packet to the first device through the fifth device in the following manner: identify the second TWAMP packet according to the TWAMP packet reflection information Generates the second message, and sends and reflects the second message to the first device through the fifth device.
  • the first device and the second device are Layer 3 packet transport network L3PTN devices; the third device is a Layer 2 packet transport network L2PTN device, and the fourth device and the fifth device are It is a two-layer L2/three-layer L3 bridge device.
  • FIG. 13 is a schematic structural diagram of a detection system based on the two-way active measurement protocol TWAMP provided by an embodiment of the application.
  • the system includes: a TWAMP transmitter and a TWAMP reflector.
  • the TWAMP transmitter includes The first device 1310 and the second device 1320
  • the TWAMP reflector includes a third device 1330;
  • the first device 1310 is configured to send a first TWAMP message to the third device 1330 through the fourth device 1340;
  • the third device 1330 is configured to reflect the first packet to the second device 1320 through the fourth device 1340 after receiving the first TWAMP packet, and the first packet is the TWAMP packet
  • the second device 1320 is configured to receive the first message, and determine the detection result between the first device 1310 and the third device 1330 according to the first message , Or, set to send the reception status of the first message to the first device 1310, and the first device 1310 is further configured to send the first TWAMP message according to the
  • the first device 1310 is further configured to send a second TWAMP message to the third device 1330 through the fifth device 1350; the third device 1330 is further configured to receive the second After the TWAMP message, a second message is reflected to the first device 1310 through the fifth device 1350, and the second message is a reflection message of the second TWAMP message; the first device 1310 , It is further configured to receive the second message, and determine the detection result between the first device 1310 and the third device 1330 according to the second message.
  • the first device 1310 and the second device 1320 maintain clock synchronization.
  • the first device 1310 and the second device 1320 are Layer 3 packet transport network L3PTN devices; the third device 1330 is a Layer 2 packet transport network L2PTN device, and the fourth device 1340,
  • the fifth device 1350 is a two-layer/three-layer L2/L3 bridge device.
  • the embodiment of the present application also provides a second device, which is applied to the TWAMP transmitter, and includes a memory, a processor, and a computer program stored on the memory and running on the processor.
  • the computer program is When the processor is executed, any one of the detection methods based on the two-way active measurement protocol TWAMP executed by the second device is implemented.
  • the embodiment of the present application also provides a first device, which is applied to the TWAMP transmitter, and includes a memory, a processor, and a computer program stored on the memory and running on the processor.
  • the computer program is When the processor is executed, any one of the detection methods based on the two-way active measurement protocol TWAMP executed by the first device is implemented.
  • the embodiment of the present application also provides a third device, which is applied to the TWAMP reflector, and includes a memory, a processor, and a computer program stored on the memory and running on the processor.
  • the computer program is When the processor is executed, any one of the detection methods based on the two-way active measurement protocol TWAMP executed by the third device is implemented.
  • the embodiment of the present application also provides a computer-readable storage medium having an information processing program stored on the computer-readable storage medium, and when the information processing program is executed by a processor, the two-way active measurement-based Protocol TWAMP detection method.
  • Such software may be distributed on a computer-readable medium, and the computer-readable medium may include a computer storage medium (or a non-transitory medium) and a communication medium (or a transitory medium).
  • the term computer storage medium includes volatile and non-volatile memory implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Flexible, removable and non-removable media.
  • Computer storage media include, but are not limited to, Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read-Only Memory (EEPROM), and flash memory Or other memory technologies, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, magnetic cassettes, magnetic tapes, disk storage or other Magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer.
  • communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media .

Landscapes

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

Abstract

本申请实施例公开了一种基于双向主动测量协议TWAMP的检测方法及相关设备,其中方法之一包括:TWAMP发射端的第二设备通过第四设备接收第一报文,所述第一报文为所述TWAMP发射端的第一设备通过所述第四设备向TWAMP反射端的第三设备发送的第一TWAMP报文的反射报文;所述第二设备根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果;或者,所述第二设备向所述第一设备发送所述第一报文的接收情况,以便所述第一设备根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的检测结果。

Description

一种基于TWAMP的检测方法及相关设备
本申请要求在2019年05月24日提交中国专利局、申请号为201910440095.1的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及但不限于分组传送网(Packet Transport Network,PTN),例如涉及一种基于双向主动测量协议(Two-Way Active Measurement Protocol,TWAMP)的检测方法及相关设备。
背景技术
通讯网络中业务互联网协议(Internet Protocol,IP)化以及以数据业务为主的移动回传已经普遍应用,分组传送网PTN成为业界的一种趋势,PTN要求提供能够有效传递分组业务,并提供电信级操作维护管理(Operation Administration and Maintenance,OAM)和保护的分组传送技术。
在PTN设备中,传送架构OAM(Transport Profile OAM,TP-OAM)是使用比较广泛的检测机制,TP-OAM用于段层、隧道层和伪线层的检测。承载IP业务,可以采用二层虚拟专用网(Layer2 Virtual Private Network,L2VPN)+三层虚拟专用网(Layer3 Virtual Private Network,L3VPN)方案,采用该承载方案需要在L3VPN的边缘设备(Provider Edge,PE)节点进行L2-L3桥接,此时IP业务在接入汇聚层L2VPN网络内实现L2透传,只能通过标签转发通道(Lable Switching Path,LSP)/伪线(Pseudowire,PW)OAM进行监控,在核心层网络内进行L3VPN处理,可以采用LSP层OAM监控机制。
业务开通前后,为了检测业务配置是否正常或监控当前业务运行情况,相关技术的做法是:在基站接入后,从L2/L3桥接点的L2接口发起向基站的ping,检测PTN设备与基站之间的连通性,再从L2/L3桥接点的L3接口发起向服务网关(X-Serving GateWay,XGW)的ping,检测PTN设备与XGW之间的连通性。为了更加方便地进行业务端到端监控,TWAMP功能实现了端到端连通性、时延以及丢包检测。
但是相关技术中,TWAMP功能只能根据发射端发射的报文被反射端反射回本节点后进行端到端连通性、时延和丢包检测,因此当L2VPN或L3VPN网络内传送路径发生变化,导致TWAMP报文不再反射回发射端所在节点时,TWAMP检测功能就失效了。
发明内容
本申请实施例提供了一种基于双向主动测量协议TWAMP的检测方法,包括:
TWAMP发射端的第二设备通过第四设备接收第一报文,所述第一报文为所述TWAMP发射端的第一设备通过所述第四设备向TWAMP反射端的第三设备发送的第一TWAMP报文的反射报文;
所述第二设备根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果;或者,所述第二设备向所述第一设备发送所述第一报文的接收情况,以便所述第一设备根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的检测结果。
本申请实施例还提供了一种基于双向主动测量协议TWAMP的检测方法,包括:
TWAMP发射端的第一设备通过第四设备向TWAMP反射端的第三设备发送第一TWAMP报文,以便所述第三设备通过所述第四设备向所述TWAMP发射端的第二设备反射第一报文,所述第一报文为所述第一TWAMP报文的反射报文;
所述第一设备通过与所述第二设备之间的通信通道接收所述第二设备发送的所述第一设备和所述第三设备之间的检测结果,所述第一设备和所述第三设备之间的检测结果为所述第二设备根据接收的第一报文确定的;或者,所述第一设备通过与所述第二设备之间的通信通道接收所述第二设备发送的所述第一报文的接收情况,根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的检测结果。
本申请实施例还提供了一种基于双向主动测量协议TWAMP的检测方法,包括:
TWAMP发射端的第一设备通过第四设备向TWAMP反射端的第三设备发送第一TWAMP报文;
所述第三设备收到所述第一TWAMP报文后,通过所述第四设备向所述TWAMP发射端的第二设备反射第一报文,所述第一报文为所述第一TWAMP报文的反射报文;
所述第二设备接收所述第一报文,并根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果;或者,所述第二设备向所述第一设备发送所述第一报文的接收情况,所述第一设备,还根据所述第一TWAMP报文的发送 情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的检测结果。
本申请实施例还提供了一种第二设备,应用于TWAMP发射端,包括:
接收单元,设置为通过第四设备接收第一报文,所述第一报文为所述TWAMP发射端的第一设备通过所述第四设备向TWAMP反射端的第三设备发送的第一TWAMP报文的反射报文;
确定单元,设置为根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果;或者,设置为向所述第一设备发送所述第一报文的接收情况,以便所述第一设备根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的检测结果。
本申请实施例还提供了一种第一设备,应用于TWAMP发射端,包括:
发送单元,设置为通过第四设备向TWAMP反射端的第三设备发送第一TWAMP报文,以便第三设备通过所述第四设备向所述TWAMP发射端的第二设备反射第一报文,所述第一报文为所述第一TWAMP报文的反射报文;
接收单元,设置为通过与所述第二设备之间的通信通道接收所述第二设备发送的所述第一设备和所述第三设备之间的检测结果,所述第一设备和所述第三设备之间的检测结果为所述第二设备根据接收的第一报文确定的;或者,设置为通过与所述第二设备之间的通信通道接收所述第二设备发送的所述第一报文的接收情况,根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的检测结果。
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有信息处理程序,所述信息处理程序被处理器执行时实现本申请任意实施例所述的基于双向主动测量协议TWAMP的检测方法。
附图说明
附图用来提供对本申请技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。
图1为本申请一实施例提供的基于TWAMP的检测方法的流程示意图;
图2为本申请另一实施例提供的基于TWAMP的检测方法的流程示意图;
图3为本申请另一实施例提供的基于TWAMP的检测方法的流程示意图;
图4为本申请另一实施例提供的基于TWAMP的检测方法的流程示意图;
图5为本申请另一实施例提供的基于TWAMP的检测方法的流程示意图;
图6为本申请另一实施例提供的基于TWAMP的检测方法的流程示意图;
图7为本申请一实施例提供的分组传送网PTN的架构示意图;
图8为本申请另一实施例提供的基于TWAMP的检测方法的流程示意图;
图9为本申请另一实施例提供的分组传送网PTN的架构示意图;
图10为本申请一实施例提供的一种第二设备的结构示意图;
图11为本申请一实施例提供的一种第一设备的结构示意图;
图12为本申请一实施例提供的一种第三设备的结构示意图;
图13为本申请一实施例提供的一种基于双向主动测量协议TWAMP的检测系统的结构示意图。
具体实施方式
下文中将结合附图对本申请的实施例进行说明。
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
相关技术中,TWAMP功能只能根据发射端发射的报文被反射端反射回本节点后进行端到端连通性、时延和丢包检测,因此,当网络内传送路径发生变化,导致TWAMP报文不再反射回发射端所在节点时,TWAMP检测功能就失效了。
为此,本申请实施例的技术方案,可以避免出现此类问题,增强TWAMP功能的使用场景。下面通过几个实施例阐述本申请的技术方案。
图1为本申请一实施例提供的基于TWAMP的检测方法的流程示意图,如图1所示,该方法,包括:
步骤110,TWAMP发射端的第二设备通过第四设备接收第一报文,所述第一报文为所述TWAMP发射端的第一设备通过所述第四设备向TWAMP反射端的第三设备发送的第一TWAMP报文的反射报文。
步骤120,所述第二设备根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果;或者,所述第二设备向所述第一设备发送所述第一报文的接收情况,以便所述第一设备根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的检测结果。
所述第二设备上配置有反射报文回收规则,所述反射报文回收规则的特征字包括以下至少之一:目的互联网协议(Internet Protocol,IP)地址、源IP地址、目的用户数据报协议(User Datagram Protocol,UDP)端口号、源UDP端口号、虚拟专用网络标识符(Virtual Private Network identification number,VPNID)、互联网协议差分服务代码点(Internet Protocol Differentiated Services Code Point,IP DSCP)。
一实施例中,所述第一设备和第二设备之间保持时钟同步;所述第二设备根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果,包括:所述第二设备根据所述反射报文回收规则识别和检验所述第一报文的内容,所述第一报文中包括所述第一报文的发送时间戳、所述第一TWAMP报文的发送时间戳和所述第一TWAMP报文的接收时间戳;所述第二设备根据接收所述第一报文的时间、所述第一报文的发送时间戳、所述第一TWAMP报文的发送时间戳和所述第一TWAMP报文的接收时间戳确定所述第一设备和所述第三设备之间的时延和/或时延抖动。
一实施例中,所述第二设备和所述第一设备之间通过通信通道连接;该方法还包括:所述第二设备通过所述通信通道将所述时延和/或时延抖动发送给所述第一设备。
一实施例中,所述第二设备和所述第一设备之间通过通信通道连接;在所述第二设备通过第四设备接收所述第一报文之后,在所述第二设备根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果之前,该方法还包括:所述第二设备通过所述通信通道从所述第一设备获取所述第一TWAMP报文的发送情况。
一实施例中,所述第二设备根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果,包括:所述第二设备根据所述反射报文回收规则识别和检验所述第一报文的内容;所述第二设备根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的连通性和/或丢包率。
一实施例中,所述第二设备通过所述通信通道将所述连通性和/或丢包率发送给所述第一设备。
一实施例中,所述第二设备和所述第一设备之间通过通信通道连接;在所述第二设备通过第四设备接收所述第一报文之后,所述第二设备通过所述通信通道向所述第一设备发送所述第一报文的接收情况。
一实施例中,所述第一设备、所述第二设备为三层分组传送网L3PTN设备; 所述第三设备为二层分组传送网L2PTN设备,所述第四设备为二层L2/三层L3桥接设备。
一实施例中,所述反射报文回收规则为根据所述第一TWAMP报文的格式自动生成,或者通过配置生成。
图2为本申请另一实施例提供的基于TWAMP的检测方法的流程示意图,如图2所示,该方法,包括:
步骤210,TWAMP发射端的第一设备通过第四设备向TWAMP反射端的第三设备发送第一TWAMP报文,以便第三设备通过所述第四设备向所述TWAMP发射端的第二设备反射第一报文,所述第一报文为所述第一TWAMP报文的反射报文。
步骤220,所述第一设备通过与所述第二设备之间的通信通道接收所述第二设备发送的所述第一设备和所述第三设备之间的检测结果,所述第一设备和所述第三设备之间的检测结果为所述第二设备根据接收的第一报文确定的;或者,所述第一设备通过与所述第二设备之间的通信通道接收所述第二设备发送的所述第一报文的接收情况,并根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的检测结果。
一实施例中,在所述第一设备通过第四设备向TWAMP反射端的第三设备发送第一TWAMP报文之后,在所述第一设备接收所述第二设备发送的所述第一设备和所述第三设备之间的检测结果之前,该方法还包括:所述第一设备通过与所述第二设备之间的通信通道接收第一请求,所述第一请求为所述第二设备接收到第一报文之后向所述第一设备发送的,所述第一请求用于获取所述第一TWAMP报文的发送情况;所述第一设备向所述第二设备发送所述第一TWAMP报文的发送情况。
一实施例中,所述第一设备和所述第三设备之间的检测结果包括:所述第一设备和所述第三设备之间的时延和/或时延抖动,和/或,所述第一设备和所述第三设备之间的连通性和/或丢包率。
一实施例中,该方法还包括:所述第一设备通过第五设备向所述第三设备发送第二TWAMP报文,以便第三设备通过所述第五设备向所述第一设备反射第二报文,所述第二报文为所述第二TWAMP报文的反射报文;所述第一设备通过所述第五设备接收第二报文;所述第一设备根据所述第二报文确定所述第一设备和所述第三设备之间的检测结果。
一实施例中,所述第一设备上配置有TWAMP报文发送信息,所述TWAMP 报文发送信息包括以下至少之一:IP地址、媒体访问控制(Media Access Control,MAC)地址、UDP端口号、发包模式、发包使能、客户模式、发包周期。
一实施例中,所述第一设备通过第四设备向TWAMP反射端的第三设备发送第一TWAMP报文,包括:所述第一设备根据所述TWAMP报文发送信息生成第一TWAMP报文,并通过所述第四设备向所述第三设备发送第一TWAMP报文;所述第一设备通过第五设备向所述第三设备发送第二TWAMP报文,包括:所述第一设备根据所述TWAMP报文发送信息生成第二TWAMP报文,并通过所述第五设备向所述第三设备发送第二TWAMP报文。
一实施例中,所述第一设备上配置有反射报文回收规则,所述反射报文回收规则的特征字包括以下至少之一:目的IP地址、源IP地址、目的UDP端口号、源UDP端口号、VPNID、IP DSCP。
一实施例中,所述第一设备根据所述第二报文确定所述第一设备和所述第三设备之间的检测结果,包括:所述第一设备根据所述反射报文回收规则识别和检验所述第二报文的内容,所述第二报文中包括所述第二报文的发送时间戳、所述第二TWAMP报文的发送时间戳和所述第二TWAMP报文的接收时间戳;所述第一设备根据接收所述第二报文的时间、所述第二报文的发送时间戳、所述第二TWAMP报文的发送时间戳和所述第二TWAMP报文的接收时间戳确定所述第一设备和所述第三设备之间的时延和/或时延抖动。
一实施例中,所述第一设备根据所述第二报文确定所述第一设备和所述第三设备之间的检测结果,包括:所述第一设备根据所述反射报文回收规则识别和检验所述第二报文的内容;所述第一设备根据所述第二TWAMP报文的发送情况和所述第二报文的接收情况确定所述第一设备和所述第三设备之间的连通性和/或丢包率。
一实施例中,所述第一设备、所述第二设备为三层分组传送网L3PTN设备;所述第三设备为二层分组传送网L2PTN设备,所述第四设备、所述第五设备为二层L2/三层L3桥接设备。
图3为本申请另一实施例提供的基于TWAMP的检测方法的流程示意图,如图3所示,该方法,包括:
步骤310,TWAMP反射端的第三设备通过第四设备接收TWAMP发射端的第一设备发送的第一TWAMP报文。
步骤320,所述第三设备收到所述第一TWAMP报文后,通过所述第四设备向所述TWAMP发射端的第二设备反射第一报文,以便所述第二设备根据所 述第一报文确定所述第一设备和所述第三设备之间的检测结果,所述第一报文为所述第一TWAMP报文的反射报文。
一实施例中,所述第三设备上配置有TWAMP报文反射信息,所述TWAMP报文反射信息包括以下至少之一:IP地址、MAC地址、UDP端口号、发包模式、客户模式、反射模式。
一实施例中,所述第三设备通过所述第四设备向所述TWAMP发射端的第二设备反射第一报文,包括:所述第三设备根据所述TWAMP报文反射信息识别所述第一TWAMP报文的内容,生成所述第一报文并通过所述第四设备向所述第二设备反射所述第一报文。
一实施例中,该方法还包括:所述第三设备通过第五设备接收所述第一设备发送的第二TWAMP报文;所述第三设备收到所述第二TWAMP报文后,通过所述第五设备向所述第一设备反射第二报文,以便所述第一设备根据所述第二报文确定所述第一设备和所述第三设备之间的检测结果,所述第二报文为所述第二TWAMP报文的反射报文。
一实施例中,所述第三设备通过所述第五设备向所述第一设备反射第二报文,包括:所述第三设备根据所述TWAMP报文反射信息识别所述第二TWAMP报文的内容,生成所述第二报文并通过所述第五设备向所述第一设备发反射所述第二报文。
一实施例中,所述第一设备、所述第二设备为三层分组传送网L3PTN设备;所述第三设备为二层分组传送网L2PTN设备,所述第四设备、所述第五设备为二层L2/三层L3桥接设备。
图4为本申请另一实施例提供的基于TWAMP的检测方法的流程示意图,如图4所示,该方法,包括:
步骤410,TWAMP发射端的第一设备通过第四设备向TWAMP反射端的第三设备发送第一TWAMP报文。
步骤420,所述第三设备收到所述第一TWAMP报文后,通过所述第四设备向所述TWAMP发射端的第二设备反射第一报文,所述第一报文为所述TWAMP报文的反射报文。
步骤430,所述第二设备接收所述第一报文,并根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果;或者,所述第二设备向所述第一设备发送所述第一报文的接收情况,所述第一设备根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的 检测结果。
一实施例中,该方法还包括:所述第一设备通过第五设备向所述第三设备发送第二TWAMP报文;所述第三设备收到所述第二TWAMP报文后,通过所述第五设备向所述第一设备反射第二报文,所述第二报文为所述第二TWAMP报文的反射报文;所述第一设备接收所述第二报文,并根据所述第二报文确定所述第一设备和所述第三设备之间的检测结果。
一实施例中,所述第一设备和第二设备之间保持时钟同步。
一实施例中,所述第一设备、所述第二设备为三层分组传送网L3PTN设备;所述第三设备为二层分组传送网L2PTN设备,所述第四设备、所述第五设备为二层/三层L2/L3桥接设备。
图5为本申请另一实施例提供的基于TWAMP的检测方法的流程示意图,如图5所示,该方法,包括:
步骤510,在TWAMP发射端的第一设备,配置TWAMP报文发送信息。
所述TWAMP报文发送信息包括以下至少之一:IP地址、MAC地址、UDP端口号、发包模式、发包使能、客户模式、发包周期。
所述TWAMP报文发送信息用于生成和发送TWAMP报文,例如,当第一设备使能TWAMP功能(发包使能)时,可以根据配置的发包周期、发包模式(报文格式),并且按照客户模式封装报文头,打上发送时间戳,生成并发送TWAMP报文,该TWAMP报文携带发送时间戳,该TWAMP报文的报文头携带源IP地址、目的IP地址、源UDP端口号、目的UDP端口号等信息。所述客户模式是指发射端的用户网络侧接口(User Networks interface,UNI)的模式,例如可以为三层L3UNI、二层UNI或桥接二层UNI等。
步骤520,在所述第一设备和所述TWAMP发射端的第二设备,配置反射报文回收规则。
所述反射报文回收规则的特征字包括以下至少之一:目的IP地址、源IP地址、目的UDP端口号、源UDP端口号、VPNID、IP DSCP。
所述反射报文回收规则用于收到TWAMP报文的反射报文后,识别和检验该反射报文的内容。例如,当第一设备发送TWAMP报文后收到反射报文时,识别出所述反射报文的源IP地址和目的IP地址分别与所述反射报文回收规则中的源IP地址和目的IP地址一致,则可以确定该反射报文为该TWAMP报文的反射报文。
反射报文回收规则可以自动生成或者配置生成,可以通过源IP地址、目的IP地址、源UDP端口号、目的UDP端口号等相互组合组成。
比如:所述反射报文回收规则,可以根据步骤510中配置的TWAMP报文发送信息的内容自动生成,例如,可以将TWAMP报文发送信息中的IP地址、MAC地址、UDP端口号,自动构造成所述反射报文回收规则中的特征字,例如,可以将TWAMP报文发送信息中源IP地址、源MAC地址、源UDP端口号直接构造成所述反射报文回收规则中的目的IP地址、目的MAC地址、目的UDP端口号。
比如,所述反射报文回收规则也可以是通过配置构造而成,例如,可以直接根据用户的配置信息生成,例如,可以直接配置所述反射报文回收规则中的特征字:目的IP地址、目的MAC地址、目的UDP端口号等。
一实施例中,第一设备和第二设备为发射端的不同网元设备,第一设备和第二设备之间通过通信通道连接,可以交互信息。同时,第一设备和第二设备之间也需要保持时钟同步。由于第一设备既可以作为TWAMP发射端的发射设备,也可以同时作为TWAMP发射端的回收设备,即既能发送TWAMP报文又可以回收反射报文,因此第一设备中,既需要配置TWAMP报文发送信息,也需要配置反射报文回收规则;而第二设备,如果只作为反射报文的回收设备,则可以只配置反射报文回收规则。一实施例中,第二设备也可以同时作为发射端的发射设备和回收设备,此时,需要为第二设备配置其对应的TWAMP报文发送信息和反射报文回收规则,该第二设备的回收设备如果是另外的设备,则可以在该另外的设备上配置该对应的反射报文回收规则,同时该第二设备和该另外的设备之间也通过通信通道连接,并保持时钟同步。
步骤530,在TWAMP反射端的第三设备,配置TWAMP报文反射信息。
所述TWAMP报文反射信息包括以下至少之一:IP地址、MAC地址、UDP端口号、发包模式、客户模式、反射模式。
所述TWAMP报文反射信息用于识别收到的TWAMP报文内容,并生成和反射该TWAMP报文的反射报文。例如,收到来自发射端的TWAMP报文后,识别出报文内容,根据反射模式把报文内容中MAC地址、IP地址和UDP端口号进行交换后,打上接收时间戳和发送时间戳生成反射报文,并把反射报文回送给发射端。例如,该TWAMP报文携带发送时间戳,该反射报文携带该TWAMP报文携带的发送时间戳和接收时间戳、该反射报文自身的发送时间戳;并且将TWAMP报文的源MAC地址、源IP地址和源UDP端口号转换为该反射报文的目的MAC地址、目的IP地址和目的UDP端口号,将TWAMP报文的目的MAC地址、目的IP地址和目的UDP端口号转换为该反射报文的源MAC地址、源IP 地址和源UDP端口号等。
一实施例中,可以在所述第三设备配置TWAMP报文反射器,所述TWAMP报文反射器根据所述TWAMP报文反射信息反射报文。
步骤540,所述第一设备通过第五设备向所述第三设备发送第二TWAMP报文。
一实施例中,所述第一设备和所述第三设备通过所述第五设备连接,同时第一设备还依次通过第二设备和第四设备与第三设备连接。所述第一设备、所述第二设备为三层分组传送网L3PTN设备;所述第三设备为二层分组传送网L2PTN设备,所述第四设备和第五设备为二层L2/三层L3桥接设备。
一实施例中,所述第一设备通过第五设备向所述第三设备发送第二TWAMP报文,包括:根据所述TWAMP报文发送信息,生成第二TWAMP报文,并通过所述第五设备向所述第三设备发送第二TWAMP报文。
步骤550,所述第三设备通过第五设备接收所述第二TWAMP报文后,通过所述第五设备向所述第一设备反射所述第二TWAMP报文的反射报文。
一实施例中,所述第三设备通过所述第五设备向所述第一设备反射第二TWAMP报文的反射报文(也可以称为第二报文),包括:所述第三设备根据所述TWAMP报文反射信息识别所述第二TWAMP报文的内容,生成所述第二TWAMP报文的反射报文,并通过所述第五设备向所述第一设备反射所述第二TWAMP报文的反射报文。
步骤560,所述第一设备收到所述第二TWAMP报文的反射报文后,根据所述第二TWAMP报文的反射报文确定所述第一设备和所述第三设备之间的检测结果。
一实施例中,所述第一设备根据所述第二TWAMP报文的反射报文确定所述第一设备和所述第三设备之间的检测结果,包括:所述第一设备根据所述反射报文回收规则识别和检验所述第二TWAMP报文的反射报文的内容,所述第二TWAMP报文的反射报文中包括所述第二TWAMP报文的反射报文的发送时间戳、所述第二TWAMP报文的发送时间戳和所述第二TWAMP报文的接收时间戳;所述第一设备根据接收所述第二TWAMP报文的反射报文的时间、所述第二TWAMP报文的反射报文的发送时间戳、所述第二TWAMP报文的发送时间戳和所述第二TWAMP报文的接收时间戳确定所述第一设备和所述第三设备之间的时延和/或时延抖动;或者,所述第一设备根据所述反射报文回收规则识别和检验所述第二TWAMP报文的反射报文的内容;所述第一设备根据所述第二TWAMP报文的发送情况和所述第二TWAMP报文的反射报文的接收情况确 定所述第一设备和所述第三设备之间的连通性和/或丢包率。
所述第二TWAMP报文的发送情况是指所述第二TWAMP报文的发送数量等情况,所述第二TWAMP报文的反射报文(即第二报文)的接收情况是指所述第二报文的接收数量等情况。
一实施例中,所述第一设备可以将检测结果通过报表等格式上报并呈现给用户。
本实施例中,当所述第五设备故障时,即网络内部路径发生变化,从而导致TWAMP报文不再反射回发射端所在网元节点(即第一设备)时,则第一设备无法正常进行TWAMP检测。本实施例中,可以通过下面步骤,在第五设备故障时,第一设备仍然能够正常进行TWAMP检测,包括:
步骤570,所述第一设备通过所述第四设备向所述第三设备发送第一TWAMP报文。
一实施例中,该第一TWAMP报文经过第二设备和第四设备发送给第三设备,该第一TWAMP报文经过第二设备时只是透传并不作任何处理。
所述第一设备通过第四设备向TWAMP反射端的第三设备发送第一TWAMP报文,包括:所述第一设备根据所述TWAMP报文发送信息,生成第一TWAMP报文,并通过所述第四设备向所述第三设备发送第一TWAMP报文。
步骤580,所述第三设备收到所述第一TWAMP报文后,通过所述第四设备向所述第二设备反射所述第一TWAMP报文的反射报文。
一实施例中,所述第三设备通过所述第四设备向所述第二设备反射所述第一TWAMP报文的反射报文(也可以称为第一报文),包括:所述第三设备根据所述TWAMP报文反射信息识别所述第一TWAMP报文的内容,生成所述第一TWAMP报文的反射报文,并通过所述第四设备向所述第二设备反射所述第一TWAMP报文的反射报文。
一实施例中,可以在所述第三设备配置TWAMP报文反射器,所述TWAMP报文反射器根据所述TWAMP报文反射信息反射报文。
步骤590,所述第二设备通过所述第四设备收到所述第一TWAMP报文的反射报文后,根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果确定所述第一设备和所述第三设备之间的检测结果。
一实施例中,所述第二设备根据所述第一TWAMP报文的反射报文确定所述第一设备和所述第三设备之间的检测结果,包括:所述第二设备根据所述反射报文回收规则识别和检验所述第一TWAMP报文的反射报文的内容,所述第 一报文中包括所述第一TWAMP报文的反射报文的发送时间戳、所述第一TWAMP报文的发送时间戳和所述第一TWAMP报文的接收时间戳;所述第二设备根据接收所述第一TWAMP报文的反射报文的时间、所述第一TWAMP报文的反射报文的发送时间戳、所述第一TWAMP报文的发送时间戳和所述第一TWAMP报文的接收时间戳确定所述第一设备和所述第三设备之间的时延和/或时延抖动。
上面所述的网络内部路径发生变化情况下,第二设备能够计算准确的时延信息的前提条件是第一设备和第二设备所在网元时钟同步。
一实施例中,所述第二设备根据所述第一TWAMP报文的反射报文确定所述第一设备和所述第三设备之间的检测结果,包括:所述第二设备根据所述反射报文回收规则识别和检验所述第一报文的内容;所述第二设备根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的连通性和/或丢包率。
上面所述的网络内部路径发生变化情况下,第一设备和第二设备之间通过通信通道连接,交互信息,例如:在所述第二设备通过第四设备接收所述第一报文之后,在根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果之前,该方法还包括:所述第二设备通过所述通信通道通知所述第一设备已接收到所述第一TWAMP报文的反射报文,并获取所述第一TWAMP报文的发送情况。
所述第一TWAMP报文的发送情况是指所述第一TWAMP报文的发送数量等情况,所述第一TWAMP报文的反射报文(即第一报文)的接收情况是指所述第一报文的接收数量等情况。
一实施例中,所述第二设备可以直接将检测结果通过报表等格式上报并呈现给用户;所述第二设备也可以将检测结果通过通信通道发送给所述第一设备,由第一设备将检测结果通过报表等格式上报并呈现给用户。第一设备和第二设备之间的通信通道可以使用跨机框信息同步通信协议(Inter-Chassis Communication Protocol,ICCP)等方式通信。
本实施例中,上述步骤540-560与步骤570-590之间并不存在固定的前后顺序,当第五设备正常时可以执行步骤540-560,当第五设备异常时可以执行步骤570-590。
本实施例中,当所述第五设备恢复正常时,即网络内部路径再次发生变化,从而导致TWAMP报文可以反射回发射端所在网元节点(即第一设备)时,即第一设备可以正常进行TWAMP检测时,可以回到步骤540-560进行TWAMP 检测。
本实施例提供的技术方案,当L2VPN或L3VPN网络内传送路径发生变化,导致TWAMP报文不再反射回发射端所在网元节点时,仍然能够正常进行TWAMP检测,并能防止TWAMP检测报文被泄漏给传送网络外部设备,保证在多种情况下TWAMP功能能够正常运行。
在本申请的另一实施例中,与上一实施例不同的地方在于,在步骤590中,所述第二设备通过所述第四设备收到所述第一TWAMP报文的反射报文后,不在本地根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果确定所述第一设备和所述第三设备之间的检测结果;而是,所述第二设备将所述第一报文的接收情况,通过与第一设备之间的通信通道发送给第一设备,然后第一设备根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的检测结果。
图6为本申请另一实施例提供的基于TWAMP的检测方法的流程示意图,本实施例应用于图7所示的分组传送网PTN架构,如图7所示,网元(Net Element,NE)1为二层分组传送网L2PTN设备,在本实施例中作为TWAMP反射端设备;NE2和NE5为二层L2/三层L3桥接设备;NE3和NE4为三层分组传送网L3PTN设备,在本实施例中作为TWAMP发射端设备,其中,NE3为发射TWAMP报文的发射设备和回收反射报文的回收设备,NE3和NE4通过UNI与核心网网元连接,本实施例中NE3和NE4与XGW连接。假设PTN设备线卡单板和交换单板都运行正常。在基站业务开通前后,完成L2VPN+L3VPN的端到端的相关配置后,为了检测业务路径的连通性和性能是否正常,需要开启TWAMP。
如图6所示,该方法,包括:
步骤610,在L3VPN业务设备NE3上配置TWAMP报文发送信息和反射报文回收规则。
所述TWAMP报文发送信息和所述反射报文回收规则的内容参见上面的实施例,在此不再赘述。
本实施例中,例如,配置TWAMP发射端报文格式,选择发包的UNI侧单板,配置TWAMP报文为“L3 UNI侧发包”方式,并配置发包周期是100ms,以及配置源IP地址、目的IP地址、UPD端口号、DSCP信息。
步骤620,在L2VPN业务设备NE1配置TWAMP报文反射信息。
所述TWAMP报文反射信息的内容参见上面的实施例,在此不再赘述。
本实施例中,例如,在L2VPN业务设备NE1配置TWAMP反射端,选择反射端的UNI侧单板,配置源IP地址、目的IP地址、UPD端口号、DSCP信息。这些IP地址等信息需要与发射端的NE3的值一致。
步骤630,开启NE3设备的TWAMP报文发送。
本实施例中,如图7中线条所示,TWAMP报文流从NE3的UNI侧单板发出,经过城域L3VPN核心网络,经过L2VPN和L3VPN的桥接网元NE2,再经过接入和汇聚L2VPN网络,到达与基站相连的NE1网元,TWAMP报文流被NE1上的TWAMP反射器提取并反射回NE3设备。
步骤640,NE3设备根据TWAMP报文的反射报文确定NE3和NE1之间的检测结果。
本实施例中,TWAMP报文流被反射端反射回NE3设备,NE3设备回收TWAMP报文,根据报文中携带的时间戳计算时延和时延抖动,根据报文发送和接收情况判断连通性和计算丢包情况,将计算结果通过报表等格式上报并呈现给用户。
图8为本申请另一实施例提供的基于TWAMP的检测方法的流程示意图,本实施例应用于图9所示的分组传送网PTN架构,如图9所示,NE1为二层分组传送网L2PTN设备,在本实施例中作为TWAMP反射端设备;NE2和NE5为二层L2/三层L3桥接设备;NE3和NE4为三层分组传送网L3PTN设备,在本实施例中作为TWAMP发射端设备,其中,NE3作为发射TWAMP报文的发射设备和回收反射报文的回收设备,NE4作为回收反射报文的回收设备;NE3和NE4通过UNI与核心网网元连接,本实施例中NE3和NE4与XGW连接。假设PTN设备线卡单板和交换单板都运行正常。在基站业务开通前后,完成L2VPN+L3VPN的端到端的相关配置后,为了检测业务路径的连通性和性能是否正常,需要开启TWAMP,但是桥接设备NE2故障,业务和TWAMP检测报文流从备用路径(NE3-NE4-NE5-NE1)发送给客户设备。
如图8所示,该方法,包括:
步骤810,在L3VPN业务设备NE3上配置TWAMP报文发送信息和反射报文回收规则。
所述TWAMP报文发送信息和所述反射报文回收规则的内容参见上面的实施例,在此不再赘述。
本实施例中,例如,在L3VPN业务设备NE3上配置TWAMP发射端报文格式,选择发包的UNI侧单板,配置TWAMP报文为“L3 UNI侧发包”方式,并配置发包周期是10ms,以及配置源IP地址、目的IP地址、UPD端口号、DSCP信息。
步骤820,在L3VPN业务设备NE4配置反射报文回收规则。
本实施例中,TWAMP报文在NE4设备中只是透传,并不做任何处理。
NE3和NE4之间通过通信通道连接,如图9中NE3和NE4之间的虚线所示。
步骤830,在L2VPN业务设备NE1配置TWAMP报文反射信息。
所述TWAMP报文反射信息的内容参见上面的实施例,在此不再赘述。
本实施例中,例如,在L2VPN业务设备NE1配置TWAMP反射端,选择反射端的UNI侧单板,配置源IP地址、目的IP地址、UPD端口号、DSCP信息。这些IP地址等信息需要与发射端的NE3的值一致。
步骤840,开启NE3设备的TWAMP报文发送;
本实施例中,如图9中线条所示,TWAMP报文流从NE3的UNI侧单板发出,经过城域L3VPN核心网络,经过L2VPN和L3VPN的桥接网元NE5,再经过接入和汇聚L2VPN网络,到达与基站相连的NE1网元,TWAMP报文流被NE1上的TWAMP反射器提取并反射回NE4设备。
步骤850,NE4设备根据TWAMP报文的反射报文确定NE3和NE1之间的检测结果。
本实施例中,TWAMP报文流被反射端反射到NE4设备,NE4设备回收TWAMP报文,通过通信通道通知NE3,根据报文中携带的时间戳计算时延和时延抖动,根据从NE3获取的报文发送情况和本设备反射报文的接收情况判断连通性和计算丢包,将计算结果通过报表等格式上报并呈现给用户。
本申请实施例提供的技术方案,通过将TWAMP发射端的发送和回收功能分离,采用分布式方式实现发射端接收反射报文的机制,解决当L2VPN或L3VPN网络内传送路径发生变化,导致TWAMP报文不再反射回发射端所在设备时,TWAMP检测功能失效同时防止TWAMP检测报文被泄漏给传送网络外部设备。
在本申请的另一实施例中,与上一实施例不同的地方在于,在步骤850中,所述NE4设备通过所述NE5设备收到所述TWAMP报文的反射报文后,不在本 地确定所述NE3设备和所述NE1设备之间的检测结果;而是,所述NE4设备将所述TWAMP报文的反射报文的接收情况,通过与NE3设备之间的通信通道发送给NE3设备,然后NE3设备根据所述TWAMP报文的反射报文的接收情况和所述TWAMP报文的发送情况确定所述NE3设备和所述NE1设备之间的检测结果。
图10为本申请一实施例提供的一种第二设备的结构示意图,如图10所示,该第二设备应用于TWAMP发射端,包括:接收单元1010,设置为通过第四设备接收第一报文,所述第一报文为所述TWAMP发射端的第一设备通过所述第四设备向TWAMP反射端的第三设备发送的第一TWAMP报文的反射报文;确定单元1020,设置为根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果;或者,设置为向所述第一设备发送所述第一报文的接收情况,以便所述第一设备根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的检测结果。
所述第二设备上配置有反射报文回收规则,所述反射报文回收规则的特征字包括以下至少之一:目的IP地址、源IP地址、目的UDP端口号、源UDP端口号、VPNID、IP DSCP。
一实施例中,所述第一设备和第二设备之间保持时钟同步;所述确定单元1020是设置为通过如下方式根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果:根据所述反射报文回收规则识别和检验所述第一报文的内容,所述第一报文中包括所述第一报文的发送时间戳、所述第一TWAMP报文的发送时间戳和所述第一TWAMP报文的接收时间戳;根据接收所述第一报文的时间、所述第一报文的发送时间戳、所述第一TWAMP报文的发送时间戳和所述第一TWAMP报文的接收时间戳确定所述第一设备和所述第三设备之间的时延和/或时延抖动。
一实施例中,所述第二设备和所述第一设备之间通过通信通道连接;所述第二设备还包括:发送单元,设置为通过所述通信通道将所述时延和/或时延抖动发送给所述第一设备。
一实施例中,所述第二设备和所述第一设备之间通过通信通道连接;所述第二设备还包括:获取单元,设置为在所述第二设备通过第四设备接收所述第一报文之后,在根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果之前,通过所述通信通道从所述第一设备获取所述第一TWAMP报文的发送情况。
一实施例中,所述确定单元1020是设置为通过如下方式根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果:根据所述反射报文回收规则识别和检验所述第一报文的内容;根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的连通性和/或丢包率。
一实施例中,所述发送单元还设置为通过所述通信通道将所述连通性和/或丢包率发送给所述第一设备。
一实施例中,所述第二设备和所述第一设备之间通过通信通道连接;所述发送单元还设置为在所述第二设备通过第四设备接收所述第一报文之后,通过所述通信通道向所述第一设备发送所述第一报文的接收情况。
一实施例中,所述第一设备、所述第二设备为三层分组传送网L3PTN设备;所述第三设备为二层分组传送网L2PTN设备,所述第四设备为二层L2/三层L3桥接设备。
一实施例中,所述反射报文回收规则为根据所述第一TWAMP报文的格式自动生成,或者通过配置生成。
图11为本申请一实施例提供的一种第一设备的结构示意图,如图11所示,该第一设备应用于TWAMP发射端,包括:发送单元1110,设置为通过第四设备向TWAMP反射端的第三设备发送第一TWAMP报文,以便第三设备通过所述第四设备向所述TWAMP发射端的第二设备反射第一报文,所述第一报文为所述第一TWAMP报文的反射报文;接收单元1120,设置为通过与所述第二设备之间的通信通道接收所述第二设备发送的所述第一设备和所述第三设备之间的检测结果,所述第一设备和所述第三设备之间的检测结果为所述第二设备根据接收的第一报文确定的;或者,设置为通过与所述第二设备之间的通信通道接收所述第二设备发送的所述第一报文的接收情况,根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的检测结果。
一实施例中,所述接收单元1120,还设置为在所述第一设备通过第四设备向TWAMP反射端的第三设备发送第一TWAMP报文之后,在接收所述第二设备发送的所述第一设备和所述第三设备之间的检测结果之前,通过与所述第二设备之间的通信通道接收第一请求,所述第一请求为所述第二设备接收到第一报文之后向所述第一设备发送的,所述第一请求用于获取所述第一TWAMP报文的发送情况;所述发送单元1110,还设置为向所述第二设备发送所述第一 TWAMP报文的发送情况。
一实施例中,所述第一设备和所述第三设备之间的检测结果包括:所述第一设备和所述第三设备之间的时延和/或时延抖动,和/或,所述第一设备和所述第三设备之间的连通性和/或丢包率。
一实施例中,所述发送单元1110,还设置为通过第五设备向所述第三设备发送第二TWAMP报文,以便第三设备通过所述第五设备向所述第一设备反射第二报文,所述第二报文为所述第二TWAMP报文的反射报文。
所述接收单元1120,还设置为通过所述第五设备接收第二报文;根据所述第二报文确定所述第一设备和所述第三设备之间的检测结果。
一实施例中,所述第一设备上配置有TWAMP报文发送信息,所述TWAMP报文发送信息包括以下至少之一:IP地址、MAC地址、UDP端口号、发包模式、发包使能、客户模式、发包周期。
一实施例中,所述发送单元1110是设置为通过如下方式通过第四设备向TWAMP反射端的第三设备发送第一TWAMP报文:根据所述TWAMP报文发送信息,生成第一TWAMP报文并通过所述第四设备向所述第三设备发送第一TWAMP报文;所述发送单元1110是设置为通过如下方式通过第五设备向所述第三设备发送第二TWAMP报文:根据所述TWAMP报文发送信息,生成第二TWAMP报文并通过所述第五设备向所述第三设备发送第二TWAMP报文。
一实施例中,所述第一设备上配置有反射报文回收规则,所述反射报文回收规则的特征字包括以下至少之一:目的IP地址、源IP地址、目的UDP端口号、源UDP端口号、VPNID、IP DSCP。
一实施例中,所述接收单元1120是设置为通过如下方式根据所述第二报文确定所述第一设备和所述第三设备之间的检测结果:根据所述反射报文回收规则识别和检验所述第二报文的内容,所述第二报文中包括所述第二报文的发送时间戳、所述第二TWAMP报文的发送时间戳和所述第二TWAMP报文的接收时间戳;根据接收所述第二报文的时间、所述第二报文的发送时间戳、所述第二TWAMP报文的发送时间戳和所述第二TWAMP报文的接收时间戳确定所述第一设备和所述第三设备之间的时延和/或时延抖动。
一实施例中,所述接收单元1120是设置为通过如下方式根据所述第二报文确定所述第一设备和所述第三设备之间的检测结果:根据所述反射报文回收规则识别和检验所述第二报文的内容;根据所述第二TWAMP报文的发送情况和所述第二报文的接收情况确定所述第一设备和所述第三设备之间的连通性和/或丢包率。
一实施例中,所述第一设备、所述第二设备为三层分组传送网L3PTN设备;所述第三设备为二层分组传送网L2PTN设备,所述第四设备、所述第五设备为二层L2/三层L3桥接设备。
图12为本申请一实施例提供的一种第三设备的结构示意图,如图12所示,该第三设备应用于TWAMP反射端,包括:接收单元1210,设置为通过第四设备接收TWAMP发射端的第一设备发送的第一TWAMP报文;反射单元1220,设置为收到所述第一TWAMP报文后,通过所述第四设备向所述TWAMP发射端的第二设备反射第一报文,以便所述第二设备根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果,所述第一报文为所述第一TWAMP报文的反射报文。
一实施例中,所述第三设备上配置有TWAMP报文反射信息,所述TWAMP报文反射信息包括以下至少之一:IP地址、MAC地址、UDP端口号、发包模式、客户模式、反射模式。
一实施例中,所述反射单元1220是设置为通过如下方式通过所述第四设备向所述TWAMP发射端的第二设备反射第一报文:根据所述TWAMP报文反射信息识别所述第一TWAMP报文的内容,生成和通过所述第四设备向所述第二设备反射所述第一报文。
一实施例中,所述接收单元1210,还设置为通过第五设备接收所述第一设备发送的第二TWAMP报文;所述反射单元1220,还设置为收到所述第二TWAMP报文后,通过所述第五设备向所述第一设备反射第二报文,以便所述第一设备根据所述第二报文确定所述第一设备和所述第三设备之间的检测结果,所述第二报文为所述第二TWAMP报文的反射报文。
一实施例中,所述反射单元1220是设置为通过如下方式通过所述第五设备向所述第一设备反射第二报文:根据所述TWAMP报文反射信息识别所述第二TWAMP报文的内容,生成所述第二报文,并通过所述第五设备向所述第一设备发反射所述第二报文。
一实施例中,所述第一设备、所述第二设备为三层分组传送网L3PTN设备;所述第三设备为二层分组传送网L2PTN设备,所述第四设备、所述第五设备为二层L2/三层L3桥接设备。
图13为本申请一实施例提供的一种基于双向主动测量协议TWAMP的检测系统的结构示意图,如图13所示,该系统,包括:TWAMP发射端和TWAMP 反射端,所述TWAMP发射端包括第一设备1310和第二设备1320,所述TWAMP反射端包括第三设备1330;所述第一设备1310,设置为通过第四设备1340向所述第三设备1330发送第一TWAMP报文;所述第三设备1330,设置为收到所述第一TWAMP报文后,通过所述第四设备1340向所述第二设备1320反射第一报文,所述第一报文为所述TWAMP报文的反射报文;所述第二设备1320,设置为接收所述第一报文,并根据所述第一报文确定所述第一设备1310和所述第三设备1330之间的检测结果,或者,设置为向所述第一设备1310发送所述第一报文的接收情况,所述第一设备1310,还设置为根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备1310和所述第三设备1330之间的检测结果。
一实施例中,所述第一设备1310,还设置为通过第五设备1350向所述第三设备1330发送第二TWAMP报文;所述第三设备1330,还设置为收到所述第二TWAMP报文后,通过所述第五设备1350向所述第一设备1310反射第二报文,所述第二报文为所述第二TWAMP报文的反射报文;所述第一设备1310,还设置为接收所述第二报文,并根据所述第二报文确定所述第一设备1310和所述第三设备1330之间的检测结果。
一实施例中,所述第一设备1310和第二设备1320之间保持时钟同步。
一实施例中,所述第一设备1310、所述第二设备1320为三层分组传送网L3PTN设备;所述第三设备1330为二层分组传送网L2PTN设备,所述第四设备1340、所述第五设备1350为二层/三层L2/L3桥接设备。
本申请实施例还提供了一种第二设备,应用于TWAMP发射端,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述第二设备执行的任一项所述基于双向主动测量协议TWAMP的检测方法。
本申请实施例还提供了一种第一设备,应用于TWAMP发射端,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述第一设备执行的任一项所述基于双向主动测量协议TWAMP的检测方法。
本申请实施例还提供了一种第三设备,应用于TWAMP反射端,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述第三设备执行的任一项所述基于双向主动测量协议TWAMP的检测方法。
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有信息处理程序,所述信息处理程序被处理器执行时实现上述任一项所述基于双向主动测量协议TWAMP的检测方法。
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些组件或所有组件可以被实施为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于随机访问存储器(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、可擦式可编程只读存储器(Erasable Programmable Read-Only Memory,EEPROM)、闪存或其他存储器技术、紧凑型光盘只读储存器(Compact Disc Read-Only Memory,CD-ROM)、数字多功能盘(Digital Versatile Disc,DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。

Claims (10)

  1. 一种基于双向主动测量协议TWAMP的检测方法,包括:
    TWAMP发射端的第二设备通过第四设备接收第一报文,所述第一报文为所述TWAMP发射端的第一设备通过所述第四设备向TWAMP反射端的第三设备发送的第一TWAMP报文的反射报文;
    所述第二设备根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果;或者,所述第二设备向所述第一设备发送所述第一报文的接收情况,以便所述第一设备根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的检测结果。
  2. 根据权利要求1所述的检测方法,其中,所述第二设备上配置有反射报文回收规则,所述反射报文回收规则的特征字包括以下至少之一:目的互联网协议IP地址、源IP地址、目的用户数据报协议UDP端口号、源UDP端口号、虚拟专用网络标识符VPNID、互联网协议差分服务代码点IP DSCP。
  3. 根据权利要求2所述的检测方法,其中,所述第一设备和所述第二设备之间保持时钟同步;
    所述第二设备根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果,包括:
    所述第二设备根据所述反射报文回收规则识别和检验所述第一报文的内容,所述第一报文中包括所述第一报文的发送时间戳、所述第一TWAMP报文的发送时间戳和所述第一TWAMP报文的接收时间戳;
    所述第二设备根据接收所述第一报文的时间、所述第一报文的发送时间戳、所述第一TWAMP报文的发送时间戳和所述第一TWAMP报文的接收时间戳确定所述第一设备和所述第三设备之间的时延和时延抖动中的至少之一。
  4. 根据权利要求2所述的检测方法,其中,所述第二设备和所述第一设备之间通过通信通道连接;
    在所述第二设备通过第四设备接收所述第一报文之后,在所述第二设备根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果之前,还包括:
    所述第二设备通过所述通信通道从所述第一设备获取所述第一TWAMP报文的发送情况。
  5. 根据权利要求4所述的检测方法,其中,所述第二设备根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果,包括:
    所述第二设备根据所述反射报文回收规则识别和检验所述第一报文的内 容;
    所述第二设备根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的连通性和丢包率中的至少之一。
  6. 一种基于双向主动测量协议TWAMP的检测方法,包括:
    TWAMP发射端的第一设备通过第四设备向TWAMP反射端的第三设备发送第一TWAMP报文,以便所述第三设备通过所述第四设备向所述TWAMP发射端的第二设备反射第一报文,所述第一报文为所述第一TWAMP报文的反射报文;
    所述第一设备通过与所述第二设备之间的通信通道接收所述第二设备发送的所述第一设备和所述第三设备之间的检测结果,所述第一设备和所述第三设备之间的检测结果为所述第二设备根据接收的第一报文确定的;或者,所述第一设备通过与所述第二设备之间的通信通道接收所述第二设备发送的所述第一报文的接收情况,并根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的检测结果。
  7. 一种基于双向主动测量协议TWAMP的检测方法,包括:
    TWAMP发射端的第一设备通过第四设备向TWAMP反射端的第三设备发送第一TWAMP报文;
    所述第三设备收到所述第一TWAMP报文后,通过所述第四设备向所述TWAMP发射端的第二设备反射第一报文,所述第一报文为所述TWAMP报文的反射报文;
    所述第二设备接收所述第一报文,并根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果;或者,所述第二设备向所述第一设备发送所述第一报文的接收情况,所述第一设备根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的检测结果。
  8. 一种第二设备,应用于双向主动测量协议TWAMP发射端,包括:
    接收单元,设置为通过第四设备接收第一报文,所述第一报文为所述TWAMP发射端的第一设备通过所述第四设备向TWAMP反射端的第三设备发送的第一TWAMP报文的反射报文;
    确定单元,设置为根据所述第一报文确定所述第一设备和所述第三设备之间的检测结果;或者,设置为向所述第一设备发送所述第一报文的接收情况, 以便所述第一设备根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的检测结果。
  9. 一种第一设备,应用于双向主动测量协议TWAMP发射端,包括:
    发送单元,设置为通过第四设备向TWAMP反射端的第三设备发送第一TWAMP报文,以便所述第三设备通过所述第四设备向所述TWAMP发射端的第二设备反射第一报文,所述第一报文为所述第一TWAMP报文的反射报文;
    接收单元,设置为通过与所述第二设备之间的通信通道接收所述第二设备发送的所述第一设备和所述第三设备之间的检测结果,所述第一设备和所述第三设备之间的检测结果为所述第二设备根据接收的第一报文确定的;或者,设置为通过与所述第二设备之间的通信通道接收所述第二设备发送的所述第一报文的接收情况,并根据所述第一TWAMP报文的发送情况和所述第一报文的接收情况确定所述第一设备和所述第三设备之间的检测结果。
  10. 一种计算机可读存储介质,存储有信息处理程序,所述信息处理程序被处理器执行时实现如权利要求1至7中任一项所述基于双向主动测量协议TWAMP的检测方法。
PCT/CN2020/091837 2019-05-24 2020-05-22 一种基于twamp的检测方法及相关设备 WO2020238799A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910440095.1 2019-05-24
CN201910440095.1A CN111988193A (zh) 2019-05-24 2019-05-24 一种基于twamp的检测方法及相关设备

Publications (1)

Publication Number Publication Date
WO2020238799A1 true WO2020238799A1 (zh) 2020-12-03

Family

ID=73437065

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/091837 WO2020238799A1 (zh) 2019-05-24 2020-05-22 一种基于twamp的检测方法及相关设备

Country Status (2)

Country Link
CN (1) CN111988193A (zh)
WO (1) WO2020238799A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106549819A (zh) * 2015-09-22 2017-03-29 华为技术有限公司 一种连通性探测方法、控制器和设备
CN106936661A (zh) * 2015-12-31 2017-07-07 华为技术有限公司 一种网络监测方法、装置及系统
CN107517137A (zh) * 2016-06-16 2017-12-26 中兴通讯股份有限公司 一种业务质量测量方法及装置
CN107579869A (zh) * 2016-07-04 2018-01-12 华为技术有限公司 网络性能检测方法和网络设备
CN107995015A (zh) * 2016-10-27 2018-05-04 中兴通讯股份有限公司 获取twamp端到端检测路径的方法和装置
US20190059117A1 (en) * 2017-08-16 2019-02-21 Nicira, Inc. Connectivity checks in virtualized computing environments

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9485165B2 (en) * 2012-12-14 2016-11-01 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for augmenting TWAMP

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106549819A (zh) * 2015-09-22 2017-03-29 华为技术有限公司 一种连通性探测方法、控制器和设备
CN106936661A (zh) * 2015-12-31 2017-07-07 华为技术有限公司 一种网络监测方法、装置及系统
CN107517137A (zh) * 2016-06-16 2017-12-26 中兴通讯股份有限公司 一种业务质量测量方法及装置
CN107579869A (zh) * 2016-07-04 2018-01-12 华为技术有限公司 网络性能检测方法和网络设备
CN107995015A (zh) * 2016-10-27 2018-05-04 中兴通讯股份有限公司 获取twamp端到端检测路径的方法和装置
US20190059117A1 (en) * 2017-08-16 2019-02-21 Nicira, Inc. Connectivity checks in virtualized computing environments

Also Published As

Publication number Publication date
CN111988193A (zh) 2020-11-24

Similar Documents

Publication Publication Date Title
US9407526B1 (en) Network liveliness detection using session-external communications
KR101459252B1 (ko) Traceroute_delay 진단 커맨드
JP5462954B2 (ja) パケットロス検出方法及び装置、並びにルータ
CN106936661B (zh) 一种网络监测方法、装置及系统
WO2018210213A1 (zh) 一种实现ioam封装的方法及装置、存储介质
JP5209116B2 (ja) パケット交換網における擬似ワイヤの確立
US20140029413A1 (en) System and method using rsvp hello suppression for graceful restart capable neighbors
KR102055201B1 (ko) 클록 동기화 경로를 검출하는 방법, 노드, 및 시스템
US7983274B2 (en) Performance monitoring of pseudowire emulation
US8503321B2 (en) Multifunctional control channel for pseudowire emulation
CN101427501A (zh) Mpls转发和控制平面之间的一致性
CN103580894B (zh) 操作、管理和维护oam配置的方法、设备及系统
US11057290B2 (en) Ping/traceroute for static label switched paths (LSPs) and static segment routing traffic engineering (SRTE) tunnels
US20080273467A1 (en) Methods for determining pw connection state and for notifying ac connection state and the associated equipments
WO2017113771A1 (zh) 一种报文的处理方法和装置
WO2012075934A1 (zh) 消息循环的检测方法、路由代理设备及组网系统
WO2022083563A1 (zh) 链路检测方法、链路检测装置、终端设备和存储介质
US20230318970A1 (en) Packet Processing Method and Apparatus
WO2020238799A1 (zh) 一种基于twamp的检测方法及相关设备
WO2014008809A1 (zh) 一种丢失帧测定方法及系统
JP2012039461A (ja) 通信装置、通信方法、および通信プログラム
US20130259057A1 (en) Pseudowire groups in a packet switched network
CN107666671B (zh) 基于twamp的错误连接检测的方法及装置
WO2014000509A1 (zh) 一种传输监控方法及装置
CN102624746B (zh) 检测隧道两端gre头配置的方法、源端、目的端和系统

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: 20814745

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: 20814745

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20814745

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 17/05/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20814745

Country of ref document: EP

Kind code of ref document: A1