A network performance measurement method, device, communication equipment and storage medium

By adding block identification and measurement information to the data packets, the problems of device dependence and management domain restrictions in the prior art are solved, and network performance monitoring across management domains is realized.

CN115499335BActive Publication Date: 2025-04-01CHINA MOBILE COMM LTD RES INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110610170.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-01
Publication Date
2025-04-01
Estimated Expiration
2041-06-01

AI Technical Summary

Technical Problem

The existing IP flow performance monitoring scheme requires separate equipment in the collection process of measurement data, and is only applicable to the same management domain, making it difficult to realize data collection in different management domains.

Method used

The processed data packet is sent by dyeing and marking the measured data packets in the sending device and adding block marks and measurement information. The receiving device receives these data packets, identifies stain marks and extracts block marks and measurement information to determine network performance.

Benefits of technology

It realizes network performance monitoring without the need for separate measurement information collection equipment, which is suitable for scenarios in different management domains, simplifying the network performance measurement process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115499335B_ABST
    Figure CN115499335B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a network performance measurement method, device, communication equipment and storage medium. The method comprises: a sending device performs coloring marks on multiple data messages to be measured for network performance, and adds block identifiers and measurement information to the multiple data messages; and sends the processed multiple data messages.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a network performance measurement method, device, communication equipment and storage medium. Background Art

[0002] Currently, there is a network performance monitoring technology called IP Flow Performance Monitor. However, this solution requires a separate measurement information collection and matching device during the measurement data collection process, and this device is only applicable to scenarios in the same management domain. For data belonging to different management domains, it is inconvenient to collect measurement data. Summary of the invention

[0003] In order to solve the existing technical problems, the embodiments of the present invention provide a network performance measurement method, apparatus, communication equipment and storage medium.

[0004] To achieve the above object, the technical solution of the embodiment of the present invention is implemented as follows:

[0005] In a first aspect, an embodiment of the present invention provides a network performance measurement method, which is applied to a sending device, and the method includes:

[0006] Marking a plurality of data packets for which network performance measurement is to be performed, and adding block identifiers and measurement information to the plurality of data packets;

[0007] The processed multiple data packets are sent.

[0008] In the above solution, the block identifier and the measurement information are added to the multiple data messages, including:

[0009] Splitting the block identifier into multiple parts, and / or splitting the measurement information into multiple parts;

[0010] A plurality of partial block identifiers and / or a plurality of partial measurement information are respectively added to at least part of the data messages in the plurality of data messages.

[0011] In the above solution, at least one bit in each data message in the at least part of the data messages is used to carry a part of the block identifier and / or a part of the measurement information.

[0012] In the above solution, sending the plurality of data messages with coloring marks and information added includes:

[0013] Periodically sending the plurality of data messages to which the coloring mark and information addition are applied;

[0014] The periodically sending the plurality of data messages that are marked with colors and have information added includes:

[0015] For data packets to be measured for network performance, the coloring bit used for coloring marking is changed every specific time period or every specific number of packets, and a new round of block identification and measurement information is added, and the processed data packets are sent.

[0016] In the above scheme, the method also includes: every preset number of periods, giving up adding the block identifier and the measurement information to the data message, and adding protection information to the data message; the protection information is calculated based on the information added within a preset number of periods before the current period, and the protection information supports information recovery when the information added within the preset number of periods is erroneous.

[0017] In the above solution, the measurement information includes at least one of the following information:

[0018] The duration of the dyeing cycle, the number of data packets in the previous dyeing cycle, and the timestamp of the first data packet.

[0019] In a second aspect, an embodiment of the present invention further provides a network performance measurement method, which is applied to a receiving device, and the method includes:

[0020] receiving a plurality of data packets after being processed by coloring marks and information addition, wherein the added information includes a block identifier and measurement information;

[0021] identifying coloring marks in the plurality of data packets, and extracting the block identifiers and the measurement information in the plurality of data packets;

[0022] Network performance information is determined based on the measurement information.

[0023] In the above solution, the extracting block identifiers and measurement information from the multiple data messages includes:

[0024] Extracting part of the block identifiers and / or part of the measurement information from at least part of the data messages in the multiple data messages, combining the extracted part of the block identifiers into a block identifier, and / or combining the extracted part of the measurement information into the measurement information.

[0025] In the above solution, at least one bit in each data message in the at least part of the data messages is used to carry a part of the block identifier and / or a part of the measurement information.

[0026] In the above scheme, the receiving of the plurality of data packets after being processed by coloring, marking and adding information includes: receiving the plurality of data packets after being processed by coloring, marking and adding information periodically;

