CN112702218A - Method, system, network device and storage medium for detecting data transmission quality - Google Patents

Method, system, network device and storage medium for detecting data transmission quality Download PDF

Info

Publication number
CN112702218A
CN112702218A CN201911005556.9A CN201911005556A CN112702218A CN 112702218 A CN112702218 A CN 112702218A CN 201911005556 A CN201911005556 A CN 201911005556A CN 112702218 A CN112702218 A CN 112702218A
Authority
CN
China
Prior art keywords
dyeing
service flow
color
dyed
message
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
CN201911005556.9A
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 CN201911005556.9A priority Critical patent/CN112702218A/en
Publication of CN112702218A publication Critical patent/CN112702218A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention relates to the technical field of communication, and discloses a method for detecting data transmission quality, which comprises the following steps: dyeing the service flow message according to a preset dyeing period, wherein each dyeing period adopts one dyeing color, and the dyeing colors adopted in two adjacent dyeing periods are different; acquiring statistical data of the dyed service flow message of a dyeing period before the dyeing color change occurs at the service flow transmission node according to the change of the dyeing color of the dyed service flow message at the service flow transmission node; and acquiring a detection result of the data transmission quality according to the difference of the statistical data of the N service flow transmission nodes. The embodiment of the invention also provides a system for detecting the data transmission quality, network equipment and a storage medium. The method, the system, the network equipment and the storage medium for detecting the data transmission quality can improve the accuracy of the detection result of the data transmission quality and do not occupy extra bandwidth.

Description

