CN109995603B - Method and device for measuring packet loss under Tag model and electronic equipment - Google Patents

Method and device for measuring packet loss under Tag model and electronic equipment Download PDF

Info

Publication number
CN109995603B
CN109995603B CN201711484338.9A CN201711484338A CN109995603B CN 109995603 B CN109995603 B CN 109995603B CN 201711484338 A CN201711484338 A CN 201711484338A CN 109995603 B CN109995603 B CN 109995603B
Authority
CN
China
Prior art keywords
vlan
tag
message
reflection
identifier
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.)
Active
Application number
CN201711484338.9A
Other languages
Chinese (zh)
Other versions
CN109995603A (en
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.)
China Mobile Communications Group Co Ltd
China Mobile Group Shandong Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Shandong Co Ltd
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 China Mobile Communications Group Co Ltd, China Mobile Group Shandong Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201711484338.9A priority Critical patent/CN109995603B/en
Publication of CN109995603A publication Critical patent/CN109995603A/en
Application granted granted Critical
Publication of CN109995603B publication Critical patent/CN109995603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The invention provides a method, a device and equipment for measuring packet loss under a Tag model. The method comprises the following steps: receiving a TWAMP measurement message sent by a transmitting terminal; adding local VLAN Tag information to a reserved field of the TWAMP measurement message to form a reflection message, and then sending the reflection message so that a transmitting end can restore the reflection message through the VLAN Tag information and then measure packet loss; the VLAN Tag information comprises a Tag action identifier and a VLAN value. According to the invention, the VLAN Tag identification and the Tag VLAN value are added in the reflection message under the Tag business model, so that the transmitting end can confirm whether the reflecting end has Tag action or not and whether the VLAN is added at the reflecting end or not, the transmitting end can analyze and check the returned message, the performance of the packet loss or the packet loss rate of the test business can be accurately obtained, and the accuracy of the packet loss measurement is greatly improved.

Description

