CN111988193A - TWAMP-based detection method and related equipment - Google Patents

TWAMP-based detection method and related equipment Download PDF

Info

Publication number
CN111988193A
CN111988193A CN201910440095.1A CN201910440095A CN111988193A CN 111988193 A CN111988193 A CN 111988193A CN 201910440095 A CN201910440095 A CN 201910440095A CN 111988193 A CN111988193 A CN 111988193A
Authority
CN
China
Prior art keywords
twamp
packet
message
sending
reflection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910440095.1A
Other languages
Chinese (zh)
Inventor
高鹏
唐思诚
徐杨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201910440095.1A priority Critical patent/CN111988193A/en
Priority to PCT/CN2020/091837 priority patent/WO2020238799A1/en
Publication of CN111988193A publication Critical patent/CN111988193A/en
Pending legal-status Critical Current

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

Abstract

The embodiment of the invention discloses a detection method and related equipment based on a two-way active measurement protocol TWAMP, wherein one of the methods comprises the following steps: a second device at a TWAMP transmitting end receives a first message through a fourth device, wherein the first message is a reflection message of the first TWAMP message sent by the first device at the TWAMP transmitting end to a third device at a TWAMP reflection end through the fourth device; determining a detection result between the first device and the third device according to the first message; or, sending a receiving condition of the first packet to the first device, so that the first device determines a detection result between the first device and the third device according to the sending condition of the first TWAMP packet and the receiving condition of the first packet. Thus, the usage scenario of the TWAMP function is enhanced.

Description