[0027] The identifying the coloring marks in the plurality of data packets, and extracting the block identifiers and the measurement information in the plurality of data packets, comprises:

[0028] For a data message to be subjected to network performance measurement, identifying a dyeing bit for dyeing marking, and extracting the block identifier and the measurement information;

[0029] If a change in the coloring bit is detected, the block identification and measurement information of the current cycle are restored.

[0030] In the above scheme, the method further includes: restoring protection information every preset number of periods; the protection information is calculated based on information added within a preset number of periods before the current period.

[0031] In the above scheme, the method also includes: if the block identifier and / or the measurement information extracted within a preset number of cycles before the current cycle has a verification error, then the block identifier and measurement information recovered within the cycle without verification error and the protection information are calculated to recover the block identifier and / or the measurement information within the cycle with verification error.

[0032] In the above solution, the measurement information includes at least one of the following information:

[0033] The duration of the dyeing cycle, the number of data packets in the previous dyeing cycle, and the timestamp of the first data packet.

[0034] In the above scheme, the method also includes: the receiving device sends the block identifier and the network performance information.

[0035] In a third aspect, an embodiment of the present invention further provides a network performance measurement device, the device comprising: a first message processing unit and a first sending unit; wherein,

[0036] The first message processing unit is used to color and mark a plurality of data messages for which network performance measurement is to be performed, and to add block identifiers and measurement information to the plurality of data messages;

[0037] The first sending unit is used to send the multiple data messages processed by the message processing unit.

[0038] In a fourth aspect, an embodiment of the present invention further provides a network performance measurement device, the device comprising: a receiving unit, a second message processing unit and a determining unit; wherein,

[0039] The receiving unit is used to receive a plurality of data packets after being processed by coloring marks and information addition; the added information includes block identification and measurement information;

[0040] The second message processing unit is used to identify the coloring marks in the multiple data messages, and extract the block identifiers and the measurement information in the multiple data messages;

[0041] The determining unit is used to determine network performance information based on the measurement information.

[0042] In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect or the second aspect of the embodiment of the present invention.

[0043] In a sixth aspect, an embodiment of the present invention further provides a communication device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method described in the first or second aspect of the embodiment of the present invention are implemented.

[0044] The network performance measurement method, device, communication device and storage medium provided by the embodiment of the present invention include: a sending device performs coloring and marking on multiple data packets to be measured for network performance, and adds block identifiers and measurement information to the multiple data packets; sends the processed multiple data packets; a receiving device receives the multiple data packets after the coloring and information addition processing; the added information includes block identifiers and measurement information; identifies the coloring marks in the multiple data packets, and extracts the block identifiers and the measurement information in the multiple data packets; and determines the network performance information based on the measurement information. By adopting the technical solution of the embodiment of the present invention, the sending device notifies the self-identified network performance monitoring information (such as measurement information), and the receiving device can directly obtain the added information (i.e., directly obtain the block identifier and measurement information) from the received data packets to monitor the network performance, without setting up a separate device for collecting and matching measurement information, and is not limited to a specified application scenario (such as a network performance monitoring scenario in the same management domain). BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A schematic diagram of a system architecture for applying a network performance measurement method according to an embodiment of the present invention;

[0046] Figure 2 The network performance measurement method of the present invention is shown in FIG. Figure 1 ;

[0047] Figure 3 This is a schematic diagram of the IPv4 message header structure;

[0048] Figure 4a A schematic diagram of the format of measurement information in the network performance measurement method according to an embodiment of the present invention;

[0049] Figure 4b A schematic diagram of the format of a block identifier in a network performance measurement method according to an embodiment of the present invention;

[0050] Figure 5a A schematic diagram of a method for adding information in a network performance measurement method according to an embodiment of the present invention;

[0051] Figure 5b A schematic diagram of protection information in a network performance method according to an embodiment of the present invention;

[0052] Figure 6 The network performance measurement method of the present invention is shown in FIG. Figure 2 ;

[0053] Figure 7 The structure diagram of the network performance measurement device according to the embodiment of the present invention is as follows: Figure 1 ;

[0054] Figure 8 The structure diagram of the network performance measurement device according to the embodiment of the present invention is as follows: Figure 2 ;

[0055] Fig. 9 The figure is a schematic diagram of the hardware structure of the communication device according to the embodiment of the present invention. DETAILED DESCRIPTION

[0056] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0057] Figure 1 Schematic diagram of the system architecture of the network performance measurement method according to the embodiment of the present invention; Figure 1 As shown, the system architecture used in the network performance measurement method of this embodiment includes: a measurement control point (MCP) and at least one data collection point (DCP). The above system architecture can also be called an IP flow performance monitoring (IPFPM) architecture. In a statistical period, the difference between the number of packets entering the network and the number of packets leaving the network is the number of packet losses in the network in the statistical period; information such as latency can also be counted.