Method and device for measuring packet loss under Tag model and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for measuring packet loss under a Tag model, and an electronic device.
Background
The Two-Way Active Measurement Protocol TWAMP (Two-Way Active Measurement Protocol) provides a flexible approach for establishing a monitoring session and exchanging information between a sender and a receiver of a monitoring data packet, and comprises Two groups of protocols: a set of protocols, called control protocols, is used to establish performance measurement sessions; another set of protocols is used for the transmission and reception of performance measurement probes, called test session protocols. The TWAMP test may measure packet loss, delay, and jitter indicators for both directions of the network.
The TWAMP test is for a specific service entry, after the transmitting end sends a measurement packet, the transmission end sends the measurement packet to the reflecting end on the NNI line, after the reflecting end receives the service packet and the measurement packet, the service packet is sent to the UNI side of the client, the source IP address, the destination IP address, the source port number and the destination port number of the measurement packet of the TWAMP are exchanged, and then the exchanged measurement packet is sent back to the transmitting end, thereby completing a complete measurement process, as shown in fig. 1.
In the current TWAMP measurement model of the packet transport network, a virtual local area network Tag VLAN Tag is configured for a service in the call-up direction (from the user side to the network side) or the call-down direction (from the network side to the user side) of the reflection end, Tag actions change VLAN information carried in a message, and when the reflection end finally returns the message, the reflection end needs to restore the VLAN information of the Tag action change message, and return the restored message to the transmission end. The above measurement process has the following problems: the VLAN configuration action is configured in the following direction, for example, deletion is performed, that is, a service packet VLAN sent by the reflection end is deleted and then sent to a UNI (User Network Interface), because the TWAMP measurement packet and the service packet have the same logic, the VLAN in the TWAMP measurement packet is also deleted, and the deleted VLAN needs to be restored in the measurement packet returned to the transmission end, so that the transmission end considers that the packet returned by the reflection end is correct only when receiving the packet returned by the reflection end, and the accuracy of calculated packet loss is not affected, and the specific process is shown in fig. 2.
However, because the reflective end device sometimes processes the abnormal or the chip VLAN Tag cannot restore the message before the Tag action in some scenes, the VLAN information is asymmetric with the transmitting end when the reflective end returns the message, and after the transmitting end receives the message returned by the reflective end, the transmitting end considers that the message is not an expected message and discards the expected message, which results in greatly reducing the accuracy of the performance of calculating packet loss and the like by the transmitting end.
Disclosure of Invention
The present invention provides a method, an apparatus and an electronic device for packet loss measurement under Tag model, which overcome the above problems or at least partially solve the above problems.
According to an aspect of the present invention, there is provided a method for measuring packet loss under a Tag model, including:
receiving a TWAMP measurement message sent by a transmitting terminal;
adding local VLAN Tag information to a reserved field of the TWAMP measurement message to form a reflection message, and then sending the reflection message so that a transmitting end can restore the reflection message through the VLAN Tag information and then measure packet loss;
the VLAN Tag information comprises a Tag action identifier and a VLAN value.
According to another aspect of the present invention, there is also provided a method for measuring packet loss under a Tag model, including:
receiving a reflection message sent by a reflection end;
analyzing VLAN Tag information in the reflection message; and restoring the reflection message according to the Tag action identifier and the VLAN value in the VLAN Tag information so as to measure packet loss.
According to another aspect of the present invention, there is also provided a device for measuring packet loss under a Tag model, including a first receiving module and a Tag information adding module;
the first receiving module is configured to receive a TWAMP measurement packet sent by a transmitting end;
the Tag information adding module is used for adding local VLAN Tag information to a reserved field of the TWAMP measurement message to form a reflection message and then sending the reflection message, so that a transmitting end can perform packet loss measurement after restoring the reflection message through the VLAN Tag information;
the VLAN Tag information comprises a Tag action identifier and a VLAN value.
According to another aspect of the present invention, there is also provided a device for measuring packet loss under a Tag model, including a second receiving module and a Tag information analyzing module,
the second receiving module is used for receiving the reflection message sent by the reflection end;
the Tag information analyzing module is used for analyzing VLAN Tag information in the reflection message, and restoring the reflection message according to a Tag action identifier and a VLAN value in the VLAN Tag information so as to measure packet loss.
According to another aspect of the present invention, there is also provided a reflective end device, including:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the method for measuring packet loss under Tag model according to the invention and the method of any optional embodiment thereof.
According to another aspect of the present invention, there is also provided a transmitting-end apparatus, including:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the method of the transmitting end of packet loss measurement under Tag model and the method of any optional embodiment of the method.
The invention provides a method for measuring packet loss under a Tag model, which increases VLAN Tag identification and Tag VLAN value in a reflection message under a Tag business model, so that a transmitting end can confirm whether a reflecting end has Tag action and whether the reflecting end increases VLAN. The method of the invention does not need to change the existing TWAMP protocol specification and flow, only needs to add the VLAN Tag identification and Tag VLAN value from the reflected message, can lead the transmitting end to analyze and check the returned message, accurately obtains the performance of the packet loss or the packet loss rate of the test service, and greatly improves the accuracy of the packet loss measurement.
Drawings
FIG. 1 is a schematic diagram of the architecture of a TWAMP protocol of the prior art;
FIG. 2 is a schematic view of a TWAMP model under the action of a prior art Tag;
fig. 3 is a schematic flow chart of a method for measuring packet loss under a Tag model at a reflection end in the embodiment of the present invention;
fig. 4 is a schematic flow chart of a method for measuring packet loss under a Tag model at a transmitting end in the embodiment of the present invention;
FIG. 5 is a schematic diagram of a frame of a reflective end device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a framework of a transmitting-end device according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
The embodiment of the invention solves the key problem of how to feed back the information of the message changed by the Tag action of the reflection end to the transmission end, thereby reducing the packet loss of the transmission end caused by the self processing logic defect of the reflection end.
To solve the problem, firstly, the processing logic of the packet switch chip at the reflection end for the VLAN Tag in the prior art is analyzed, please refer to table 1:
TABLE 1
Figure BDA0001534446710000051
A message received from a transmitting end is intended for the reflecting end in the down-call direction (i.e. from the NNI side to the UNI side), and the following two situations may occur.
In the first case: the "identification" (NNI) - - - - - "increase" (UNI) UNI side service rule only matches PORT (PORT), does not match relevant rules such as VLAN, and corresponds to the 4 processing modes of table 1, which are respectively mode 1 corresponding to sequence number 1, mode 2 corresponding to sequence number 2, mode 3 corresponding to sequence number 3, and mode 4 corresponding to sequence number 4.
According to the mode 1, under the condition of TWAMP message (without VLAN) at NNI side, a layer of VLAN is added to UNI side, the value is assumed to be A, the message measurement message of VLAN A is carried, and the packet switching chip at the reflection end can delete VLAN A.
According to the method 4, if the twimp packet at the NNI side carries a layer of VLAN, which is a layer of VLAN a, with B, the added VLAN may be deleted and the original VLAN may be retained.
According to the method 3, if the identification is "identification — addition", the chip does not add a layer of VLAN a, but the chip is deleted, so that the VLAN carried by the TWMAP message is deleted as B. That is because mode 1 and mode 3 are mutually exclusive in the above table. In table 1, the "behavior" and "action" in the second and third columns are the same in the mode 1 and the mode 3, but the "result after chip processing" in the fourth column is different in the result. The result of the method 1 is that the VLAN a in the "action" is added, but the result of the method 1 is that the VLAN a in the "action" is not added, and the VLAN B in the original message is retained.
In the second case: "identify" (NNI) -delete "(UNI), UNI-side traffic rules match only PORTs (PORTs), do not match relevant rules like VLAN.
When the NNI side service and TWAMP packet are downloaded with a layer of VLAN, the VLAN device cannot recognize the message (because recognition is not required, because the service rule on the UNI side is Port-based, it is not necessary to analyze whether there is a VLAN in the packet and the value of the VLAN), and the message is deleted directly by the "delete" action of the download. Since the TWAMP message does not have VLAN and VLAN value at all, the packet switching chip at the reflection end cannot restore (add) the VLAN, and therefore, the TWAMP message finally reflected from the NNI side has no VLAN. However, after the transmitting end receives the message returned by the transmitting end, the message is considered to be wrong, and the message is discarded.
Based on the above analysis, an embodiment of the present invention provides a method for measuring packet loss under a Tag model, including a reflection end method and a transmission end method.
Fig. 3 is a schematic flow chart of a method for measuring packet loss under a Tag model according to a reflection end method of the present invention, where the method for measuring packet loss under the Tag model shown in fig. 3 includes:
s100, receiving a TWAMP measurement message sent by a transmitting terminal;
s101, adding local VLAN Tag information to a reserved field of the TWAMP measurement message, forming a reflection message and then sending the reflection message, so that a transmitting end can restore the reflection message through the VLAN Tag information and then measure packet loss;
the VLAN Tag information comprises a Tag action identifier and a VLAN value.
The embodiment of the invention provides a method for measuring packet loss under a Tag model, which increases VLAN Tag identification and Tag VLAN value in a reflection message under a Tag business model, so that a transmitting end can confirm whether a reflecting end has Tag action and whether the reflecting end increases VLAN. The method of the invention does not need to change the existing TWAMP protocol specification and flow, only needs to add the VLAN Tag identification and Tag VLAN value from the reflected message, can lead the transmitting end to analyze and check the returned message, accurately obtains the performance of the packet loss or the packet loss rate of the test service, and greatly improves the accuracy of the packet loss measurement.
The method of the embodiment of the invention is particularly suitable for the condition that the message is discarded by the transmitting terminal due to the fact that the message returned is incorrect sometimes because of processing errors or after the VLAN Tag is configured by the service at the reflecting terminal.
Specifically, in the current TWAMP test message, the message format of the reflection end is as follows:
Figure BDA0001534446710000071
step S101, adding local VLAN Tag information to a reserved field of the TWAMP measurement packet, forming a reflection packet, and then sending the reflection packet, specifically including: and filling own action and VLAN Value information into the reserved field of the message by using the reserved field in Padding in the current message.
The VLAN Tag information comprises a Tag action identifier and a VLAN Value, and is respectively represented in the message through a Flag field and a VLAN Value field.
Specifically, the format of the reflection message is as follows:
Figure BDA0001534446710000081
specifically, the VLAN Tag information is configured with 3 bytes, where the Tag action identifier, i.e., Flag, occupies 1 byte, and the VLAN Value, i.e., VLAN Value, occupies 2 bytes.
In an optional embodiment, VLAN Tag information configured by the following method is added to the reserved field of the TWAMP measurement packet:
if the local test service is not configured with VLAN Tag, setting the Tag action identifier as an unconfigured identifier;
and if the local test service is configured with VLAN Tag, setting the Tag action identifier as a configured identifier, and setting the VLAN value according to the TWAMP measurement message, the local behavior configuration and the action configuration.
Specifically, the unconfigured flag may be set to 0, and the configured flag may be set to 1. If the test service corresponding to the reflection end is not configured with VLAN Tag, setting Flag to 0 in the reflection message; if the VLAN Tag is not configured for the test service corresponding to the reflection end, the Flag is set to be 1 in the reflection message, and meanwhile, the Value of the VLAN Value is set.
In other words, Flag is equal to 1, which indicates that there is a Tag action, Vlan Value is equal to a, which indicates that the reflection end adds a VALN a to the packet; and the Vlan Value is 0, which indicates that the reflection end does not add VALN to the message.
Specifically, according to table 1, if the local test service is configured with a VLAN Tag, the Tag action identifier is set as a configured identifier, and the VLAN value is set according to the TWAMP measurement packet, the local behavior configuration, and the action configuration, which specifically includes:
if the TWAMP measurement message has no VLAN information, the local behavior configuration is identification, and the action configuration is VLAN increase, after the exchange chip increases the VLAN, the Tag action identifier is set as the configured identifier, and the VLAN value is set as the VLAN value increased by the exchange chip;
if the TWAMP measurement message has no VLAN information, the local behavior is configured to be unidentified, and the action is configured to be added with VLAN, after the exchange chip is added with VLAN, the Tag action identifier is set as a configured identifier, and the VLAN value is set as the VLAN value added by the exchange chip;
if the TWAMP measurement message contains VLAN information, local behavior configuration is identification, and action configuration is VLAN increase, the Tag action identifier is set as a configured identifier and the VLAN value is set as 0 after the exchange chip increases the VLAN;
if the TWAMP measurement message contains VLAN information, the local behavior is configured to be unrecognized, and the action is configured to be added with VLAN, after the exchange chip adds VLAN, the Tag action identifier is set as a configured identifier, and the VLAN value is set as the VLAN value added by the exchange chip.
For example, for the two cases mentioned above where the mode 1 and the mode 3 are mutually exclusive, if there is no VLAN in the original measurement packet in the mode 1, after identifying that a layer of VLAN is added, the Flag of the reflection end packet may be set to 1, and meanwhile, the VLAN Value is filled with a, and after the transmission end resolves that the Flag is 1 and the VLAN Value is a, it may be determined that the reflection end is the VLAN added, and the packet is considered to be the reflection end and should not be discarded, and the detailed results are shown in the following table.
The results of the processing performed in the embodiment of the present invention with respect to table 1 are shown in table 2:
Figure BDA0001534446710000101
Figure BDA0001534446710000111
fig. 4 is a schematic flowchart of a method for measuring packet loss under a Tag model at a transmitting end in an embodiment of the present invention, where the method for measuring packet loss under the Tag model shown in fig. 4 includes:
s200, receiving a reflection message sent by a reflection end;
s201, analyzing VLAN Tag information in the reflection message; and restoring the reflection message according to the Tag action identifier and the VLAN value in the VLAN Tag information so as to measure packet loss.
In this embodiment, the reflected packet processed by the reflection end is identified, and the transmission end determines whether to discard the packet based on the VLAN Tag identifier and the Tag VLAN value in the reflected packet, so as to complete correct packet processing. Please refer to the description of the foregoing embodiments for the VLAN Tag information and the format of the reflection packet, which is not described herein again.
In an optional embodiment, the restoring the reflection packet according to the Tag action identifier and the VLAN value in the VLAN Tag information specifically includes:
if the Tag action identifier is not configured, directly taking the reflection message;
and if the Tag action identifier is a configured identifier, judging whether a VLAN is added to the reflection message at the reflection end according to the VLAN value.
Further, if the fact that the reflection end is added with the VLAN is judged and known, the added VLAN value is obtained according to the VLAN value in the VLAN Tag information.
Specifically, after the reflection enclosure is sent back to the transmitting end, the transmitting end may analyze information of Flag and VALN Value when analyzing the reflection packet, and determine whether the reflecting end changes the packet through the VALN Tag. If the Flag value is 0, the reflection end does not perform VLAN Tag action, and the transmission end is directly used; if the transmitting end confirms that the VALN Tag exists through the Flag bit, the transmitting end can restore the message, so that the phenomenon that the transmitting end discards the message and calculates performance data such as packet discarding and the like because the transmitting end cannot correctly process the message can be effectively avoided.
To sum up, in the measurement scheme of the Tag service model, the reflection end in the embodiment of the present invention does not need to change the existing TWAMP protocol specification and flow, and only needs to add the identifier of the VLAN Tag and the Tag VLAN value from the reflection packet, so that the transmission end can analyze and check the returned packet, accurately obtain the performance of the packet loss or the packet loss rate of the test service, and greatly improve the accuracy of the packet loss measurement.
The embodiment of the invention also provides a device for measuring packet loss under the Tag model, which comprises a first receiving module and a Tag information adding module;
the first receiving module is configured to receive a TWAMP measurement packet sent by a transmitting end;
the Tag information adding module is used for adding local VLAN Tag information to a reserved field of the TWAMP measurement message to form a reflection message and then sending the reflection message so that a transmitting end can restore the reflection message through the VLAN Tag information;
the VLAN Tag information comprises a Tag action identifier and a VLAN value.
The apparatus of the embodiment of the present invention may be used to implement the technical solution of the embodiment of the method for measuring packet loss in the Tag model shown in fig. 3, and the implementation principle and the technical effect are similar, which are not described herein again.
In an optional embodiment, the Tag information adding module configures the VLAN Tag information by:
if the local test service is not configured with VLAN Tag, setting the Tag action identifier as an unconfigured identifier;
and if the local test service is configured with VLAN Tag, setting the Tag action identifier as a configured identifier, and setting the VLAN value according to the TWAMP measurement message, the local behavior configuration and the action configuration.
In an optional embodiment, if the local test service is configured with a VLAN Tag, the Tag action identifier is set as a configured identifier, and the VLAN value is set according to the TWAMP measurement packet, the local behavior configuration, and the action configuration, specifically including:
if the TWAMP measurement message has no VLAN information, the local behavior configuration is identification, and the action configuration is VLAN increase, after the exchange chip increases the VLAN, the Tag action identifier is set as the configured identifier, and the VLAN value is set as the VLAN value increased by the exchange chip;
if the TWAMP measurement message has no VLAN information, the local behavior is configured to be unidentified, and the action is configured to be added with VLAN, after the exchange chip is added with VLAN, the Tag action identifier is set as a configured identifier, and the VLAN value is set as the VLAN value added by the exchange chip;
if the TWAMP measurement message contains VLAN information, local behavior configuration is identification, and action configuration is VLAN increase, the Tag action identifier is set as a configured identifier after a switching chip increases the VLAN, and the VLAN value is set;
if the TWAMP measurement message contains VLAN information, the local behavior is configured to be unrecognized, and the action is configured to be added with VLAN, after the exchange chip adds VLAN, the Tag action identifier is set as a configured identifier, and the VLAN value is set as the VLAN value added by the exchange chip.
Specifically, the VLAN Tag information is configured with 3 bytes, where the Tag action identifier occupies 1 byte, and the VLAN value occupies 2 bytes.
The embodiment of the invention also provides a device for measuring packet loss under the Tag model, which comprises a second receiving module and a Tag information analyzing module,
the second receiving module is used for receiving the reflection message sent by the reflection end;
the Tag information analyzing module is used for analyzing VLAN Tag information in the reflection message and restoring the reflection message according to a Tag action identifier and a VLAN value in the VLAN Tag information.
The apparatus of the embodiment of the present invention may be used to implement the technical solution of the method for measuring packet loss in the Tag model shown in fig. 4, and the implementation principle and the technical effect are similar, which are not described herein again.
In an optional embodiment, the Tag information parsing module is specifically configured to:
if the Tag action identifier is not configured, directly taking the reflection message;
and if the Tag action identifier is a configured identifier, whether the reflection end is added with the VLAN and the added VLAN value in the reflection message or not is judged according to the VLAN value.
Fig. 5 is a schematic diagram of a frame of a reflective end device according to an embodiment of the present invention.
Referring to fig. 5, the reflective end device includes: a processor (processor)501, a memory (memory)502, and a bus 503; wherein, the processor 501 and the memory 502 complete the communication with each other through the bus 503;
the processor 501 is configured to call program instructions in the memory 502 to perform the methods provided by the above-mentioned method embodiments, for example, including: receiving a TWAMP measurement message sent by a transmitting terminal; adding local VLAN Tag information to a reserved field of the TWAMP measurement message to form a reflection message, and then sending the reflection message to a transmitting end to restore the reflection message through the VLAN Tag information; the VLAN Tag information comprises a Tag action identifier and a VLAN value.
Another embodiment of the present invention discloses a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the above-mentioned method embodiments, for example, including: receiving a TWAMP measurement message sent by a transmitting terminal; adding local VLAN Tag information to a reserved field of the TWAMP measurement message to form a reflection message, and then sending the reflection message to a transmitting end to restore the reflection message through the VLAN Tag information; the VLAN Tag information comprises a Tag action identifier and a VLAN value.
Another embodiment of the invention provides a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform a method provided by the above method embodiments, for example, comprising: receiving a TWAMP measurement message sent by a transmitting terminal; adding local VLAN Tag information to a reserved field of the TWAMP measurement message to form a reflection message, and then sending the reflection message to a transmitting end to restore the reflection message through the VLAN Tag information; the VLAN Tag information comprises a Tag action identifier and a VLAN value.
Fig. 6 shows a schematic diagram of a framework of a transmitting-end device according to an embodiment of the present invention.
Referring to fig. 6, the transmitting-end apparatus includes: a processor (processor)601, a memory (memory)602, and a bus 603; wherein, the processor 601 and the memory 602 complete the communication with each other through the bus 603;
the processor 601 is configured to call program instructions in the memory 602 to perform the methods provided by the above-mentioned method embodiments, for example, including: receiving a reflection message sent by a reflection end; analyzing VLAN Tag information in the reflection message; and restoring the reflection message according to the Tag action identifier and the VLAN value in the VLAN Tag information.
Another embodiment of the present invention discloses a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the above-mentioned method embodiments, for example, including: receiving a reflection message sent by a reflection end; analyzing VLAN Tag information in the reflection message; and restoring the reflection message according to the Tag action identifier and the VLAN value in the VLAN Tag information.
Another embodiment of the invention provides a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform a method provided by the above method embodiments, for example, comprising: receiving a reflection message sent by a reflection end; analyzing VLAN Tag information in the reflection message; and restoring the reflection message according to the Tag action identifier and the VLAN value in the VLAN Tag information.
Those of ordinary skill in the art will understand that: the implementation of the above-described apparatus embodiments or method embodiments is merely illustrative, wherein the processor and the memory may or may not be physically separate components, i.e. may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for measuring packet loss under a Tag model is characterized by comprising the following steps:
receiving a TWAMP measurement message sent by a transmitting terminal;
adding local VLAN Tag information to a reserved field of the TWAMP measurement message to form a reflection message, and then sending the reflection message so that a transmitting end can restore the reflection message through the VLAN Tag information and then measure packet loss;
the VLAN Tag information comprises a Tag action identifier and a VLAN value.
2. The method of claim 1, wherein VLAN Tag information configured by the following method is added to the reserved field of the TWAMP measurement packet:
if the local test service is not configured with VLAN Tag, setting the Tag action identifier as an unconfigured identifier;
and if the local test service is configured with VLAN Tag, setting the Tag action identifier as a configured identifier, and setting the VLAN value according to the TWAMP measurement message, the local behavior configuration and the action configuration.
3. The method according to claim 2, wherein if the local test service is configured with a VLAN Tag, setting the Tag action identifier as a configured identifier, and setting the VLAN value according to the TWAMP measurement packet, the local behavior configuration, and the action configuration specifically includes:
if the TWAMP measurement message has no VLAN information, the local behavior configuration is identification, and the action configuration is VLAN increase, after the exchange chip increases the VLAN, the Tag action identifier is set as the configured identifier, and the VLAN value is set as the VLAN value increased by the exchange chip; the switching chip is a reflection end packet switching chip;
if the TWAMP measurement message has no VLAN information, the local behavior is configured to be unidentified, and the action is configured to be added with VLAN, after the exchange chip is added with VLAN, the Tag action identifier is set as a configured identifier, and the VLAN value is set as the VLAN value added by the exchange chip;
if the TWAMP measurement message contains VLAN information, local behavior configuration is identification, and action configuration is VLAN increase, the Tag action identifier is set as a configured identifier and the VLAN value is set as 0 after the exchange chip increases the VLAN;
if the TWAMP measurement message contains VLAN information, the local behavior is configured to be unrecognized, and the action is configured to be added with VLAN, after the exchange chip adds VLAN, the Tag action identifier is set as a configured identifier, and the VLAN value is set as the VLAN value added by the exchange chip.
4. The method of any of claims 1-3, wherein the VLAN Tag information is configured with 3 bytes, wherein the Tag action identifier is 1 byte and the VLAN value is 2 bytes.
5. A method for measuring packet loss under a Tag model is characterized by comprising the following steps:
receiving a reflection message sent by a reflection end, wherein the reflection message is formed by adding local VLAN Tag information to a reserved field of a TWAMP measurement message sent by a transmitting end by the reflection end;
analyzing VLAN Tag information in the reflection message; and restoring the reflection message according to the Tag action identifier and the VLAN value in the VLAN Tag information so as to measure packet loss.
6. The method according to claim 5, wherein the restoring the reflection packet according to the Tag action identifier and the VLAN value in the VLAN Tag information specifically includes:
if the Tag action identifier is not configured, directly taking the reflection message;
and if the Tag action identifier is a configured identifier, judging whether a VLAN is added to the reflection message at the reflection end according to the VLAN value.
7. A device for measuring packet loss under a Tag model is characterized by comprising a first receiving module and a Tag information adding module;
the first receiving module is configured to receive a TWAMP measurement packet sent by a transmitting end;
the Tag information adding module is used for adding local VLAN Tag information to a reserved field of the TWAMP measurement message to form a reflection message and then sending the reflection message, so that a transmitting end can perform packet loss measurement after restoring the reflection message through the VLAN Tag information;
the VLAN Tag information comprises a Tag action identifier and a VLAN value.
8. A device for measuring packet loss under a Tag model is characterized by comprising a second receiving module and a Tag information analyzing module,
the second receiving module is configured to receive a reflection packet sent by a reflection end, where the reflection packet is formed by adding local VLAN Tag information to a reserved field of a TWAMP measurement packet sent by a transmitting end by the reflection end;
the Tag information analyzing module is used for analyzing VLAN Tag information in the reflection message, and restoring the reflection message according to a Tag action identifier and a VLAN value in the VLAN Tag information so as to measure packet loss.
9. A reflective end device, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 4.
10. A transmitting-end device, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to be capable of performing the method of claim 5 or 6.
CN201711484338.9A 2017-12-29 2017-12-29 Method and device for measuring packet loss under Tag model and electronic equipment Active CN109995603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711484338.9A CN109995603B (en) 2017-12-29 2017-12-29 Method and device for measuring packet loss under Tag model and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711484338.9A CN109995603B (en) 2017-12-29 2017-12-29 Method and device for measuring packet loss under Tag model and electronic equipment