TWAMP-based detection method and related equipment
Technical Field
The embodiment of the invention relates to, but is not limited to, Packet Transport Network (PTN), and more particularly, to a detection method and related device based on two-way active measurement protocol TWAMP (two-way active measurement protocol).
Background
The service IP (Internet Protocol) and the mobile backhaul based on data service in the communication network are commonly used, and the packet transport network PTN is a trend in the industry, and the PTN requires to provide a packet transport technology capable of effectively transferring packet services, and providing carrier OAM (Operation Administration and Maintenance) and protection.
In the PTN device, TP-OAM (Transport Profile OAM) is a widely used detection mechanism, and is used for detection of a segment layer, a tunnel layer, and a dummy line layer. The IP service is supported by an L2VPN (two-Layer Virtual Private Network) + L3VPN (three-Layer Virtual Private Network), and the L2-L3 bridge needs to be performed at a PE (Provider Edge) node of the L3VPN by using the supporting scheme, and at this time, the IP service realizes L2 transparent transmission in the access aggregation L2VPN Network, and can only be monitored by LSP (label Switching Path)/PW (Pseudowire) OAM, and L3VPN processing is performed in a core Layer Network, and an LSP Layer OAM monitoring mechanism can be used.
Before and after the service is opened, in order to detect whether the service configuration is normal or monitor the current service operation condition, the current method is as follows: after the base station is accessed, the L2 interface of the L2/L3 bridging point initiates ping to the base station to detect the connectivity with the base station, and the L3 interface of the L2/L3 bridging point initiates ping to XGW (X-Serving GateWay) to detect the connectivity with XGW. In order to more conveniently perform service end-to-end monitoring, a TWAMP (two-way active measurement protocol) function realizes end-to-end connectivity, time delay and packet loss detection.
However, at present, the TWAMP function can only perform connectivity, time delay and packet loss detection after the packet transmitted by the transmitting end is reflected back to the node by the reflecting end, so that the TWAMP detection function is disabled when the TWAMP packet is no longer reflected back to the node where the transmitting end is located due to a change of a transmission path in the L2VPN or L3VPN network.
Disclosure of Invention
In view of this, an embodiment of the present invention provides a detection method based on a TWAMP, including:
a second device at a TWAMP transmitting end receives a first message through a fourth device, wherein the first message is a reflection message of the first TWAMP message sent by the first device at the TWAMP transmitting end to a third device at a TWAMP reflection end through the fourth device;
determining a detection result between the first device and the third device according to the first message;
or, sending a receiving condition of the first packet to the first device, so that the first device determines a detection result between the first device and the third device according to the sending condition of the first TWAMP packet and the receiving condition of the first packet.
The embodiment of the invention also provides a detection method based on a two-way active measurement protocol TWAMP, which comprises the following steps:
A first device at a TWAMP transmitting end sends a first TWAMP message to a third device at a TWAMP reflecting end through a fourth device, so that the third device reflects the first message to a second device at the TWAMP transmitting end through the fourth device, wherein the first message is a reflected message of the first TWAMP message;
receiving a detection result between the first device and the third device, which is sent by the second device, through a communication channel between the second device and the third device, wherein the detection result between the first device and the third device is determined by the second device according to a received first message;
or, receiving a receiving condition of the first packet sent by the second device through a communication channel between the first device and the second device, and determining a detection result between the first device and the third device according to the sending condition of the first TWAMP packet and the receiving condition of the first packet.
The embodiment of the invention also provides a detection method based on a two-way active measurement protocol TWAMP, which comprises the following steps:
the first device of the TWAMP transmitting end sends a first TWAMP message to a third device of the TWAMP reflecting end through a fourth device;
after receiving the first TWAMP message, the third device reflects a first message to a second device at the TWAMP transmitting end through the fourth device, where the first message is a reflected message of the TWAMP message;
The second equipment receives the first message and determines a detection result between the first equipment and the third equipment according to the first message; or, the first device is further configured to determine a detection result between the first device and the third device according to the sending condition of the first TWAMP packet and the receiving condition of the first packet.
The embodiment of the present invention further provides a second device, applied to a TWAMP transmitting end, including:
a receiving unit, configured to receive a first packet through a fourth device, where the first packet is a reflection packet of the first TWAMP packet sent by the first device at the TWAMP transmitting end to a third device at a TWAMP reflecting end through the fourth device;
a determining unit, configured to determine a detection result between the first device and the third device according to the first packet; or, the TWAMP sending module is configured to send a receiving condition of the first packet to the first device, so that the first device determines a detection result between the first device and the third device according to the sending condition of the first TWAMP packet and the receiving condition of the first packet.
The embodiment of the present invention further provides a first device, applied to a TWAMP transmitting end, including:
a sending unit, configured to send a first TWAMP packet to a third device at a TWAMP reflection end through a fourth device, so that the third device reflects a first packet to a second device at the TWAMP transmission end through the fourth device, where the first packet is a reflection packet of the first TWAMP packet;
a receiving unit, configured to receive, through a communication channel between the second device and the second device, a detection result between the first device and the third device, where the detection result is sent by the second device and is determined by the second device according to a received first packet; or, receiving a receiving condition of the first packet sent by the second device through a communication channel between the first device and the second device, and determining a detection result between the first device and the third device according to the sending condition of the first TWAMP packet and the receiving condition of the first packet.
An embodiment of the present invention further provides a computer-readable storage medium, where an information processing program is stored on the computer-readable storage medium, and when the information processing program is executed by a processor, the information processing program implements any of the steps of the bidirectional active measurement protocol TWAMP-based detection method described above.
Compared with the prior art, according to the technical scheme provided by the embodiment of the invention, when the transmission path in the network is changed, and the TWAMP message is not reflected back to the network element node where the transmitting end is located, the TWAMP detection can still be normally carried out, the TWAMP detection message can be prevented from being leaked to the external equipment of the transmission network, and the TWAMP function can be ensured to normally operate under various conditions.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a schematic flowchart of a TWAMP-based detection method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a TWAMP-based detection method according to another embodiment of the present invention;
Fig. 3 is a schematic flowchart of a TWAMP-based detection method according to another embodiment of the present invention;
fig. 4 is a schematic flowchart of a TWAMP-based detection method according to another embodiment of the present invention;
fig. 5 is a schematic flowchart of a TWAMP-based detection method according to another embodiment of the present invention;
fig. 6 is a schematic flowchart of a TWAMP-based detection method according to another embodiment of the present invention;
fig. 7 is a schematic architecture diagram of a packet transport network PTN according to an embodiment of the present invention;
fig. 8 is a schematic flowchart of a TWAMP-based detection method according to another embodiment of the present invention;
fig. 9 is a schematic architecture diagram of a packet transport network PTN according to another embodiment of the present invention;
fig. 10 is a schematic structural diagram of a second apparatus according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a first apparatus according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a third apparatus according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a detection system based on a two-way active measurement protocol TWAMP according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
In the prior art, at present, the TWAMP function can only perform connectivity, time delay and packet loss detection after a packet transmitted by a transmitting end is reflected back to a node by a reflecting end, so that the TWAMP detection function is disabled when a transmission path in a network changes, which causes the TWAMP packet to not be reflected back to the node where the transmitting end is located.
Therefore, the technical scheme of the embodiment of the invention can avoid the problems and enhance the use scene of the TWAMP function. The technical solution of the present invention is illustrated in detail by the following examples.
Fig. 1 is a schematic flow chart of a TWAMP-based detection method according to an embodiment of the present invention, as shown in fig. 1, the method includes:
step 101, a second device at a TWAMP transmitting end receives a first packet through a fourth device, where the first packet is a reflected packet of the first TWAMP packet sent by the first device at the TWAMP transmitting end to a third device at a TWAMP reflecting end through the fourth device;
Step 102, determining a detection result between the first device and the third device according to the first message; or, sending a receiving condition of the first packet to the first device, so that the first device determines a detection result between the first device and the third device according to the sending condition of the first TWAMP packet and the receiving condition of the first packet.
Wherein, a reflection message recovery rule is configured on the second device, and a feature word of the reflection message recovery rule includes at least one of the following: a destination IP (Internet Protocol Address), a source IP, a destination UDP (User Datagram Protocol) port number, a source UDP port number, a VPNID (Virtual Private Network identification number), and an IP DSCP (Internet Protocol Differentiated Services Code Point).
Wherein clock synchronization is maintained between the first device and the second device;
the determining a detection result between the first device and the third device according to the first packet includes:
identifying and checking the content of the first message according to the reflection message recovery rule, wherein the first message comprises a sending timestamp of the first message, a sending timestamp and a receiving timestamp of the first TWAMP message;
And determining the time delay and/or the time delay jitter between the first device and the third device according to the time for receiving the first message, the sending time stamp of the first message, and the sending time stamp and the receiving time stamp of the first TWAMP message.
The second equipment is connected with the first equipment through a communication channel;
the method further comprises the following steps: and sending the time delay and/or the time delay jitter to the first equipment through the communication channel.
The second equipment is connected with the first equipment through a communication channel;
after the second device receives the first packet through a fourth device, before determining a detection result between the first device and the third device according to the first packet, the method further includes: and the second equipment acquires the sending condition of the first TWAMP message from the first equipment through the communication channel.
Wherein the determining a detection result between the first device and the third device according to the first packet includes
Identifying and checking the content of the first message according to the reflection message recovery rule;
and determining connectivity and/or packet loss rate between the first device and the third device according to the sending condition of the first TWAMP message and the receiving condition of the first message.
And sending the connectivity and/or the packet loss rate to the first equipment through the communication channel.
The second equipment is connected with the first equipment through a communication channel;
and after the second equipment receives the first message through fourth equipment, the second equipment sends the receiving condition of the first message to the first equipment through the communication channel.
The first device and the second device are three-layer packet transport network (L3 PTN) devices;
the third device is a two-layer packet transport network (L2 PTN) device, and the fourth device is a two-layer L2/three-layer L3 bridging device.
The reflection message recycling 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 according to another embodiment of the present invention, as shown in fig. 2, the method includes:
step 201, a first device at a TWAMP transmitting end sends a first TWAMP message to a third device at a TWAMP reflecting end through a fourth device, so that the third device reflects the first message to a second device at the TWAMP transmitting end through the fourth device, where the first message is a reflected message of the first TWAMP message;
Step 202, receiving, by a communication channel between the second device and the third device, a detection result between the first device and the third device, where the detection result is sent by the second device and is determined by the second device according to the received first packet; or, receiving a receiving condition of the first packet sent by the second device through a communication channel between the first device and the second device, and determining a detection result between the first device and the third device according to the sending condition of the first TWAMP packet and the receiving condition of the first packet.
After the first device sends a first TWAMP packet to a third device at a TWAMP reflection end through a fourth device, and before receiving a detection result between the first device and the third device sent by the second device, the method further includes:
receiving a first request through the communication channel, wherein the first request is sent by the second device after receiving a first message, and the first request is used for acquiring the sending condition of the first TWAMP message;
and sending the sending condition of the first TWAMP message to the second equipment.
Wherein the detection result between the first device and the third device comprises:
a time delay and/or a time delay jitter between the first device and the third device,
and/or connectivity and/or packet loss rate between the first device and the third device.
Wherein, the method also comprises:
the first device sends a second TWAMP message to the third device through a fifth device, so that the third device reflects the second message to the first device through the fifth device, wherein the second message is a reflected message of the second TWAMP message;
the first equipment receives a second message through the fifth equipment;
and the first equipment determines a detection result between the first equipment and the third equipment according to the second message.
The first device is configured with TWAMP message sending information, where the TWAMP message sending information includes at least one of the following:
IP Address, MAC Address (Media Access Control Address), UDP port number, packet mode, packet enable, client mode, and packet cycle.
The sending, by the first device, the first TWAMP packet to the third device at the TWAMP reflection end through the fourth device includes:
Generating and sending a first TWAMP message to the third equipment through the fourth equipment according to the TWAMP message sending information;
the first device sends a second TWAMP packet to the third device through a fifth device, including:
and generating and sending a second TWAMP message to the third equipment through the fifth equipment according to the TWAMP message sending information.
Wherein, a reflection message recovery rule is configured on the first device, and a feature word of the reflection message recovery rule includes at least one of the following: destination IP, source IP, destination UDP port number, source UDP port number, VPNID, IP DSCP.
Wherein the determining, by the first device, the detection result between the first device and the third device according to the second packet includes:
the first equipment identifies and checks the content of the second message according to the reflection message recovery rule, wherein the second message comprises a sending timestamp of the second message, a sending timestamp and a receiving timestamp of the second TWAMP message;
and determining the time delay and/or the time delay jitter between the first device and the third device according to the time for receiving the second message, the sending time stamp of the second message, and the sending time stamp and the receiving time stamp of the second TWAMP message.
Wherein the determining, by the first device, the detection result between the first device and the third device according to the second packet includes:
identifying and checking the content of the second message according to the reflection message recovery rule;
and determining connectivity and/or packet loss rate between the first device and the third device according to the sending condition of the second TWAMP message and the receiving condition of the second message.
The first device and the second device are three-layer packet transport network (L3 PTN) devices;
the third device is a layer two packet transport network (L2 PTN) device, and the fourth device and the fifth device are layer two L2/layer three L3 bridging devices.
Fig. 3 is a schematic flowchart of a TWAMP-based detection method according to another embodiment of the present invention, as shown in fig. 3, the method includes:
step 301, a third device at a TWAMP reflection end receives a first TWAMP message sent by a first device at a TWAMP transmission end through a fourth device;
step 302, after receiving the first TWAMP packet, the third device reflects, by the fourth device, the first packet to the second device at the TWAMP transmitting end, so that the second device determines, according to the first packet, a detection result between the first device and the third device, where the first packet is a reflected packet of the first TWAMP packet.
Wherein, the third device is configured with TWAMP packet reflection information, and the TWAMP packet reflection information includes at least one of the following:
IP address, MAC address, UDP port number, packet mode, client mode, reflection mode.
Wherein the reflecting, by the fourth device, the first packet to the second device at the TWAMP transmitting end includes:
and identifying the content of the first TWAMP message according to the TWAMP message reflection information, and generating and reflecting the first message to the second device through the fourth device.
Wherein, the method also comprises:
the third equipment receives a second TWAMP message sent by the first equipment through fifth equipment;
and after receiving the second TWAMP message, the third device reflects a second message to the first device through the fifth device, so that the first device determines a detection result between the first device and the third device according to the second message, wherein the second message is a reflected message of the second TWAMP message.
Wherein the reflecting, by the fifth device, the second packet to the first device includes:
and identifying the content of the second TWAMP message according to the TWAMP message reflection information, and generating and transmitting the second message to the first equipment through the fifth equipment.
The first device and the second device are three-layer packet transport network (L3 PTN) devices;
the third device is a layer two packet transport network (L2 PTN) device, and the fourth device and the fifth device are layer two L2/layer three L3 bridging devices.
Fig. 4 is a schematic flowchart of a TWAMP-based detection method according to another embodiment of the present invention, as shown in fig. 4, the method includes:
step 401, a first device at a TWAMP transmitting end sends a first TWAMP message to a third device at a TWAMP reflecting end through a fourth device;
step 402, after receiving the first TWAMP packet, the third device reflects a first packet to the second device at the TWAMP transmitting end through the fourth device, where the first packet is a reflected packet of the TWAMP packet;
step 403, the second device receives the first packet, and determines a detection result between the first device and the third device according to the first packet; or, sending a receiving condition of the first packet to the first device, and the first device determining, according to the sending condition of the first TWAMP packet and the receiving condition of the first packet, a detection result between the first device and the third device.
Wherein, the method also comprises:
the first equipment sends a second TWAMP message to the third equipment through fifth equipment;
after receiving the second TWAMP message, the third device reflects a second message to the first device through the fifth device, where the second message is a reflected message of the second TWAMP message;
and the first equipment receives the second message and determines a detection result between the first equipment and the third equipment according to the second message.
Wherein clock synchronization is maintained between the first device and the second device.
The first device and the second device are three-layer packet transport network (L3 PTN) devices;
the third device is a layer two packet transport network (L2 PTN) device, and the fourth device and the fifth device are layer two/layer three L2/L3 bridging devices.
Fig. 5 is a schematic flowchart of a TWAMP-based detection method according to another embodiment of the present invention, as shown in fig. 5, the method includes:
step 501, configuring TWAMP message sending information at a first device of a TWAMP transmitting end;
wherein the TWAMP packet sending information includes at least one of:
IP address, MAC address, UDP port number, packetization mode, packetization enable, client mode, packetization period.
The TWAMP packet sending information is used to generate and send a TWAMP packet, for example, when the first device enables a TWAMP function (packet sending enable), the first device may encapsulate a packet header according to a configured packet sending period and a configured packet sending mode (packet format) and according to a client mode, apply a sending timestamp, generate and send the TWAMP packet, where the TWAMP packet carries a sending timestamp, and the packet header of the TWAMP packet carries information such as a source IP, a destination IP, a source UDP port number, and a destination UDP port number. The client mode refers to a mode of a User Network Interface (UNI) at a transmitting end, and may be, for example, a three-layer L3UNI, a two-layer UNI, or a bridging two-layer UNI.
Step 502, configuring a reflection message recovery rule at the first device and a second device at the TWAMP transmitting end;
wherein, the feature words of the reflection message recovery rule include at least one of the following: destination IP, source IP, destination UDP port number, source UDP port number, VPNID, IP DSCP.
The reflection message recovery rule is used for identifying and checking the content of the reflection message after receiving the reflection message of the TWAMP message. For example, when the first device receives a reflection packet after sending the TWAMP packet, it recognizes that the source IP + destination IP of the reflection packet is consistent with the source IP + destination IP in the reflection packet recycling rule, and may determine that the reflection packet is the reflection packet of the TWAMP packet.
The reflection message recovery rule can be automatically generated or configured and generated, and can be formed by mutually combining a source IP, a destination IP, a source UDP port number, a destination UDP port number and the like.
Such as: the reflection packet recycling rule may be automatically generated according to the contents of the TWAMP packet sending information configured in step 501, for example, an IP address, an MAC address, and a UDP port number in the TWAMP packet sending information may be automatically configured as a feature word in the reflection packet recycling rule, and specifically, for example, a source IP address, a source MAC address, and a source UDP port number in the TWAMP packet sending information may be directly configured as a destination IP address, a destination MAC address, and a destination UDP port number in the reflection packet recycling rule.
For example, the reflection packet recycling rule may also be configured by configuration, for example, the reflection packet recycling rule may be generated directly according to configuration information of a user, and specifically, for example, a feature word in the reflection packet recycling rule may be directly configured: a destination IP address, a destination MAC address, a destination UDP port number, etc.
The first device and the second device are different network element devices of a transmitting end, and the first device and the second device are connected through a communication channel and can exchange information. Meanwhile, clock synchronization needs to be maintained between the first device and the second device. Because the first device can be used as a transmitting device of a transmitting end and can also be used as a recovery device at the same time, that is, the first device can send the TWAMP message and can recover the reflection message, the first device needs to configure the TWAMP message sending information and the reflection message recovery rule; and if the second device is only used as the recovery device of the reflection message, only the recovery rule of the reflection message can be configured. Certainly, the second device may also be a transmitting device and a recovering device at the transmitting end, at this time, the TWAMP message sending information and the reflection message recovering rule corresponding to the second device need to be configured for the second device, and if the recovering device of the second device is another device, the corresponding reflection message recovering rule may be configured on the another device, and meanwhile, the second device and the another device are also connected through a communication channel, and clock synchronization is maintained.
Step 503, configuring TWAMP message reflection information at a third device of the TWAMP reflection end;
wherein the TWAMP packet reflection information includes at least one of:
IP address, MAC address, UDP port number, packet mode, client mode, reflection mode.
The TWAMP message reflection information is used for identifying the received TWAMP message content, and generating and reflecting a reflection message of the TWAMP message. For example, after receiving a TWAMP message from a transmitting end, the TWAMP identifies the message content, exchanges mac address, ip address and udp port in the message content according to the reflection mode, puts a receiving timestamp and a transmitting timestamp to generate a reflection message, and sends the reflection message back to the transmitting end. Specifically, for example, the TWAMP packet carries a sending timestamp, and the reflection packet carries the sending timestamp and the receiving timestamp of the TWAMP packet, and a sending timestamp of itself; and converting the source mac address, the source ip address and the source udp port of the TWAMP packet into the destination mac address, the destination ip address and the destination udp port of the reflection packet, and converting the destination mac address, the destination ip address and the destination udp port of the TWAMP packet into the source mac address, the destination ip address and the source udp port of the reflection packet.
Specifically, a TWAMP message reflector may be configured in the third device, where the TWAMP message reflector reflects a message according to the TWAMP message reflection information.
Step 504, the first device sends a second TWAMP packet to the third device through a fifth device;
the first equipment and the third equipment are connected through the fifth equipment, and meanwhile, the first equipment is also connected with the third equipment through the second equipment and the fourth equipment in sequence. The first device and the second device are three-layer packet transport network (L3 PTN) devices; the third device is a layer two packet transport network (L2 PTN) device, and the fourth device and the fifth device are layer two L2/layer three L3 bridging devices.
Wherein, the sending, by the first device, the second TWAMP packet to the third device through the fifth device includes:
and generating and sending a second TWAMP message to the third equipment through the fifth equipment according to the TWAMP message sending information.
Step 505, after receiving the second TWAMP packet through a fifth device, the third device reflects a reflection packet of the second TWAMP packet to the first device through the fifth device;
wherein the reflecting, by the fifth device, a reflection packet (which may also be referred to as a second packet) of the second TWAMP packet to the first device includes:
And identifying the content of the second TWAMP message according to the TWAMP message reflection information, and generating and reflecting a reflection message of the second TWAMP message to the first equipment through the fifth equipment.
Step 506, after receiving the reflection packet of the second TWAMP packet, the first device determines a detection result between the first device and the third device according to the reflection packet of the second TWAMP packet;
wherein the determining a detection result between the first device and the third device according to the reflected packet of the second TWAMP packet includes:
identifying and checking the content of the reflection message of the second TWAMP message according to the reflection message recovery rule, wherein the reflection message of the second TWAMP message comprises a sending timestamp of the reflection message of the second TWAMP message, a sending timestamp and a receiving timestamp of the second TWAMP message;
determining the time delay and/or the time delay jitter between the first device and the third device according to the time for receiving the reflection message of the second TWAMP message, the sending time stamp of the reflection message of the second TWAMP message, and the sending time stamp and the receiving time stamp of the second TWAMP message;
Or identifying and checking the content of the reflection message of the second TWAMP message according to the reflection message recovery rule;
and determining connectivity and/or packet loss rate between the first device and the third device according to the sending condition of the second TWAMP message and the receiving condition of the reflected message of the second TWAMP message.
The sending condition of the second TWAMP packet refers to a sending quantity of the second TWAMP packet, and the like, and the receiving condition of the reflection packet of the second TWAMP packet, that is, the second packet, refers to a receiving quantity of the second packet, and the like.
The first device can report the detection result to the user through a report form and other formats.
In this embodiment, when the fifth device fails, that is, when a path inside the network changes, so that the TWAMP packet is no longer reflected back to a network element node (that is, the first device) where the transmitting end is located, the first device may not perform the TWAMP detection normally. In this embodiment, the following steps may be performed, when the fifth device fails, the first device may still perform TWAMP detection normally, specifically as follows:
step 507, the first device sends a first TWAMP packet to the third device through the fourth device;
Specifically, the first TWAMP packet is sent to the third device through the second device and the fourth device, and the first TWAMP packet is only transparently transmitted and is not processed when passing through the second device.
The sending, by the first device, the first TWAMP packet to the third device at the TWAMP reflection end through the fourth device includes:
and generating and sending a first TWAMP message to the third equipment through the fourth equipment according to the TWAMP message sending information.
Step 508, after receiving the first TWAMP packet, the third device reflects a reflection packet of the first TWAMP packet to the second device through the fourth device;
wherein the reflecting, by the fourth device, the reflection packet (which may also be referred to as a first packet) of the first TWAMP packet to the second device includes:
identifying the content of the first TWAMP message according to the TWAMP message reflection information, and generating and reflecting a reflection message of the first TWAMP message to the second device through the fourth device.
Specifically, a TWAMP message reflector may be configured in the third device, where the TWAMP message reflector reflects a message according to the TWAMP message reflection information.
In step 509, after receiving the reflection packet of the first TWAMP packet through the fourth device, the second device determines, according to the first packet, a detection result between the first device and the third device, and determines a detection result between the first device and the third device.
Wherein the determining a detection result between the first device and the third device according to the reflected packet of the first TWAMP packet includes:
identifying and checking the content of the reflection message of the first TWAMP message according to the reflection message recovery rule, wherein the first message comprises a sending timestamp of the reflection message of the first TWAMP message, a sending timestamp and a receiving timestamp of the first TWAMP message;
and determining the time delay and/or the time delay jitter between the first device and the third device according to the time of receiving the reflection message of the first TWAMP message, the sending time stamp of the reflection message of the first TWAMP message, and the sending time stamp and the receiving time stamp of the first TWAMP message.
When the internal path of the network changes, the second device may calculate accurate delay information, and it is necessary to synchronize clocks of network elements where the first device and the second device are located.
Wherein the determining a detection result between the first device and the third device according to the reflected packet of the first TWAMP packet includes:
identifying and checking the content of the first message according to the reflection message recovery rule;
and determining connectivity and/or packet loss rate between the first device and the third device according to the sending condition of the first TWAMP message and the receiving condition of the first message.
When the network internal path changes, 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 a fourth device, before determining a detection result between the first device and the third device according to the first packet, the method further includes: and the second equipment informs the first equipment of receiving the reflection message of the first TWAMP message through the communication channel, and acquires the sending condition of the first TWAMP message.
The sending condition of the first TWAMP packet refers to the sending quantity of the first TWAMP packet, and the receiving condition of the first packet, which is the reflection packet of the first TWAMP packet, refers to the receiving quantity of the first packet.
The second device can directly report the detection result to the user through formats such as a report form and the like; the second device may also send the detection result to the first device through a communication channel, and the first device reports and presents the detection result to the user through a format such as a report. The Communication channel between the first device and the second device may communicate using an ICCP (Inter-sessions Communication Protocol) or the like.
Wherein, there is no fixed sequence between the steps 504 and 506 and the steps 507 and 509, the steps 504 and 506 can be executed when the fifth device is normal, and the steps 507 and 509 can be executed when the fifth device is abnormal.
In this embodiment, when the fifth device returns to normal, that is, when the internal path of the network changes again, so that the TWAMP message may be reflected back to the network element node (that is, the first device) where the transmitting end is located, the first device may return to step 504 and 506 to perform TWAMP detection when the first device can perform TWAMP detection normally.
According to the technical scheme provided by the embodiment, when the transmission path in the L2VPN or L3VPN network changes, and the TWAMP message is not reflected back to the network element node where the transmitting end is located, the TWAMP detection can still be normally performed, the TWAMP detection message can be prevented from being leaked to the external equipment of the transmission network, and the TWAMP function can be ensured to normally operate under various conditions.
In another embodiment of the present invention, the difference from the previous embodiment is that, in step 509, after the second device receives the reflected packet of the first TWAMP packet through the fourth device, the detection result between the first device and the third device is not determined locally according to the detection result between the first device and the third device determined by the first packet; instead, the second device sends the receiving condition of the first packet to the first device through a communication channel between the second device and the first device, and then the first device determines a detection result between the first device and the third device according to the sending condition of the first TWAMP packet and the receiving condition of the first packet.
Fig. 6 is a schematic flowchart of a detection method based on TWAMP according to another embodiment of the present invention, where this embodiment is applied to the packet transport network PTN architecture shown in fig. 7, and as shown in fig. 7, a network element ne (net element)1 is a two-layer packet transport network L2PTN device, which is used as a TWAMP reflection end device in this embodiment; NE2 and NE5 are two-layer L2/three-layer L3 bridging devices; NE3 and NE4 are L3PTN devices of a triple-layer packet transport network, and are used as TWAMP transmitting end devices in this embodiment, where NE3 is a transmitting device that transmits TWAMP packets and a recovering device that recovers reflected packets, and NE3 and NE4 are connected to a core network element through UNI, and are connected to XGW in this embodiment. The PTN equipment line card single board and the switching single board are assumed to operate normally. Before and after the service of the base station is opened, after the end-to-end related configuration of the L2VPN + L3VPN is completed, in order to detect whether the connectivity and the performance of a service path are normal, a TWAMP bidirectional active measurement protocol needs to be started.
As shown in fig. 6, the method includes:
step 601, configuring TWAMP message sending information and a reflection message recovery rule on an L3VPN service device NE 3;
the details of the TWAMP packet sending information and the reflection packet recovery rule refer to the above embodiments, and are not described herein again.
In this embodiment, specifically, for example, a TWAMP transmitting end packet format is configured, a UNI side board for packet transmission is selected, the TWAMP packet is in an "L3 UNI side packet transmission" mode, and a packet transmission period is configured to be 100ms, a source IP, a destination IP, a UPD port number, and dcsp information.
Step 602, configuring TWAMP message reflection information at L2VPN service equipment NE 1;
the TWAMP packet reflection information refers to the above embodiments for details, which are not described herein again.
In this embodiment, for example, the L2VPN service equipment NE1 configures a TWAMP reflection end, selects a UNI side board of the reflection end, and configures a source IP, a destination IP, a UPD port number, and dcsp information. These IP addresses and the like need to be consistent with the value of the transmitting NE 3.
Step 603, starting TWAMP message transmission of NE3 equipment;
in this embodiment, as shown by a line in fig. 7, a TWAMP message flow is sent from a UNI side single board of the NE3, passes through a metro L3VPN core network, passes through a bridge network element NE2 of the L2VPN and the L3VPN, and passes through an access and convergence L2VPN network to reach an NE1 network element connected to the base station, and the TWAMP message flow is extracted by a TWAMP reflector on the NE1 and reflected back.
In step 604, the NE3 determines the detection result between NE3 and NE1 according to the reflection packet.
In this embodiment, the TWAMP message stream is reflected back to the NE3 device by the reflection end, the NE3 device recovers the TWAMP message, calculates the time delay and the time delay jitter according to the timestamp carried in the message, determines connectivity and calculates the packet loss condition according to the message sending and receiving conditions, and reports and presents the calculation result to the user through a report or other format.
Fig. 8 is a schematic flowchart of a detection method based on TWAMP according to another embodiment of the present invention, where this embodiment is applied to the packet transport network PTN architecture shown in fig. 9, and as shown in fig. 9, a network element ne (net element)1 is a two-layer packet transport network L2PTN device, which is used as a TWAMP reflection end device in this embodiment; NE2 and NE5 are two-layer L2/three-layer L3 bridging devices; NE3 and NE4 are L3PTN devices of a three-layer packet transport network, and serve as TWAMP transmitting end devices in this embodiment, where NE3 serves as a transmitting device for transmitting TWAMP packets and a recovering device for recovering reflected packets, and NE4 serves as a recovering device for recovering reflected packets; NE3 and NE4 are connected to network elements of the core network, in this embodiment XGW, via UNIs. The PTN equipment line card single board and the switching single board are assumed to operate normally. Before and after the service of the base station is opened, after the end-to-end related configuration of the L2VPN + L3VPN is completed, in order to detect whether the connectivity and performance of the service path are normal, the TWAMP bidirectional active measurement protocol needs to be started, but when the bridging device NE2 fails, the service and TWAMP detection packet flow is sent to the client device from the backup path (NE3-NE4-NE5-NE 1).
As shown in fig. 8, the method includes:
step 801, configuring TWAMP message sending information and a reflection message recovery rule on an L3VPN service device NE 3;
the details of the TWAMP packet sending information and the reflection packet recovery rule refer to the above embodiments, and are not described herein again.
In this embodiment, for example, a TWAMP transmitting end packet format is configured on the L3VPN service device NE3, a UNI side board for packet transmission is selected, the TWAMP packet is in an "L3 UNI side packet transmission" mode, and a packet transmission period is configured to be 10ms, a source IP, a destination IP, a UPD port number, and dcsp information.
Step 802, configuring a reflection message recovery rule at an L3VPN service equipment NE 4;
in this embodiment, the TWAMP packet is only transparently transmitted in the NE4 device, and is not processed at all.
NE3 and NE4 are connected by a communication channel, as shown by the dashed line between NE3 and NE4 in fig. 9.
Step 803, configuring TWAMP message reflection information at L2VPN service equipment NE 1;
the TWAMP packet reflection information refers to the above embodiments for details, which are not described herein again.
In this embodiment, for example, the L2VPN service equipment NE1 configures a TWAMP reflection end, selects a UNI side board of the reflection end, and configures a source IP, a destination IP, a UPD port number, and dcsp information. These IP addresses and the like need to be consistent with the value of the transmitting NE 3.
Step 804, starting TWAMP message transmission of NE3 equipment;
in this embodiment, as shown by a line in fig. 9, a TWAMP message flow is sent from a UNI side single board of the NE3, passes through a metro L3VPN core network, passes through a bridge network element NE5 of the L2VPN and the L3VPN, and passes through an access and convergence L2VPN network to reach an NE1 network element connected to the base station, and the TWAMP message flow is extracted by a TWAMP reflector on the NE1 and reflected back.
In step 805, the NE4 determines the detection result between NE3 and NE1 according to the reflection packet.
In this embodiment, the TWAMP packet stream is reflected to the NE4 device by the reflection end, the NE4 device recovers the TWAMP packet, notifies the NE3 through the communication channel, calculates the time delay and the time delay jitter according to the timestamp carried in the packet, determines connectivity and calculates packet loss according to the packet sending condition acquired from the NE3 and the reception condition of the reflection packet of the device, and reports and presents the calculation result to the user through formats such as a report.
According to the technical scheme provided by the embodiment of the invention, the sending and recycling functions of the TWAMP sending end are separated, and a mechanism that the sending end receives the reflected message is realized in a distributed mode, so that when the TWAMP message is not reflected back to the equipment where the sending end is located due to the change of a transmission path in an L2VPN or an L3VPN network, the TWAMP detection function is disabled, and the TWAMP detection message is prevented from being leaked to the external equipment of the transmission network.
In another embodiment of the present invention, the difference from the previous embodiment is that, in step 805, after the NE4 device receives the reflection packet through the NE4 device 5, the detection result between the NE3 device and the NE1 device is not determined locally; instead, the NE4 device sends the receiving condition of the reflection packet to the NE3 device through a communication channel between the NE3 device, and then the NE3 device determines the detection result between the NE3 device and the NE1 device according to the sending condition of the reflection packet and the receiving condition of the TWAMP packet.
Fig. 10 is a schematic structural diagram of a second device according to an embodiment of the present invention, and as shown in fig. 10, the second device is applied to a TWAMP transmitting end, and includes:
a receiving unit, configured to receive a first packet through a fourth device, where the first packet is a reflection packet of the first TWAMP packet sent by the first device at the TWAMP transmitting end to a third device at a TWAMP reflecting end through the fourth device;
a determining unit, configured to determine a detection result between the first device and the third device according to the first packet; or, the TWAMP sending module is configured to send a receiving condition of the first packet to the first device, so that the first device determines a detection result between the first device and the third device according to the sending condition of the first TWAMP packet and the receiving condition of the first packet.
Wherein, a reflection message recovery rule is configured on the second device, and a feature word of the reflection message recovery rule includes at least one of the following: a destination IP (Internet Protocol Address), a source IP, a destination UDP (User Datagram Protocol) port number, a source UDP port number, a VPNID (Virtual Private Network identification number), and an IP DSCP (Internet Protocol Differentiated Services Code Point).
Wherein clock synchronization is maintained between the first device and the second device;
the determining a detection result between the first device and the third device according to the first packet includes:
identifying and checking the content of the first message according to the reflection message recovery rule, wherein the first message comprises a sending timestamp of the first message, a sending timestamp and a receiving timestamp of the first TWAMP message;
and determining the time delay and/or the time delay jitter between the first device and the third device according to the time for receiving the first message, the sending time stamp of the first message, and the sending time stamp and the receiving time stamp of the first TWAMP message.
The second equipment is connected with the first equipment through a communication channel;
the device also includes: a sending unit, configured to send the time delay and/or the time delay jitter to the first device through the communication channel.
The second equipment is connected with the first equipment through a communication channel; the device also includes:
an obtaining unit, configured to obtain, after the second device receives the first packet through a fourth device, a sending condition of the first TWAMP packet to the first device through the communication channel before determining a detection result between the first device and the third device according to the first packet.
Wherein the determining a detection result between the first device and the third device according to the first packet includes
Identifying and checking the content of the first message according to the reflection message recovery rule;
and determining connectivity and/or packet loss rate between the first device and the third device according to the sending condition of the first TWAMP message and the receiving condition of the first message.
And sending the connectivity and/or the packet loss rate to the first equipment through the communication channel.
The second equipment is connected with the first equipment through a communication channel;
the device also includes: a sending unit, configured to send, by the second device, a reception condition of the first packet to the first device through the communication channel after the second device receives the first packet through a fourth device.
The first device and the second device are three-layer packet transport network (L3 PTN) devices;
the third device is a two-layer packet transport network (L2 PTN) device, and the fourth device is a two-layer L2/three-layer L3 bridging device.
The reflection message recycling 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 according to an embodiment of the present invention, and as shown in fig. 11, the first device is applied to a TWAMP transmitting end, and includes:
a sending unit, configured to send a first TWAMP packet to a third device at a TWAMP reflection end through a fourth device, so that the third device reflects a first packet to a second device at the TWAMP transmission end through the fourth device, where the first packet is a reflection packet of the first TWAMP packet;
A receiving unit, configured to receive, through a communication channel between the second device and the second device, a detection result between the first device and the third device, where the detection result is sent by the second device and is determined by the second device according to a received first packet; or, receiving a receiving condition of the first packet sent by the second device through a communication channel between the first device and the second device, and determining a detection result between the first device and the third device according to the sending condition of the first TWAMP packet and the receiving condition of the first packet.
The receiving unit is further configured to receive, after the first device sends a first TWAMP packet to a third device at a TWAMP reflection end through a fourth device, and before a detection result between the first device and the third device sent by the second device is received, a first request through the communication channel, where the first request is sent after the second device receives the first packet, and the first request is used to obtain a sending condition of the first TWAMP packet;
the sending unit is further configured to send a sending condition of the first TWAMP packet to the second device.
Wherein the detection result between the first device and the third device comprises:
a time delay and/or a time delay jitter between the first device and the third device,
and/or connectivity and/or packet loss rate between the first device and the third device.
The sending unit is further configured to send a second TWAMP packet to the third device through a fifth device, so that the third device reflects a second packet to the first device through the fifth device, where the second packet is a reflected packet of the second TWAMP packet;
the receiving unit is further configured to receive a second packet through the fifth device; and determining a detection result between the first equipment and the third equipment according to the second message.
The first device is configured with TWAMP message sending information, where the TWAMP message sending information includes at least one of the following:
IP Address, MAC Address (Media Access Control Address), UDP port number, packet mode, packet enable, client mode, and packet cycle.
The sending, by the first device, the first TWAMP packet to the third device at the TWAMP reflection end through the fourth device includes:
Generating and sending a first TWAMP message to the third equipment through the fourth equipment according to the TWAMP message sending information;
the first device sends a second TWAMP packet to the third device through a fifth device, including:
and generating and sending a second TWAMP message to the third equipment through the fifth equipment according to the TWAMP message sending information.
Wherein, a reflection message recovery rule is configured on the first device, and a feature word of the reflection message recovery rule includes at least one of the following: destination IP, source IP, destination UDP port number, source UDP port number, VPNID, IP DSCP.
Wherein the determining, by the first device, the detection result between the first device and the third device according to the second packet includes:
the first equipment identifies and checks the content of the second message according to the reflection message recovery rule, wherein the second message comprises a sending timestamp of the second message, a sending timestamp and a receiving timestamp of the second TWAMP message;
and determining the time delay and/or the time delay jitter between the first device and the third device according to the time for receiving the second message, the sending time stamp of the second message, and the sending time stamp and the receiving time stamp of the second TWAMP message.
Wherein the determining, by the first device, the detection result between the first device and the third device according to the second packet includes:
identifying and checking the content of the second message according to the reflection message recovery rule;
and determining connectivity and/or packet loss rate between the first device and the third device according to the sending condition of the second TWAMP message and the receiving condition of the second message.
The first device and the second device are three-layer packet transport network (L3 PTN) devices;
the third device is a layer two packet transport network (L2 PTN) device, and the fourth device and the fifth device are layer two L2/layer three L3 bridging devices.
Fig. 12 is a schematic structural diagram of a third device according to an embodiment of the present invention, and as shown in fig. 12, the third device is applied to a TWAMP reflection end, and includes:
the receiving unit is used for receiving a first TWAMP message sent by first equipment at a TWAMP transmitting end through fourth equipment;
a reflecting unit, configured to reflect, after receiving the first TWAMP packet, the first packet to a second device at the TWAMP transmitting end through the fourth device, so that the second device determines, according to the first packet, a detection result between the first device and the third device, where the first packet is a reflected packet of the first TWAMP packet.
Wherein, the third device is configured with TWAMP packet reflection information, and the TWAMP packet reflection information includes at least one of the following:
IP address, MAC address, UDP port number, packet mode, client mode, reflection mode.
Wherein the reflecting, by the fourth device, the first packet to the second device at the TWAMP transmitting end includes:
and identifying the content of the first TWAMP message according to the TWAMP message reflection information, and generating and reflecting the first message to the second device through the fourth device.
The receiving unit is further configured to receive, by a fifth device, a second TWAMP packet sent by the first device;
the reflection unit is further configured to reflect, after receiving the second TWAMP packet, a second packet to the first device through the fifth device, so that the first device determines a detection result between the first device and the third device according to the second packet, where the second packet is a reflected packet of the second TWAMP packet.
Wherein the reflecting, by the fifth device, the second packet to the first device includes:
and identifying the content of the second TWAMP message according to the TWAMP message reflection information, and generating and transmitting the second message to the first equipment through the fifth equipment.
The first device and the second device are three-layer packet transport network (L3 PTN) devices;
the third device is a layer two packet transport network (L2 PTN) device, and the fourth device and the fifth device are layer two L2/layer three L3 bridging devices.
Fig. 13 is a schematic structural diagram of a detection system based on a two-way active measurement protocol TWAMP according to an embodiment of the present invention, as shown in fig. 13, the system includes:
the TWAMP comprises a TWAMP transmitting end and a TWAMP reflecting end, wherein the TWAMP transmitting end comprises a first device and a second device, and the TWAMP reflecting end comprises a third device;
the first device is configured to send a first TWAMP packet to the third device through a fourth device;
the third device is configured to, after receiving the first TWAMP packet, reflect a first packet to the second device through the fourth device, where the first packet is a reflected packet of the TWAMP packet;
the second device is configured to receive the first packet, and determine a detection result between the first device and the third device according to the first packet, or send a receiving condition of the first packet to the first device, and the first device is further configured to determine a detection result between the first device and the third device according to a sending condition of the first TWAMP packet and a receiving condition of the first packet.
The first device is further configured to send a second TWAMP packet to the third device through a fifth device;
the third device is further configured to, after receiving the second TWAMP packet, reflect a second packet to the first device through the fifth device, where the second packet is a reflected packet of the second TWAMP packet;
the first device is further configured to receive the second packet, and determine a detection result between the first device and the third device according to the second packet.
Wherein clock synchronization is maintained between the first device and the second device.
The first device and the second device are three-layer packet transport network (L3 PTN) devices;
the third device is a layer two packet transport network (L2 PTN) device, and the fourth device and the fifth device are layer two/layer three L2/L3 bridging devices.
The embodiment of the present invention further provides a second device, which is applied to a TWAMP transmitting end, and includes a memory, a processor, and a computer program stored on the memory and capable of running on the processor, where the computer program, when executed by the processor, implements any one of the detection methods based on a TWAMP of a bidirectional active measurement protocol, which is executed by the second device.
The embodiment of the present invention further provides a first device, which is applied to a TWAMP transmitting end, and includes a memory, a processor, and a computer program that is stored on the memory and can be run on the processor, where the computer program, when executed by the processor, implements any one of the detection methods based on a TWAMP of a bidirectional active measurement protocol, which is executed by the first device.
The embodiment of the present invention further provides a third device, which is applied to a TWAMP reflection end, and includes a memory, a processor, and a computer program that is stored on the memory and can be run on the processor, where when the computer program is executed by the processor, the third device implements any one of the detection methods based on a TWAMP according to a bidirectional active measurement protocol.
An embodiment of the present invention further provides a computer-readable storage medium, where an information processing program is stored on the computer-readable storage medium, and when the information processing program is executed by a processor, the information processing program implements any of the steps of the bidirectional active measurement protocol TWAMP-based detection method described above.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.

