CN112769631B - Method for measuring data transmission quality, forwarding device and readable storage medium - Google Patents

Method for measuring data transmission quality, forwarding device and readable storage medium Download PDF

Info

Publication number
CN112769631B
CN112769631B CN201911000753.1A CN201911000753A CN112769631B CN 112769631 B CN112769631 B CN 112769631B CN 201911000753 A CN201911000753 A CN 201911000753A CN 112769631 B CN112769631 B CN 112769631B
Authority
CN
China
Prior art keywords
data
data transmission
transmission quality
quality
control center
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
CN201911000753.1A
Other languages
Chinese (zh)
Other versions
CN112769631A (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.)
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 CN201911000753.1A priority Critical patent/CN112769631B/en
Priority to PCT/CN2020/121215 priority patent/WO2021078061A1/en
Publication of CN112769631A publication Critical patent/CN112769631A/en
Application granted granted Critical
Publication of CN112769631B publication Critical patent/CN112769631B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/087Jitter
    • 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/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • 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/0847Transmission error

Abstract

The embodiment of the invention relates to the field of network communication, and discloses a method for measuring data transmission quality, forwarding equipment and a readable storage medium. In the invention, the method for measuring the data transmission quality comprises the following steps: the forwarding equipment responds to the received message information and detects control word information of the message information; determining whether network quality needs to be measured according to the state of a preset flag bit in the control word; and if the network quality is determined to be required to be measured, collecting data required by measurement for determining the network quality. The scheme provides a transmission quality measurement method carried out at the network side, and improves the measurement accuracy of the data transmission quality.

Description

