Quality monitoring method and device for data flow service, medium and equipment
By adding flag bits to the data circulation service message, downstream devices report data based on the written value of the flag bit, solving the problem that in-band devices cannot monitor the quality of data circulation service in real time, and achieving multi-dimensional quality monitoring and transmission path optimization.
Patent Information
- Application Number
- CN202510945725.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-09
- Publication Date
- 2025-08-05
AI Technical Summary
The prior art cannot accurately detect the transmission quality of data circulation services in real time through in-band equipment, resulting in the inability to perform real-time optimization and quality assurance of transmission paths.
The first flag bit and the second flag bit are added to the packets of the data circulation service, and data is reported to the monitoring control end according to the write value of the flag bit through the downstream device to realize quality monitoring, including monitoring of packet loss rate and transmission delay.
It realizes quality monitoring of data circulation services without external interception components, supports multi-dimensional quality monitoring, adapts to different business needs, and improves real-time optimization capabilities and quality assurance of transmission paths.
Smart Images

Figure CN120434152A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data transmission technology, and in particular to a method, device, medium and equipment for monitoring the quality of data circulation services. Background Art
[0002] Currently, with the rapid development of science and technology, there are more and more data transmission scenarios in various industries. For example, with the explosion of applications in scenarios such as data openness, data sharing, data trading, and data exchange, data circulation services will also usher in massive growth. However, for data circulation services, the network layer is currently unable to accurately detect the quality of its service transmission in real time. For example, in-band devices are unable to monitor the quality of service transmission based on their own data transmission and reception. Furthermore, without the need for external interception components, it is impossible to optimize the transmission path of data circulation services in real time to ensure their transmission quality. Therefore, how to monitor and optimize the quality of data circulation services through in-band data is a technical problem that needs to be solved urgently in this field. Summary of the Invention
[0003] This application proposes a method, device, medium, and equipment for monitoring the quality of data circulation services, which are used to solve the problem of being unable to monitor the quality of data circulation services through existing in-band equipment. The technical solution provided by this application, based on the existing situation of network equipment, solves the problem of being unable to accurately detect the service transmission quality of data circulation services in real time at the network level by identifying and marking data. It has good adaptability and can be applied to the transmission of various data circulation services. At the same time, it will not cause data leakage or other problems due to the addition of interceptors.
[0004] The present invention provides a method for monitoring the quality of a data flow service, the method comprising: After the upstream device receives the message of the data circulation service, it obtains the data identification information of the message; adding a first flag bit and a second flag bit to the data identification information by the upstream device, and determining a written value of the first flag bit and a written value of the second flag bit according to a data circulation service; After the downstream device receives the message of the data circulation service, it obtains the data identification information of the message and identifies the written value of the first flag bit and the written value of the second flag bit; The downstream device sends reporting data to the monitoring control end according to the written value of the first flag bit and the written value of the second flag bit, so that the monitoring control end can monitor the quality of the data circulation service.
[0005] Furthermore, sending reporting data to the monitoring control end according to the written value of the first flag bit and the written value of the second flag bit by the downstream device, so that the monitoring control end can perform quality monitoring on the data flow service, includes: When the written value of the first flag bit is the target value, the downstream device sends reporting data with the first information, so that the monitoring control end performs first dimension quality monitoring on the data flow service; When the written value of the second flag bit is the target value, the downstream device sends the reporting data with the second information so that the monitoring control end can perform the second dimension quality monitoring on the data circulation service.
[0006] Furthermore, the first information includes data identification information of the message; The second information includes data identification information and receiving timestamp information of the message.
[0007] Furthermore, the monitoring control terminal performs quality monitoring on the data flow service, including: The monitoring and control end determines the same message according to the first information; Based on the reporting records of the same message on the upstream device and each downstream device, statistics are collected to obtain the first-dimensional quality monitoring results; as well as, The monitoring and control end determines the same message according to the second information; The second dimension quality monitoring result is obtained by performing statistics based on the reception timestamp information of the same message on the upstream device and the reception timestamp information of each downstream device.
[0008] Furthermore, the first dimension quality monitoring result includes a packet loss rate monitoring result; the second dimension quality monitoring result includes a transmission delay monitoring result.
[0009] Furthermore, after determining the writing value of the first flag bit and the writing value of the second flag bit according to the data circulation service, the method further includes: The written value of the first flag bit and the written value of the second flag bit are encapsulated into the header of the message.
[0010] The present invention also provides a device for monitoring the quality of data flow services, the device comprising: A data identification information acquisition module is used to obtain the data identification information of a message after the upstream device receives the message of the data circulation service; a flag bit writing module, configured to add a first flag bit and a second flag bit to the data identification information through the upstream device, and determine a written value of the first flag bit and a written value of the second flag bit according to a data circulation service; a written value identification module, configured to obtain data identification information of a message of the data circulation service after a downstream device receives the message, and identify the written value of the first flag bit and the written value of the second flag bit; The quality monitoring module is used to send reporting data to the monitoring control end through the downstream device according to the written value of the first flag bit and the written value of the second flag bit, so that the monitoring control end can perform quality monitoring on the data circulation service.
[0011] Furthermore, the quality monitoring module includes: a first dimension quality monitoring unit, configured to, when the written value of the first flag bit is a target value, cause the downstream device to send reporting data with first information, so that the monitoring and control end can perform first dimension quality monitoring on the data flow service; The second dimension quality monitoring unit is used to, when the written value of the second flag bit is a target value, cause the downstream device to send reporting data with second information so that the monitoring control end can perform second dimension quality monitoring on the data flow service.
[0012] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the quality monitoring method for data circulation services as described above.
[0013] An embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the above-described method for monitoring the quality of data flow services when executing the computer program.
[0014] The embodiment of the present application adopts the following technical solution: after the upstream device receives the message of the data circulation service, the data identification information of the message is obtained; the first flag bit and the second flag bit are added to the data identification information by the upstream device, and the write value of the first flag bit and the write value of the second flag bit are determined according to the data circulation service; after the downstream device receives the message of the data circulation service, the data identification information of the message is obtained, and the write value of the first flag bit and the write value of the second flag bit are identified; the downstream device sends reporting data to the monitoring and control end according to the write value of the first flag bit and the write value of the second flag bit, so that the monitoring and control end can perform quality monitoring on the data circulation service.
[0015] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: By adding a first flag bit and a second flag bit whose write values can be determined according to the business to the data identification information in the data circulation service message of the upstream device, the downstream device can send reporting data to the monitoring and control end based on the write value of each flag bit, thereby achieving the purpose of using in-band data to monitor the quality of data circulation services without the need for external interception components, solving the problem that the network layer cannot accurately detect the service transmission quality in real time, providing data support for real-time optimization of transmission paths and ensuring transmission quality, and adapting to the quality monitoring needs of data circulation services in scenarios such as data openness, sharing, trading, and exchange. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings: Figure 1 A flow chart of a method for monitoring the quality of data flow services provided in Example 1 of the present application; Figure 2 A schematic diagram of a quality monitoring system for data circulation services provided in Example 2 of the present application; Figure 3 This is a schematic diagram of the structure of a quality monitoring device for data circulation services provided in Example 3 of the present application; Figure 4 A schematic structural diagram of an electronic device provided in Example 4 of the present application. DETAILED DESCRIPTION
[0017] To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this application and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0018] The following describes in detail the technical solutions provided by various embodiments of the present application in conjunction with the accompanying drawings.
[0019] Example 1 Figure 1 This is a flow chart of the quality monitoring method for data circulation services provided in Example 1 of this application. Figure 1 As shown, the method includes: S11, after the upstream device receives the message of the data circulation service, it obtains the data identification information of the message; Among them, the upstream device is a relative concept and is determined relative to the downstream device. For example, in a data circulation service, data needs to pass through 10 devices, and the first device can be the upstream device. However, if data monitoring is required only at the third device, the third device can be determined as the upstream device, and the downstream device can be one or more devices after the upstream device. In some scenarios, the upstream device can refer to the network device at the data sending end in the data circulation link, usually the initial access device of the data circulation service, such as an edge router, access switch, etc., which is responsible for receiving the original message and performing pre-processing.
[0020] Data circulation business refers to business types covering scenarios such as data openness, data sharing, data trading, and data exchange. Its core is the flow of data between different entities, involving applications in multiple fields such as finance, government affairs, and industrial production.
[0021] A message is the basic unit of network layer transmission. It consists of a header containing control information such as routing and protocol, and a payload. The payload is the actual data content, specifically the data unit that carries data circulation services.
[0022] Data identification information can be a label used to uniquely identify and mark data elements, and can include metadata information such as data element ID, business type identifier, and circulation authority identifier. It is usually stored in the extension field of the message header or a specific location in the payload.
[0023] S12, adding a first flag bit and a second flag bit to the data identification information by the upstream device, and determining a written value of the first flag bit and a written value of the second flag bit according to a data circulation service; The first flag bit can correspond to a packet loss statistics function. For example, when set to 1, it triggers the upstream and downstream devices to count the packet loss of the message. When set to 0, packet loss monitoring is not performed. The second flag bit can correspond to a delay statistics function. For example, when set to 1, it triggers the device to record the time difference between the entry and exit of the message. When set to 0, it does not perform delay measurement.
[0024] The written value is the binary state of the flag bit, which is used to indicate whether the device performs the corresponding monitoring action and is strongly related to the monitoring requirements of the data circulation business.
[0025] In this solution, the upstream device uses the message header editing function to insert or append a flag field to the data identification information. The upstream device determines the flag status based on the type and priority of the data flow service, or a preset policy. For example, if the service is a real-time transaction requiring high-reliability monitoring, the first flag bit is set to 1 and the second flag bit is set to 1. For non-real-time batch data sharing, the first flag bit can be set to 0 and the second flag bit can be set to 0 to reduce resource consumption. Specific policies can be dynamically issued through the device configuration file or an external controller.
[0026] S13, after the downstream device receives the message of the data circulation service, obtains data identification information of the message, and identifies the written value of the first flag bit and the written value of the second flag bit; Downstream devices refer to network devices located after upstream devices in the data flow link, such as intermediate routers and core switches. Downstream devices determine whether to enable packet loss or delay monitoring by reading the flag field in the message header.
[0027] Downstream devices receive messages processed by upstream devices through network interfaces and perform frame checksum and protocol parsing. Similar to the logic of upstream devices, downstream devices extract data identification information from messages. They analyze the binary value of the flag field and trigger corresponding monitoring functions, such as packet loss counting and latency timing.
[0028] S14: Sending reporting data to the monitoring control end through the downstream device according to the written value of the first flag bit and the written value of the second flag bit, so that the monitoring control end can perform quality monitoring on the data circulation service.
[0029] The monitoring and control end can be a central management system or server, or an intelligent terminal used for management. It can be responsible for receiving the monitoring data reported by each device, summarizing, analyzing and visualizing it. It can be a cloud platform or an internal enterprise management system.
[0030] Reported data includes information such as packet loss counts, latency measurements, device identification, and timestamps, and is used to evaluate service transmission quality, such as calculating end-to-end packet loss rate and average latency.
[0031] In this solution, downstream devices can determine what to report based on the status of flag bits. For example, if the first flag bit is 1, the data identification information of the current packet is reported; if the second flag bit is 1, the data identification information of the current packet and the timestamp of the current packet's receipt are reported, allowing the monitoring and control end to monitor the quality of the data flow service. For example, when monitoring for packet loss, if a certain data identification information is reported by devices 1, 2, and 3, but not by devices 4, 5, and 6, it indicates that a packet loss event has occurred.
[0032] It can be understood that if both flag bits are 0, no monitoring data is reported or only an empty state is reported.
[0033] The monitoring and control end stores and compiles statistics on the reported data to obtain monitoring data such as packet loss rate and average delay, and performs alarm and visualization processing to achieve full-link quality monitoring of data flow services.
[0034] The technical solution provided in this embodiment dynamically injects a monitoring flag into the data identification information through the upstream device, so that the downstream device can perform information reporting on demand based on the flag status to complete the monitoring of packet loss and transmission delay. No external probe is required, and the monitoring action is completed synchronously with the business flow, reducing cross-layer interaction delay. The monitoring function is dynamically configured through the flag to avoid resource waste and adapt to different business needs. At the same time, it can also associate specific businesses based on data identification to achieve fine-grained quality tracking. This solution can be reused in existing network equipment to achieve low-cost deployment without hardware, adapt to various business data transmission scenarios, and support large-scale data flow business monitoring.
[0035] In one embodiment, optionally, sending, by the downstream device, reporting data to the monitoring control end according to the written value of the first flag bit and the written value of the second flag bit, so that the monitoring control end can perform quality monitoring on the data flow service, includes: When the written value of the first flag bit is the target value, the downstream device sends reporting data with the first information, so that the monitoring control end performs first dimension quality monitoring on the data flow service; When the written value of the second flag bit is the target value, the downstream device sends the reporting data with the second information so that the monitoring control end can perform the second dimension quality monitoring on the data circulation service.
[0036] The target value indicates that when the value written to the flag bit is the target value, corresponding quality monitoring is required. For example, when the first flag bit is written to the target value 1, the downstream device is instructed to perform packet loss statistics; when the second flag bit is written to the target value 1, the latency measurement is instructed.
[0037] The first information may be data related to packet loss monitoring, including but not limited to: message reception count, message expectation count, packet loss rate, device identification, timestamp and other context information.
[0038] The second information may be data related to delay monitoring, including but not limited to: packet input interface time, packet output interface time, one-way delay, average delay, maximum / minimum delay and other statistical values.
[0039] The first dimension of quality monitoring refers to the reliability of data flow services, with the core indicator being packet loss rate, used to assess the integrity of messages during transmission. The second dimension of quality monitoring refers to the timeliness of data flow services, with the core indicator being latency, used to assess the real-time nature of message transmission.
[0040] In this solution, downstream devices encapsulate the corresponding monitoring data into a report message based on the flag status. For example, if the first flag is 1 (target value), the report includes the first information; if the second flag is 1 (target value), the report includes the second information; if both flags are 1, both types of data are reported simultaneously.
[0041] The monitoring and control end processes the reported data by, for the first information, counting the packet loss rate of each node, locating the link failure node or congested section, and generating a reliability report; for the second information, analyzing the end-to-end delay distribution, identifying delay bottlenecks, and generating a timeliness report; combining the two types of data to form a multi-dimensional quality assessment model to provide data support for the path optimization strategy.
[0042] This technical solution uses a multi-dimensional monitoring mechanism controlled by dual flags, allowing downstream equipment to flexibly report packet loss and latency monitoring data based on the actual needs of data circulation services. Through independent flag control, decoupled monitoring of reliability and timeliness is achieved, avoiding the problem that a single indicator cannot fully reflect the quality of the service. At the same time, the monitoring dimension is dynamically activated according to the type of service to avoid the waste of equipment resources caused by full monitoring and improve the scalability of the system. The monitoring and control end of this solution is based on multi-dimensional data and can accurately locate quality bottlenecks, thereby triggering optimization actions such as path switching and bandwidth reservation, forming a complete closed loop of monitoring, analysis, and optimization, and ultimately ensuring the transmission quality and service stability of the data circulation service.
[0043] In one embodiment, optionally, the first information includes data identification information of the message; The second information includes data identification information and receiving timestamp information of the message.
[0044] Data identification information is a label used to uniquely identify and mark data elements, and may specifically include: data element ID. Specifically, the identifier that uniquely identifies the data element may be a UUID, a hash value, etc.
[0045] The second information includes data identification information and receiving timestamp information. The receiving timestamp information refers to the precise time when the downstream device receives the message, and the format can be UNIX timestamp, ISO 8601 time string, etc.
[0046] In this solution, the upstream device records the send timestamp when it sends a message, and the downstream device records the receive timestamp when it receives it. The difference between the two is the one-way link latency. If multiple hops record timestamps, the latency contribution of each link segment can be calculated to identify latency bottlenecks. Furthermore, this solution can combine the service type tag in the data identifier to analyze the latency distribution of different services and identify latency characteristics of cross-regional transmission.
[0047] This technical solution is designed to allow monitoring data to be sliced and analyzed across multiple dimensions, such as service, time, and node. It also improves fault location accuracy. For example, if the monitoring control end detects a sudden increase in packet loss during a certain period, the data identifier in the first message can be used to filter out the abnormal service. Combined with the timestamp in the second message, it can quickly match the abnormal latency node during the same period, narrowing the scope of troubleshooting. The combination of data identifier and timestamp provides complete context for each piece of monitoring data, supporting retrospective queries of historical quality data. By embedding data identifier information and reception timestamp information in the first and second messages, this technical solution achieves a deep binding of monitoring data with service characteristics and time dimensions. The monitoring control end can also formulate refined optimization strategies based on multi-dimensional data with spatiotemporal labels. For example, for high-priority services, if the latency exceeds a threshold, the SDN controller is triggered to switch to a low-latency link. For specific data elements with high packet loss rates, lost packets are automatically retransmitted or coding redundancy is adjusted to improve transmission reliability. This significantly improves the accuracy, analyzability, and management efficiency of data flow service quality monitoring, providing technical support for real-time optimization.
[0048] In one embodiment, optionally, the monitoring control terminal performs quality monitoring on the data flow service, including: The monitoring and control end determines the same message according to the first information; Based on the reporting records of the same message on the upstream device and each downstream device, statistics are collected to obtain the first-dimensional quality monitoring results; as well as, The monitoring and control end determines the same message according to the second information; The second dimension quality monitoring result is obtained by performing statistics based on the reception timestamp information of the same message on the upstream device and the reception timestamp information of each downstream device.
[0049] The same message refers to a specific data unit uniquely identified by data identification information, ensuring that the monitoring and control end can associate the transmission records of the same message across devices.
[0050] Report records refer to the packet loss statistics of the upstream device and each downstream device for the same message, including device identification, message reception status, and statistical time.
[0051] Statistics yield the first dimension, specifically the packet loss rate. The end-to-end packet loss rate can be calculated based on the total number of packets sent by the upstream device and the total number of packets actually received by each downstream device. Reporting records from each device node can also be compared to pinpoint the specific node where packet loss occurred. For example, if a router's reporting records indicate a packet was not received, while the upstream device indicates it was sent, the router is considered the packet loss node. Trend statistics can also be performed, such as by time window or service type, to generate reliability trend charts.
[0052] The receiving timestamp information refers to the timestamp when each downstream device receives the message.
[0053] Similar to the first dimension, data identifiers are used to establish cross-device message association, ensuring that timestamps belong to the same transmission link. This can be used to calculate one-way latency. For example, the difference between the receive timestamp of downstream device N and the receive timestamp of the upstream device is the link latency from the upstream device to the downstream device N.
[0054] This solution uses data identifiers to associate cross-device records of the same message, enabling full-link monitoring from sender to receiver, avoiding the blind spots in fault location caused by traditional segmented monitoring. Furthermore, this solution enables independent statistics and cross-analysis of reliability and timeliness data. For example, high packet loss rates and high latency paths may be caused by link congestion, requiring capacity expansion or adjustment of traffic scheduling strategies; low packet loss rates and high latency may be caused by overly long routing paths or insufficient device processing performance, requiring routing table optimization or hardware upgrades.
[0055] This technical solution achieves full-link tracking and refined evaluation of the quality of data flow services through cross-device data correlation and multi-dimensional statistics of the same message by the monitoring and control end. Specifically, it can locate quality problems to specific link nodes or specific service flows based on message-level tracking of data identification. The monitoring and control end can also generate optimization strategies in real time through dynamic statistics of packet loss rate and latency, such as switching to redundant links, adjusting QoS priorities, etc., to improve network resource utilization and service response speed. This solution can avoid confusion in monitoring data of different services through message-level identification and multi-dimensional statistics of in-band devices in different scenarios, thereby improving the scientificity and practicality of data flow service quality monitoring.
[0056] In one embodiment, optionally, the first dimension quality monitoring result includes a packet loss rate monitoring result; the second dimension quality monitoring result includes a transmission delay monitoring result.
[0057] The packet loss rate refers to the ratio of the difference between the total number of packets sent by the upstream device and the total number of packets actually received by each downstream device to the total number of packets sent. It reflects the integrity loss of data flow services during the transmission process.
[0058] This solution detects an abnormally high packet loss rate on a particular link, such as a sudden increase from 0.1% to 5%, and can pinpoint a hardware failure, such as a damaged network card, or a physical link disruption or traffic congestion, such as insufficient bandwidth causing packet drops. By monitoring the packet loss rate of transaction messages, we can prevent transaction failures or reconciliation anomalies caused by data loss. By calculating the packet loss rate in real time, we can dynamically adjust the video encoding bitrate and forward error correction strategy to ensure smooth playback.
[0059] Transmission delay, here corresponding to one-way delay, refers to the time difference between sending a message from the upstream device to the downstream device.
[0060] Upstream devices record the sending timestamp when sending packets, and each downstream device records the receiving timestamp when receiving packets. For low-latency-sensitive services such as the Industrial Internet of Things, if the end-to-end latency exceeds a threshold, a switch to a link with lower latency can be triggered. Furthermore, hop-by-hop latency analysis can be used to identify the node with the highest latency contribution, adjust routing strategies to bypass that node, or initiate fault reporting.
[0061] This technical solution, by focusing the first dimension of quality monitoring on packet loss rate and the second dimension on transmission latency, achieves comprehensive monitoring of data flow service quality, resolving service interruptions caused by link failures and meeting the time-sensitive requirements of real-time services. Historical data statistics can also provide data support for network capacity planning and equipment selection. Based on the actual packet loss rate and latency data monitored at the control end, alarms or other actions can be automatically triggered, reducing the manpower and time costs of manual investigations.
[0062] In one embodiment, optionally, after determining the writing value of the first flag bit and the writing value of the second flag bit according to the data circulation service, the method further includes: The written value of the first flag bit and the written value of the second flag bit are encapsulated into the header of the message.
[0063] After determining the written values of the first and second flags, the upstream device needs to embed these control information into the message header so that the downstream device can parse and perform corresponding monitoring actions. Specifically, an extended header protocol such as SRH and DOH can be used.
[0064] The encapsulation format can be data identification information (such as ID) + flag field, for example, 32 bits of data identification information + 2 bits of flag field. The flag field is encoded as follows: the first flag bit is 0, which means it is off, and 1, which means it is on. The second flag bit is 0, which means it is off, and 1, which means it is on.
[0065] The technical solution provided in this embodiment has monitoring control logic that is synchronized with the business flow, does not require additional control signaling, reduces system latency, and does not require pre-configured rules for downstream devices. It only needs to parse the message header to dynamically determine the monitoring action, which is more adaptable to large-scale network deployment. In addition, the monitoring content can be dynamically adjusted by modifying the flag write value, making the control of the monitoring content more flexible.
[0066] Example 2 In order to enable those skilled in the art to understand the present solution more clearly, the present application also provides a preferred embodiment. Figure 2 This is a schematic diagram of a quality monitoring system for data circulation services provided in Example 2 of the present application; Figure 2 As shown, this system can perform the following steps to complete the monitoring of data circulation services: After receiving the data flow service message, the network device (device 1) checks the data identification information carried therein.
[0067] By reading the information used to identify the data element in the data identifier, this information is colored at the same time.
[0068] The specific action is to add two color flags to the information, namely the packet loss statistics bit and the delay statistics bit. If the device needs to enable packet loss statistics or delay statistics, the corresponding color flag bit is set to 1, otherwise it is set to 0. The colored identification information is encapsulated into the packet header, which can be encapsulated in the packet header such as Segment Routing Header (SRH), Destination Options Header (DOH), and Hop By Hop (HBH).
[0069] After that, the device executes the color marking action, packet loss statistics, and delay statistics, and reports the statistical results to the monitoring and control end.
[0070] It is then forwarded to the next device in the network (device 2-device N) according to the rules, ensuring that the dyed data identification information can be read by each device node (device 2-device N) in the network, thereby solving the problem that the network layer cannot accurately detect the service transmission quality of data flow services in real time.
[0071] This application provides a method and system for in-band quality monitoring of data flow services, applicable to data flow service scenarios. The method comprises: extracting information identifying data elements from data identifiers within data flow services, combining it with existing network service flow coloring technology to color the data identifiers and encapsulate them in message headers, enabling each device node in the network to perform operations such as packet loss and latency detection on the colored messages. This method effectively addresses the issue of the network layer being unable to accurately detect the transmission quality of data flow services in real time.
[0072] Example 3 Figure 3 This is a schematic diagram of the structure of the quality monitoring device for data circulation services provided in Example 3 of the present application. Figure 3 As shown, the device includes: The data identification information acquisition module 31 is used to obtain the data identification information of the message after the upstream device receives the message of the data circulation service; a flag writing module 32, configured to add a first flag and a second flag to the data identification information via the upstream device, and determine a write value of the first flag and a write value of the second flag according to a data circulation service; a written value identification module 33, configured to obtain data identification information of a message of the data circulation service after the downstream device receives the message, and identify the written value of the first flag bit and the written value of the second flag bit; The quality monitoring module 34 is configured to send reporting data to the monitoring control terminal through the downstream device according to the written value of the first flag bit and the written value of the second flag bit, so that the monitoring control terminal can perform quality monitoring on the data circulation service.
[0073] Furthermore, the quality monitoring module 34 includes: a first dimension quality monitoring unit, configured to, when the written value of the first flag bit is a target value, cause the downstream device to send reporting data with first information, so that the monitoring and control end can perform first dimension quality monitoring on the data flow service; The second dimension quality monitoring unit is used to, when the written value of the second flag bit is a target value, cause the downstream device to send reporting data with second information so that the monitoring control end can perform second dimension quality monitoring on the data flow service.
[0074] This device can execute the data flow service quality monitoring method provided in the above embodiments, and has corresponding functional units and beneficial effects, which will not be described in detail here.
[0075] Example 4 Those skilled in the art will appreciate that embodiments of the present invention may provide methods, systems, or computer program products. Therefore, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0076] Therefore, the present application also proposes a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any embodiment of the present application.
[0077] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0078] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0079] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0080] Furthermore, Figure 4 This is a schematic diagram of the structure of an electronic device provided in Example 4 of this application. Figure 4 As shown, the present application also proposes an electronic device (or computing device), including a processor 11, a memory 12, and a computer program stored in the memory 12 and executable on the processor 11, wherein the processor 11 implements the method described in any embodiment of the present application when executing the computer program.
[0081] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory. Memory may include non-permanent storage in computer-readable media, random access memory (RAM), and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium. Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may be implemented using any method or technology for information storage. Information may be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change RAM (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible by a computing device. According to the definition in this article, computer-readable media does not include transitory media such as modulated data signals and carrier waves.
[0082] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0083] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
Claims
1. A method for monitoring the quality of data circulation services, characterized in that: include: After the upstream device receives the message of the data circulation service, it obtains the data identification information of the message; adding a first flag bit and a second flag bit to the data identification information by the upstream device, and determining a written value of the first flag bit and a written value of the second flag bit according to a data circulation service; After the downstream device receives the message of the data circulation service, it obtains the data identification information of the message and identifies the written value of the first flag bit and the written value of the second flag bit; The downstream device sends reporting data to the monitoring control end according to the written value of the first flag bit and the written value of the second flag bit, so that the monitoring control end can monitor the quality of the data circulation service.
2. A data flow service quality monitoring method according to claim 1, characterized in that: The method includes: sending report data to a monitoring control terminal according to the written value of the first flag bit and the written value of the second flag bit by the downstream device, so that the monitoring control terminal can perform quality monitoring on the data flow service. When the written value of the first flag bit is the target value, the downstream device sends reporting data with the first information, so that the monitoring control end performs first dimension quality monitoring on the data flow service; When the written value of the second flag bit is the target value, the downstream device sends the reporting data with the second information so that the monitoring control end can perform the second dimension quality monitoring on the data circulation service.
3. The method for monitoring the quality of data flow services according to claim 2, wherein: The first information includes data identification information of the message; The second information includes data identification information and receiving timestamp information of the message.
4. A data flow service quality monitoring method according to claim 3, characterized in that: The monitoring and control terminal performs quality monitoring on the data flow service, including: The monitoring and control end determines the same message according to the first information; Based on the reporting records of the same message on the upstream device and each downstream device, statistics are collected to obtain the first-dimensional quality monitoring results; as well as, The monitoring and control end determines the same message according to the second information; The second dimension quality monitoring result is obtained by performing statistics based on the reception timestamp information of the same message on the upstream device and the reception timestamp information of each downstream device.
5. A data flow service quality monitoring method according to claim 4, characterized in that: The first dimension quality monitoring result includes a packet loss rate monitoring result; the second dimension quality monitoring result includes a transmission delay monitoring result.
6. The method for monitoring the quality of data circulation services according to claim 1, wherein: After determining the writing value of the first flag bit and the writing value of the second flag bit according to the data circulation service, the method further includes: The written value of the first flag bit and the written value of the second flag bit are encapsulated into the header of the message.
7. A quality monitoring device for data circulation services, characterized in that: The device comprises: A data identification information acquisition module is used to obtain the data identification information of a message after the upstream device receives the message of the data circulation service; a flag bit writing module, configured to add a first flag bit and a second flag bit to the data identification information through the upstream device, and determine a written value of the first flag bit and a written value of the second flag bit according to a data circulation service; a written value identification module, configured to obtain data identification information of a message of the data circulation service after a downstream device receives the message, and identify the written value of the first flag bit and the written value of the second flag bit; The quality monitoring module is used to send reporting data to the monitoring control end through the downstream device according to the written value of the first flag bit and the written value of the second flag bit, so that the monitoring control end can perform quality monitoring on the data circulation service.
8. The device for monitoring the quality of data flow services according to claim 7, wherein: The quality monitoring module includes: a first dimension quality monitoring unit, configured to, when the written value of the first flag bit is a target value, cause the downstream device to send reporting data with first information, so that the monitoring and control end can perform first dimension quality monitoring on the data flow service; The second dimension quality monitoring unit is used to, when the written value of the second flag bit is a target value, cause the downstream device to send reporting data with second information so that the monitoring control end can perform second dimension quality monitoring on the data flow service.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Transmission quality detection method, device and system, and storage medium
CN112994961A
Message processing method and device, equipment and storage medium
CN117014335A
Service flow detection method and device, medium and related equipment
CN117749669A
Packet inspection method, electronic device, system, and computer-readable storage medium
WO2025044039A1