Method, system, network device and storage medium for detecting data transmission quality
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, a system, a network device, and a storage medium for detecting data transmission quality.
Background
When a network transmits data, the transmission quality is generally measured by detecting the packet Loss and the time Delay of the data, and the packet Loss and the time Delay of the data can be detected by frame Loss Measurement (LM for short) and frame Delay Measurement (DM for short).
At present, there are various ways to detect LM and DM, such as LM/DM based on TPOAM, LM/DM based on CFM, TWAMP, etc. However, these implementations have low detection accuracy and require additional bandwidth when performing detection of data transmission quality in the LM and DM aspects.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a system, network equipment and a storage medium for detecting data transmission quality, so as to improve the accuracy of a detection result of the data transmission quality.
In order to solve the above technical problem, an embodiment of the present invention provides a method for detecting data transmission quality, including the following steps: dyeing the service flow message according to a preset dyeing period, wherein each dyeing period adopts one dyeing color, and the dyeing colors adopted in two adjacent dyeing periods are different; acquiring statistical data of the dyed service flow message of a dyeing period before the dyeing color change occurs at the service flow transmission node according to the change of the dyeing color of the dyed service flow message at the service flow transmission node; and acquiring a detection result of data transmission quality according to the difference of the statistical data of the N service flow transmission nodes, wherein N is a natural number greater than 1.
The embodiment of the invention also provides a system for detecting the data transmission quality, which comprises: the packaging module is used for dyeing the service flow message according to a preset dyeing period, wherein each dyeing period adopts one dyeing color, and the dyeing colors adopted in two adjacent dyeing periods are different; the subscription module is used for acquiring statistical data of the dyed service flow message in a dyeing period before the dyeing color change occurs at the service flow transmission node according to the change of the dyeing color of the dyed service flow message at the service flow transmission node; and the control module is used for acquiring a detection result of the data transmission quality according to the difference of the statistical data of the N service flow transmission nodes, wherein N is a natural number greater than 1.
An embodiment of the present invention further provides a network device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for detecting the data transmission quality.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the method for detecting the data transmission quality.
Compared with the prior art, the embodiment of the invention dyes the service flow message according to the preset period, can count the data related to the data transmission quality of the service flow message according to the dyeing color, and counts the data according to the dyeing color without sending extra detection messages and occupying extra bandwidth; the statistical data of the service flow messages in the previous dyeing period are obtained according to the change of the dyeing color, and the detection result of the data transmission quality is determined according to the difference of the obtained statistical data, so that the statistical data obtained by each service flow transmission node is the statistical data of the same number of dyeing periods, the accuracy of the obtained statistical data is ensured, the calculation result of the difference of the statistical data is more accurate, and the accuracy of the detection result of the data transmission quality is improved; in addition, in a complex data transmission network, a plurality of service flow transmission nodes are usually included between two end points of data transmission, and each service flow transmission node has statistical data, so that the service flow transmission node with the problem of data transmission quality can be quickly positioned by comparing the statistical data, and the efficiency of detecting and positioning the problem of data transmission quality is improved.
In addition, before the service flow packet is dyed according to the preset dyeing cycle, the method further includes: and adding a guide label and a whole network element identifier for the service flow message, wherein the guide label is used for indicating the position of the whole network element identifier, the whole network element identifier comprises a mark domain, and the mark domain comprises a dyeing identifier bit. Through the guide label, each service flow transmission node can identify the whole network element identifier; through the whole network element identifier, each service flow transmission node can be identified and subjected to data statistics according to the whole network element identifier, so that the detection result of the data transmission quality is determined.
In addition, dyeing the service flow message according to a preset dyeing cycle specifically comprises: and setting a dyeing identification bit in the first dyeing period, dyeing the service flow message by using the first dyeing color and the second dyeing color alternately in other dyeing periods after the first dyeing period, and turning over the dyeing identification bit. By dyeing the service flow message and setting or turning over the dyeing identification bit, the service flow transmission node can determine whether the statistical data of the dyeing service flow message in the previous period is completely counted according to whether the dyeing identification bit is changed (the dyeing color change indicates that the next dyeing period is reached, and then the data of the service flow message in the previous dyeing period is completely counted), so that the obtained statistical data is the service flow message data in the complete dyeing period, and the accuracy of statistical data acquisition is improved.
In addition, before acquiring statistical data of the dyed service flow packet of a dyeing cycle before the service flow transmission node has a dyeing color change according to the change of the dyeing color of the dyed service flow packet at the service flow transmission node, the method further includes: and polling the dyeing identification bit of each dyed service flow message, and determining that the dyeing color changes when the value of the dyeing identification bit changes after polling. Through polling the dyeing identification position, the change of the dyeing color can be conveniently determined, so that corresponding statistical data can be obtained according to the change of the dyeing color.
In addition, acquiring statistical data of the dyed service flow packet of a dyeing cycle before the dyeing color change occurs at the service flow transmission node according to the change of the dyeing color of the dyed service flow packet at the service flow transmission node specifically includes: starting timing after the value of the dyeing identification bit is changed after polling; and when the timing duration reaches the preset duration, acquiring statistical data of the dyed service flow message in a dyeing period before the dyeing identification bit at the service flow transmission node is changed. The statistical data of a dyeing period before the dyeing identification position changes is obtained after the dyeing identification position changes and the preset time length is passed, the detection result of the data transmission quality is obtained according to the statistical data of the previous dyeing period, and the statistical data of the previous dyeing period is obtained after the dyeing identification position changes and the preset time length is passed due to the fact that jitter possibly exists in the transmission process and the specific dyeing data packets read by each service flow transmission node possibly have differences.
In addition, the preset time length is half of the preset dyeing period. The statistical data of the previous dyeing cycle is obtained when half of the preset dyeing cycle, so that the statistical data of the previous dyeing cycle can be conveniently obtained, and meanwhile, the statistical data obtained by each service flow transmission node is the statistical data of the same number of dyeing cycles.
In addition, after the service flow packet is dyed according to the preset dyeing cycle, the method further includes: acquiring the actual dyeing color of the dyed service flow message at the service flow transmission node at a preset time; calculating the expected dyeing color of the dyed service flow message at a service flow transmission node at a preset time according to the dyeing period; and comparing whether the actual dyeing color is the same as the expected dyeing color, and if so, executing dyeing error correction. By comparing the actual dyeing color of the dyed service flow message at the preset time with the expected dyeing color, whether the statistical data acquired by each service flow transmission node is accurate can be judged, and if not, dyeing error correction is executed, so that the accuracy of the acquired statistical data is further ensured, and the accuracy of the detection result of the data transmission quality is improved.
In addition, after obtaining the detection result of the data transmission quality according to the difference of the statistical data of the N traffic transmission nodes, the method further includes: and removing the dyeing color of the dyed service flow message. The service flow message is restored by removing the dyeing color of the dyed service flow message, so that the normal transmission of the subsequent service flow message can be facilitated.
In addition, the encapsulation module is further configured to: and adding a guide label and a whole network element identifier for the service flow message, wherein the guide label is used for indicating the position of the whole network element identifier, the whole network element identifier comprises a mark domain, and the mark domain comprises a dyeing identifier bit.
In addition, the encapsulation module is further configured to: and setting a dyeing identification bit in the first dyeing period, dyeing the service flow message by using the first dyeing color and the second dyeing color alternately in other dyeing periods after the first dyeing period, and turning over the dyeing identification bit.
In addition, the subscription module is further configured to: and polling the dyeing identification bit of each dyed service flow message, and determining that the dyeing color changes when the value of the dyeing identification bit changes after polling.
In addition, the subscription module is further configured to: starting timing after the value of the dyeing identification bit is changed after polling; and when the timing duration reaches the preset duration, acquiring statistical data of the dyed service flow message in a dyeing period before the dyeing identification bit at the service flow transmission node is changed.
In addition, the preset time length is half of the preset dyeing period.
In addition, the subscription module is further configured to: acquiring the actual dyeing color of the dyed service flow message at the service flow transmission node at a preset time; calculating the expected dyeing color of the dyed service flow message at a service flow transmission node at a preset time according to the dyeing period; and comparing whether the actual dyeing color is the same as the expected dyeing color, and if so, informing the packaging module to execute dyeing error correction.
In addition, still include the decapsulation module, the decapsulation module is still used for: and removing the dyeing color of the dyed service flow message.
Drawings
One or more embodiments are illustrated by the corresponding figures in the drawings, which are not meant to be limiting.
Fig. 1 is a schematic flow chart of a method for detecting data transmission quality according to a first embodiment of the present invention;
FIG. 2 is a diagram illustrating an example format of a bootstrap tag;
FIG. 3 is a diagram illustrating an example format of a full cell identifier;
fig. 4 is another schematic flow chart of a method for detecting data transmission quality according to a second embodiment of the present invention;
fig. 5 is a flowchart illustrating a step after S101 of a method for detecting data transmission quality according to a third embodiment of the present invention;
fig. 6 is a block configuration diagram of a data transmission quality detection system according to a fourth embodiment of the present invention;
fig. 7 is a diagram showing a concrete example of a system for detecting data transmission quality in a fourth embodiment of the present invention;
fig. 8 is a schematic diagram of a structure of a service flow packet;
fig. 9 is a block diagram of a network device in a fifth 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. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
The first embodiment of the invention relates to a method for detecting data transmission quality, which has the core that a service flow message is dyed according to a preset dyeing period, wherein each dyeing period adopts one dyeing color, and the dyeing colors adopted by two adjacent dyeing periods are different; acquiring statistical data of the dyed service flow message of a dyeing period before the dyeing color change occurs at the service flow transmission node according to the change of the dyeing color of the dyed service flow message at the service flow transmission node; and acquiring a detection result of the data transmission quality according to the difference of the statistical data of the N service flow transmission nodes. According to the embodiment of the invention, the service flow is dyed according to the preset dyeing period, so that the data statistics of the data transmission quality in the LM and DM aspects can be conveniently carried out by the service flow transmission node; the statistical data of the previous dyeing period is obtained according to the dyeing color, so that the statistical data obtained by each service flow transmission node is the statistical data of the same number of dyeing periods, the data transmission quality is determined on the basis, and the accuracy of the detection result of the data transmission quality is improved.
It should be noted that the execution subject of the data transmission quality detection method provided by this embodiment may be a system including a plurality of service flow transmission nodes communicating with each other.
A specific flow of the method for detecting data transmission quality provided in this embodiment is shown in fig. 1, and specifically includes the following steps:
s101: and dyeing the service flow message according to a preset dyeing period, wherein each dyeing period adopts one dyeing color, and the dyeing colors adopted in two adjacent dyeing periods are different.
The dyeing cycle refers to a time for dyeing the service flow packet with one color, for example, if the service flow packet is dyed with two colors, i.e., a color and B, alternately, the time for dyeing the service flow packet with the color a or B is a dyeing cycle. The preset dyeing period can be set according to actual needs, such as 5S, 10S, 15S, and the like, and is not particularly limited herein.
The data transmission quality may include the quality of the transmission in terms of frame loss, frame delay or jitter, etc. Optionally, the traffic packet may be identified by an IP five-tuple, where the IP five-tuple refers to a source IP address, a destination IP address, a protocol type, a source port number, and a destination port number of the traffic.
Optionally, the dyeing of the service flow packet may be to add a specific identifier to the service flow packet, so that each node of the system may perform statistics on data related to data transmission quality according to the specific identifier. For example, when a data packet of a service flow packet is an IP data packet, a specific identifier may be filled in a Time To Live (TTL) field of the IP data packet, where the specific identifier is used To identify that the data packet is a dyed data packet; when the data packet of the service flow packet is an ethernet data packet, a specific identifier may be filled in a preset offset field of the packet header of the ethernet data packet, where the specific identifier is used to identify that the data packet is a dyed data packet. The specific identifier may be a preset numerical value, and is not limited herein.
Optionally, dyeing the service flow packet may be implemented by starting a dyeing enable at a dyeing node and setting a corresponding dyeing cycle, that is, a certain part of the service flow packet may be dyed as required, and not all the service flow packets may be dyed.
When the service flow message is dyed, each dyeing period adopts one dyeing color, and the dyeing colors adopted in two adjacent dyeing periods are different. Optionally, the service flow packet may be dyed with two or more dyeing colors, which is not limited herein.
S102: and acquiring statistical data of the dyed service flow message of a dyeing period before the dyeing color change occurs at the service flow transmission node according to the change of the dyeing color of the dyed service flow message at the service flow transmission node.
The service flow transmission node may be a node that dyes and transmits a service flow packet, a node that receives and forwards a dyed service flow packet, a node that receives a dyed service flow packet, or the like.
Alternatively, a change in the color of the coloring of the colored traffic flow messages may be identified based on a difference in the value of the specific identifier of the coloring. For example, when the dyeing color is a color a, the value of the specific identifier is 0, and when the dyeing color is a color B, the value of the specific identifier is 1, so that the service flow transmission node can recognize that the dyeing color changes according to the difference between 0 and 1.
It can be understood that, because the dyeing colors adopted in the adjacent dyeing cycles are different, there are a plurality of places where the dyeing colors change, and here, a place where a certain dyeing color changes can be selected according to actual needs, and then the statistical data of the previous dyeing cycle is selected according to the changed place.
The statistical data of the previous dyeing cycle is obtained through the change of the dyeing color, the change of the dyeing color can determine that the next dyeing cycle is reached, the data of the service flow message of the previous dyeing cycle is counted completely, and therefore the obtained statistical data is the service flow message data of a complete dyeing cycle. As jitter may exist during data transmission, a difference may exist in the specific dyeing data packet read by each service flow transmission node, for example, when a service flow transmission node reads the first data packet of the next dyeing cycle after a time period a, the dyeing color changes; however, the B service flow transmission node reads the last data packet of the previous dyeing cycle after the a time period, and the dyeing color is not changed, so that the a time period can be set, and the dyeing color is changed to obtain the statistical data, so that the statistical data read by each service flow transmission node is uniform, and the accuracy of the detection result of the data transmission quality is improved.
S103: and acquiring a detection result of data transmission quality according to the difference of the statistical data of the N service flow transmission nodes, wherein N is a natural number greater than 1.
Specifically, after acquiring the statistical data of the N service stream transmission nodes, the system may acquire the detection result of the data transmission quality between each two service stream transmission nodes according to the difference of the statistical data between the two service stream transmission nodes. For example, if the number of the stained packets obtained by the node a is 20 and the number of the stained packets obtained by the node B is 18, the frame loss detection result may be determined according to the difference between the numbers of the packets of the node a and the node B.
Optionally, the service flow packet may also be subjected to delay marking by using a coloring color, so that delay detection may be performed. For example, the nth data packet (e.g., the first data packet) of the service flow packet is subjected to delay marking by using a coloring color, when each service flow transmission node acquires the delay marking, the corresponding timestamp is read, and the detection result of the data transmission quality, which is the delay, can be determined according to the time difference between the timestamps of every two service flow transmission nodes.
By dyeing the service flow message according to the preset period, the data related to the data transmission quality of the service flow message can be counted according to the dyeing color, and the data can be counted according to the dyeing color without sending extra detection messages or occupying extra bandwidth; the statistical data of the service flow messages in the previous dyeing period are obtained according to the change of the dyeing color, and the detection result of the data transmission quality is determined according to the difference of the obtained statistical data, so that the statistical data obtained by each service flow transmission node is the statistical data of the same number of dyeing periods, the accuracy of the obtained statistical data is ensured, the calculation result of the difference of the statistical data is more accurate, and the accuracy of the detection result of the data transmission quality is improved; in addition, in a complex data transmission network, a plurality of service flow transmission nodes are usually included between two end points of data transmission, and each service flow transmission node has statistical data, so that the service flow transmission node with the problem of data transmission quality can be quickly positioned by comparing the statistical data, and the efficiency of detecting and positioning the problem of data transmission quality is improved.
In a specific example, before the service flow packet is dyed according to the preset dyeing cycle, the method further includes: and adding a guide label and a whole network element identifier for the service flow message, wherein the guide label is used for indicating the position of the whole network element identifier, the whole network element identifier comprises a mark domain, and the mark domain comprises a dyeing identifier bit.
The format of The bootstrap label is shown in fig. 2, for example, a special purpose label that is not allocated by The Internet Engineering Task Force (IETF for short) may be selected, and fig. 2 takes an unallocated label value 12 as an example. The bootstrap tag is used to indicate the location of the full cell identity. Alternatively, the full cell id may be placed after the bootstrap tag, which indicates that it is the full cell id immediately following.
The full network element identifier is a unique identifier added to each service flow message for dyeing in the full network (office). Please refer to fig. 3, which is an exemplary format of the whole network element identifier, wherein C bit is used for frame Loss Measurement (LM) detection, D bit is used for frame Delay Measurement (DM) detection, R bit is reserved bit, and S bit is a stack bottom identifier bit. The mark domain is C bit, D bit, R bit and S bit, wherein the C bit and the D bit are dyeing mark bits. Optionally, the step of dyeing the service flow packet refers to setting a preset value as an upper value of the C bit and a lower value of the D bit.
Through the guide label, each service flow transmission node can identify the whole network element identifier; through the network element identification, each service flow transmission node can perform data statistics on the aspect of data transmission quality according to the network element identification, so that the detection result of the data transmission quality is determined.
A second embodiment of the present invention relates to a method for detecting data transmission quality. A schematic flow chart of the method for detecting data transmission quality provided in this embodiment is shown in fig. 4, and specifically includes the following steps:
s201: and setting a dyeing identification bit in the first dyeing period, dyeing the service flow message by using the first dyeing color and the second dyeing color alternately in other dyeing periods after the first dyeing period, and turning over the dyeing identification bit.
The first dyed color and the second dyed color may be set according to actual needs, and are not particularly limited herein. Alternatively, the first coloring color and the second coloring color may be implemented by adding different identification values to the traffic flow packet, for example, the coloring identification bits of the full cell identifier are set with different values (upper values).
Specifically, a node that dyes the service flow packet sets a dyeing identification bit in a first dyeing period, dyes the service flow packet with a first dyeing color, and dyes the service flow packet with the first dyeing color and a second dyeing color alternately in a subsequent dyeing period. It is understood that, since the dyeing colors adopted in two adjacent dyeing cycles are different, the dyeing color of the second dyeing cycle is the second dyeing color, and then the first dyeing color, and so on. When the dyeing cycle changes, the dyeing color changes, and the dyeing identification position is turned over at the moment, namely the dyeing identification position is set by a value different from that of the previous dyeing cycle.
S202: and polling the dyeing identification bit of each dyed service flow message, and determining that the dyeing color changes when the value of the dyeing identification bit changes after polling.
The polling refers to the identification of the dyeing identification bit of each dyed service flow message by the service flow transmission node. When a certain dyeing identification bit of the dyed service flow message is polled, comparing the value of the dyeing identification bit with the value of the dyeing identification bit identified previously, and if the value of the dyeing identification bit changes, determining that the dyeing color of the service flow message changes.
S203: the timer is started after polling to change the value of the dye flag.
Optionally, when a value of the dyeing identification bit polled to the dyed service flow packet by a certain service flow transmission node changes, a preset timer is triggered to start timing.
S204: and when the timing duration reaches the preset duration, acquiring statistical data of the dyed service flow message in a dyeing period before the dyeing identification bit at the service flow transmission node is changed.
The preset duration may be less than or equal to one dyeing cycle, and may be specifically set according to actual needs, which is not limited herein. Optionally, the preset duration is half of the preset dyeing cycle.
It can be understood that, because data may jitter during transmission, and dyed data packets read by each service flow transmission node after the same time period may have slight difference, here, when the timing duration reaches the preset duration, statistical data of a dyed service flow packet of a dyeing period before a dyeing identification bit at the service flow transmission node changes is obtained, it can be ensured that the statistical data read by each service flow transmission node for determining data transmission quality is the statistical data of the same number of dyeing periods, and "glitch" data is effectively avoided, so that accuracy of a detection result of the data transmission quality can be improved.
S205: and acquiring a detection result of data transmission quality according to the difference of the statistical data of the N service flow transmission nodes, wherein N is a natural number greater than 1.
S205 is the same as S103 described above, and is not described herein again.
By dyeing the service flow message and setting or turning over the dyeing identification bit, the service flow transmission node can count dyeing data according to the dyeing identification bit; by acquiring the statistical data of a dyeing period before the dyeing identification position changes after the dyeing identification position changes and the preset time length, and acquiring the detection result of the data transmission quality according to the statistical data of the previous dyeing period, the statistical data acquired by each service stream transmission node can be guaranteed to be the statistical data of the same number of dyeing periods, so that 'burr' data is effectively avoided, and the accuracy of the detection result of the data transmission quality is improved.
A third embodiment of the present invention relates to a method for detecting data transmission quality. The present embodiment is substantially the same as the first embodiment, and is different from the first embodiment in that, as shown in fig. 5, after S101, that is, after the service flow packet is dyed according to the preset period, the method for detecting data transmission quality further includes the following steps:
s301: and acquiring the actual dyeing color of the dyed service flow message at the service flow transmission node at a preset time.
S302: and calculating the expected dyeing color of the dyed service flow message at the service flow transmission node at the preset time according to the dyeing period.
S303: and comparing whether the actual dyeing color is the same as the expected dyeing color, and if so, executing dyeing error correction.
In S301, the predetermined time may be set according to actual needs, and no specific limitation is made here, that is, the actual dyeing color of the dyed service flow packet at a certain time at the service flow transmission node is obtained.
In S302, the dyeing color that should appear in the dyed service flow packet at a predetermined time (i.e., the desired dyeing color) can be calculated according to the dyeing cycle. For example, if the dyeing cycle is 5S, the dyeing colors are a color and B color, and the predetermined time is 8S, it can be calculated that the dyeing color at that time should be B color (desired dyeing color).
In S303, comparing the actual dyeing color with the expected dyeing color, and if the actual dyeing color is the same as the expected dyeing color, not processing the actual dyeing color; if the difference indicates that the dyeing data packet read by the service flow transmission node has an error, dyeing error correction processing is required. Optionally, the dyeing and error correcting of the traffic flow packet may be performed by a node dyeing the traffic flow packet.
By comparing the actual dyeing color of the dyed service flow message at the preset time with the expected dyeing color, whether the statistical data acquired by each service flow transmission node is accurate can be judged, and if not, dyeing error correction is executed, so that the accuracy of the acquired statistical data is further ensured, and the accuracy of the detection result of the data transmission quality is improved.
In a specific example, after S103, that is, after obtaining the detection result of the data transmission quality according to the difference of the statistical data of the N traffic flow transmission nodes, the method further includes: and removing the dyeing color of the dyed service flow message.
Specifically, the removing of the dyeing color of the dyed service flow packet may be removing a specific identifier added to the service flow packet, and restoring the dyed service flow packet. For example, the value of the dyed identification bits in the full network element identification. Optionally, removing the dyed color of the dyed traffic flow message may include removing the added bootstrap label and the full cell identifier. Optionally, removing the added bootstrap Label and the full network element identifier includes removing the bootstrap Label and the full network element identifier from a Label stack of a Multi-Protocol Label Switching (MPLS).
The service flow message is restored by removing the dyeing color of the dyed service flow message, so that the normal transmission of the subsequent service flow message can be facilitated.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the steps contain the same logical relationship, which is within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A fourth embodiment of the present invention relates to a data transmission quality detection system, as shown in fig. 6, including: the encapsulation module 401, the subscription module 402, and the control module 403, specifically:
the encapsulation module 401 is configured to dye the service flow packet according to a preset dyeing cycle, where each dyeing cycle uses one dyeing color, and the dyeing colors used in two adjacent dyeing cycles are different;
a subscription module 402, configured to obtain statistical data of a dyed service flow packet in a dyeing cycle before a dyeing color change occurs at a service flow transmission node according to a change of a dyeing color of the dyed service flow packet at the service flow transmission node;
a control module 403, configured to obtain a detection result of data transmission quality according to a difference of statistical data of N service stream transmission nodes, where N is a natural number greater than 1.
Further, the encapsulation module 401 is further configured to:
and adding a guide label and a whole network element identifier for the service flow message, wherein the guide label is used for indicating the position of the whole network element identifier, the whole network element identifier comprises a mark domain, and the mark domain comprises a dyeing identifier bit.
Further, the encapsulation module 401 is further configured to:
and setting a dyeing identification bit in the first dyeing period, dyeing the service flow message by using the first dyeing color and the second dyeing color alternately in other dyeing periods after the first dyeing period, and turning over the dyeing identification bit.
Further, the subscription module 402 is further configured to:
and polling the dyeing identification bit of each dyed service flow message, and determining that the dyeing color changes when the value of the dyeing identification bit changes after polling.
Further, the subscription module 402 is further configured to:
starting timing after the value of the dyeing identification bit is changed after polling;
and when the timing duration reaches the preset duration, acquiring statistical data of the dyed service flow message in a dyeing period before the dyeing identification bit at the service flow transmission node is changed.
Further, the preset time duration is half of the preset dyeing period.
Further, the subscription module 402 is further configured to:
acquiring the actual dyeing color of the dyed service flow message at the service flow transmission node at a preset time;
calculating the expected dyeing color of the dyed service flow message at a service flow transmission node at a preset time according to the dyeing period;
and comparing whether the actual dyeing color is the same as the expected dyeing color, and if so, informing the packaging module to execute dyeing error correction.
Further, the detection system for data transmission quality further comprises a decapsulation module, and the decapsulation module is further configured to:
and removing the dyeing color of the dyed service flow message.
Optionally, the system for detecting data transmission quality further includes a flipping module. The turnover module can be located on the business veneer and is used for turning over the dyeing color according to the set preset dyeing period.
Optionally, the data transmission quality detection system further comprises a staining module. The turning module is also used for informing the dyeing module of how to turn over the dyeing color according to a preset dyeing period; the dyeing module is configured to set a dyeing flag according to the notified message after receiving the message notified by the flipping module, dye the service flow packet, store a value of the dyeing flag of the current color, and send the value to the subscription module 402.
Optionally, the encapsulation module 401 may be located on the service board, and is further configured to recognize a service flow packet when the service flow packet enters, add a guide tag and a whole network element identifier to the service flow packet, perform LM statistics on the sent and/or received service flow packet according to different dyeing colors according to statistics enabling, store a count, detect a delay identification bit in the service packet, latch a current timestamp, and send the stored LM statistics data and the current timestamp to the subscription module 402.
Optionally, the subscription module 402 may be located on the service board and/or the main control board, and is further configured to scan a dyeing flag bit in the service stream message at regular time, trigger timing according to the dyeing flag bit, obtain the number of bytes, frames, and timestamps sent and/or received in a previous dyeing cycle according to a preset time length reached by the timing, and report the time when the service stream transmission node reads the counter to the control module 403.
Optionally, the control module 403 is further configured to calculate detection results of the LM and the DM from hop to hop and from end to end according to the number of bytes, the number of frames, the timestamp, and the time for reading the counter sent by the subscription module 402, and send the detection results to the user end or the network management device.
Optionally, the decapsulation module may be located on the service board, and is further configured to strip a specific identifier (such as a whole network element identifier and a bootstrap tag) of the dyed service flow packet, and restore the service flow packet.
This is explained below with a specific implementation.
Please refer to fig. 7, which is a diagram illustrating an exemplary system for detecting data transmission quality. The method can be used for building services between a base station and a core network, and comprises a controller, a packaging node, an intermediate node and a decapsulation node, wherein the method comprises the following specific implementation processes:
step 1: and configuring on the encapsulation node by a user or a website administrator, starting the dyeing enabling and setting the dyeing period, and acquiring the statistical data and the time delay data of frame loss at the encapsulation node, the intermediate node and the decapsulation node according to the whole network element identification.
Step 2: after the master control single board of the intermediate node obtains the user configuration, the dyeing configuration is issued to the forwarding plane through a mux interface; and sending the configuration of data acquisition to an alarm performance module through a netcof interface, and then sending the configuration of data acquisition to a forwarding plane through a telemetric. Telemetrology is a technology for acquiring data remotely from a physical device or a virtual device at a high speed.
And 3, step 3: the forwarding plane performs data processing according to the configuration of data acquisition: (1) applying local network element identification (local flow id) according to the full network element identification (flow id) in the dyeing mux interface configuration, and configuring dyeing enable (1bit), dyeing cycle (4bit) and flow id (17bit) to a line card FPGA by taking the local flow id as a key value; (2) after receiving the statistical data of the LM and the DM, applying for a statistical identification (count id) and a local flow id according to a slot position where a physical port carried by the flow id is located, and then configuring information such as the local flow id, the count id, statistical enable, the flow id and the like to a Network Processor (NP for short).
And 4, step 4: and the line card FPGA starts a timer according to the configured service flow message for starting dyeing and the flow id of the SRTP tunnel, and sets a dyeing identification bit of each service flow message according to the dyeing period. For example, if the dyeing cycle is T ═ 1 second, then the cycle is reversed at 0s, 01s, 02s, 03s,. times, where 0s, 2s,. until, 0, 1s, 3s,. until 1.
And 5, step 5: after receiving the message sent by the FPGA, if the counting is enabled, the NP sets the C bit of flow id in the service flow message, and respectively counts the 0 and 1 color messages; if the time delay statistics is enabled, selecting the first message in the staining block to perform D bit setting 1, latching the value of the timestamp, simultaneously writing the staining identification bit into the e _ flow _ id _ tb and i _ flow _ id _ tb tables for use by the forwarding plane, and the line card NP acquires the flow id value from the service flow message and the SRTP tunnel which start staining, and adds the flow id and the guide tag to the correct position of the service flow message (as shown in fig. 8).
And 6, step 6: and the forwarding plane starts a timer, inquires the dyeing identification position from the line card NP, starts a T/2(T is a dyeing period) timer after polling the dyeing identification position, reads the statistical data, the time delay timestamp and the time of the reading counter of the previous dyeing period when the T/2 timer arrives, and reports the statistical data to the control plane through a telnemetry interface.
In addition, since the forwarding plane cannot sense the traffic flow direction, the read information can be determined according to the direction carried in the configuration of data acquisition. If the data acquisition direction is in, the dyeing identification bit in the table is acquired by checking an i _ flow _ id _ tb table in the line card NP, and a T/2 timer is started; if the subscription issuing direction is yes, inquiring a turnover mark in an e _ flow _ id _ tb table, and starting a T/2 timer; if the subscription delivery direction is bi-directional, then both the i _ flow _ id _ tb table and the e _ flow _ id _ tb table are queried for the flip flag and the corresponding T/2 timer is started. When the T/2 timer arrives, reading a time stamp (reading the time stamp from the slave line card NP and reading the time stamp from the slave line card FPGA); reading ingress message statistical data, an ingress slot position and an ingress port from an i _ flow _ id _ tb of a line card NP; and reading out the statistical data of the outbound message, the outbound slot position and the outbound port from the e _ flow _ id _ tb of the line card NP, and finally, assembling the information and then transmitting the information to the controller. And meanwhile, when the T/2 timer is up, correcting the dyeing mark bits in the NP assembling message. The method is that the dyeing mark expected by the next color is calculated according to t1, if the current color mark bit acquired by the forwarding plane from the NP is not consistent with the next expected color mark calculated by the forwarding plane, the NP needs to be informed to carry out dyeing error correction processing, and the 'pace' of the software and the hardware is ensured to be consistent in real time. Where T1 ═ ((read counter time% (60))/T)% 2, where the read counter time unit is s, the T1 value is 1, and the value of the desired dye flag is 1; t1 has a value of 0 and the desired dye marker has a value of 0.
In addition, the forwarding plane performs a clear reading operation after acquiring the color message count from the line card np through the count. And after the data is read, the position 0 of the dyeing mark of the np table entry of the line card needs to be marked, so that the data at the next T/2 moment is accurate.
And 7, the controller calculates data according to the data reported by the forwarding plane and displays the result to the user.
And 8, according to the fact that the portFlag issued by the platform mux interface is an invalid value, namely all single boards need to be configured with a decapsulated NP table, namely the NP needs to strip a guide label (value 12) and a Flow ID on an outgoing line card.
It should be understood that this embodiment is a system example corresponding to the first embodiment, and may be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
A fifth embodiment of the present invention relates to a network device, as shown in fig. 9, including at least one processor 501; and a memory 502 communicatively coupled to the at least one processor 501; the memory 502 stores instructions executable by the at least one processor 501, and the instructions are executed by the at least one processor 501, so that the at least one processor 501 can perform the above-mentioned data transmission quality detection method.
The memory 502 and the processor 501 are coupled by a bus, which may include any number of interconnected buses and bridges that couple one or more of the various circuits of the processor 501 and the memory 502 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 501 is transmitted over a wireless medium through an antenna, which further receives the data and transmits the data to the processor 501.
The processor 501 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 502 may be used to store data used by processor 501 in performing operations.
A sixth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, those skilled in the art can understand that all or part of the steps in the method of the foregoing embodiments may be implemented by a program to instruct related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (14)

