CN107547300B - Network quality detection method and device - Google Patents

Network quality detection method and device Download PDF

Info

Publication number
CN107547300B
CN107547300B CN201710457972.7A CN201710457972A CN107547300B CN 107547300 B CN107547300 B CN 107547300B CN 201710457972 A CN201710457972 A CN 201710457972A CN 107547300 B CN107547300 B CN 107547300B
Authority
CN
China
Prior art keywords
dyeing
service
message
messages
binary
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
CN201710457972.7A
Other languages
Chinese (zh)
Other versions
CN107547300A (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201710457972.7A priority Critical patent/CN107547300B/en
Publication of CN107547300A publication Critical patent/CN107547300A/en
Application granted granted Critical
Publication of CN107547300B publication Critical patent/CN107547300B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a network quality detection method and a device, which are applied to an inlet device, wherein the inlet device sends a dyeing message for detecting the network quality by using a first dyeing period, and sends the dyeing message for expressing the number of the dyeing messages sent by the first dyeing period by using a second dyeing period, so that an outlet device determines the number of the dyeing messages sent by the inlet device in the first dyeing period based on the dyeing messages received by the second dyeing period, and then determines the packet loss rate of network transmission according to the number of the dyeing messages received in the first dyeing period counted by the outlet device. In the whole detection process, all dyeing messages are dyed based on normal service messages, message interaction irrelevant to service is not involved, and the detection of the network quality is realized under the condition that extra network resources are not occupied.

Description

Network quality detection method and device
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method and an apparatus for detecting network quality.
Background
With the rapid development of network technologies, network-based applications (e.g., internet phones) are increasing, and users are also more concerned about the transmission quality of the applications in the network, such as packet loss rate, time delay, and the like.
At present, the detection of network transmission quality (network quality for short) is mainly based on the dyeing processing of service messages, specifically, at the side of the service message entrance device, the service messages are dyed, and the number of the dyed service messages is counted; after the service message is transmitted by the network, counting the number of the received dyeing service messages at the side of the outlet equipment; the inlet device and the outlet device report the counted number of the dyeing service messages to the management device, and the management device calculates the packet loss rate. The detection process needs management equipment to participate, and both the inlet equipment and the outlet equipment need to perform information interaction which is irrelevant to service with the management equipment, so that network resources are occupied.
Disclosure of Invention
The invention aims to provide a network quality detection method and a network quality detection device, which are used for reducing the number of non-service messages for detecting the network quality.
In order to achieve the purpose, the invention provides the following technical scheme:
the invention provides a network quality detection method, which is applied to an entrance device, wherein the dyeing periods of the exit device and the entrance device are synchronous, and the method comprises the following steps:
sending a dyeing message in a first dyeing period;
determining binary numbers corresponding to the number of the dyeing messages sent in the first dyeing period;
determining a plurality of continuous service messages to be sent and a preset number of boundary service messages in a second dyeing period continuous to the first dyeing period, wherein the plurality of continuous service messages are sorted according to the serial numbers of the service messages, each service message corresponds to one binary bit in the binary number, and the preset number of boundary service messages are service messages which are except the plurality of continuous service messages and have continuous serial numbers of the service messages corresponding to the lowest binary bit of the binary number;
dyeing and sending a service message corresponding to a binary bit with a value of 1, and sending a service message corresponding to a binary bit with a value of 0, and dyeing and sending a first demarcation service message with a largest difference between a serial number in the preset number of demarcation service messages and a serial number of a service message corresponding to the lowest binary bit, so that the outlet equipment determines the lowest binary bit of the binary number according to the first demarcation service message and the number of the preset number of demarcation service messages, restores binary numbers represented by the plurality of continuous service messages according to the serial numbers of the service messages, and determines a packet loss rate according to the binary numbers and the number of the dyeing messages received in the first dyeing period.
The invention provides a network quality detection device, which is applied to an entrance device, wherein the dyeing cycle of the exit device and the dyeing cycle of the entrance device are synchronous, and the device comprises:
a message sending unit, configured to send a dyeing message in a first dyeing period;
a binary determining unit, configured to determine a binary number corresponding to the number of the dyeing messages sent in the first dyeing period;
a message determining unit, configured to determine, in a second dyeing cycle that is continuous with the first dyeing cycle, a plurality of continuous service messages to be sent and a preset number of boundary service messages, where the plurality of continuous service messages are sorted according to sequence numbers of the service messages, each service message corresponds to one binary bit in the binary number, and the preset number of boundary service messages are service messages that are outside the plurality of continuous service messages and have continuous sequence numbers of the service messages corresponding to the lowest binary bit of the binary number;
the message processing unit is configured to dye and send a service message corresponding to a binary bit with a value of 1, and send a service message corresponding to a binary bit with a value of 0, dye and send a first demarcation service message with a largest difference between a serial number in the preset number of demarcation service messages and a serial number of a service message corresponding to the lowest binary bit, so that the outlet device determines the lowest binary bit of the binary number according to the first demarcation service message and the number of the preset number of demarcation service messages, restores the binary number represented by the plurality of continuous service messages according to the serial number of the service message, and determines a packet loss rate according to the binary number and the number of the dye messages received in the first dyeing period.
As can be seen from the above description, the ingress device of the present invention utilizes the first dyeing cycle to send the dyeing messages for detecting the network quality, and utilizes the second dyeing cycle to send the dyeing messages for indicating the number of the dyeing messages sent in the first dyeing cycle, so that the egress device determines the number of the dyeing messages sent in the first dyeing cycle by the ingress device based on the dyeing messages received in the second dyeing cycle, and then determines the packet loss rate of the network transmission according to the number of the dyeing messages received in the first dyeing cycle counted by the egress device itself. In the whole detection process, all dyeing messages are dyed based on normal service messages, message interaction irrelevant to service is not involved, and the detection of the network quality is realized under the condition that extra network resources are not occupied.
Drawings
Fig. 1 is a schematic diagram of a network quality detection system according to an embodiment of the present invention;
fig. 2 is a flow chart of a network quality detection method according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a correspondence relationship between a binary number and a plurality of continuous service messages according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a plurality of continuous service messages and a preset number of boundary service messages after being dyed according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating a plurality of continuous service messages and a preset number of boundary service messages (including check service messages) after being dyed according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an inlet apparatus shown in an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a network quality detection apparatus according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present invention. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Referring to fig. 1, a schematic diagram of a network quality detection system according to an embodiment of the present invention is shown. The system comprises two terminal devices PC1 and PC2, two routing devices R1 and R2. If the traffic message is sent from the PC1 to the PC2, R1 is the ingress device, and R2 is the egress device, and the network quality from the ingress device to the egress device is detected.
Before detection, an ingress device and an egress device are configured, and it is specified which service flow is based on which network quality detection is performed, for example, five-tuple information (source IP address, source port number, destination IP address, destination port number, protocol type) of the service flow is added to an Access Control List (ACL) of the ingress device and the egress device, network quality detection is performed based on a service packet matching the ACL, and meanwhile, the ingress device is specified to dye the service packet, where dyeing refers to identifying a certain feature bit of the service packet to distinguish from other service packets.
In addition, the clocks of the inlet device and the outlet device are synchronized, and the dyeing cycle is synchronized, for example, if the starting time of the current dyeing cycle of the inlet device is 8:30:10, the starting time of the current dyeing cycle of the outlet device is also 8:30:10, and if the preset dyeing cycle is 1 second, the inlet device and the outlet device both enter the next dyeing cycle at 8:30: 11.
Referring to fig. 2, a flowchart of an embodiment of the network quality detection method according to the present invention is shown, where the embodiment describes a network quality detection process from an ingress device side.
Step 201, sending a dyeing message in a first dyeing period.
The ingress device is responsible for dyeing the service packet, for example, setting bit 0 (reserved bit, usually default to 0) of a Flag field in an IP packet header of the service packet to 1, so as to obtain a dyed packet.
The length of the dyeing cycle in the present invention is generally at least greater than twice the maximum transit time delay from the inlet device to the outlet device. The inlet device finishes the sending of the dyeing messages in the first half period of the first dyeing period, so that the outlet device can receive all the dyeing messages sent by the inlet device in the first dyeing period, and the number of the dyeing messages received in the first dyeing period is counted.
Step 202, determining binary numbers corresponding to the number of the dyeing messages sent in the first dyeing period.
The ingress device converts the number of the dyeing messages sent in the first dyeing cycle into a corresponding binary number, for example, if the ingress device sends 1000 dyeing messages in the first dyeing cycle, the corresponding binary number is 1111101000.
Step 203, in a second dyeing cycle continuous with the first dyeing cycle, determining a plurality of continuous service messages to be sent and a preset number of boundary service messages.
A plurality of continuous service messages are sorted according to the sequence number of the service message, and each service message corresponds to a binary bit in the binary number, for example, the binary number 1111101000 includes 10 binary bits, and then 10 continuous service messages are required to represent the binary number, and each service message corresponds to a binary bit. And simultaneously, determining a preset number of boundary service messages, wherein the boundary service messages are service messages which are except the plurality of continuous service messages and have continuous serial numbers of the service messages corresponding to the lowest binary digits of the binary numbers.
And 204, dyeing and transmitting the service message corresponding to the binary digit with the value of 1, transmitting the service message corresponding to the binary digit with the value of 0, and dyeing and transmitting the first demarcation service message with the largest difference between the serial number in the preset number of demarcation service messages and the serial number of the service message corresponding to the lowest binary digit.
Still taking the binary number 1111101000 as an example, assuming that the message sequence numbers of 10 consecutive service messages determined in step 203 are 301-310, the service messages sequentially correspond to the highest binary bit to the lowest binary bit of the binary number according to the sequence number from small to large, see fig. 3, which is the corresponding relationship between the binary number and a plurality of consecutive service messages.
Taking the service message with the transmission serial number of 301 as an example, the service message corresponds to the highest binary digit of the binary number, the value of the highest binary digit is 1, the service message with the serial number of 301 is transmitted after being dyed, the values of the binary digits corresponding to the service messages with the serial numbers of 302, 303, 304, 305 and 307 are all 1, and the service messages are transmitted after being dyed; the values of binary bits corresponding to the service messages with sequence numbers 306, 308, 309, and 310 are all 0, and the service messages are sent directly without dyeing. In addition, the step also dyes and transmits the first boundary service message with the largest difference between the serial number in the boundary service messages with the preset number and the serial number of the service message corresponding to the lowest binary digit. Referring to fig. 4, a schematic diagram of a plurality of continuous service messages and a preset number of boundary service messages after being dyed is shown, where the number of the preset number of boundary service messages in the schematic diagram is only one, and therefore, the boundary service message is a first boundary service message, and the first boundary service message is sent after being dyed.
The outlet equipment counts the number of the received dyeing messages in the dyeing period, and determines whether the dyeing messages used for detecting the packet loss rate or the dyeing messages used for representing the number of the dyeing messages sent by the inlet equipment in the previous dyeing period are received in the current dyeing period according to the number of the received dyeing messages. As can be seen from the foregoing description, the dyeing message sent by the ingress device in the second dyeing period is significantly less than the dyeing message sent in the first dyeing period, so that a dyeing count bit threshold may be preset on the egress device (for example, the number of binary bits corresponding to the maximum number of dyeing messages allowed to be sent in a single dyeing period may be used as the dyeing count bit threshold), and when the number of dyeing messages received in a dyeing period is less than the preset dyeing count bit threshold, it indicates that the dyeing message sent by the ingress device in the previous dyeing period is received in the current dyeing period, that is, the egress device is currently in the second dyeing period synchronized with the ingress device.
The egress device sorts the service messages received in the second dyeing cycle according to the message sequence numbers, and determines the first dyeing message and the last dyeing message received, as shown in fig. 4, the service message with the sequence number 301 is the first dyeing message, and the service message with the sequence number 311 is the last dyeing message. The exit device determines the number of the dyeing messages sent by the entry device in the first dyeing period according to the service messages (including the first dyeing message and the last dyeing message) between the first dyeing message and the last dyeing message. Specifically, the egress device restores the binary number corresponding to the number of the dyeing messages sent by the ingress device in the first dyeing cycle according to the same corresponding relationship between the service message and the binary number as the ingress device, for example, as mentioned above, the ingress device sequentially corresponds the service packets to the highest binary digit to the lowest binary digit of the binary digits according to the sequence number from small to large, therefore, the egress device can know that the first dyeing message received corresponds to the highest binary bit of the binary number, and the last dyeing message is the first demarcation service message, then according to the number of the preset number of boundary service messages, determining the lowest binary bit of the binary number corresponding to the service message which is positioned between the first dyeing message and the last dyeing message and has the difference of the message serial number of the first boundary service message by the preset number of serial numbers, and determining the packet loss rate according to the restored binary number and the number of the dyeing messages received in the first dyeing period.
Further, in order to prevent the service messages sent in the second dyeing cycle and used for representing the number from being lost or tampered, the inlet device of the present invention uses the designated boundary service messages except the first boundary service message in the preset number of boundary service messages as the check service messages, and uses the check service messages to represent the check value of the binary number. Specifically, the ingress device determines a check value of a binary number, and dyes the check service message when the check value is 1; and when the check value is 0, the check service message is prohibited from being dyed. For example, taking the odd parity as an example, the odd parity value of the binary number (1111101000) is 1, so the check service message is dyed. Referring to fig. 5, a schematic view of a dyeing process including a check service packet is shown. The outlet equipment checks the restored binary number based on the specified boundary service message (namely, the check service message), and determines the packet loss rate according to the restored binary number and the number of the dyeing messages received in the first dyeing period after the binary number is confirmed to pass the check; if the verification is not passed, the round of detection is abandoned.
In addition, when step 203 is executed to determine a plurality of continuous service messages to be sent and a preset number of demarcation service messages, the present invention may determine the plurality of continuous service messages to be sent and the preset number of demarcation service messages to be sent starting at the starting time point of the second dyeing cycle as the plurality of continuous service messages to be sent and the preset number of demarcation service messages. Therefore, no matter the inlet equipment sends the boundary service message first or sends the service message corresponding to the highest bit of the binary number first, the dyeing message is sent at the starting time point of the second dyeing period, and therefore, the outlet equipment can determine the time delay according to the time point of the first dyeing message received in the second dyeing period and the starting time point of the second dyeing period.
It can be seen from the above description that, in the whole detection process, all the dyed messages are dyed based on normal service messages, and no message interaction irrelevant to the service is involved, so that the detection of the network quality is realized under the condition of not occupying additional network resources.
The network quality detection process will now be described in detail by taking the system shown in fig. 1 as an example.
The service message is sent from the PC1 to the PC2, where R1 is an ingress device, and R2 is an egress device, and the packet loss rate and the time delay of the service message from R1 to R2 are detected.
Configuring ACL1 on R1, wherein the ACL1 is used for indicating R1 to dye a service message sent by a PC1 to the PC 2; and an ACL2 is configured on the R2 and used for indicating the R2 to carry out quality detection on the service message sent by the PC1 to the PC 2. The preset dyeing period is 1s, the dyeing period is started at the time of the whole second, and R1 and R2 are synchronized in clock, so that the dyeing period is also synchronized. The number of boundary service messages to be used subsequently is preset to be 2 on R1 and R2, and boundary service messages continuous with the sequence number of the first boundary service message are designated as check service messages.
R1 starts to dye the traffic packet (traffic packet sent by PC1 to PC 2) matching the ACL1 policy at 8:30:10 (the dyeing cycle started at this time point is denoted as T1) (bit position 0 of Flag field in IP packet header 1) and sends it, and stops dyeing after dyeing and sending 1000 traffic packets (the 1000 traffic packets are sent in the first half of the cycle).
R2 counts the number of received dye messages for the service messages (service messages sent from PC1 to PC 2) matching the ACL2 policy in the dye cycle T1, and assumes that the number of received dye messages in T1 is 990.
The R2 compares the number 990 with a preset dye count bit threshold (assuming that the dye count bit threshold is 22), and the number of dye messages counted in the T1 is far greater than the dye count bit threshold, so that it is determined that the dye message sent by the R1 and used for detecting the packet loss rate is received in the current dye cycle T1.
R1 converts the number 1000 of the dyeing messages sent in the T1 cycle into the corresponding binary number 1111101000, where the binary number includes 10-bit binary bits, and 10 continuous service messages are correspondingly required for representation, and in addition, 2 boundary service messages also need to be determined. R1 sorts the 10 service messages to be sent at the starting time point of the next dyeing cycle (8:30:11 starting dyeing cycle, denoted as T2) according to the message sequence numbers (message sequence numbers 301 to 310), and establishes the corresponding relationship between the binary bits and the service messages, as shown in fig. 3. Dyeing and sending the service message with the serial number of 301 corresponding to the highest binary digit at the starting time point 8:30:11 of the T2 period, then dyeing and sending the service message corresponding to the binary digit with the value of 1 in sequence according to the serial number sequence, and directly sending the service message corresponding to the binary digit with the value of 0 without dyeing; after the transmission of the service message with the sequence number of 310 corresponding to the lowest binary digit is completed, starting to transmit 2 boundary service messages (the service message with the sequence number of 311 and the service message with the sequence number of 312), wherein the service message with the sequence number of 312 is a first boundary service message, the service message with the sequence number of 311 is a check service message, and since the odd check value of the binary digit is 1, R1 dyes the check service message and transmits the check service message; and then the first demarcation service message is sent after being dyed, see fig. 5.
As can be seen from fig. 5, the number of the received dye messages sent by the PC1 to the PC2 in the dye cycle T2 is counted by R2, and the number of the received dye messages in the T2 cycle is 8, and the number (8) is smaller than the preset dye count bit threshold (22), so that it is determined that the dye messages received in the T2 cycle are dye messages used for indicating the number of the dye messages sent by R1 in the T1 cycle.
R2 sorts the service messages received in the T2 period according to the message serial numbers, and determines that the service message located between the first dyed message and the last dyed message is the service message used for representing the number of the dyed messages, wherein the message serial number of the first dyed message is 301, and the message serial number of the last dyed message is 312. Since R2 and R1 follow the same correspondence between service packets and binary digits, R2 may determine that the service packet with sequence number 301 corresponds to the highest binary digit of the binary digits, the service packet with sequence number 312 is the first demarcation service packet, and then, according to the number (2) of the preset demarcation service packets, may determine that the service packet with sequence number 310 corresponds to the lowest binary digit of the binary digits, and the service packet with sequence number 311 consecutive to the sequence number of the first demarcation service packet is the verification service packet. Then, setting the value of the binary digit corresponding to the dyeing message to 1, and setting the value of the binary digit corresponding to the non-dyeing message to 0, completing the restoration of the binary digit, performing odd check on the restored binary digit (the check service message with the serial number of 311 is the dyeing message, and the corresponding check value is 1), and if the binary digit passes the check, determining that the currently restored binary digit is correct. The number 990 of the dyeing messages received in the period T1 is subtracted from the restored binary number (1111101000, corresponding to the decimal number of 1000), and the obtained value is divided by the number of 1000, so that the packet loss rate is 1%.
Meanwhile, R2 may determine the delay to be 15ms according to the time (assumed to be 15ms after 8:30: 11) of receiving the first dye message sent by R1 in the T2 period and the start time (8:30:11, R1 sends the first dye message at this time point) of the T2 period.
Corresponding to the embodiment of the network quality detection method, the invention also provides an embodiment of a network quality detection device.
The embodiment of the network quality detection device can be applied to the outlet equipment. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. A software implementation is taken as an example, and a logical means is formed by a processor of the device in which it is located running corresponding computer program instructions in a memory. From a hardware aspect, as shown in fig. 6, the hardware structure diagram of the device in which the network quality detection apparatus is located is shown, except for the processor and the nonvolatile memory shown in fig. 6, the device in which the apparatus is located in the embodiment may also include other hardware according to the actual function of the device, which is not described again.
Fig. 7 is a schematic structural diagram of a network quality detection apparatus according to an embodiment of the present invention. The network quality detection device comprises a message sending unit 701, a binary system determining unit 702, a message determining unit 703 and a message processing unit 704, wherein:
a message sending unit 701, configured to send a dyeing message in a first dyeing period;
a binary determining unit 702, configured to determine a binary number corresponding to the number of the dyeing messages sent in the first dyeing period;
a message determining unit 703, configured to determine, in a second dyeing cycle that is continuous with the first dyeing cycle, a plurality of continuous service messages to be sent and a preset number of boundary service messages, where the plurality of continuous service messages are sorted according to sequence numbers of the service messages, each service message corresponds to one binary bit in the binary number, and the preset number of boundary service messages are service messages that are outside the plurality of continuous service messages and have continuous sequence numbers of the service messages corresponding to the lowest binary bit of the binary number;
a message processing unit 704, configured to dye and send a service message corresponding to a binary bit with a value of 1, and send a service message corresponding to a binary bit with a value of 0, and dye and send a first demarcation service message with a largest difference between a serial number in the preset number of demarcation service messages and a serial number of a service message corresponding to the lowest binary bit, so that the egress device determines the lowest binary bit of the binary number according to the first demarcation service message and the number of the preset number of demarcation service messages, and restores the binary number represented by the multiple consecutive service messages according to the serial number of the service message, and determines a packet loss rate according to the binary number and the number of the dye messages received in the first dyeing period.
Further, the air conditioner is provided with a fan,
the message sending unit 701 is specifically configured to send a dyeing message in the first half of the first dyeing cycle.
Further, the preset number of boundary service messages includes a check service message, the check service message is a designated boundary service message except the first boundary service message,
the message processing unit 704 is further configured to determine a check value of the binary number; when the check value is 1, dyeing the check service message; and when the check value is 0, prohibiting dyeing of the check service message, so that the outlet equipment checks the binary number based on the check service message.
Further, the air conditioner is provided with a fan,
the message determining unit 702 is specifically configured to determine, as the multiple continuous service messages to be sent and the boundary service messages of the preset number, that the multiple continuous service messages and the boundary service messages start to be sent at the starting time point of the second dyeing cycle, so that the egress device determines the time delay according to the time of the first dyeing message received in the second dyeing cycle and the starting time point of the second dyeing cycle.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (8)

1. A network quality detection method is applied to an inlet device, and a dyeing cycle of an outlet device and the dyeing cycle of the inlet device are synchronous, wherein the method comprises the following steps:
sending a dyeing message in a first dyeing period;
determining binary numbers corresponding to the number of the dyeing messages sent in the first dyeing period;
determining a plurality of continuous service messages to be sent and a preset number of boundary service messages in a second dyeing period continuous to the first dyeing period, wherein the plurality of continuous service messages are sorted according to the serial numbers of the service messages, each service message corresponds to one binary bit in the binary number, and the preset number of boundary service messages are service messages which are except the plurality of continuous service messages and have continuous serial numbers of the service messages corresponding to the lowest binary bit of the binary number;
dyeing and sending a service message corresponding to a binary bit with a value of 1, and sending a service message corresponding to a binary bit with a value of 0, and dyeing and sending a first demarcation service message with a largest difference between a serial number in the preset number of demarcation service messages and a serial number of a service message corresponding to the lowest binary bit, so that the outlet equipment determines the lowest binary bit of the binary number according to the first demarcation service message and the number of the preset number of demarcation service messages, restores binary numbers represented by the plurality of continuous service messages according to the serial numbers of the service messages, and determines a packet loss rate according to the binary numbers and the number of the dyeing messages received in the first dyeing period.
2. The method of claim 1, wherein sending the dye message in the first dye cycle comprises:
and sending the dyeing message in the first half period of the first dyeing period.
3. The method of claim 1, wherein the predetermined number of boundary service packets includes a check service packet, and the check service packet is a designated boundary service packet other than the first boundary service packet, and the method further comprises:
determining a check value of the binary number;
when the check value is 1, dyeing the check service message; and when the check value is 0, prohibiting dyeing of the check service message, so that the outlet equipment checks the binary number based on the check service message.
4. The method of claim 1, wherein the determining a plurality of consecutive service messages and a preset number of demarcation service messages to be sent comprises:
determining a plurality of continuous service messages and a preset number of boundary service messages to be sent beginning at the starting time point of the second dyeing cycle as the plurality of continuous service messages and the preset number of boundary service messages to be sent, so that the outlet device determines the time delay according to the time of the first dyeing message received in the second dyeing cycle and the starting time point of the second dyeing cycle.
5. A network quality detection device applied to an inlet device, wherein the dyeing cycle of the outlet device and the dyeing cycle of the inlet device are synchronous, the device is characterized by comprising:
a message sending unit, configured to send a dyeing message in a first dyeing period;
a binary determining unit, configured to determine a binary number corresponding to the number of the dyeing messages sent in the first dyeing period;
a message determining unit, configured to determine, in a second dyeing cycle that is continuous with the first dyeing cycle, a plurality of continuous service messages to be sent and a preset number of boundary service messages, where the plurality of continuous service messages are sorted according to sequence numbers of the service messages, each service message corresponds to one binary bit in the binary number, and the preset number of boundary service messages are service messages that are outside the plurality of continuous service messages and have continuous sequence numbers of the service messages corresponding to the lowest binary bit of the binary number;
the message processing unit is configured to dye and send a service message corresponding to a binary bit with a value of 1, and send a service message corresponding to a binary bit with a value of 0, dye and send a first demarcation service message with a largest difference between a serial number in the preset number of demarcation service messages and a serial number of a service message corresponding to the lowest binary bit, so that the outlet device determines the lowest binary bit of the binary number according to the first demarcation service message and the number of the preset number of demarcation service messages, restores the binary number represented by the plurality of continuous service messages according to the serial number of the service message, and determines a packet loss rate according to the binary number and the number of the dye messages received in the first dyeing period.
6. The apparatus of claim 5, wherein:
the message sending unit is specifically configured to send a dyeing message in the first half of the first dyeing cycle.
7. The apparatus of claim 5, wherein the predetermined number of demarcation service messages includes a check service message, the check service message is a designated demarcation service message other than the first demarcation service message,
the message processing unit is further configured to determine a check value of the binary number; when the check value is 1, dyeing the check service message; and when the check value is 0, prohibiting dyeing of the check service message, so that the outlet equipment checks the binary number based on the check service message.
8. The apparatus of claim 5, wherein:
the message determining unit is specifically configured to determine a plurality of continuous service messages and a preset number of boundary service messages to be sent beginning at the starting time point of the second dyeing cycle as the plurality of continuous service messages and the preset number of boundary service messages to be sent, so that the egress device determines the time delay according to the time of the first dyeing message received in the second dyeing cycle and the starting time point of the second dyeing cycle.
CN201710457972.7A 2017-06-16 2017-06-16 Network quality detection method and device Active CN107547300B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710457972.7A CN107547300B (en) 2017-06-16 2017-06-16 Network quality detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710457972.7A CN107547300B (en) 2017-06-16 2017-06-16 Network quality detection method and device

Publications (2)

Publication Number Publication Date
CN107547300A CN107547300A (en) 2018-01-05
CN107547300B true CN107547300B (en) 2020-05-12

Family

ID=60970912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710457972.7A Active CN107547300B (en) 2017-06-16 2017-06-16 Network quality detection method and device

Country Status (1)

Country Link
CN (1) CN107547300B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112702218A (en) * 2019-10-22 2021-04-23 中兴通讯股份有限公司 Method, system, network device and storage medium for detecting data transmission quality
CN112866042B (en) * 2019-11-12 2023-07-18 中兴通讯股份有限公司 Network quality detection method, device, computer equipment and computer readable medium
CN113067740B (en) * 2020-01-02 2023-09-05 中国移动通信有限公司研究院 Method, device, equipment and computer readable storage medium for detecting following path performance
CN112039724B (en) * 2020-08-17 2021-09-28 鹏城实验室 Network packet loss detection method, device, storage medium and network system
CN112291093A (en) * 2020-10-29 2021-01-29 迈普通信技术股份有限公司 Network detection method, device, network equipment and network system
CN114567541A (en) * 2020-11-27 2022-05-31 中兴通讯股份有限公司 Pre-activation detection method, electronic equipment and computer readable storage medium
CN115589603A (en) * 2021-07-06 2023-01-10 华为技术有限公司 Method for detecting quality of data transmission and related device
CN114629679B (en) * 2022-01-26 2024-02-13 深圳市风云实业有限公司 Data message dyeing and detecting method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1048110A (en) * 1989-06-13 1990-12-26 迈克尔·H·弗朗西斯科 Come the method for data integrity in the maintenance information transmission by the mark that produces the sum of representing data binary one and 0
US6188674B1 (en) * 1998-02-17 2001-02-13 Xiaoqiang Chen Method and apparatus for packet loss measurement in packet networks
CN101599870A (en) * 2009-06-30 2009-12-09 西北工业大学 Network link performance measurement method
CN105591835A (en) * 2015-08-12 2016-05-18 杭州华三通信技术有限公司 Link quality detection method and device
CN105765911A (en) * 2014-09-30 2016-07-13 华为技术有限公司 Device and method for measuring network packet loss

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7636316B2 (en) * 2007-12-24 2009-12-22 Telefon Aktiebolaget Lm Ericsson (Publ) Resource allocation plan in a network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1048110A (en) * 1989-06-13 1990-12-26 迈克尔·H·弗朗西斯科 Come the method for data integrity in the maintenance information transmission by the mark that produces the sum of representing data binary one and 0
US6188674B1 (en) * 1998-02-17 2001-02-13 Xiaoqiang Chen Method and apparatus for packet loss measurement in packet networks
CN101599870A (en) * 2009-06-30 2009-12-09 西北工业大学 Network link performance measurement method
CN105765911A (en) * 2014-09-30 2016-07-13 华为技术有限公司 Device and method for measuring network packet loss
CN105591835A (en) * 2015-08-12 2016-05-18 杭州华三通信技术有限公司 Link quality detection method and device

Also Published As

Publication number Publication date
CN107547300A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
CN107547300B (en) Network quality detection method and device
CN112073246B (en) OAM message transmission method, transmission equipment and storage medium
CN107888344B (en) Method, equipment and system for detecting error code
EP3522465A1 (en) Service data transmission method, device and system, and storage medium
US20210185070A1 (en) Lightweight intrusion detection apparatus and method for vehicle network
JP5916873B2 (en) Packet loss detection method and system, transmitter and receiver
US9338035B2 (en) Microcontroller with can bus module and auto speed detect
US10237152B2 (en) Packet loss detection method, apparatus, and system
CN107370636B (en) Link state determination method and device
CN112039796B (en) Data packet transmission method and device, storage medium and electronic equipment
WO1998037658A2 (en) Channel aggregation having low latency and overhead
CN114430386A (en) Method and related device for detecting multicast service flow
CN103416022A (en) In-service throughput testing in distributed router/switch architectures
CN109391968A (en) Communication means and communication device
CN111209240B (en) Data transmission method, electronic equipment and storage medium
Ji et al. Covert channel for local area network
CN106452894A (en) Fault connection detection method and apparatus
CN102144376A (en) Band control method and band control device for node device
CN106921534A (en) Data traffic monitoring and managing method and device
CN102571277B (en) The sending method and device of serial number detection message
CN112153027B (en) Counterfeit behavior identification method, apparatus, device and computer readable storage medium
CN105577427A (en) Detection method and device for communication connection between household appliance and mobile terminal
CN113055535A (en) Method and system for generating 5G end-to-end call ticket
WO2022174695A1 (en) Method and device for receiving oam information block
US7106695B2 (en) Method of allocating bandwidth to the stations of a local area network

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