[0058] In traditional technical solutions, DCP is only used to collect data (for example, in the scenario of counting packet loss, DCP is used to count the number of received messages) and report the data to MCP; MCP collects the data reported by DCP and completes the aggregation and calculation of statistical data.

[0059] In the embodiments of the present invention, a sending device performs coloring and marking on a plurality of data packets for network performance measurement, and adds block identifiers and measurement information to the plurality of data packets; the processed plurality of data packets are sent. In this way, the sending device notifies the self-identified network performance monitoring information (such as measurement information), and the receiving device can directly obtain the added information (i.e., directly obtain the block identifier and measurement information) from the received data packet to monitor the network performance, without setting up a separate measurement information collection and matching device, and is suitable for various application scenarios, not limited to network performance monitoring scenarios in the same management domain.

[0060] An embodiment of the present invention provides a network performance measurement method, which is applied to a sending device. Figure 2 The network performance measurement method of the present invention is shown in FIG. Figure 1 ;like Figure 2 As shown, the method includes:

[0061] Step 101: marking a plurality of data packets for network performance measurement, and adding block identifiers and measurement information to the plurality of data packets;

[0062] Step 102: Send the processed multiple data messages.

[0063] In this embodiment, the sending device performs coloring on the data message to be measured for network performance, to indicate that the data message to be colored is used for network performance measurement. Exemplarily, the coloring bit in the message header of the data message can be determined in a pre-agreed manner.

[0064] The coloring bit is also called a feature identification bit. For example, the coloring bit can be divided into a packet loss coloring bit and a delay coloring bit, which are used to identify whether a service message is used for packet loss statistics or for delay statistics.

[0065] Figure 3 Schematic diagram of the structure of the Internet Protocol version 4 (IPv4) message header; Figure 3As shown in the figure, the IPv4 packet header usually includes: Version Number (Version), Header Length (Header Length), Type of Service (TOS), Total Length (Total Length), Identification (Identification), Flags (Flags), Fragmentation Offset (Fragmentation Offset), Time To Live (TTL), Protocol (Protocol), Header Checksum (Header Checksum), Source Address (Source Address), Destination Address (Destination Address), Options (Options) and Padding (Padding) and other fields.

[0066] The 3rd to 7th bits of the Type of Service (TOS) field are rarely used in actual applications. If it is confirmed that the above bits are not occupied, these bits can be used as color bits to uniquely identify service messages.

[0067] The 0th bit of the Flags field is currently still a reserved bit and can be directly used as a color bit to uniquely identify the service message.

[0068] In this way, taking the data message as an IPv4 message as an example, it can be agreed in advance which bits in the above example are used as coloring bits, and further the data message to be measured for network performance can be determined by coloring marking on the determined coloring bits.

[0069] In this embodiment, the sending device does not need to pay attention to whether network measurement is in progress, and can perform coloring marks on the coloring bits of key services. In addition, the sending device adds block identifiers (Block IDs) and measurement information to the multiple data messages, so that the receiving device can obtain the block identifiers and measurement information from the received data messages.

[0070] Reference Figure 1 The example shown is Figure 1 Taking the three DCPs in the example, if the first DCP performs color marking on the data message and adds the block identifier and the measurement information to the multiple data messages, the first DCP can be used as a sending device and the second DCP can be used as a receiving device; correspondingly, if the second DCP performs color marking on the data message and adds the block identifier and the measurement information to the multiple data messages, the second DCP can be used as a sending device and the third DCP can be used as a receiving device, and so on.

[0071] In some optional embodiments of the present invention, the block identifier and the measurement information are added to the multiple data messages, including: dividing the block identifier into multiple parts, and / or dividing the measurement information into multiple parts; adding multiple partial block identifiers and / or multiple partial measurement information to at least some of the data messages in the multiple data messages.

[0072] In some optional embodiments, the measurement information includes at least one of the following information: the duration of the dyeing cycle, the number of data packets in the previous dyeing cycle, and the timestamp of the first data packet.

[0073] In this embodiment, refer to Figure 4a As shown, the measurement information may include the TLV of the block interval, the TLV of the number of last block, and the TLV of the timestamp of the first packet; wherein the block interval can also be used to indicate the block duration, or the dyeing cycle duration; the number of the last block also indicates the number of data packets in the last dyeing cycle; the timestamp of the first data packet also indicates the timestamp of the first data packet. TLV refers to a structure consisting of a data type tag (Type), a data length (Length), and a data value (Value), and is used to describe the data type. As shown Figure 4a As shown, it includes a data type (Type) field, a data length (Length) field, and fields corresponding to a block interval (Interval of the block), the number of last blocks (number of last block), and a timestamp (Timestamp of the first packet) of the first data packet.