Method for measuring data transmission quality, forwarding device and readable storage medium
Technical Field
The embodiment of the invention relates to the field of network communication, in particular to a method for measuring data transmission quality, forwarding equipment and a readable storage medium.
Background
QoS is an acronym for quality of service (Quality of Service), which refers to a network that provides better service capabilities for a particular service by utilizing various underlying technologies. In order to know the network state, it is necessary to measure the service quality of the network and assign appropriate tasks according to whether the quality is good or not.
The existing data transmission quality measurement method generally adopts a mode of sending a special message, such as ping. In this way, extra traffic needs to be injected into the network, and the message itself also affects the network quality, so that the existing measurement method of the data transmission quality is not accurate enough.
And in particular DetNet, which is more sensitive to network quality. DetNet is an acronym for deterministic networks (Deterministic Networking) that can provide extremely low packet loss rates and limited end-to-end transmission delays for traffic. DetNet functions are more running in the IP layer and supported by sub-network technologies such as multiprotocol label switching (MPLS) and Time Sensitive Networks (TSNs). Compared with the traditional network, qoS under the DetNet also provides requirements for the sequential delivery of data packets in a service flow, on one hand, because of the own special PREF (PacketReplication and Elimination Functions) mechanism of the DetNet, each data packet of the flow is subjected to copy forwarding, detection and elimination operation at each node, and the multipath transmission of a single flow is supported, and the characteristics can increase the possibility of the out-of-sequence arrival of the data packets; on the other hand, some applications in the DetNet cannot accept packets arriving out of order, so the maximum number of out of order packets is required as a feedback indicator for the traffic flow.
Disclosure of Invention
An object of an embodiment of the present invention is to provide a method for measuring data transmission quality, a forwarding device, and a readable storage medium, and to provide a method for measuring transmission quality performed on a network side, so as to improve accuracy of measuring data transmission quality.
In order to solve the above technical problems, an embodiment of the present invention provides a method for measuring data transmission quality, including: the forwarding equipment responds to the received message information and detects control word information of the message information; determining whether network quality needs to be measured according to the state of a preset flag bit in the control word; and if the measurement is determined to be needed, collecting data required by the measurement for determining the network quality.
The embodiment of the invention also provides a forwarding device, which comprises: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of measuring data transmission quality as described above.
The embodiment of the invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the method for measuring data transmission quality as described above.
Compared with the prior art, the embodiment of the invention changes certain zone bits of the service message, when the forwarding equipment receives the service message information, the forwarding equipment determines whether network measurement is required or not by detecting the zone bits, and if the network measurement is required, the acquisition of data required by measuring the network quality is initiated for determining the network quality. The embodiment of the invention avoids receiving and transmitting extra special messages, avoids causing extra flow injection to the network, and reduces the influence on the actual environment of the network to be tested, thereby ensuring that the measured network quality is more accurate. In addition, the embodiment can control whether to trigger the measurement of the data transmission quality by only modifying the flag bit, has high fusion degree with the prior scheme, and is convenient for popularization of the invention.
As a further improvement, the state of the preset flag bit is set by a setting device, wherein the setting device sets the preset flag bit of the received message information after detecting that the received message information contains the specified content. The state of the flag bit can be changed by the setting equipment, so that the flag bit is automatically set by the setting equipment when measurement is needed, and the forwarding equipment which subsequently receives the message information is triggered to acquire corresponding data for measuring the data transmission quality.
As a further improvement, the setting device is the forwarding device or is independent of other forwarding devices outside the forwarding device. The setting device may be a forwarding device that determines whether measurement is needed and collects data after determining that measurement is needed, or may be other forwarding devices, which are not listed here.
As a further improvement, after the acquisition of the data required for the measurement, it comprises: and sending the acquired data to a control center for the control center to determine the data transmission quality. The collected data is processed by the special control center, so that the function independence between the devices can be facilitated.
As a further improvement, the collected data is sent to a control center, and the control center gathers the data of different forwarding devices and then determines the data transmission quality. The scheme specifically uses special equipment to collect the data collected by each node in the network, so that more accurate data transmission quality is measured.
As a further improvement, the sending the collected data to the control center specifically includes: and when a preset measurement interval arrives, the acquired data are sent to the control center. The embodiment clearly reports the time of the data, so that the acquired data is accurately reported.
As a further improvement, the control center is built in the forwarding device or is built in a device independent from the forwarding device. The above embodiments exemplify possible setting positions of the control center.
As a further improvement, the sending the collected data to the control center specifically includes: and packaging the acquired data into a format of feedback information, and then sending the feedback information to the control center. Data is transmitted in a specific format, making data reception more accurate.
As a further improvement, the number of the preset flag bits is at least 2; the determining whether the network quality needs to be measured according to the state of the preset flag bit in the message information comprises the following steps: and determining different indexes which need to be measured for representing the network quality according to the states of at least 2 zone bits in the message information. The above embodiment uses the combination of the high level and the low level of the two flag bits to determine the index to be measured, so that the measurement of multiple indexes can be expressed respectively by using fewer flag bits.
As a further improvement, when at least one of the indicators of delay, delay jitter or out-of-order conditions characterizing the network quality needs to be measured, the required data includes: and the sequence number and the time stamp of the data received by the forwarding equipment are the sequence number and the time stamp of the data sent by the forwarding equipment. When the scheme definitely represents at least one index of the time delay, time delay jitter or out-of-order state of the network quality, the data required to be acquired is convenient for accurately confirming the network quality.
As a further improvement, further comprising: determining whether the bandwidth used by each service flow needs to be measured according to the state of a preset flag bit in the message information; and if the bandwidth used by each service flow needs to be measured, accumulating the data flow transmitted by each service flow. The scheme can definitely detect the use bandwidth of each service flow through the state trigger of the specific flag bit.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
Fig. 1 is a flowchart of a method for measuring data transmission quality in a first embodiment according to the present invention;
fig. 2 is a flowchart of a method for measuring data transmission quality in a second embodiment of the present invention;
fig. 3 is a flowchart of a method for measuring data transmission quality in a third embodiment according to the present invention;
fig. 4 is a schematic structural diagram of a forwarding apparatus according to a fourth embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the following detailed description of the embodiments of the present invention will be given with reference to the accompanying drawings. However, those of ordinary skill in the art will understand that in various embodiments of the present invention, numerous technical details have been set forth in order to provide a better understanding of the present application. However, the technical solutions claimed in the present application can be implemented without these technical details and with various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not be construed as limiting the specific implementation of the present invention, and the embodiments can be mutually combined and referred to without contradiction.
A first embodiment of the present invention relates to a method of measuring data transmission quality. The embodiment is applied to a forwarding device, which refers to a device with a message forwarding function, and may be a user side device or a network side device, such as a router, a switch, etc., which are not listed here.
The flow of the method for measuring data transmission quality in this embodiment is shown in fig. 1, and specifically is as follows:
step 101, the forwarding device detects control word information of the message information in response to receiving the message information.
Specifically, when receiving a service message, the forwarding device can analyze and detect information of each message. The control word information in this embodiment may refer to a control word format, specifically, may be an MPLS control word format, or may be another control word format, which is not limited herein.
Step 102, determining whether to measure network quality according to the state of the preset flag bit in the message information.
Specifically, the idle flag bit may be defined as a flag bit for determining whether to measure network quality in advance, or the flag bit may be added to an existing format, which is not listed here.
More specifically, the preset flag bit may be a D flag bit, and it may be predetermined that the network quality needs to be measured when the D flag bit is 1, and then it is determined that the network quality needs to be measured when the preset flag bit is 1, and it is determined that the network quality does not need to be measured when the preset flag bit is 0.
It should be noted that, in this embodiment, the state of the preset flag bit is set by the setting device, where the setting device sets the preset flag bit of the message information after detecting that the received message information contains the specified content. The setting device may be the above-mentioned forwarding device, or may be another forwarding device other than the above-mentioned forwarding device. If the setting device judges the flow-id of the service flow, determining whether the message information containing the specified content exists, if so, setting a preset flag bit in the message information containing the specified content, and if so, setting the value of the preset flag bit from 0 to 1.
It can be found that, by setting by the setting device, the node can trigger the measurement of data transmission after receiving the set message, so that the setting device can automatically set the required message, thereby realizing the automatic triggering of data measurement.
And 103, when the network quality is determined to be required to be measured, acquiring data required by measurement.
In particular, the data required for the measurements is collected for use in determining network quality. More specifically, if it is determined that network quality is required to be measured according to the determination in step 102, data required for the measurement is collected for determining network quality. If at least one index of delay, delay jitter or out-of-order state representing network quality needs to be measured, the required data includes: sequence number and time stamp of data received by the forwarding device, sequence number and time stamp of data sent by the forwarding device.
It should be noted that, if at least two indexes of delay, delay jitter or out-of-order state representing network quality need to be measured, the required indexes can be sequentially detected after the detection is determined by one flag bit. If the three indexes of delay, delay jitter and out-of-order state are needed to be detected, then the delay is detected first, the delay jitter is detected later, and the out-of-order state is detected finally after the D flag bit is detected to be 1.
In practical application, the index to be detected can also be determined by the combination of two flag bits. Specifically, at least 2 preset flag bits are provided, and correspondingly, different indexes for representing the network quality are determined to be measured according to the states of at least two flag bits in the message information. For example, two flag bits B and D in the MPLS control word are preset, if the two flag bits are set to 1, the time delay to be detected is determined, and when the two flag bits are 0, the out-of-order state to be detected is determined, and the set rule can be determined according to the actual requirement and is not listed here.
It can be seen that this embodiment changes some flag bits of the service packet, and when the forwarding device receives the service packet information, it determines whether to perform network measurement by detecting these flag bits, and if measurement is required, initiates collection of some data required for measuring network quality, so as to determine network quality. The embodiment of the invention avoids receiving and transmitting extra special messages, avoids causing extra flow injection to the network, and reduces the influence on the actual environment of the network to be tested, thereby ensuring that the measured network quality is more accurate. In addition, the embodiment can control whether to trigger the measurement of the data transmission quality by only modifying the flag bit, has high fusion degree with the prior scheme, and is convenient for popularization of the invention.
It should be noted that the method for measuring data transmission quality in this embodiment is based on a traffic flow driving manner of a network layer, and not only can be used for measuring communication quality of an overall network state, but also can be used for measuring communication quality of a single traffic flow, and a flag bit is set in message information of a traffic flow to be measured, so that when receiving the message information, a forwarding device measures a traffic flow to which the message information belongs.
A second embodiment of the present invention relates to a method of measuring data transmission quality. The present embodiment is a further improvement on the basis of the first embodiment, and the main improvement is that: in this embodiment, the collected data is explicitly sent to the control center, so that the control center determines the data transmission quality. The embodiment utilizes the special control center to process the collected data, which is convenient for the function independence between the devices and is convenient for knowing the data transmission quality of the network global.
Specifically, the control center may be a processing module set in the forwarding device, and is configured to process the collected data and calculate an index value representing the transmission quality of the data. The processing module can pre-store calculation formulas, confirmation flows and the like of each index, such as a time delay calculation formula between two adjacent nodes, a maximum time delay jitter between the two adjacent nodes, a determining flow of an out-of-order condition of a service flow and the like, and after receiving data, the processing module invokes a corresponding formula or a determining flow according to the index calculated as required to process so as to obtain a corresponding index value.
Taking three indexes of measuring time delay, time delay jitter and out-of-order state as examples, the transfer device in this embodiment is a router. Presetting a D flag bit and simultaneously agreeing: if the D flag bit is 1, starting detection of various indexes; if the value is 0, the detection of each index is not started. The flow of the method for measuring data transmission quality in this embodiment is shown in fig. 2, and specifically is as follows:
in step 201, the router detects control word information of the message information in response to receiving the message information.
Specifically, each time the routing forwarding node receives or transmits a data packet, it determines a D flag bit in the MPLS control word, where the MPLS control word format may be shown in table (1), and then when it determines that the D flag bit is 1, step 202 is executed, and measurement of each index is started; if the value is 0, the delay detection is not started, the conventional message forwarding flow is executed, and the description is omitted in this embodiment.
0000 D B Data packet sequence number
Watch (1)
Step 202, after determining to turn on the detection, collecting the data required for the measurement.
Specifically, in this embodiment, three indexes of delay, delay jitter and out-of-order state are sequentially measured, and a measurement flow is given below, and it is known that in practical application, the measurement sequence of the three indexes can be changed without exceeding the measurement concept set forth in this embodiment.
Continuing with the description, depending on whether the data is received or transmitted, the sequence number and the time stamp thereof are combined, and the received data sequence number, the received time stamp < rx_sequence_number, rx_time stamp > or the transmitted data sequence number, the transmitted time stamp < tx_sequence_number, tx_time stamp > are stored as a key pair in the local buffer.
It should be noted that, in the key, the combination mode of leading sequence number and trailing sequence number is only one specific form, and in practical application, the leading sequence number and trailing sequence number may also be used, which is not listed here.
It should be noted that, after the detection is determined to be turned on, the step of collecting and buffering the data required for measurement may be performed by the collection module of the router.
And 203, transmitting the acquired key value pair information to a control center when the measurement interval arrives.
Specifically, the control center in this embodiment may be a processing module set in the forwarding device, where the collecting module sends the data in the buffer memory to the processing module in this step, and then empties the two key value pairs. And when the measurement interval t arrives, the data is transmitted conveniently and accurately, and transmission confusion is avoided.
More specifically, the acquisition module encapsulates the acquired data into a format of feedback information and sends the feedback information to the control center. The format may be defined according to a protocol actually adopted, and this embodiment proposes a feedback information format, including: feeding back node information, and recording equipment number information of the forwarding node; service flow information, recording identity information of service flow; a data packet quantity measuring field for recording the total quantity of the transmitted or arrived service flow data packets; a data packet size measurement field for recording the total bytes of the transmitted or arrived service flow data packets; the data packet sequence number and timestamp measurement field records the sequence number and timestamp information of each data packet sent or arriving in the traffic stream. In practical applications, the feedback information format may be an easily identifiable information format, or other feedback information formats may be used, which are not listed here.
Step 204, after receiving the multiple sets of feedback information, the control center determines transmission data of the service flow between the nodes.
Specifically, the control center can receive data transmitted by other forwarding devices besides the data collected by the router, and collect the received data for post-processing. Specifically, the adjacent nodes are found out according to the service flow mark, the node equipment number (node-id) and the network topology, then the corresponding feedback information groups of the adjacent nodes are found out according to the node-ids of the adjacent nodes, and then the field information of < rx_sequence_number >, rx_timestamp > (a key value pair consisting of a serial number and a receiving timestamp) and < tx_sequence_number, tx_timestamp > (a key value pair consisting of a serial number and a sending timestamp) corresponding to the service flow among the nodes is found out.
Step 205, extracting serial number information therein.
Specifically, this step generates a transmitting end sequence number array (tx_1,..tx_k) with a length k and a receiving end sequence number array (rx_1,..r.x_p) with a length p according to the received data, and prepares for the calculation of the unordered data packet afterwards, so p < =k because there may be packet loss during the transmission process.
It is found that steps 204-205 provide for the data preparation step, after extracting, sorting, and combining the received data, for the subsequent index calculation.
In step 206, the control center performs a delay calculation.
Taking the adjacent node as a node A and a node B as an example, when the interval t is measured, the time delay of a certain service flow (namely the time delay between AB nodes) is calculated by the following formula: ab_delay [ seq ] =b_rx_timestamp [ seq ] -a_tx_timestamp [ seq ], wherein: a_tx_timestamp [ seq ] represents a timestamp corresponding to a data packet with a sequence number of seq sent by the node a; b_rx_timestamp [ seq ] represents a timestamp corresponding to a data packet with a sequence number of seq received by the node B, and the obtained AB_delay [ seq ] is the transmission Delay of the service flow between the node A and the node B.
In step 207, the control center performs delay jitter calculation.
Continuing with the example above, for node a and node B, at measurement interval t, assuming the packet sequence number range is (seq_min, seq_max), the jitter of a certain traffic stream is calculated by the following formula: ab_jitter [ t ] =max (ab_delay [ i ] -ab_delay [ j ]), seq_min < i, j < seq_max, wherein: the AB_Delay [ i ] represents the time Delay corresponding to the data packet with the sequence number of i between the nodes AB, the AB_Delay [ j ] represents the time Delay corresponding to the data packet with the sequence number of j between the nodes AB, and the obtained AB_jitter [ t ] is the maximum time Delay Jitter between the nodes A and B.
In step 208, the control center performs out-of-order packet computation.
Specifically, according to the data of step 105, assuming that the sender sequence is in order, if the packet arrives in order, for each index i (1 < i < p), rx_i < rx_i+1 is strictly true, otherwise, out-of-order arrival is generated. The maximum out-of-order data packet number of the service flow can be calculated by comparing the serial number arrays of the receiving end and the transmitting end.
For example, the receiving end receives a set of streams with sequence numbers (1,2,3,4,6,5,8,7,9), in which two unordered arrival messages occur, messages (6, 5) and messages (8, 7), respectively. It can be found that the maximum unordered datagram number of the service flow can be obtained by comparing the serial number arrays of the receiving end and the transmitting end, wherein the array is the array obtained in step 205.
Therefore, in this embodiment, the control center is used to collect the data reported by each node, so as to measure three indexes of delay, delay jitter and out-of-order state, which characterize the data transmission quality, so that the indexes are relatively independent to confirm and collect, which is not only convenient for the functional independence between devices, but also is convenient for knowing the data transmission quality of the network global. In addition, in practical application, other indexes for measuring the transmission quality of the data can be set, which are not listed here.
In addition, in the present embodiment, the control center is built in a forwarding device for collecting data, which is taken as an example, in practical application, the control center is built in a device independent from the forwarding device, that is, the forwarding device is a series of nodes, and the control center is another node, which is not described herein.
A third embodiment of the present invention relates to a method for measuring data transmission quality. The third embodiment is a further improvement over the first embodiment, and the main improvement is that: the addition of the calculation using the loan in the third embodiment of the present invention makes it possible to obtain more various measurement indexes.
Specifically, as shown in fig. 3, a flowchart of a method for measuring data transmission quality in this embodiment is shown, in this embodiment, two flag bit states of a D flag bit and a B flag bit are combined, and several indexes to be measured are respectively and correspondingly determined, which is specifically as follows:
in step 301, the forwarding device detects control word information of the message information in response to receiving the message information.
Specifically, this step is similar to step 101 in the first embodiment, or similar to step 201 in the second embodiment, and will not be described here.
Step 302, determining an index representing the transmission quality of data to be measured according to the state of a preset flag bit in a control word; if the B flag bit is 1 and the D flag bit is 0, then step 303 is executed; if the B flag bit and the D flag bit are both 1, step 304 is performed.
Specifically, according to the states of at least 2 flag bits (preset D flag bit and B flag bit) in the message information, different indexes which characterize the network quality are determined to be measured.
Step 303, performing calculation of three indexes of time delay, time delay jitter and out-of-order state.
Specifically, the calculation process in this step may be as in steps 202 to 208 in the second embodiment, which will not be described in detail here. After the execution of this step is completed, the measurement method of the data transmission quality in this embodiment may be ended.
Step 304, record the sending traffic and receiving traffic, respectively.
Specifically, if the bandwidth detection is started, the data obtained at the transmitting port of the routing node is a transmitting packet and the data obtained at the receiving port is a receiving packet according to the hardware detection.
More specifically, whether the data packet is the transmission packet or the reception packet is judged firstly at the transmission port and the reception port of the routing node by judging whether the data packet is the same service flow or not through the service flow identification number (flow-id); if a packet is transmitted, its byte size is added to the tx_bytes field, and if a packet is received, its byte size is added to the rx_bytes field. The tx_bytes field and the rx_bytes field are preset respectively and are used for recording the sending traffic and the receiving traffic respectively.
In step 305, the routing node uploads the collected traffic data to the control center.
Specifically, when the measurement interval t comes, the routing node performs an uploading step, and further, during uploading, the flow data can be packaged into feedback information for uploading, so that the data can be accurately transmitted, the data transmission can be integrated into the existing protocol, and the popularization of the invention is facilitated.
And after the flow data is uploaded, resetting two preset fields of rx_bytes and tx_bytes, so as to record the subsequent data conveniently.
And 306, the control center finds the information of the rx_bytes and the tx_bytes fields corresponding to the service flow among the nodes according to the node-id and the flow-id.
Step 307, accumulating the values of the rx_bytes and tx_bytes field information, respectively.
Taking the adjacent node as a node a and a node B as an example, when measuring an interval t, the Bandwidth used by a certain traffic flow can be calculated by the following formula, ab_bandwidth [ t ] =max (a_tx_bytes [ t ], b_rx_bytes [ t ]) 8/ab_delay [ seq ], to obtain a calculation result unit as bps, where: a_tx_bytes [ t ] represents the size of data packet bytes of the same flow-id transmitted and accumulated recorded by node A at the measurement interval t; b_rx_bytes [ t ] represents the cumulative record of the packet byte size of the node B receiving the same flow-id at the measurement interval t.
It can be found that the above steps 304 to 307 are specifically executed how to measure the bandwidth of the traffic flow to be measured, specifically by accumulating the data traffic transmitted under each traffic flow, and measuring the bandwidth used by a certain traffic flow. Because the existing bandwidth measurement either measures the total bandwidth or measures the bandwidth of a specific port, and the bandwidth value allocated by the network cannot be measured according to different service flows, the bandwidth statistics can be performed on the network layer by utilizing the bandwidth measurement mode in the embodiment, so that the bandwidth actually obtained by each service flow can be conveniently known, and the bandwidth data corresponding to each service flow is convenient for other evaluation of the service.
The above steps of the methods are divided, for clarity of description, and may be combined into one step or split into multiple steps when implemented, so long as they include the same logic relationship, and they are all within the protection scope of this patent; it is within the scope of this patent to add insignificant modifications to the algorithm or flow or introduce insignificant designs, but not to alter the core design of its algorithm and flow.
A fourth embodiment of the present invention relates to a forwarding device, as shown in fig. 4, including:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of measuring data transmission quality as in the first or second embodiments described above.
Where the memory and the processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting the various circuits of the one or more processors and the memory together. The bus may also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or may be 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 is transmitted over the wireless medium via the antenna, which further receives the data and transmits the data to the processor.
The processor 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 may be used to store data used by the processor in performing operations.
A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program implements the above-described method embodiments when executed by a processor.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, functional modules/units in the apparatus, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed cooperatively by several physical components. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples of 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.