Claims (10)

1. A detection method based on a two-way active measurement protocol TWAMP comprises the following steps:
a second device at a TWAMP transmitting end receives a first message through a fourth device, wherein the first message is a reflection message of the first TWAMP message sent by the first device at the TWAMP transmitting end to a third device at a TWAMP reflection end through the fourth device;
determining a detection result between the first device and the third device according to the first message; or, sending a receiving condition of the first packet to the first device, so that the first device determines a detection result between the first device and the third device according to the sending condition of the first TWAMP packet and the receiving condition of the first packet.
2. The detection method according to claim 1,
a reflection message recovery rule is configured on the second device, and a feature word of the reflection message recovery rule includes at least one of the following: a destination internet protocol address IP, a source IP, a destination User Datagram Protocol (UDP) port number, a source UDP port number, a Virtual Private Network Identifier (VPNID) and an internet protocol differentiated service code point (IP DSCP).
3. The detection method according to claim 2,
Clock synchronization is kept between the first device and the second device;
the determining a detection result between the first device and the third device according to the first packet includes:
identifying and checking the content of the first message according to the reflection message recovery rule, wherein the first message comprises a sending timestamp of the first message, a sending timestamp and a receiving timestamp of the first TWAMP message;
and determining the time delay and/or the time delay jitter between the first device and the third device according to the time for receiving the first message, the sending time stamp of the first message, and the sending time stamp and the receiving time stamp of the first TWAMP message.
4. The detection method according to claim 2,
the second equipment is connected with the first equipment through a communication channel;
after the second device receives the first packet through a fourth device, before determining a detection result between the first device and the third device according to the first packet, the method further includes:
and the second equipment acquires the sending condition of the first TWAMP message from the first equipment through the communication channel.
5. The method according to claim 4, wherein the determining the detection result between the first device and the third device according to the first packet includes
Identifying and checking the content of the first message according to the reflection message recovery rule;
and determining connectivity and/or packet loss rate between the first device and the third device according to the sending condition of the first TWAMP message and the receiving condition of the first message.
6. A detection method based on a two-way active measurement protocol TWAMP comprises the following steps:
a first device at a TWAMP transmitting end sends a first TWAMP message to a third device at a TWAMP reflecting end through a fourth device, so that the third device reflects the first message to a second device at the TWAMP transmitting end through the fourth device, wherein the first message is a reflected message of the first TWAMP message;
receiving a detection result between the first device and the third device, which is sent by the second device, through a communication channel between the second device and the third device, wherein the detection result between the first device and the third device is determined by the second device according to a received first message;
or, receiving a receiving condition of the first packet sent by the second device through a communication channel between the first device and the second device, and determining a detection result between the first device and the third device according to the sending condition of the first TWAMP packet and the receiving condition of the first packet.
7. A detection method based on a two-way active measurement protocol TWAMP comprises the following steps:
the first device of the TWAMP transmitting end sends a first TWAMP message to a third device of the TWAMP reflecting end through a fourth device;
after receiving the first TWAMP message, the third device reflects a first message to a second device at the TWAMP transmitting end through the fourth device, where the first message is a reflected message of the TWAMP message;
the second equipment receives the first message and determines a detection result between the first equipment and the third equipment according to the first message; or, sending a receiving condition of the first packet to the first device, and the first device determining, according to the sending condition of the first TWAMP packet and the receiving condition of the first packet, a detection result between the first device and the third device.
8. A second device, applied to a TWAMP transmitting end, comprising:
a receiving unit, configured to receive a first packet through a fourth device, where the first packet is a reflection packet of the first TWAMP packet sent by the first device at the TWAMP transmitting end to a third device at a TWAMP reflecting end through the fourth device;
A determining unit, configured to determine a detection result between the first device and the third device according to the first packet; or, the TWAMP sending module is configured to send a receiving condition of the first packet to the first device, so that the first device determines a detection result between the first device and the third device according to the sending condition of the first TWAMP packet and the receiving condition of the first packet.
9. A first device, applied to a TWAMP transmitting end, includes:
a sending unit, configured to send a first TWAMP packet to a third device at a TWAMP reflection end through a fourth device, so that the third device reflects a first packet to a second device at the TWAMP transmission end through the fourth device, where the first packet is a reflection packet of the first TWAMP packet;
a receiving unit, configured to receive, through a communication channel between the second device and the second device, a detection result between the first device and the third device, where the detection result is sent by the second device and is determined by the second device according to a received first packet; or, receiving a receiving condition of the first packet sent by the second device through a communication channel between the first device and the second device, and determining a detection result between the first device and the third device according to the sending condition of the first TWAMP packet and the receiving condition of the first packet.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon an information processing program, which when executed by a processor, implements the steps of the bidirectional active measurement protocol TWAMP based detection method according to any one of claims 1 to 6.
CN201910440095.1A 2019-05-24 2019-05-24 TWAMP-based detection method and related equipment Pending CN111988193A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910440095.1A CN111988193A (en) 2019-05-24 2019-05-24 TWAMP-based detection method and related equipment
PCT/CN2020/091837 WO2020238799A1 (en) 2019-05-24 2020-05-22 Twamp-based detection method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910440095.1A CN111988193A (en) 2019-05-24 2019-05-24 TWAMP-based detection method and related equipment