1. A method for detecting data transmission quality is characterized by comprising the following steps:
dyeing the service flow message according to a preset dyeing period, wherein each dyeing period adopts one dyeing color, and the dyeing colors adopted in two adjacent dyeing periods are different;
acquiring statistical data of the dyed service flow message in a dyeing period before the dyeing color change occurs at the service flow transmission node according to the change of the dyeing color of the dyed service flow message at the service flow transmission node;
and acquiring a detection result of data transmission quality according to the difference of the statistical data of the N service flow transmission nodes, wherein N is a natural number greater than 1.
2. The method according to claim 1, wherein before the dyeing the traffic flow packet according to the preset dyeing cycle, the method further comprises:
adding a guide label and a whole network element identifier for a service flow message, wherein the guide label is used for indicating the position of the whole network element identifier, the whole network element identifier comprises a mark domain, and the mark domain comprises a dyeing identifier bit.
3. The method according to claim 2, wherein the dyeing the service flow packet according to the preset dyeing cycle specifically comprises:
setting a dyeing identification bit in a first dyeing period, dyeing the service flow message by using a first dyeing color, and dyeing the service flow message by using the first dyeing color and a second dyeing color alternately in other dyeing periods after the first dyeing period, and turning over the dyeing identification bit.
4. The method according to claim 3, wherein before the obtaining statistical data of the dyed traffic flow packet of a dyeing cycle before the dyeing color change occurs at the traffic flow transmission node according to the change of the dyeing color of the dyed traffic flow packet at the traffic flow transmission node, the method further comprises:
polling the dyeing identification position of each dyed service flow message, and determining that the dyeing color changes when the value of the dyeing identification position is polled to change.
5. The method according to claim 4, wherein the obtaining statistical data of the dyed service flow packet of a dyeing cycle before the dyeing color change occurs at the service flow transmission node according to the change of the dyeing color of the dyed service flow packet at the service flow transmission node specifically includes:
starting timing after polling that the value of the dyeing identification bit is changed;
and when the timing duration reaches a preset duration, acquiring statistical data of the dyed service flow message in a dyeing period before the dyeing identification bit at the service flow transmission node is changed.
6. The method according to claim 5, wherein the preset duration is half of the preset dyeing cycle.
7. The method according to claim 1, wherein after the dyeing the traffic flow packet according to the preset dyeing cycle, the method further comprises:
acquiring the actual dyeing color of the dyed service flow message at the service flow transmission node at a preset time;
calculating an expected dyeing color of the dyed service flow message at the service flow transmission node at the preset time according to the dyeing period;
and comparing whether the actual dyeing color is the same as the expected dyeing color or not, and if so, executing dyeing error correction.
8. The method according to any of claims 1-7, further comprising, after said obtaining the detection result of the data transmission quality according to the difference of the statistical data of the N traffic stream transmission nodes:
and removing the dyeing color of the dyed service flow message.
9. A system for detecting data transmission quality, comprising:
the packaging module is used for dyeing the service flow message according to a preset dyeing period, wherein each dyeing period adopts one dyeing color, and the dyeing colors adopted in two adjacent dyeing periods are different;
the subscription module is used for acquiring statistical data of the dyed service flow message in a dyeing period before the dyeing color change occurs at the service flow transmission node according to the change of the dyeing color of the dyed service flow message at the service flow transmission node;
and the control module is used for acquiring a detection result of data transmission quality according to the difference of the statistical data of the N service flow transmission nodes, wherein N is a natural number greater than 1.
10. The system of claim 9, wherein the encapsulation module is further configured to:
adding a guide label and a whole network element identifier to a service flow message, wherein the guide label is used for indicating the position of the whole network element identifier, the whole network element identifier comprises a mark domain, and the mark domain comprises a dyeing identifier bit;
setting a dyeing identification bit in a first dyeing period, dyeing the service flow message by using a first dyeing color, and dyeing the service flow message by using the first dyeing color and a second dyeing color alternately in other dyeing periods after the first dyeing period, and turning over the dyeing identification bit.
11. The system of claim 10, wherein the subscription module is further configured to:
polling a dyeing identification position of each dyed service flow message, and determining that the dyeing color changes when the value of the dyeing identification position changes in a polling mode;
starting timing after polling that the value of the dyeing identification bit is changed;
when the timing duration reaches a preset duration, acquiring statistical data of the dyed service flow message in a dyeing period before the dyeing identification bit at the service flow transmission node is changed; the preset duration is half of the preset dyeing period;
acquiring the actual dyeing color of the dyed service flow message at the service flow transmission node at a preset time;
calculating an expected dyeing color of the dyed service flow message at the service flow transmission node at the preset time according to the dyeing period;
and comparing whether the actual dyeing color is the same as the expected dyeing color, and if so, informing the packaging module to execute dyeing error correction.
12. The system of any of claims 9-11, further comprising a decapsulation module, the decapsulation module further configured to:
and removing the dyeing color of the dyed service flow message.
13. A network device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of detecting data transmission quality as claimed in any one of claims 1 to 8.
14. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out a method of detecting the quality of data transmission according to any one of claims 1 to 8.
CN201911005556.9A 2019-10-22 2019-10-22 Method, system, network device and storage medium for detecting data transmission quality Pending CN112702218A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911005556.9A CN112702218A (en) 2019-10-22 2019-10-22 Method, system, network device and storage medium for detecting data transmission quality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911005556.9A CN112702218A (en) 2019-10-22 2019-10-22 Method, system, network device and storage medium for detecting data transmission quality