[0074] Reference Figure 4b As shown, it is a schematic diagram of the format of the block identifier (block ID), including a version number (Version) field, a reserved (Resv) field, a data length (Length) field, a block identifier (block ID) field, a TLV field, and a cyclic redundancy check (CRC) field, etc.

[0075] In this embodiment, the sending device divides the block identifier into multiple parts and / or divides the measurement information into multiple parts, and adds the divided partial block identifiers and / or the multiple parts of measurement information to at least some of the data messages in the multiple data messages. Figure 5aAs shown, the partial block identifiers and / or multiple partial measurement information (such as the filled area in the figure) after the measurement information and / or block identifier are divided can be added in sequence to at least part of the data messages in the multiple data messages; then the receiving device can extract the divided partial block identifiers and / or multiple partial measurement information from the received data message, combine the multiple partial block identifiers to obtain the block identifier, and / or combine the multiple partial measurement information to obtain the measurement information.

[0076] In some optional embodiments, at least one bit in each data message in the at least part of the data messages is used to carry a part of the block identifier and / or a part of the measurement information.

[0077] In this way, segmenting the block identifier and / or measurement information and adding it to the data message only takes up a small number of bits without changing the size of the existing data packet, which can effectively reduce the impact of the data packet used for network performance monitoring on other services.

[0078] In some optional embodiments of the present invention, sending the plurality of data packets with coloring marks and information added includes: periodically sending the plurality of data packets with coloring marks and information added;

[0079] The periodic sending of the multiple data packets that have been marked with colors and have information added includes: for the data packets to be subjected to network performance measurement, at specific time intervals or at specific number of packets, changing the coloring bits used for coloring marking, adding a new round of block identification and measurement information, and sending the processed data packets.

[0080] In this embodiment, the sending device periodically sends the multiple data messages with coloring marks and information added according to a preset sending cycle or coloring cycle; within a sending cycle or coloring cycle, the sending device color-marks the data messages according to the same coloring mark, and adds the segmented partial block identifiers and / or multiple partial measurement information to the data messages within the sending cycle or coloring cycle respectively; in the next sending cycle or coloring cycle, the sending device may change the coloring mark data message to color-mark, and segment the block identifier and the measurement information corresponding to the next sending cycle or coloring cycle, and add the segmented partial block identifiers and / or multiple partial measurement information to the data messages within the sending cycle or coloring cycle respectively. Among them, a sending cycle or coloring cycle can be a specific duration, or a specific number of messages.

[0081] In some optional embodiments of the present invention, the method further includes: every preset number of periods, giving up adding the block identifier and the measurement information to the data message, and adding protection information to the data message; the protection information is calculated based on the information added within a preset number of periods before the current period, and the protection information supports information recovery when the information added within the preset number of periods is erroneous.

[0082] In this embodiment, the sending device does not add block identification and measurement information in certain sending cycles or coloring cycles, but adds protection information in these sending cycles or coloring cycles; Figure 5b As shown, protection information is added to the data message at intervals of several cycles. The protection information is calculated based on the information added in a preset number of cycles before the current cycle; in this way, in the previous cycle, when a CRC check error occurs in the process of the receiving device obtaining the block identifier based on the extracted partial block identifier combination and / or obtaining the measurement information based on the extracted partial measurement information combination, the information in the corresponding cycle can be recovered according to the protection information.

[0083] Based on the above embodiments, an embodiment of the present invention further provides a network performance measurement method, which is applied to a receiving device. Figure 6 The network performance measurement method of the present invention is shown in FIG. Figure 2 ;like Figure 6 As shown, the method includes:

[0084] Step 201: receiving a plurality of data packets after coloring and information addition processing; the added information includes block identification and measurement information;

[0085] Step 202: Identify the coloring marks in the multiple data messages, and extract the block identifiers and the measurement information in the multiple data messages;

[0086] Step 203: Determine network performance information based on the measurement information.

[0087] In this embodiment, the receiving device identifies and analyzes the received data message, identifies the coloring mark in the data message, and determines that the data message is to be measured for network performance based on the coloring mark; illustratively, the receiving device can determine whether it is used for packet loss statistics or for delay statistics based on the difference in the coloring mark. In addition, the receiving device extracts the block identifiers and the measurement information from the multiple data messages; and determines the network performance information based on the measurement information.