Claims (13)

1. A method for measuring quality of data transmission, comprising:
the forwarding equipment responds to received message information and detects control word information of the message information, wherein the message information is message information of service messages;
determining whether network quality needs to be measured according to the state of a preset flag bit in the control word;
and if the network quality is determined to be required to be measured, collecting data required by measurement for determining the network quality.
2. The method according to claim 1, wherein the state of the preset flag bit is set by a setting device, and wherein the setting device sets the preset flag bit of the received message information after detecting that the message information contains the specified content.
3. The method according to claim 2, wherein the setting device is the forwarding device or is independent of other forwarding devices outside the forwarding device.
4. The method for measuring data transmission quality according to claim 1, wherein after the acquisition of the data required for measurement, comprising:
and sending the acquired data to a control center for the control center to determine the data transmission quality.
5. The method according to claim 4, wherein the collected data is sent to a control center, and the control center gathers the data of different forwarding devices and then determines the data transmission quality.
6. The method for measuring data transmission quality according to claim 4, wherein the step of sending the collected data to a control center comprises:
and when a preset measurement interval arrives, the acquired data are sent to the control center.
7. The method according to claim 4, wherein the control center is built in the forwarding device or is built in a device independent from the forwarding device.
8. The method for measuring data transmission quality according to claim 4, wherein the step of sending the collected data to a control center comprises:
and packaging the acquired data into a format of feedback information, and then sending the feedback information to the control center.
9. The method for measuring data transmission quality according to claim 1, wherein the number of the preset flag bits is at least 2;
the determining whether the network quality needs to be measured according to the state of the preset flag bit in the message information comprises the following steps:
and determining different indexes which need to be measured for representing the network quality according to the states of at least 2 zone bits in the message information.
10. The method according to claim 1, wherein when at least one of a delay, delay jitter, or out-of-order condition characterizing network quality is required to be measured, the required data includes: and the sequence number and the time stamp of the data received by the forwarding equipment are the sequence number and the time stamp of the data sent by the forwarding equipment.
11. The method for measuring data transmission quality according to claim 1, further comprising:
determining whether the bandwidth used by each service flow needs to be measured according to the state of a preset flag bit in the message information;
and if the bandwidth used by each service flow needs to be measured, accumulating the data flow transmitted by each service flow.
12. A forwarding device, comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of measuring data transmission quality according to any one of claims 1 to 11.
13. A computer-readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the method of measuring the quality of data transmission according to any one of claims 1 to 11.
CN201911000753.1A 2019-10-21 2019-10-21 Method for measuring data transmission quality, forwarding device and readable storage medium Active CN112769631B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911000753.1A CN112769631B (en) 2019-10-21 2019-10-21 Method for measuring data transmission quality, forwarding device and readable storage medium
PCT/CN2020/121215 WO2021078061A1 (en) 2019-10-21 2020-10-15 Data transmission quality measurement method, forwarding device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911000753.1A CN112769631B (en) 2019-10-21 2019-10-21 Method for measuring data transmission quality, forwarding device and readable storage medium