Publications (1)

Publication Number Publication Date
CN112702218A true CN112702218A (en) 2021-04-23

Family

ID=75505491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911005556.9A Pending CN112702218A (en) 2019-10-22 2019-10-22 Method, system, network device and storage medium for detecting data transmission quality

Country Status (1)

Country Link
CN (1) CN112702218A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023280107A1 (en) * 2021-07-06 2023-01-12 华为技术有限公司 Data transmission quality detection method, and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU7208196A (en) * 1996-10-15 1998-05-11 Renner Herrmann S.A. Fluid analysis system and method, for analysing characteristic properties of a fluid
CN101616161A (en) * 2009-07-31 2009-12-30 中兴通讯股份有限公司 A kind of in the QinQ Metro Ethernet method and the device of transmitting service quality information
CN106060846A (en) * 2016-05-24 2016-10-26 北京雾联科技有限公司 Method of collecting and displaying wireless network performance parameters measured based on mobile terminal
CN106130825A (en) * 2016-08-04 2016-11-16 华为技术有限公司 A kind of data transmission quality detection method and device
CN107547300A (en) * 2017-06-16 2018-01-05 新华三技术有限公司 A kind of network quality detection method and device
CN110049310A (en) * 2019-04-04 2019-07-23 广东省安心加科技有限公司 Video image acquisition, video quality detection method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU7208196A (en) * 1996-10-15 1998-05-11 Renner Herrmann S.A. Fluid analysis system and method, for analysing characteristic properties of a fluid
CN101616161A (en) * 2009-07-31 2009-12-30 中兴通讯股份有限公司 A kind of in the QinQ Metro Ethernet method and the device of transmitting service quality information
CN106060846A (en) * 2016-05-24 2016-10-26 北京雾联科技有限公司 Method of collecting and displaying wireless network performance parameters measured based on mobile terminal
CN106130825A (en) * 2016-08-04 2016-11-16 华为技术有限公司 A kind of data transmission quality detection method and device
CN107547300A (en) * 2017-06-16 2018-01-05 新华三技术有限公司 A kind of network quality detection method and device
CN110049310A (en) * 2019-04-04 2019-07-23 广东省安心加科技有限公司 Video image acquisition, video quality detection method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023280107A1 (en) * 2021-07-06 2023-01-12 华为技术有限公司 Data transmission quality detection method, and related device