[0088] In this embodiment, the measurement information includes at least one of the following information: the duration of the dyeing cycle, the number of data packets in the previous dyeing cycle, and the timestamp of the first data packet.

[0089] In one example, the receiving device may count the number of packets received in the previous dyeing cycle, and then determine the number of packet losses in the previous dyeing cycle based on the number of packets and the number of data packets in the previous dyeing cycle included in the measurement information in the current dyeing cycle. In another example, the receiving device may count the timestamp of the first data packet received in the current dyeing cycle, and then determine the delay of the first data packet in the current dyeing cycle based on the timestamp of the first data packet in the measurement information of the current dyeing cycle.

[0090] In some optional embodiments of the present invention, the extracting block identifiers and measurement information from the multiple data packets includes: extracting partial block identifiers and / or partial measurement information from at least some of the multiple data packets, combining the extracted partial block identifiers into block identifiers, and / or, combining the extracted partial measurement information into measurement information.

[0091] In this embodiment, the sending device adds the partial block identifiers and / or multiple partial measurement information after the measurement information and / or block identifier are divided into at least some of the data messages in sequence; the receiving device can extract the divided partial block identifiers and / or multiple partial measurement information from the received data message, combine the multiple partial block identifiers to obtain the block identifier, and / or combine the multiple partial measurement information to obtain the measurement information.

[0092] In some optional embodiments, at least one bit in each data message in the at least part of the data messages is used to carry a part of the block identifier and / or a part of the measurement information.

[0093] In this way, segmenting the block identifier and / or measurement information and adding it to the data message only takes up a small number of bits without changing the size of the existing data packet, which can effectively reduce the impact of the data packet used for network performance monitoring on other services.

[0094] In some optional embodiments of the present invention, the receiving of the plurality of data packets after being processed by coloring marks and information addition includes: receiving the plurality of data packets after being processed by coloring marks and information addition periodically;

[0095] The identifying of the coloring marks in the multiple data messages, and extracting the block identifiers and the measurement information in the multiple data messages, include: for the data messages to be subjected to network performance measurement, identifying the coloring bits for coloring marks, and extracting the block identifiers and the measurement information; if a change in the coloring bit is detected, restoring the block identifiers and measurement information of the current cycle.

[0096] In this embodiment, the sending device periodically sends the multiple data messages with coloring marks and information added according to a preset sending cycle or coloring cycle; within a sending cycle or coloring cycle, the sending device performs coloring marks on the data message according to the same coloring mark, and adds the segmented partial block identifiers and / or multiple partial measurement information to the data message within the sending cycle or coloring cycle respectively; in the next sending cycle or coloring cycle, the sending device can change the coloring mark data message for coloring mark, and segment the block identifier and the measurement information corresponding to the next sending cycle or coloring cycle, and add the segmented partial block identifiers and / or multiple partial measurement information to the data message within the sending cycle or coloring cycle respectively. Among them, a sending cycle or coloring cycle can be a specific duration or a specific number of messages. The receiving device identifies the coloring bit for coloring mark; if the coloring bit changes, it can indicate that the next sending cycle or coloring cycle has been reached, and the receiving device combines the partial block identifiers and / or partial measurement information within the current sending cycle or coloring cycle to recover the block identifiers and / or measurement information.

[0097] In some optional embodiments of the present invention, the method further includes: restoring protection information every a preset number of periods; the protection information is calculated based on information added within a preset number of periods before the current period.

[0098] In this embodiment, the sending device does not add block identification and measurement information in certain sending cycles or coloring cycles, but adds protection information in these sending cycles or coloring cycles; Figure 5b Thus, the receiving device obtains the protection information based on the information calculation in these specific periods.

[0099] In some optional embodiments of the present invention, the method further includes: if a CRC check of the extracted block identifier and / or the measurement information is erroneous within a preset number of cycles before the current cycle, the block identifier and measurement information recovered within the cycle without the check error and the protection information are calculated to recover the block identifier and / or the measurement information within the cycle with the check error.

[0100] In this embodiment, the protection information is calculated based on the information added in a preset number of cycles before the current cycle; if a CRC check error occurs in the information added in the cycle before the current cycle, it indicates that disorder or packet loss may occur. For example, the protection information is transmitted every 3 cycles. If a CRC check error occurs in the information added in one of the first three cycles, the information with the CRC check error can be restored based on the information in the two cycles without the CRC check error and the protection information. Optionally, if the information with the CRC check error cannot be restored, the receiving device abandons the current record, or considers that part of the content is available and records it after marking the error.

[0101] In some optional embodiments of the present invention, the method further includes: the receiving device sending the block identifier and the network performance information.