Publications (2)

Publication Number Publication Date
CN112769631A CN112769631A (en) 2021-05-07
CN112769631B true CN112769631B (en) 2024-02-06

Family

ID=75620387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911000753.1A Active CN112769631B (en) 2019-10-21 2019-10-21 Method for measuring data transmission quality, forwarding device and readable storage medium

Country Status (2)

Country Link
CN (1) CN112769631B (en)
WO (1) WO2021078061A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114826975B (en) * 2022-06-27 2022-09-27 天津天睿科技有限公司 Data transmission optimization method, control device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155038A (en) * 2006-09-29 2008-04-02 中兴通讯股份有限公司 Method and system for acquiring service quality of multimedia broadcast/multicast service
CN101552703A (en) * 2009-04-10 2009-10-07 中国联合网络通信集团有限公司 A method and device to measure service quality parameters and a method and device to judge service quality
CN102036273A (en) * 2009-09-24 2011-04-27 华为技术有限公司 Method, device and system for measuring automatic neighbor relation (ANR)
CN102281570A (en) * 2010-06-09 2011-12-14 电信科学技术研究院 Measurement control method and equipment
CN102316086A (en) * 2010-07-02 2012-01-11 中兴通讯股份有限公司 Relay method for service data and relay node system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10362507B2 (en) * 2016-06-10 2019-07-23 Huawei Technologies Co., Ltd. Systems and method for quality of service monitoring, policy enforcement, and charging in a communications network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155038A (en) * 2006-09-29 2008-04-02 中兴通讯股份有限公司 Method and system for acquiring service quality of multimedia broadcast/multicast service
CN101552703A (en) * 2009-04-10 2009-10-07 中国联合网络通信集团有限公司 A method and device to measure service quality parameters and a method and device to judge service quality
CN102036273A (en) * 2009-09-24 2011-04-27 华为技术有限公司 Method, device and system for measuring automatic neighbor relation (ANR)
CN102281570A (en) * 2010-06-09 2011-12-14 电信科学技术研究院 Measurement control method and equipment
CN102316086A (en) * 2010-07-02 2012-01-11 中兴通讯股份有限公司 Relay method for service data and relay node system