Similar Documents

Publication Publication Date Title
CN102273136B (en) Method and apparatus for detecting multi-service performance in tunnel
EP2903214B1 (en) Measuring method, device and system for network packet loss
US8270314B2 (en) Synthetic frame loss ratio
CN106936661B (en) Network monitoring method, device and system
EP4109959A1 (en) In-situ flow testing method and device
EP2521317A1 (en) Method, device and router for packet loss detection
CN106375158B (en) A kind of method for detecting packet loss, the network equipment and system
US20150036510A1 (en) Method and device for measuring ethernet performance
US20220407791A1 (en) Network performance detection method and apparatus, and network device
US8665746B2 (en) Method for measuring throughput for a packet connection
CN102984018B (en) Ethernet loss packet test method, equipment and system
WO2022078293A1 (en) Method for detecting multicast service flow and related apparatus
WO2015096636A1 (en) Method for measuring lost packets and network device
CN106603322B (en) Message sending and receiving method and network equipment
US9331927B2 (en) Communication system, communication device, and communication method
CN112702218A (en) Method, system, network device and storage medium for detecting data transmission quality
WO2019085809A1 (en) Method, relevant device and system for acquiring a target transmission path
CN113810295A (en) Path detection method, device and system
EP2854339B1 (en) Transmission monitoring method and device
CN113708985B (en) Flow detection method, device and system
CN101989937B (en) A kind of method, Apparatus and system sending data flow
WO2020259113A1 (en) Network performance measurement device and method
JP7116190B2 (en) Multicast packet processing method and network device
CN104243226A (en) Flux counting method and device
US9203718B2 (en) Frame loss measurement device, communication device, communication system and performance measurement method

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