Publications (1)

Publication Number Publication Date
CN111988193A true CN111988193A (en) 2020-11-24

Family

ID=73437065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910440095.1A Pending CN111988193A (en) 2019-05-24 2019-05-24 TWAMP-based detection method and related equipment

Country Status (2)

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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140169183A1 (en) * 2012-12-14 2014-06-19 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for augmenting twamp
CN106936661A (en) * 2015-12-31 2017-07-07 华为技术有限公司 A kind of network monitoring method, apparatus and system
CN107517137A (en) * 2016-06-16 2017-12-26 中兴通讯股份有限公司 A kind of quality of service measuring method and device
CN107579869A (en) * 2016-07-04 2018-01-12 华为技术有限公司 Network performance detection method and the network equipment
CN107995015A (en) * 2016-10-27 2018-05-04 中兴通讯股份有限公司 The method and apparatus for obtaining the end-to-end detection paths of TWAMP

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106549819B (en) * 2015-09-22 2019-12-17 华为技术有限公司 connectivity detection method, controller and equipment
US10542577B2 (en) * 2017-08-16 2020-01-21 Nicira, Inc. Connectivity checks in virtualized computing environments

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140169183A1 (en) * 2012-12-14 2014-06-19 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for augmenting twamp
CN106936661A (en) * 2015-12-31 2017-07-07 华为技术有限公司 A kind of network monitoring method, apparatus and system
CN107517137A (en) * 2016-06-16 2017-12-26 中兴通讯股份有限公司 A kind of quality of service measuring method and device
CN107579869A (en) * 2016-07-04 2018-01-12 华为技术有限公司 Network performance detection method and the network equipment
CN107995015A (en) * 2016-10-27 2018-05-04 中兴通讯股份有限公司 The method and apparatus for obtaining the end-to-end detection paths of TWAMP

