System, method and equipment for monitoring data transmission rate and storage medium
By designing a data transmission rate monitoring system including a monitoring unit, a data transmission unit and a speed measurement unit, the problem of difficulty in monitoring the transmission rates of multiple data interfaces in the prior art is solved, and unified real-time monitoring and efficient testing of distributed data interfaces are realized.
Patent Information
- Application Number
- CN202411967398.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-15
AI Technical Summary
The prior art is difficult to effectively monitor and test the transmission rates of multiple data interfaces, especially in distributed scenarios.
A monitoring system for data transmission rate is designed, including a monitoring unit, a data transmission unit and a speed measurement unit. The data transmission unit transmits the speed measurement commands and speed measurement results between the monitoring unit and the speed measurement unit, and realizes unified real-time monitoring of the transmission rate of the distributed data interface.
It realizes unified real-time monitoring and statistics of the transmission rates of multiple distributed data interfaces, improves the efficiency of testing the transmission rates of multiple data interfaces, and meets the requirement of real-time monitoring of the transmission rates of multiple data interfaces.
Smart Images

Figure CN119835199A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to interface testing technology, and in particular to a data transmission rate monitoring system, method, device and storage medium. Background Art
[0002] The data interface is used for data exchange and communication between different systems and different devices, and can transmit data between different systems and different devices, for example, Universal Serial Bus (USB) interface, network interface, etc.
[0003] In the related technology, when testing the transmission rate of a data interface, a device carrying the data interface can be used to transmit a data packet with a fixed amount of data to other devices or apparatuses through the data interface, and then the transmission rate of the data interface is determined based on the transmission duration. This method is only applicable to the test and monitoring scenario of a single data interface, and the data interface test and monitoring scenario is limited. Summary of the invention
[0004] The embodiments of the present disclosure provide a data transmission rate monitoring system, method, device and storage medium to solve the above technical problems to a certain extent.
[0005] In one aspect of an embodiment of the present disclosure, a data transmission rate monitoring system is provided, the system comprising at least one monitoring unit, a data transmission unit and at least one speed measuring unit, each speed measuring unit comprising a data interface to be monitored;
[0006] The monitoring unit is configured to issue a speed measurement instruction to the data transmission unit; receive at least one speed measurement result sent by the data transmission unit, and display the at least one speed measurement result;
[0007] The data transmission unit is used to transmit the speed measurement instruction issued by the at least one monitoring unit, and transmit at least one speed measurement result issued by the at least one speed measurement unit;
[0008] The speed measurement unit is used to start the speed measurement in response to the speed measurement instruction transmitted by the data transmission unit, test the transmission rate of the data interface to obtain the speed measurement result; and publish the speed measurement result to the data transmission unit.
[0009] Another aspect of the embodiments of the present disclosure provides a method for monitoring data transmission rate, the method being used in a monitoring unit of a data transmission rate monitoring system, the data transmission rate monitoring system further comprising a data transmission unit and at least one speed measuring unit, each speed measuring unit comprising a data interface to be monitored, the method comprising:
[0010] issuing a speed measurement instruction to the data transmission unit, so that the data transmission unit transmits the speed measurement instruction to the at least one speed measurement unit;
[0011] receiving the speed measurement result sent by the data transmission unit, wherein the speed measurement result is obtained and stored by the at least one speed measurement unit after testing the transmission rate of the data interface when the speed measurement instruction indicates to start the speed measurement;
[0012] The speed measurement result is displayed.
[0013] Another aspect of the embodiments of the present disclosure provides an electronic device, comprising: a memory for storing a computer program; a processor for executing the computer program stored in the memory, and when the computer program is executed, the method for monitoring the data transmission rate described in any of the above embodiments is implemented.
[0014] Another aspect of the embodiments of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for monitoring the data transmission rate described in any of the above embodiments is implemented.
[0015] Another aspect of the embodiments of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the method for monitoring the data transmission rate described in any of the above embodiments.
[0016] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments.
[0017] In the disclosed embodiment, corresponding speed measuring units may be respectively set for multiple distributed data interfaces, and at least one monitoring unit for monitoring the data transmission rate corresponding to the statistical data interface and a data transmission unit for transmitting information between at least one monitoring unit and at least one speed measuring unit may be set. At least one monitoring unit may send a speed measurement instruction to at least one speed measuring unit through the data transmission unit, and control the speed measurement of each speed measuring unit through the speed measurement instruction. At least one speed measuring unit may send a speed measurement result obtained by performing a data transmission rate test on the data interface to at least one monitoring unit through the data transmission unit, so that at least one monitoring unit can monitor and count the data transmission rate of each data interface in real time, and realize unified real-time monitoring of the transmission rate of the distributed data interface. In addition, at least one monitoring unit may display at least one received speed measurement result, visualize the transmission rate of each data interface, and facilitate monitoring and counting the transmission rate of each data interface.
[0018] Through a data transmission rate monitoring system consisting of at least one monitoring unit, a data transmission unit and at least one speed measurement unit, unified real-time monitoring and statistics of the transmission rates of multiple distributed data interfaces can be achieved, which helps to improve the efficiency of testing the transmission rates of multiple data interfaces and can meet the needs of real-time monitoring of the transmission rates of multiple data interfaces, which is conducive to expanding different test monitoring scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0020] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
[0021] Figure 1 A schematic diagram of the structure of a data transmission rate monitoring system provided by an exemplary embodiment of the present disclosure.
[0022] Figure 2 A schematic structural diagram of a data transmission rate monitoring system provided by another exemplary embodiment of the present disclosure.
[0023] Figure 3 A schematic diagram of a rate line graph provided for an exemplary embodiment of the present disclosure.
[0024] Figure 4 It is a structural diagram of a monitoring unit provided by another exemplary embodiment of the present disclosure.
[0025] Figure 5 It is a structural schematic diagram of a speed measuring unit provided by an exemplary embodiment of the present disclosure.
[0026] Figure 6 The figure is a flowchart of a method for monitoring data transmission rate provided by an exemplary embodiment of the present disclosure.
[0027] Figure 7 is a flowchart of a method for monitoring data transmission rate provided by another exemplary embodiment of the present disclosure.
[0028] Figure 8 It is a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.
[0030] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.
[0031] It should also be understood that in the embodiments of the present disclosure, “plurality” may refer to two or more than two, and “at least one” may refer to one, two, or more than two.
[0032] It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0033] In addition, the term "and / or" in the present disclosure is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present disclosure generally indicates that the associated objects before and after are in an "or" relationship.
[0034] It should also be understood that the description of the various embodiments in the present disclosure focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0035] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0036] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0037] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0038] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0039] The disclosed embodiments can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.
[0040] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.
[0041] In an embodiment of the present disclosure, a data transmission rate monitoring system is provided, which can be used to monitor the transmission rate of a statistically distributed data interface, such as Figure 1 As shown, it shows a structural block diagram of a data transmission rate monitoring system provided by an exemplary embodiment of the present disclosure, the data transmission rate monitoring system includes at least one monitoring unit 11, a data transmission unit 12 and at least one speed measuring unit 13, and each speed measuring unit 13 includes a data interface to be monitored.
[0042] The monitoring unit 11 is used to control the speed measuring unit 13 to measure the speed of the data interface to be monitored, and monitor and display the transmission rate of each data interface to be monitored. In an exemplary embodiment, the monitoring unit 11 can issue a speed measuring instruction to enable the speed measuring unit 13 to perform a speed measuring operation corresponding to the speed measuring instruction.
[0043] The speed measuring unit 13 includes a data interface to be monitored, and is used to perform a transmission rate test on the data interface to be monitored to obtain a speed measurement result of the data interface.
[0044] The data transmission unit 12 is used to transmit information between at least one speed measuring unit 11 and at least one speed measuring unit 13. In a possible implementation, the data transmission unit 12 can transmit a speed measurement instruction issued by at least one monitoring unit 11 to at least one speed measuring unit 13, and transmit a speed measurement result obtained by testing at least one speed measuring unit 13 to at least one monitoring unit 11.
[0045] In a possible implementation, at least one monitoring unit 11, a data transmission unit 12, and at least one speed measurement unit 13 may be integrated on the same electronic device to perform transmission rate testing and monitoring on different data interfaces on the same electronic device.
[0046] In another possible implementation, at least one monitoring unit 11, a data transmission unit 12, and at least one speed measuring unit 13 may be respectively arranged on different electronic devices, wherein different monitoring units in the at least one monitoring unit 11 may be arranged on the same electronic device or on different electronic devices, and at least one speed measuring unit 13 may be arranged on the same electronic device or on different electronic devices. When at least one speed measuring unit 13 is arranged on the same electronic device, different data interfaces on the same electronic device may be tested, and when arranged on different electronic devices, data interfaces on different electronic devices may be tested respectively.
[0047] The data transmission unit 12 may be a unit created based on a distributed message subscription-publishing system, which has high throughput and can process and transmit information between multiple monitoring units and multiple speed measurement units in real time. Exemplarily, the distributed message subscription-publishing system may be a Kafka system, a RabbitMQ system, a RocketMQ system, etc.
[0048] In an exemplary embodiment, the monitoring unit is used to issue a speed measurement instruction to the data transmission unit; the data transmission unit is used to transmit a speed measurement instruction issued by at least one monitoring unit; the speed measurement unit is used to start the speed measurement in response to the speed measurement instruction transmitted by the data transmission unit, and test the transmission rate of the data interface to obtain a speed measurement result.
[0049] The speed measurement instruction is used to control the speed measurement unit to perform the speed measurement operation. Optionally, the speed measurement instruction includes the unit identification of the speed measurement unit that needs to execute the speed measurement instruction, so that the designated speed measurement unit executes the speed measurement instruction. In one possible implementation, the data transmission unit is a unit of a distributed subscription-publishing structure, and each speed measurement unit in at least one speed measurement unit can subscribe to the instruction type information of the data transmission unit, and the instruction type information is the information type corresponding to the speed measurement instruction. The monitoring unit can issue the speed measurement instruction to the data transmission unit, and the data transmission unit publishes the speed measurement to the speed measurement unit that has subscribed to the message, so that the speed measurement unit receives the speed measurement instruction issued by the monitoring unit. After receiving the speed measurement instruction, the speed measurement unit can determine whether the speed measurement instruction instructs itself to start the speed measurement. If the speed measurement instruction starts the speed measurement, the transmission rate of the included data interface is tested to obtain the speed measurement result.
[0050] In one possible implementation, when the system includes one monitoring unit, the monitoring unit controls the speed measurement process of at least one speed measurement unit, and monitors and displays the speed measurement results obtained by testing different speed measurement units. In another possible implementation, when the system includes multiple monitoring units, different monitoring units can control the speed measurement process of different speed measurement units, and monitor and display the speed measurement results obtained by testing their corresponding speed measurement units.
[0051] In an exemplary embodiment, after the speed measurement unit tests the transmission rate of the data interface and obtains the speed measurement result, it publishes the speed measurement result to the data transmission unit. The data transmission unit transmits at least one speed measurement result published by at least one monitoring unit. The monitoring unit receives at least one speed measurement result transmitted by the data transmission unit and displays at least one speed measurement result.
[0052] Each monitoring unit in at least one monitoring unit can subscribe to the rate information of the data transmission unit, and the rate information is the information type corresponding to the speed measurement result. Each speed measurement unit can publish the speed measurement result to the data transmission unit, and the data transmission unit pushes the speed measurement result to the monitoring unit that subscribes to the message. After receiving the speed measurement result, the monitoring unit processes and displays the speed measurement result.
[0053] Optionally, the monitoring unit may display the various speed test results included in at least one speed test result on the same interface, or may display different speed test results in different interfaces. Optionally, when displaying different test results on the same interface, the monitoring unit may distinguish different speed test results in different display forms.
[0054] In the embodiment of the present disclosure, corresponding speed measuring units can be respectively set for multiple distributed data interfaces, and at least one monitoring unit for monitoring the data transmission rate corresponding to the statistical data interface and a data transmission unit for transmitting information between at least one monitoring unit and at least one speed measuring unit are set. At least one monitoring unit can send a speed measurement instruction to at least one speed measuring unit through the data transmission unit, and control the speed measurement of each speed measuring unit through the speed measurement instruction. At least one speed measuring unit can send a speed measurement result obtained by testing the data transmission rate of the data interface to at least one monitoring unit through the data transmission unit, so that at least one monitoring unit can monitor and count the data transmission rate of each data interface in real time, and realize unified real-time monitoring of the transmission rate of the distributed data interface. In addition, at least one monitoring unit can display at least one received speed measurement result, visualize the transmission rate of each data interface, and facilitate monitoring and counting the transmission rate of each data interface. Through the data transmission rate monitoring system composed of at least one monitoring unit, a data transmission unit and at least one speed measuring unit, unified real-time monitoring and statistics of the transmission rate of multiple distributed data interfaces can be realized, which helps to improve the efficiency of testing the transmission rate of multiple data interfaces, and can meet the needs of real-time monitoring of the transmission rate of multiple data interfaces, which is conducive to expanding different test monitoring scenarios.
[0055] In an exemplary embodiment, the data transmission unit may include at least one Kafka server, and information is transmitted between the monitoring unit and the speed measuring unit through the Kafka server.
[0056] In a possible implementation, the monitoring unit is also used to issue a speed measurement instruction to a first message partition in the data transmission unit for storing a first topic message, and the data transmission unit is also used to respond to at least one monitoring unit issuing a speed measurement instruction in the first message partition, and send a speed measurement instruction to a speed measurement unit subscribed to the first topic message. The speed measurement unit is also used to issue a speed measurement result to a second message partition in the data transmission unit for storing a second topic message, and the data transmission unit is also used for at least one speed measurement unit to publish a speed measurement result in the second message partition, and send at least one speed measurement result to a monitoring unit subscribed to the second topic message.
[0057] The monitoring unit and the speed measurement unit can publish messages to the data transmission unit and subscribe to messages of the data transmission unit based on different message topics. Among them, the first topic message refers to a message with a first topic, and the first message partition is a storage area in the data transmission unit for storing the first topic message. The monitoring unit can publish a speed measurement instruction to the first message partition used to store the first topic message. In this process, the monitoring unit can transmit the speed measurement instruction carrying the first topic identifier to the data transmission unit. After the data transmission unit receives the speed measurement instruction carrying the first topic identifier, it stores the speed measurement instruction in the first message partition. The first topic identifier is used to uniquely identify the first topic message. The speed measurement unit can subscribe to the first topic message. After the data transmission unit receives the speed measurement instruction carrying the first topic identifier, it sends the speed measurement instruction to the speed measurement unit that subscribes to the first topic message.
[0058] The speed measurement unit can transmit the speed measurement result carrying the second topic identifier to the data transmission unit. After receiving the speed measurement result carrying the second topic identifier, the data transmission unit stores the speed measurement result in the second message partition. The monitoring unit can subscribe to the second topic message. After receiving the speed measurement result carrying the second topic identifier, the data transmission unit sends the speed measurement result to the monitoring unit subscribed to the second topic message. The second topic identifier is used to uniquely identify the second topic message.
[0059] Optionally, the first message partition for storing the first topic message may include at least one message partition, and when it includes multiple message partitions, it can be used to store the speed measurement instructions issued by different monitoring units respectively. The second message partition for storing the second topic message may include at least one message partition, and when it includes multiple message partitions, it can be used to store the speed measurement results issued by different speed measurement units respectively.
[0060] In one possible implementation, the data transmission unit has multiple Kafka service instances, and different Kafka service instances include a first message partition for storing first topic messages and a second message partition for storing second topic messages. Messages in multiple Kafka service instances are synchronized. When message transmission through one service instance fails, the message can be retransmitted through another service instance.
[0061] Indicatively, Figure 2 As shown, at least one monitoring unit includes a first monitoring unit 110, a second monitoring unit 111 and an Nth monitoring unit 112, and at least one speed measuring unit includes a first speed measuring unit 130, a second speed measuring unit 131 and an Mth speed measuring unit 132, wherein M and N are positive integers greater than or equal to 1.
[0062] The data transmission unit includes a first service instance 120, a second service instance 121, and a third service instance 122. The service instances are all provided with a first message partition corresponding to the first topic message (TopicA) and a second message partition corresponding to the second topic message (TopicB). Among them, the message partition in the second service instance 121 is the primary partition, and the message partitions in the first service instance and the third service instance are auxiliary partitions.
[0063] The first monitoring unit 110 may issue a speed measurement instruction to the first message partition (Partion0) in the second service instance 121, and the second service instance 121 synchronizes the speed measurement instruction to the first service instance 120 and the third service instance 122. The first speed measurement unit 130 subscribes to the TopicA message, and the second service instance 121 transmits the speed measurement instruction to the first speed measurement unit 130. After the first speed measurement unit 130 tests the data interface to obtain the speed measurement result, it publishes the speed measurement result to the second message partition (Partion1) in the second service instance 121, and the second service instance 121 synchronizes the speed measurement result to the first service instance 120 and the third service instance 122. The first monitoring unit 110 subscribes to the TopicB message, and the second service instance 121 transmits the speed measurement result to the first monitoring unit 110. In the case where the second service instance 121 fails to transmit a message, since the message has been synchronized to the first service instance 120 and the third service instance 122, the message can be retransmitted through the first service instance 120 and / or the third service instance 122.
[0064] In this embodiment, a Kafka data transmission unit is used to transmit information (message forwarding) between at least one monitoring unit and at least one speed measurement unit. Real-time data processing and transmission are achieved through a distributed architecture. Real-time information transmission can be performed between multiple monitoring units and multiple speed measurement units, which is conducive to the expansion of transmission rate monitoring of more data interfaces and helps to improve system availability.
[0065] In an exemplary embodiment, a monitoring unit includes a first communication component, a data processing component, and an interactive display component, wherein the data processing component and the interactive display component constitute a client for monitoring statistical rate. The interactive display component is used to receive a speed measurement control operation, generate a speed measurement instruction based on the speed measurement control operation, and send the speed measurement instruction to the data processing component. The speed measurement control operation includes starting the speed measurement operation and stopping the speed measurement operation. The speed measurement instruction includes starting the speed measurement instruction and stopping the speed measurement instruction. The data processing component is used to receive the speed measurement instruction sent by the interactive display component, and send the speed measurement instruction to the first communication component. The first communication component is used to send the speed measurement instruction to the data transmission unit.
[0066] The interactive display component includes a user interaction interface, and the user can control the speed measurement process of the speed measurement unit in the user interaction interface. The speed measurement control operation is an interactive operation for controlling the speed measurement of the speed measurement unit. The user can control the speed measurement unit to start speed measurement and control the speed measurement unit to stop speed measurement in the user interaction interface. Optionally, the user interaction interface may include a start speed measurement control and a stop speed measurement control. In response to a trigger operation on the start speed measurement control, it is determined that the start speed measurement operation is received, and the interactive display component may generate a start speed measurement instruction; in response to a trigger operation on the stop speed measurement control, it is determined that the stop speed measurement operation is received, and the interactive display component may generate a stop speed measurement instruction.
[0067] The interactive display component can send a speed measurement instruction to the data processing component, and the data processing component forwards the speed measurement instruction to the first communication component, wherein the first communication component includes a command interface, specifically, may include a start command interface and a stop command interface. When the speed measurement instruction is a start speed measurement instruction, the data processing component can call the start command interface to transmit the start speed measurement instruction to the first communication component; when the speed measurement instruction is a stop speed measurement instruction, the data processing component can call the stop command interface to transmit the stop speed measurement instruction to the first communication component. The first communication component is a component for the monitoring unit to communicate with the data transmission unit. The first communication component can publish the speed measurement instruction to the first message partition of the data transmission unit.
[0068] In a possible implementation, a speed measuring unit list may be displayed in the user interaction interface for the user to select a speed measuring unit to be controlled. The interactive display component is also used to display the speed measuring unit list, which includes a unit identifier corresponding to at least one speed measuring unit capable of measuring speed; in response to a selection operation of a target unit identifier in the speed measuring unit list and a selection operation of a speed measuring control control, a speed measuring instruction for a target speed measuring unit corresponding to the target unit identifier is generated.
[0069] The monitoring unit may obtain the unit identifiers of different speed measuring units included in the system in advance, and display the speed measuring unit list based on the unit identifiers of different speed measuring units. When the transmission rate of the target data interface included in the target speed measuring unit needs to be tested, the user may select the unit identifier corresponding to the target speed measuring unit in the speed measuring unit list, and trigger the start speed measuring control. The interactive display component may receive the selection operation of the target unit identifier and the trigger operation of the start speed measuring control, and generate a start speed measuring instruction for the target speed measuring unit corresponding to the target unit identifier. Similarly, the interactive display component may receive the selection operation of the target unit identifier and the trigger operation of the stop speed measuring control, and may generate a stop speed measuring instruction for the target speed measuring unit.
[0070] The speed measurement instruction (start speed measurement instruction or stop speed measurement instruction) transmitted by the interactive display component to the data processing component carries the target unit identifier corresponding to the target speed measurement unit. The data processing component transmits the speed measurement instruction carrying the target unit identifier to the first communication component, and the first communication component publishes the speed measurement instruction carrying the target unit identifier to the data transmission unit. In one possible implementation, the data transmission unit publishes the speed measurement instruction carrying the target unit identifier to the speed measurement unit that subscribes to the message. The speed measurement unit determines whether to execute the speed measurement instruction based on the target unit identifier carried in the speed measurement instruction. When the speed measurement unit determines that the target unit identifier contains the unit identifier corresponding to itself, it executes the corresponding speed measurement instruction. In another possible implementation, the data transmission unit may transmit the speed measurement instruction to the target speed measurement unit corresponding to the target unit identifier that has subscribed to the message based on the target unit identifier carried in the speed measurement instruction.
[0071] In a possible implementation, the user may also set the speed measurement duration in the user interaction interface. In response to the selection operation of the target unit identifier in the speed measurement unit list, the setting operation of the speed measurement duration, and the selection operation of the start speed measurement control, the interactive display component generates a start speed measurement instruction for the target speed measurement unit corresponding to the target unit identifier, and the start speed measurement instruction includes the set speed measurement duration. The interactive display component may obtain the set speed measurement duration according to the setting operation of the speed measurement duration, and after receiving the selection operation of the start speed measurement control, may generate a start speed measurement instruction including the speed measurement duration, so that the speed measurement unit measures the speed of the data interface based on the speed measurement duration.
[0072] In an exemplary embodiment, the first communication component is also used to receive the speed measurement results transmitted by the data transmission unit, and send the speed measurement results to the data processing component; the data processing component is also used to perform data processing on the speed measurement results to obtain a statistical rate chart, and the statistical rate chart includes at least one of a rate line chart and a rate statistics table; the statistical rate chart is sent to the interactive display component; the interactive display component is also used to display the statistical rate chart.
[0073] The first communication component can be used to issue speed measurement instructions to the data transmission unit, and can also subscribe to the speed measurement results in the data transmission unit. After the data transmission unit receives the speed measurement results issued by the speed measurement unit, it transmits the speed measurement results to the first communication component in the monitoring unit. The first communication component can call the rate interface of the data processing component to receive the speed, and transmit the speed measurement results to the data processing component.
[0074] The data processing component can process the speed measurement results from different dimensions. Optionally, the transmission rate of the data interface can be displayed through at least one of a rate line graph and a rate statistics table. In one possible implementation, the speed measurement unit can transmit the speed measurement results at a preset frequency, and the data processing component in the monitoring unit draws a corresponding rate line graph based on each speed measurement result received. Schematically, the speed measurement unit can transmit the speed measurement results to the data transmission unit at a frequency of once per second, and the data transmission unit transmits the received speed measurement results to the monitoring unit in real time. The data processing component can draw a corresponding rate line graph based on the speed measurement results received per second.
[0075] Optionally, the data processing component is also used to draw rate line graphs of speed measurement results corresponding to different speed measurement units on different layers; and merge the rate line graphs of different layers to obtain a rate line graph corresponding to at least one speed measurement result. For the speed measurement results corresponding to different speed measurement units (i.e., different data interfaces), corresponding rate line graphs can be drawn on different layers. For example, for the first speed measurement result, the second speed measurement result, and the third speed measurement result respectively obtained by testing the first speed measurement unit, the second speed measurement unit, and the third speed measurement unit, a first rate line graph corresponding to the first speed measurement result can be drawn on layer A, a second rate line graph corresponding to the second speed measurement result can be drawn on layer B, and a third rate line graph corresponding to the third speed measurement result can be drawn on layer C. By drawing rate line graphs corresponding to different speed measurement results on different layers and then merging the rate line subgraphs, a rate line graph obtained by integrating the test results can be obtained. Schematically, as Figure 3 As shown, the rate line graphs 301 corresponding to the multiple speed measurement results can be merged to obtain the rate line graphs corresponding to the multiple test results.
[0076] In a possible implementation, the QCustomPlot graphics library can be used to draw a rate line graph. QCustomPlot supports real-time rendering of massive data and can render rate line graphs corresponding to different speed measurement results in real time. QCustomPlot can use a preset acceleration method to draw a line graph to improve the drawing rate and drawing performance. Optionally, the preset acceleration method includes at least one of refresh deduplication, adaptive sampling, text object cache, and OpenGL hardware acceleration. Exemplarily, when calling the replot function of QCustomPlot, the parameter can be specified as reQueuedReplot, and the refresh deduplication function can be turned on to delay multiple continuous redraw events to the same redraw event. Multiple continuous redraw events only need to perform one redraw, avoiding redundant redrawing, and improving drawing efficiency. Exemplarily, when calling the setAdaptiveSampling function of QCustomPlot, the parameter is specified as true, and the adaptive sampling function is turned on. QCustomPlot can intelligently select some data points (i.e., some rate points) for drawing, so that they are visually similar to all original points, which can reduce the amount of data points for drawing and improve drawing efficiency. For example, the scale values on the coordinate axis can be cached, such as the time on the horizontal axis and the rate on the vertical axis. When the scale values on the coordinate axis do not need to change, the cached data can be used without redrawing, which helps to improve the drawing rate. For example, when calling the setOpenGl function of QCustomPlot, specifying the first parameter as true can enable OpenGL hardware acceleration, and using the Graphic Processing Unit (GPU) to render the rate line chart can reduce the computing pressure of the Central Process Unit (CPU), and more data points can be drawn in the same time, thereby improving the drawing performance.
[0077] In a possible implementation, the monitoring unit stores unit identifiers of different speed measuring units, and a speed statistics table can be drawn based on the unit identifiers of different speed measuring units and the speed measurement results of each speed measuring unit. Optionally, the speed statistics table may include at least one of a speed mean, a standard deviation, a maximum speed, and a minimum speed. Optionally, the speed statistics table may also include speed measurement information, such as the speed measurement time and the speed measurement duration.
[0078] The calculation method of the rate mean μ is shown in formula (1), and the calculation method of the standard deviation σ is shown in formula (2):
[0079]
[0080] Where n is the total number of frequencies and Xi is the rate value of the i-th transmission.
[0081] Schematically, the rate statistics table may be shown in Table 1:
[0082] Table 1
[0083]
[0084] Schematically, as shown in Table 1, the rate statistics table may also provide unit selection items corresponding to different speed measurement units. The user may control the speed measurement process of the target speed measurement unit by selecting the unit selection item corresponding to the target speed measurement unit, such as starting the speed measurement, re-measuring the speed, and stopping the speed measurement. For example, "□1" may be checked. A test unit having a unit identifier of "HICI..P0001" is selected.
[0085] Optionally, the table control QTableView can be used to draw the rate statistics table.
[0086] In a possible implementation, after the interactive display component regenerates the speed measurement instruction, the statistical rate chart displayed on the user interaction interface may be refreshed, and the original statistical rate chart may be deleted to display the statistical rate chart corresponding to the speed measurement result obtained by the re-measurement.
[0087] In one possible implementation, after a statistical rate chart corresponding to the speed measurement result is generated, the statistical rate chart can be exported and stored. Optionally, a file format can be preset, and the statistical rate chart can be processed into a preset file format and stored locally, so that the user can view the speed measurement results obtained by multiple speed measurement unit tests. Schematically, the rate line chart can be processed into a preset image format (such as JPG) and stored locally. The rate statistics table can be processed into comma-separated values (CSV) file data and stored locally. A CSV file is a simple type of plain text file that arranges tabular data using a specific structure. The standard format of a CSV file is defined by row and column data, where a line break terminates each row and starts the next row, and each column is separated by a comma within the row. For example, the first two rows of the above-mentioned rate statistics table 1 after export are as follows:
[0088] Unit identification, maximum value, minimum value, mean value, standard deviation, time, speed measurement duration
[0089] HICI..P0001,230,190,210.123,50.456,x year / x month / x day 06:19:05,300
[0090] HICI..P0002,230,190,210.123,50.456,x year / x month / x day 06:19:05,300
[0091] In one example, if Figure 4 As shown, it shows a schematic diagram of the structure of a monitoring system 11 provided by an exemplary embodiment of the present disclosure. The monitoring system 11 includes an interactive display component 1101, a data processing component 1102, and a first communication component 1103. The interactive display component 1101 can display a list of speed measurement units based on the unit identifiers of different speed measurement units obtained, and in response to the selection operation of the target speed measurement unit in the speed measurement unit list, the setting operation of the speed measurement duration, and the start speed measurement operation, generate a start speed measurement instruction including a target unit identifier and a test duration corresponding to the target speed measurement unit, send the start speed measurement instruction to the data processing component 1102, the data processing component 1102 sends the start speed measurement instruction to the first communication component 1103, and the first communication component 1103 publishes the start speed measurement instruction to the data transmission unit 12( Figure 1 ), the first communication component 1103 subscribes to the message corresponding to the second topic, that is, subscribes to the speed measurement result. After receiving the speed measurement result transmitted by the data transmission unit 12, the speed measurement result can be transmitted to the data processing component 1102. The data processing component 1102 processes each speed measurement result to obtain a rate line graph and a rate statistics table, and sends the rate line graph and the rate statistics table to the interactive display component 1101, which is displayed by the interactive display component 1101. The interactive display component 1101 can also generate a stop speed measurement instruction in response to the stop speed measurement operation, and send the stop speed measurement instruction to the data processing component 1102. The data processing component 1102 sends the stop speed measurement instruction to the first communication component 1103, and the first communication component 1103 publishes the stop speed measurement instruction to the first message partition of the data transmission unit 12.
[0092] In this embodiment, a speed measurement unit list is provided so that the user can customize the data interface to be measured, and the user can customize the speed measurement duration, thereby improving the availability of the system. In addition, the monitoring unit can process the speed measurement results and display the speed measurement results in at least one of a rate line graph and a rate statistics table, so that the user can intuitively obtain the transmission rate information corresponding to the data interface, thereby improving the intuitiveness of information display and helping to improve the availability of the system.
[0093] In an exemplary embodiment, the speed measurement unit includes a first subunit carrying a data interface, and a second subunit connected to the first subunit through the data interface; the first subunit is used to start the speed measurement in response to the speed measurement instruction transmitted by the data transmission unit, and transmit data to the second subunit through the data interface; receive the speed measurement result sent by the second subunit, and send the speed measurement result to the data transmission unit; the second subunit is used to receive the data transmitted by the first subunit, and calculate the data transmission rate to obtain the speed measurement result, and send the speed measurement result to the first subunit.
[0094] Optionally, the first subunit may be a first device carrying a data interface (such as USB), the second subunit may be a second device connected to the first subunit via the data interface, and the second subunit corresponds to a unique data interface, that is, one second subunit is connected to one data interface. The first device and the second device are devices with data computing capabilities. Schematically, the first subunit may be a computer device, and the second subunit may be an intelligent circuit board with a built-in operating system.
[0095] In one possible implementation, after the first subunit receives a speed measurement instruction and determines that the speed measurement instruction indicates to start the speed measurement (such as when a speed measurement start instruction is received), the first subunit transmits a preset data packet to the second subunit through the data interface. The second subunit calculates the transmission rate corresponding to the data interface based on the data transmission duration (the duration of receiving the preset data packet) and the data volume of the preset data packet, and sends the transmission rate, i.e., the speed measurement result, to the first subunit.
[0096] In another possible implementation, after the first subunit transmits a preset data packet to the second subunit through the data interface, the second subunit may feedback the data transmission duration to the first subunit, so that the first subunit calculates the transmission rate corresponding to the data interface based on the data transmission duration and the data volume of the preset data packet.
[0097] In an exemplary embodiment, the first subunit includes a second communication component and a service process component. The second communication component is used to receive a speed measurement instruction sent by the data transmission unit, send a speed measurement instruction to the service process component, receive a speed measurement result sent by the service process component, and publish the speed measurement result to the data transmission unit. The service process component is used to start the speed measurement in response to the speed measurement instruction sent by the second communication component, transmit data to the second subunit through the data interface, receive the speed measurement result sent by the second subunit, and send the speed measurement result to the second communication component.
[0098] The second communication component is a component for the speed measurement unit to communicate with the data transmission unit. The second communication component can subscribe to the first topic message of the data transmission unit, receive the speed measurement instruction sent by the data transmission unit, and after receiving the speed measurement instruction, call the interface of the service process component to transmit the speed measurement instruction to the service process component for processing by the service process component. When receiving the start speed measurement instruction transmitted by the data transmission unit, call the interface of the service process component for transmitting the start speed measurement instruction, and transmit the start speed measurement instruction to the service process component. When receiving the stop speed measurement instruction transmitted by the data transmission unit, call the interface of the service process component for transmitting the stop speed measurement instruction, and transmit the stop speed measurement instruction to the service process component.
[0099] The service process component determines whether to start the speed measurement according to the speed measurement instruction. If it is determined to start the speed measurement, a preset data packet is transmitted to the second subunit through the data interface, so that the second subunit calculates the transmission rate of the data interface. After the second subunit calculates the transmission rate of the data interface, it transmits the speed measurement result to the service process component, and the service process component transmits the speed measurement result to the second communication component, and the second communication component publishes the speed measurement result to the second message partition of the data transmission unit. In another possible implementation, after the service process component transmits the preset data packet to the second subunit through the data interface, the second subunit transmits the data transmission duration to the service process component, and the service process component calculates the speed measurement result according to the data transmission duration and the data volume of the preset data packet, and transmits the speed measurement result to the second communication component. Alternatively, the service process component may determine the data transmission duration, and calculate the speed measurement result according to the data transmission duration and the data volume of the preset data packet, and transmit the speed measurement result to the second communication component.
[0100] Indicatively, Figure 5 As shown, the speed measurement unit 13 includes a first subunit 1301 and a second subunit 1302, and the first subunit 1301 includes a second communication component and a service process component.
[0101] The second communication component in the first subunit 1301 subscribes to the first topic message in the data transmission unit, and can obtain the speed measurement instruction in the first message partition of the data transmission unit, and transmit the speed measurement instruction to the service process component. The service process component starts the speed measurement in response to the speed measurement instruction, and sends a data packet to the second subunit 1302 through the data interface. The second subunit 1302 calculates the speed measurement result based on the data transmission duration and the data volume of the data packet, and sends the speed measurement result to the service process component. The service process component transmits the speed measurement result to the second communication component, and the second communication component publishes the speed measurement result to the second message partition.
[0102] When the service process component determines that the speed measurement instruction is a stop speed measurement instruction, it may stop sending data packets to the second subunit, and send a stop instruction to the second subunit to make the second subunit stop calculating the transmission rate.
[0103] In an exemplary embodiment, Figure 6 As shown, it shows a flowchart of a method for monitoring data transmission rate provided by an exemplary embodiment of the present disclosure, the method is used for a monitoring unit of the above-mentioned data transmission rate monitoring system, and the method comprises the following steps:
[0104] Step 601: Issue a speed measurement instruction to a data transmission unit, so that the data transmission unit transmits the speed measurement instruction to at least one speed measurement unit.
[0105] In one possible implementation, the monitoring unit issues a speed measurement instruction to the first message partition of the data transmission unit, wherein the speed measurement instruction includes a first topic identifier (such as TopicA) corresponding to the first topic message. In response to the monitoring unit issuing the speed measurement instruction in the first message partition, the data transmission unit sends the speed measurement instruction to the speed measurement unit subscribed to the first topic message.
[0106] Optionally, the speed measurement instruction includes a unit identifier of a speed measurement unit that needs to execute the speed measurement instruction, so that the designated speed measurement unit executes the speed measurement instruction. The speed measurement instruction includes a start speed measurement instruction and a stop speed measurement instruction. In response to the start speed measurement operation, a start speed measurement instruction is generated, and in response to the stop speed measurement operation, a stop speed measurement instruction is generated. The start speed measurement instruction and the stop speed measurement instruction may include a target unit identifier of a target speed measurement unit to be controlled. Optionally, the start speed measurement instruction may also include a customized speed measurement duration.
[0107] Specifically, the monitoring unit can display a speed measuring unit list, which includes a unit identifier corresponding to at least one speed measuring unit that can measure speed; in response to a selection operation on a target unit identifier in the speed measuring unit list and a selection operation on a speed measuring control control, a speed measuring instruction is generated for a target speed measuring unit corresponding to the target unit identifier, and the speed measuring control includes a start speed measuring control and a stop speed measuring control.
[0108] Furthermore, in response to the selection operation of the target unit identifier in the speed measurement unit list, the setting operation of the speed measurement duration and the selection operation of the start speed measurement control, a start speed measurement instruction for the target speed measurement unit corresponding to the target unit identifier can be generated, and the start speed measurement instruction includes the set speed measurement duration.
[0109] Step 602: receiving a speed measurement result sent by a data transmission unit, wherein the speed measurement result is obtained and stored by at least one speed measurement unit after testing the transmission rate of the data interface when a speed measurement instruction indicates to start the speed measurement.
[0110] The monitoring unit can subscribe to the second topic message in the data transmission unit, that is, the message corresponding to the speed measurement result. After receiving the speed measurement result, the data transmission unit transmits the speed measurement result to the monitoring unit.
[0111] Step 603, display the speed measurement result.
[0112] After receiving the speed measurement result, the monitoring unit processes and displays the speed measurement result to visualize the speed measurement result. Specifically, the speed measurement result can be processed to obtain a statistical rate chart, which includes at least one of a rate line chart and a rate statistics table.
[0113] In the disclosed embodiment, a monitoring unit is provided for monitoring and counting the data transmission rate corresponding to the distributed data interface. The monitoring unit can send a speed measurement instruction to at least one speed measurement unit through the data transmission unit, and control the speed measurement of each speed measurement unit through the speed measurement instruction. At least one speed measurement unit can send the speed measurement result obtained by performing a data transmission rate test on the data interface to the monitoring unit through the data transmission unit, so that the monitoring unit can monitor and count the data transmission rate of each data interface in real time, and realize unified real-time monitoring of the transmission rate of the distributed data interface. In addition, the monitoring unit can display at least one received speed measurement result, visualize the transmission rate of each data interface, and facilitate the monitoring and counting of the transmission rate of each data interface.
[0114] In an exemplary embodiment, Figure 7 As shown, it shows a flow chart of a method for monitoring data transmission rate provided by an exemplary embodiment of the present disclosure, the method is used for a speed measuring unit of the above-mentioned data transmission rate monitoring system, and the method comprises the following steps:
[0115] Step 701: Receive a speed measurement instruction transmitted by a data transmission unit.
[0116] The speed measurement unit may subscribe to the first topic message and receive the speed measurement instruction transmitted by the data transmission unit.
[0117] Step 702: In response to the speed measurement instruction, the speed measurement is started, and the transmission rate of the data interface is tested to obtain a speed measurement result.
[0118] The speed measuring unit can test the transmission rate of the data interface when receiving the instruction to start the speed measuring. Specifically, the first subunit in the speed measuring unit starts the speed measuring in response to the speed measuring instruction transmitted by the data transmission unit, and transmits data to the connected second subunit through the data interface. The second subunit can calculate the speed measuring result according to the data transmission time and data volume.
[0119] Step 703: publish the speed measurement result to the data transmission unit, so that the data transmission unit publishes the speed measurement result to at least one monitoring unit.
[0120] After the speed measurement unit calculates the speed measurement result, it publishes the speed measurement result to the second message partition corresponding to the second topic message. The data transmission unit can publish the speed measurement result to the monitoring unit that subscribes to the second topic message, so that the monitoring unit displays the speed measurement result.
[0121] In the disclosed embodiments, corresponding speed measuring units may be respectively provided for multiple distributed data interfaces. The speed measuring units may receive speed measuring instructions sent by the monitoring unit through the data transmission unit, test the data interface according to the speed measuring instructions, obtain speed measuring results, and send the speed measuring results obtained by performing data transmission rate tests on the data interface to at least one monitoring unit through the data transmission unit, so that at least one monitoring unit may monitor and count the data transmission rates of each data interface in real time, thereby realizing unified real-time monitoring of the transmission rates of distributed data interfaces, helping to improve the efficiency of testing the transmission rates of multiple data interfaces, and meeting the needs of real-time monitoring of the transmission rates of multiple data interfaces, which is conducive to expanding different test monitoring scenarios.
[0122] It should be noted that the monitoring method of the data transmission rate in the embodiment of the present disclosure corresponds to the embodiment of the monitoring system of the data transmission rate in the present disclosure, and the relevant contents can be referenced to each other, which will not be repeated here. The beneficial technical effects corresponding to the monitoring method of the data transmission rate in the embodiment of the present disclosure can also refer to the corresponding beneficial technical effects of the corresponding exemplary system part above, which will not be repeated here.
[0123] In addition, an embodiment of the present disclosure further provides an electronic device, including:
[0124] Memory for storing computer programs;
[0125] The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method for monitoring the data transmission rate described in any of the above embodiments of the present disclosure is implemented.
[0126] like Figure 8 As shown, the electronic device includes one or more processors and memory.
[0127] The processor may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0128] The memory may store one or more computer program products, and the memory may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program products may be stored on the computer-readable storage medium, and the processor may run the computer program product to implement the data transmission rate monitoring method of each embodiment of the present disclosure described above and / or other desired functions.
[0129] In one example, the electronic device may further include: an input device and an output device, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0130] In addition, the input device may also include, for example, a keyboard, a mouse, and the like.
[0131] The output device can output various information to the outside, including determined distance information, direction information, etc. The output device can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0132] Of course, to simplify, Figure 8 Only some of the components related to the present disclosure in the electronic device are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device may further include any other appropriate components.
[0133] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method for monitoring the data transmission rate according to various embodiments of the present disclosure described in the above part of this specification.
[0134] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0135] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, causes the processor to execute the steps of the method for monitoring the data transmission rate according to various embodiments of the present disclosure described in the above part of this specification.
[0136] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0137] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limiting. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.
[0138] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0139] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
[0140] The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
[0141] It should also be noted that in the apparatus, device and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.
[0142] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0143] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A data transmission rate monitoring system, characterized in that: The system comprises at least one monitoring unit, a data transmission unit and at least one speed measuring unit, each speed measuring unit respectively comprising a data interface to be monitored; The monitoring unit is configured to issue a speed measurement instruction to the data transmission unit; receive at least one speed measurement result sent by the data transmission unit, and display the at least one speed measurement result; The data transmission unit is used to transmit the speed measurement instruction issued by the at least one monitoring unit, and transmit at least one speed measurement result issued by the at least one speed measurement unit; The speed measurement unit is used to start the speed measurement in response to the speed measurement instruction transmitted by the data transmission unit, and to test the transmission rate of the data interface to obtain a speed measurement result; The speed measurement result is published to the data transmission unit.
2. The system according to claim 1, characterized in that The monitoring unit is further used to issue the speed measurement instruction to the first message partition in the data transmission unit for storing the first topic message; The speed measurement unit is further used to publish the speed measurement result to a second message partition in the data transmission unit for storing a second topic message; The data transmission unit is also used to send the speed measurement instruction to the speed measurement unit subscribed to the first topic message in response to the at least one monitoring unit publishing the speed measurement instruction in the first message partition; and send the at least one speed measurement result to the monitoring unit subscribed to the second topic message in response to the at least one speed measurement unit publishing the speed measurement result in the second message partition.
3. The system according to claim 1 or 2, characterized in that: The monitoring unit includes a first communication component, a data processing component and an interactive display component; The interactive display component is used to receive a speed measurement control operation, generate the speed measurement instruction based on the speed measurement control operation, and send the speed measurement instruction to the data processing component, wherein the speed measurement control operation includes starting the speed measurement operation and stopping the speed measurement operation, and the speed measurement instruction includes starting the speed measurement instruction and stopping the speed measurement instruction; The data processing component is used to receive the speed measurement instruction sent by the interactive display component, and send the speed measurement instruction to the first communication component; The first communication component is used to send the speed measurement instruction to the data transmission unit.
4. The system according to claim 3, characterized in that The interactive display component is also used for: Displaying a speed measuring unit list, wherein the speed measuring unit list includes a unit identifier corresponding to each of at least one speed measuring unit capable of measuring speed; In response to the selection operation of the target unit identifier in the speed measurement unit list and the selection operation of the speed measurement control control, a speed measurement instruction for the target speed measurement unit corresponding to the target unit identifier is generated, and the speed measurement control control includes a start speed measurement control and a stop speed measurement control.
5. The system according to claim 4, characterized in that The interactive display component is also used for: In response to the selection operation of the target unit identifier in the speed measurement unit list, the setting operation of the speed measurement duration and the selection operation of the start speed measurement control, a start speed measurement instruction is generated for the target speed measurement unit corresponding to the target unit identifier, and the start speed measurement instruction includes the set speed measurement duration.
6. The system according to claim 3, characterized in that The first communication component is further used to receive the speed measurement result transmitted by the data transmission unit, and send the speed measurement result to the data processing component; The data processing component is further used to perform data processing on the speed measurement result to obtain a statistical rate chart, wherein the statistical rate chart includes at least one of a rate line chart and a rate statistics table; and send the statistical rate chart to the interactive display component; The interactive display component is also used to display the statistical rate chart.
7. The system according to claim 6, characterized in that The data processing component is further used for: Draw rate line sub-charts of speed measurement results corresponding to different speed measurement units on different layers; The speed line subgraphs of different layers are merged to obtain a speed line graph corresponding to at least one speed measurement result.
8. The system according to claim 1 or 2, characterized in that: The speed measurement unit includes a first subunit carrying the data interface, and a second subunit connected to the first subunit via the data interface; The first subunit is used to start the speed measurement in response to the speed measurement instruction transmitted by the data transmission unit, and transmit data to the second subunit through the data interface; receiving the speed measurement result sent by the second subunit, and sending the speed measurement result to the data transmission unit; The second subunit is used to receive the data transmitted by the first subunit, calculate the data transmission rate to obtain a speed measurement result, and send the speed measurement result to the first subunit.
9. The system according to claim 8, characterized in that The first subunit includes a second communication component and a service process component; The second communication component is used to receive the speed measurement instruction sent by the data transmission unit, and send the speed measurement instruction to the service process component; Receiving the speed measurement result sent by the service process component; Publishing the speed measurement result to the data transmission unit; The service process component is used to start the speed measurement in response to the speed measurement instruction sent by the second communication component, and transmit data to the second subunit through the data interface; Receive the speed measurement result sent by the second subunit; and send the speed measurement result to the second communication component.
10. A method for monitoring data transmission rate, characterized in that: The method is used for a monitoring unit of a data transmission rate monitoring system, wherein the data transmission rate monitoring system further comprises a data transmission unit and at least one speed measuring unit, each speed measuring unit comprises a data interface to be monitored, and the method comprises: issuing a speed measurement instruction to the data transmission unit, so that the data transmission unit transmits the speed measurement instruction to the at least one speed measurement unit; receiving the speed measurement result sent by the data transmission unit, wherein the speed measurement result is obtained and stored by the at least one speed measurement unit after testing the transmission rate of the data interface when the speed measurement instruction indicates to start the speed measurement; The speed measurement result is displayed.
11. An electronic device, characterized in that: include: Memory for storing computer programs; The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the data transmission rate monitoring method described in claim 10 is implemented.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for monitoring the data transmission rate described in claim 10 is implemented.