[0102] In this embodiment, refer to Figure 1 In the system architecture shown, the receiving device sends the block identifier and the network performance information to the MCP. The sending device side does not need to report data. The MCP counts the block identifier and network performance information reported by each receiving device (such as each DCP), and associates the network performance information corresponding to the same block identifier, so as to realize business visualization in the transmission network and facilitate fault location.

[0103] The embodiment of the present invention also provides a network performance measurement device. Figure 7 The structure diagram of the network performance measurement device according to the embodiment of the present invention is as follows: Figure 1 ;like Figure 7 As shown, the device includes: a first message processing unit 31 and a first sending unit 32; wherein,

[0104] The first message processing unit 31 is used to color and mark multiple data messages for network performance measurement, and add block identifiers and measurement information to the multiple data messages;

[0105] The first sending unit 32 is used to send the multiple data messages processed by the message processing unit.

[0106] In some optional embodiments of the present invention, the first message processing unit 31 is used to divide the block identifier into multiple parts, and / or divide the measurement information into multiple parts; and add multiple partial block identifiers and / or multiple partial measurement information to at least some of the data messages in the multiple data messages.

[0107] In some optional embodiments of the present invention, at least one bit in each data message in the at least part of the data messages is used to carry a part of the block identifier and / or a part of the measurement information.

[0108] In some optional embodiments of the present invention, the first sending unit 32 is used to periodically send the multiple data packets that have been marked with colors and information added; specifically, for data packets to be subjected to network performance measurement, at specific time intervals or at specific number of packets, the coloring bit used for coloring marking is changed, and a new round of block identification and measurement information is added, and the processed data packets are sent.

[0109] In some optional embodiments of the present invention, the first message processing unit 31 is further used to abandon adding the block identifier and the measurement information to the data message every preset number of periods, and add protection information to the data message; the protection information is calculated based on the information added within a preset number of periods before the current period, and the protection information supports information recovery when the information added within the preset number of periods is erroneous.

[0110] In some optional embodiments of the present invention, the measurement information includes at least one of the following information: the duration of the dyeing cycle, the number of data packets in the previous dyeing cycle, and the timestamp of the first data packet.

[0111] In an embodiment of the present invention, the device is applied to a sending device. The first message processing unit 31 in the device can be implemented by a central processing unit (CPU), a digital signal processor (DSP), a microcontroller unit (MCU) or a programmable gate array (FPGA) in practical applications; the first sending unit 32 in the device can be implemented by a communication module (including: basic communication kit, operating system, communication module, standardized interface and protocol, etc.) and a transceiver antenna in practical applications.

[0112] The embodiment of the present invention also provides a network performance measurement device. Figure 8 The structure diagram of the network performance measurement device according to the embodiment of the present invention is as follows: Figure 2 ;like Figure 8 As shown, the device includes: a receiving unit 41, a second message processing unit 42 and a determining unit 43; wherein,

[0113] The receiving unit 41 is used to receive a plurality of data packets after being processed by coloring marks and information addition; the added information includes block identification and measurement information;

[0114] The second message processing unit 42 is used to identify the coloring marks in the multiple data messages, and extract the block identifiers and the measurement information in the multiple data messages;

[0115] The determining unit 43 is configured to determine network performance information based on the measurement information.

[0116] In some optional embodiments of the present invention, the second message processing unit 42 is used to extract partial block identifiers and / or partial measurement information from at least some of the multiple data messages, combine the extracted partial block identifiers into block identifiers, and / or, combine the extracted partial measurement information into measurement information.

[0117] In some optional embodiments of the present invention, at least one bit in each data message in the at least part of the data messages is used to carry a part of the block identifier and / or a part of the measurement information.

[0118] In some optional embodiments of the present invention, the receiving unit 41 is used to receive a plurality of data messages that are periodically processed by coloring marks and information addition;

[0119] The second message processing unit 42 is used to identify the coloring bit for coloring the data message to be subjected to network performance measurement, and to extract the block identifier and the measurement information; if a change in the coloring bit is detected, the block identifier and measurement information of the current cycle are restored.

[0120] In some optional embodiments of the present invention, the second message processing unit 42 is further used to restore the protection information every preset number of periods; the protection information is calculated based on the information added within a preset number of periods before the current period.

[0121] In some optional embodiments of the present invention, the second message processing unit 42 is further used to, if the block identifier and / or the measurement information extracted within a preset number of periods before the current period has a verification error, perform calculations using the block identifier and measurement information recovered within a period without a verification error, and the protection information, to recover the block identifier and / or the measurement information within the period with a verification error.