Also Published As

Publication number Publication date
WO2020238799A1 (en) 2020-12-03

Similar Documents

Publication Publication Date Title
US11451459B2 (en) Multi-hop reflector sessions
US11223514B2 (en) Method and system of a dynamic high-availability mode based on current wide area network connectivity
EP3691185B1 (en) Method for processing message, device, and system
US9876596B2 (en) Method and device for detecting fault in synchronization link
CN106936661B (en) Network monitoring method, device and system
KR101206637B1 (en) Establishing pseudowires in packet switching networks
CN103580894A (en) Method, device and system for operation, administration and maintenance (OAM) configuration
CN101808022A (en) Method and device for realizing bidirectional forwarding detection
US20170272358A1 (en) Method, Device, and System for Deferring Switchback
CN107517117B (en) IP layer OAM (operation administration and maintenance) alarm method and device and network node
US9300490B2 (en) Packet forwarding method and network device
JP5352502B2 (en) Packet communication system and packet communication apparatus control method
WO2015184868A1 (en) Device and method for detecting signal failure in service layer
US20230318970A1 (en) Packet Processing Method and Apparatus
CN108599984B (en) Method for sharing port state, access equipment and system for supporting dual-homing protection
CN111988193A (en) TWAMP-based detection method and related equipment
CN107666671B (en) Method and device for detecting wrong connection based on TWAMP
CN112202634B (en) Network link fault detection and transmission method and system
CN112737949B (en) Fault detection method and device, electronic equipment and computer readable medium
CN113037622A (en) System and method for preventing BFD oscillation
US20240022467A1 (en) Extending active measurement protocol with oam channel
CN111106963B (en) Method for realizing circuit simulation service and distributed system
CN102624746A (en) Method, source port, destination port and system for detecting configuration of GRE (generic route encapsulation) headers at two ends of tunnel
CN111901182B (en) Flow forwarding method and network equipment
CN116264651A (en) Service creation method, device, equipment and medium of optical transport network equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201124