Publications (2)

Publication Number Publication Date
CN109995603A CN109995603A (en) 2019-07-09
CN109995603B true CN109995603B (en) 2020-12-15

Family

ID=67110339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711484338.9A Active CN109995603B (en) 2017-12-29 2017-12-29 Method and device for measuring packet loss under Tag model and electronic equipment

Country Status (1)

Country Link
CN (1) CN109995603B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784378B (en) * 2019-11-04 2021-05-04 盛科网络(苏州)有限公司 Method and device for realizing accurate flow balance by using TWAMP (two way operational amplifier)
CN112702236B (en) * 2020-12-23 2022-11-11 锐捷网络股份有限公司 Method and processor for realizing packet loss detection

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7093027B1 (en) * 2002-07-23 2006-08-15 Atrica Israel Ltd. Fast connection protection in a virtual local area network based stack environment
CN101453673A (en) * 2006-08-21 2009-06-10 华为技术有限公司 Optical network terminal, and packet process method thereof
CN101719850A (en) * 2009-11-04 2010-06-02 中兴通讯股份有限公司 Device and method for carrying out statistics on Ethernet packet loss rate as well as message switching device
CN102984018A (en) * 2011-09-02 2013-03-20 华为技术有限公司 Method, device and system for Ethernet packet loss measurement
CN103402144A (en) * 2013-07-29 2013-11-20 华为技术有限公司 Method, device and system for automatically measuring multicast service performances
CN103546303A (en) * 2012-07-09 2014-01-29 中兴通讯股份有限公司 Lost frame measuring method and system
CN103618646A (en) * 2013-11-28 2014-03-05 瑞斯康达科技发展股份有限公司 Method for detecting network performance, packet loss probability and time delay and network fringe node equipment
CN104348678A (en) * 2013-08-05 2015-02-11 华为技术有限公司 Method, device and system for measuring performance of Ethernet
CN104717150A (en) * 2013-12-13 2015-06-17 中兴通讯股份有限公司 Exchange device and packet loss method
CN105262638A (en) * 2015-09-16 2016-01-20 太仓市同维电子有限公司 Method for simultaneously testing plurality of electronic products
CN106603322A (en) * 2015-10-20 2017-04-26 华为技术有限公司 Method for sending and receiving message, and network equipment,

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8045474B2 (en) * 2005-01-26 2011-10-25 Cisco Technology, Inc. Method and apparatus for tracking layer-2 (L2) resource of a switch
JP2008131240A (en) * 2006-11-20 2008-06-05 Fujitsu Ltd Network system, and device and method thereof
US9118561B2 (en) * 2012-11-30 2015-08-25 Cisco Technology, Inc. Network switch and method for automatically establishing connection to a wide area network

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7093027B1 (en) * 2002-07-23 2006-08-15 Atrica Israel Ltd. Fast connection protection in a virtual local area network based stack environment
CN101453673A (en) * 2006-08-21 2009-06-10 华为技术有限公司 Optical network terminal, and packet process method thereof
CN101719850A (en) * 2009-11-04 2010-06-02 中兴通讯股份有限公司 Device and method for carrying out statistics on Ethernet packet loss rate as well as message switching device
CN102984018A (en) * 2011-09-02 2013-03-20 华为技术有限公司 Method, device and system for Ethernet packet loss measurement
CN103546303A (en) * 2012-07-09 2014-01-29 中兴通讯股份有限公司 Lost frame measuring method and system
CN103402144A (en) * 2013-07-29 2013-11-20 华为技术有限公司 Method, device and system for automatically measuring multicast service performances
CN104348678A (en) * 2013-08-05 2015-02-11 华为技术有限公司 Method, device and system for measuring performance of Ethernet
CN103618646A (en) * 2013-11-28 2014-03-05 瑞斯康达科技发展股份有限公司 Method for detecting network performance, packet loss probability and time delay and network fringe node equipment
CN104717150A (en) * 2013-12-13 2015-06-17 中兴通讯股份有限公司 Exchange device and packet loss method
CN105262638A (en) * 2015-09-16 2016-01-20 太仓市同维电子有限公司 Method for simultaneously testing plurality of electronic products
CN106603322A (en) * 2015-10-20 2017-04-26 华为技术有限公司 Method for sending and receiving message, and network equipment,

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"Transport of Ethernet Frames over L2TPv3";Aggarwal,et al.,;《Standards Track》;20070228;共15页 *