[0122] In some optional embodiments of the present invention, the measurement information includes at least one of the following information: the duration of the dyeing cycle, the number of data packets in the previous dyeing cycle, and the timestamp of the first data packet.

[0123] In some optional embodiments of the present invention, the device further includes a second sending unit, configured to send the block identifier and the network performance information.

[0124] In an embodiment of the present invention, the device is applied to a receiving device. The second message processing unit 42 and the determination unit 43 in the device can be implemented by a CPU, a DSP, an MCU or an FPGA in practical applications; the second sending unit and the receiving unit 41 in the device can be implemented by a communication module (including: a basic communication kit, an operating system, a communication module, a standardized interface and protocol, etc.) and a transceiver antenna in practical applications.

[0125] It should be noted that: the network performance measurement device provided in the above embodiment only uses the division of the above program modules as an example when performing network performance measurement. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the network performance measurement device provided in the above embodiment and the network performance measurement method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0126] An embodiment of the present invention further provides a communication device, which may be the sending device or the receiving device in the aforementioned embodiment. Fig. 9 FIG. 1 is a schematic diagram of the hardware structure of a communication device according to an embodiment of the present invention. Fig. 9 As shown, the communication device includes a memory 52, a processor 51, and a computer program stored in the memory 52 and executable on the processor 51. When the processor 51 executes the program, the steps of the network performance measurement method applied to the sending device according to the embodiment of the present invention are implemented; or, when the processor 51 executes the program, the steps of the network performance measurement method applied to the receiving device according to the embodiment of the present invention are implemented.

[0127] Optionally, the communication device may further include one or more network interfaces 53. It is understood that the various components in the communication device may be coupled together via a bus system 54. It is understood that the bus system 54 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 54 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the bus system 54 is not described in detail. Fig. 9 Various buses are labeled as bus system 54 .

[0128] It can be understood that the memory 52 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 52 described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.

[0129] The method disclosed in the above embodiment of the present invention can be applied to the processor 51, or implemented by the processor 51. The processor 51 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 51 or the instruction in the form of software. The above processor 51 can be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 51 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be combined to execute. The software module can be located in a storage medium, which is located in the memory 52. ​​The processor 51 reads the information in the memory 52 and completes the steps of the above method in combination with its hardware.

[0130] In an exemplary embodiment, the communication device may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), FPGA, general purpose processor, controller, MCU, microprocessor, or other electronic components to execute the aforementioned method.

[0131] In an exemplary embodiment, the present invention also provides a computer-readable storage medium, such as a memory 52 including a computer program, which can be executed by a processor 51 of a communication device to complete the steps of the aforementioned method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM; or it can be various devices including one or any combination of the above memories.

[0132] The computer-readable storage medium provided by an embodiment of the present invention stores a computer program thereon, and when the program is executed by a processor, the steps of the network performance measurement method applied in the embodiment of the present invention to a sending device are implemented, or when the program is executed by a processor, the steps of the network performance measurement method applied in the embodiment of the present invention to a receiving device are implemented.

[0133] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0134] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0135] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0136] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0137] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0138] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0139] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium, which, when executed, executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, disks or optical disks.

[0140] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

[0141] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A network performance measurement method, characterized in that: Applied in a sending device, the method includes: Coloring and marking a plurality of data packets for which network performance measurement is to be performed, and adding block identifiers and measurement information to the plurality of data packets; wherein the block identifier is divided into a plurality of parts, and / or the measurement information is divided into a plurality of parts, and a plurality of partial block identifiers and / or a plurality of partial measurement information are respectively added in sequence to at least a portion of the data packets in the plurality of data packets, so that the receiving device combines the plurality of partial block identifiers into a block identifier, and / or combines the plurality of partial measurement information into measurement information; The processed multiple data packets are sent.

2. The method according to claim 1, characterized in that At least one bit in each data message in the at least part of the data messages is used to carry a part of the block identifier and / or a part of the measurement information.

3. The method according to claim 1, characterized in that: Sending the plurality of data packets with coloring marks and information added includes: Periodically sending the plurality of data messages to which the coloring mark and information addition are applied; The periodically sending the plurality of data messages that are marked with colors and have information added includes: For data packets to be measured for network performance, the coloring bit used for coloring marking is changed every specific time period or every specific number of packets, and a new round of block identification and measurement information is added, and the processed data packets are sent.

4. The method according to claim 3, characterized in that The method further comprises: Every preset number of periods, abandon adding the block identifier and the measurement information to the data message, and add protection information to the data message; the protection information is calculated based on the information added within a preset number of periods before the current period, and the protection information supports information recovery when the information added within the preset number of periods is erroneous.