Also Published As

Publication number Publication date
CN112769631A (en) 2021-05-07
WO2021078061A1 (en) 2021-04-29

Similar Documents

Publication Publication Date Title
US7668107B2 (en) Hardware implementation of network testing and performance monitoring in a network device
CN107508719B (en) Method and device for measuring network time delay and network node
US10091081B2 (en) Method for devices in a network to participate in an end-to-end measurement of latency
CN101272290B (en) Measuring method, measuring apparatus for route congestion state in IP network
CN101729197B (en) Method, device and system for detecting packet loss rate
CN111817977B (en) Network congestion control method and device
WO2016049872A1 (en) Device and method for measuring network packet loss
US10616088B2 (en) Apparatus and method for measurements at intermediate nodes in end-to-end performance test
CN112054965A (en) Congestion control method, equipment and computer readable medium
CN109997336B (en) Measuring method for determining a transit time in a data network on demand
WO2022062931A1 (en) Network anomaly determination method and apparatus
WO2021050083A1 (en) Adaptive in-band network telemetry for full network coverage
US20230171175A1 (en) Real-time network-wide link latency monitoring with in-network int sampling and aggregation
CN112769631B (en) Method for measuring data transmission quality, forwarding device and readable storage medium
EP2936741A1 (en) Probing a network
CN103457790A (en) Marking method for timestamp and detection method, device and system of timestamp
US8289868B2 (en) Network device and method of measuring upstream bandwidth employed thereby
JP5889812B2 (en) Delay measurement method and delay measurement system
CN113708985B (en) Flow detection method, device and system
US11388090B2 (en) Bandwidth measurement method and measurement device
WO2020062225A1 (en) Mac device and time point estimation method
CN113328903B (en) Method, device and system for detecting transmission quality
CN115632986B (en) Path load balancing method and system
CN116137599A (en) Message statistics method and related equipment
WO2024055584A1 (en) Delay measurement method, electronic device, and computer-readable 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