Also Published As

Publication number Publication date
CN109995603A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
CN113709057B (en) Network congestion notification method, proxy node, network node and computer equipment
CN106850402B (en) Message transmission method and device
CN112543147B (en) Method for testing static label switched paths, method for use in static segment routed traffic engineered paths, transit router and computer readable medium
US20220368626A1 (en) Packet or frame replication and elimination with explict or implict notification to reset sequence number recovery
CN108429739B (en) Method, system and terminal equipment for identifying honeypots
CN105743687B (en) Method and device for judging node fault
CN111614580A (en) Data forwarding method, device and equipment
CN111064668B (en) Method and device for generating routing table entry and related equipment
CN109995603B (en) Method and device for measuring packet loss under Tag model and electronic equipment
CN111385163A (en) Flow analysis and detection method and device
CN109039947B (en) Network packet duplication removing method and device, network distribution equipment and storage medium
CN110784375B (en) Network data monitoring method and device, electronic equipment and storage medium
CN114051013A (en) Communication data transmission method and device
CN113423120A (en) Data distribution processing method and device based on private network terminal and electronic equipment
CN110830984B (en) Method, device, equipment and storage medium for routing QoS acceleration request message
EP3866413A1 (en) Service flow processing method and device
CN110351159B (en) Cross-intranet network performance testing method and device
CN115866544A (en) Shunting method, proxy gateway and shunting system
CN111865884B (en) Message processing method, device and equipment
WO2022222693A1 (en) Message processing method and apparatus, electronic device, and computer-readable storage medium
US11824767B2 (en) Communication system and method of verifying continuity
CN108111327B (en) Network operation management maintenance method and device
CN114553730B (en) Application identification method and device, electronic equipment and storage medium
CN117176839B (en) Remote measurement message transmission method, device, communication equipment and storage medium
US20240048644A1 (en) Message transmission method and system, and network device and storage medium

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
GR01 Patent grant
GR01 Patent grant