5. The method according to any one of claims 1 to 4, characterized in that: The measurement information includes at least one of the following information: The duration of the dyeing cycle, the number of data packets in the previous dyeing cycle, and the timestamp of the first data packet.

6. A network performance measurement method, characterized in that: Applied in a receiving device, the method comprises: receiving a plurality of data messages after being processed by coloring marks and information addition; the added information includes a block identifier and measurement information; wherein the block identifier is divided into a plurality of parts, and / or the measurement information is divided into a plurality of parts, and the plurality of partial block identifiers and / or the plurality of partial measurement information are respectively added in sequence to at least a portion of the plurality of data messages; Identify the coloring marks in the multiple data messages, and extract the block identifiers and the measurement information in the multiple data messages; wherein the block identifier is obtained by combining multiple partial block identifiers, and / or the measurement information is obtained by combining multiple partial measurement information; Network performance information is determined based on the measurement information.

7. The method according to claim 6, characterized in that The extracting the block identifiers and the measurement information from the plurality of data messages comprises: Part of the block identifiers and / or part of the measurement information in at least part of the data messages in the multiple data messages are sequentially extracted, the extracted part of the block identifiers are combined into block identifiers, and / or the extracted part of the measurement information is combined into measurement information.

8. The method according to claim 7, characterized in that At least one bit in each data message in the at least part of the data messages is used to carry a part of the block identifier and / or a part of the measurement information.

9. The method according to claim 7, characterized in that: The receiving of the plurality of data messages after the coloring mark and information addition processing comprises: Receiving a plurality of data messages periodically processed by coloring marks and information addition; The identifying the coloring marks in the plurality of data packets, and extracting the block identifiers and the measurement information in the plurality of data packets, comprises: For a data message to be subjected to network performance measurement, identifying a dyeing bit for dyeing marking, and extracting the block identifier and the measurement information; If a change in the coloring bit is detected, the block identification and measurement information of the current cycle are restored.

10. The method according to claim 9, characterized in that The method further comprises: The protection information is restored every preset number of cycles; the protection information is calculated based on the information added in the preset number of cycles before the current cycle.

11. The method according to claim 10, characterized in that The method further comprises: If the block identifier and / or the measurement information extracted has a verification error within a preset number of cycles before the current cycle, the block identifier and measurement information recovered within the cycle without verification error and the protection information are used for calculation to recover the block identifier and / or the measurement information within the cycle with verification error.

12. The method according to any one of claims 6 to 11, characterized in that The measurement information includes at least one of the following information: The duration of the dyeing cycle, the number of data packets in the previous dyeing cycle, and the timestamp of the first data packet.

13. The method according to any one of claims 6 to 11, characterized in that The method further comprises: The receiving device sends the block identifier and the network performance information.

14. A network performance measurement device, characterized in that: The device comprises: a first message processing unit and a first sending unit; wherein, The first message processing unit is used to color and mark multiple data messages for network performance measurement, and add block identifiers and measurement information to the multiple data messages; wherein the block identifier is divided into multiple parts, and / or the measurement information is divided into multiple parts, and multiple partial block identifiers and / or multiple partial measurement information are respectively added in sequence to at least some of the data messages in the multiple data messages, so that the receiving device combines the multiple partial block identifiers into a block identifier, and / or combines the multiple partial measurement information into measurement information; The first sending unit is used to send the multiple data messages processed by the message processing unit.

15. A network performance measurement device, characterized in that: The device comprises: a receiving unit, a second message processing unit and a determining unit; wherein, The receiving unit is used to receive a plurality of data messages after being processed by coloring marks and information addition; the added information includes a block identifier and measurement information; wherein the block identifier is divided into a plurality of parts, and / or the measurement information is divided into a plurality of parts, and the plurality of partial block identifiers and / or the plurality of partial measurement information are respectively added in sequence to at least a portion of the data messages in the plurality of data messages; The second message processing unit is used to identify the coloring marks in the multiple data messages, and extract the block identifiers and the measurement information in the multiple data messages; wherein the block identifier is obtained by combining multiple partial block identifiers, and / or the measurement information is obtained by combining multiple partial measurement information; The determining unit is used to determine network performance information based on the measurement information.

16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 5 are implemented; or, when the program is executed by a processor, the steps of the method described in any one of claims 6 to 13 are implemented.

17. A communication device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method described in any one of claims 1 to 5 are implemented; or, when the processor executes the program, the steps of the method described in any one of claims 6 to 13 are implemented.

Citation Information

Patent Citations

  • Transmission method and device for data stream, storage medium and processor

    CN107579920A

  • Method and equipment for detecting conflict of dye bit of message

    CN108259208A